Commit 9a1b94ef by 刘泽奇

123

parent 0dc47de1
......@@ -6,7 +6,6 @@
currentStep:1,
companyData:[],
user_Name:"",
channelFrom:"",
}
},
mounted: function() {
......@@ -17,31 +16,39 @@
this.user_Name = item.substring(4);
}
});
this.getChannelFrom();
},
methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
loginOut(){
/*
var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ;
*/
/*
location.href = `http://login.jdcloud.com/logout?callback=http://tm.plus.jdcloud.com/#/jd/jdtrademark`;
*/
let _this = this;
$.ajax({
async: true,
url: "http://login.jdcloud.com/logout",
type: "GET",
dataType: "jsonp",
jsonp: 'callback',
jsonpCallback: 'handleResponse',
dataType: "jsonp",
jsonp: 'callback',
jsonpCallback: 'handleResponse',
data: {
},
success: function (response, status, xhr) {
console.log('状态为:' + status + ',状态是:' + xhr.statusText);
console.log(response);
if(response.code == 0){
_this.user_Name = "";
if (response.code == 0) {
console.log(response);
_this.$router.push({ path: `/${_this.$root.channelName}/jdtrademark` });
}
}
});
},
},
......
......@@ -332,7 +332,6 @@
/**订单付款信息 */
receiptVoucher: {},
user_Name: "",
channelFrom:"",
}
},
mounted: function() {
......@@ -394,7 +393,6 @@
this.user_Name = item.substring(4);
}
});
this.getChannelFrom();
},
computed: {
......@@ -437,26 +435,37 @@
},
methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
loginOut(){
/*
var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ;
*/
/*
location.href = `http://login.jdcloud.com/logout?callback=http://tm.plus.jdcloud.com/#/jd/jdtrademark`;
*/
let _this = this;
$.ajax({
async: true,
url: "http://login.jdcloud.com/logout",
type: "GET",
dataType: "jsonp",
jsonp: 'callback',
jsonpCallback: 'handleResponse',
dataType: "jsonp",
jsonp: 'callback',
jsonpCallback: 'handleResponse',
data: {
},
success: function (response, status, xhr) {
console.log('状态为:' + status + ',状态是:' + xhr.statusText);
console.log(response);
if (response.code == 0) {
console.log(response);
_this.$router.push({ path: `/${_this.$root.channelName}/jdtrademark` });
}
}
});
},
/*初始化订单数据 */
initIndent(){
......
......@@ -438,7 +438,6 @@
],
hidePage: true,
user_Name:"",
channelFrom:"",
}
},
......@@ -453,7 +452,6 @@
this.user_Name = item.substring(4);
}
});
this.getChannelFrom();
},
mounted: function() {
var that = this;
......@@ -475,26 +473,37 @@
},
methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
loginOut(){
/*
var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ;
*/
/*
location.href = `http://login.jdcloud.com/logout?callback=http://tm.plus.jdcloud.com/#/jd/jdtrademark`;
*/
let _this = this;
$.ajax({
async: true,
url: "http://login.jdcloud.com/logout",
type: "GET",
dataType: "jsonp",
jsonp: 'callback',
jsonpCallback: 'handleResponse',
dataType: "jsonp",
jsonp: 'callback',
jsonpCallback: 'handleResponse',
data: {
},
success: function (response, status, xhr) {
console.log('状态为:' + status + ',状态是:' + xhr.statusText);
console.log(response);
if (response.code == 0) {
console.log(response);
_this.$router.push({ path: `/${_this.$root.channelName}/jdtrademark` });
}
}
});
},
checkedCity(e){
let city = this.regionValue[0];
......
......@@ -332,7 +332,6 @@
/**订单付款信息 */
receiptVoucher: {},
user_Name:"",
channelFrom:"",
}
},
mounted: function() {
......@@ -394,7 +393,7 @@
this.user_Name = item.substring(4);
}
});
this.getChannelFrom();
},
computed: {
......@@ -436,8 +435,36 @@
},
methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
loginOut(){
/*
var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ;
*/
/*
location.href = `http://login.jdcloud.com/logout?callback=http://tm.plus.jdcloud.com/#/jd/jdtrademark`;
*/
let _this = this;
$.ajax({
async: true,
url: "http://login.jdcloud.com/logout",
type: "GET",
dataType: "jsonp",
jsonp: 'callback',
jsonpCallback: 'handleResponse',
data: {
},
success: function (response, status, xhr) {
console.log('状态为:' + status + ',状态是:' + xhr.statusText);
console.log(response);
if (response.code == 0) {
console.log(response);
_this.$router.push({ path: `/${_this.$root.channelName}/jdtrademark` });
}
}
});
},
/*初始化订单数据 */
initIndent(){
......
......@@ -441,7 +441,6 @@
],
hidePage: true,
user_Name: "",
channelFrom: "",
}
},
......@@ -456,7 +455,6 @@
this.user_Name = item.substring(4);
}
});
this.getChannelFrom();
},
mounted: function() {
var that = this;
......@@ -478,10 +476,7 @@
},
methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
console.log(this.channelFrom, '~~~~~~~~~~~~~~~~~~~~~~~~~');
},
checkedCity(e){
let city = this.regionValue[0];
let area = this.regionValue[1];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment