Commit 9a1b94ef by 刘泽奇

123

parent 0dc47de1
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
currentStep:1, currentStep:1,
companyData:[], companyData:[],
user_Name:"", user_Name:"",
channelFrom:"",
} }
}, },
mounted: function() { mounted: function() {
...@@ -17,31 +16,39 @@ ...@@ -17,31 +16,39 @@
this.user_Name = item.substring(4); this.user_Name = item.substring(4);
} }
}); });
this.getChannelFrom();
}, },
methods: { methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
loginOut(){ 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; let _this = this;
$.ajax({ $.ajax({
async: true, async: true,
url: "http://login.jdcloud.com/logout", url: "http://login.jdcloud.com/logout",
type: "GET", type: "GET",
dataType: "jsonp", dataType: "jsonp",
jsonp: 'callback', jsonp: 'callback',
jsonpCallback: 'handleResponse', jsonpCallback: 'handleResponse',
data: { data: {
}, },
success: function (response, status, xhr) { success: function (response, status, xhr) {
console.log('状态为:' + status + ',状态是:' + xhr.statusText); console.log('状态为:' + status + ',状态是:' + xhr.statusText);
console.log(response); console.log(response);
if(response.code == 0){ if (response.code == 0) {
_this.user_Name = ""; console.log(response);
_this.$router.push({ path: `/${_this.$root.channelName}/jdtrademark` });
} }
} }
}); });
}, },
}, },
......
...@@ -332,7 +332,6 @@ ...@@ -332,7 +332,6 @@
/**订单付款信息 */ /**订单付款信息 */
receiptVoucher: {}, receiptVoucher: {},
user_Name: "", user_Name: "",
channelFrom:"",
} }
}, },
mounted: function() { mounted: function() {
...@@ -394,7 +393,6 @@ ...@@ -394,7 +393,6 @@
this.user_Name = item.substring(4); this.user_Name = item.substring(4);
} }
}); });
this.getChannelFrom();
}, },
computed: { computed: {
...@@ -437,26 +435,37 @@ ...@@ -437,26 +435,37 @@
}, },
methods: { methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
loginOut(){ 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({ $.ajax({
async: true, async: true,
url: "http://login.jdcloud.com/logout", url: "http://login.jdcloud.com/logout",
type: "GET", type: "GET",
dataType: "jsonp", dataType: "jsonp",
jsonp: 'callback', jsonp: 'callback',
jsonpCallback: 'handleResponse', jsonpCallback: 'handleResponse',
data: { data: {
}, },
success: function (response, status, xhr) { success: function (response, status, xhr) {
console.log('状态为:' + status + ',状态是:' + xhr.statusText); console.log('状态为:' + status + ',状态是:' + xhr.statusText);
console.log(response); console.log(response);
if (response.code == 0) {
console.log(response);
_this.$router.push({ path: `/${_this.$root.channelName}/jdtrademark` });
}
} }
}); });
}, },
/*初始化订单数据 */ /*初始化订单数据 */
initIndent(){ initIndent(){
......
...@@ -438,7 +438,6 @@ ...@@ -438,7 +438,6 @@
], ],
hidePage: true, hidePage: true,
user_Name:"", user_Name:"",
channelFrom:"",
} }
}, },
...@@ -453,7 +452,6 @@ ...@@ -453,7 +452,6 @@
this.user_Name = item.substring(4); this.user_Name = item.substring(4);
} }
}); });
this.getChannelFrom();
}, },
mounted: function() { mounted: function() {
var that = this; var that = this;
...@@ -475,26 +473,37 @@ ...@@ -475,26 +473,37 @@
}, },
methods: { methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
loginOut(){ 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({ $.ajax({
async: true, async: true,
url: "http://login.jdcloud.com/logout", url: "http://login.jdcloud.com/logout",
type: "GET", type: "GET",
dataType: "jsonp", dataType: "jsonp",
jsonp: 'callback', jsonp: 'callback',
jsonpCallback: 'handleResponse', jsonpCallback: 'handleResponse',
data: { data: {
}, },
success: function (response, status, xhr) { success: function (response, status, xhr) {
console.log('状态为:' + status + ',状态是:' + xhr.statusText); console.log('状态为:' + status + ',状态是:' + xhr.statusText);
console.log(response); console.log(response);
if (response.code == 0) {
console.log(response);
_this.$router.push({ path: `/${_this.$root.channelName}/jdtrademark` });
}
} }
}); });
}, },
checkedCity(e){ checkedCity(e){
let city = this.regionValue[0]; let city = this.regionValue[0];
......
...@@ -332,7 +332,6 @@ ...@@ -332,7 +332,6 @@
/**订单付款信息 */ /**订单付款信息 */
receiptVoucher: {}, receiptVoucher: {},
user_Name:"", user_Name:"",
channelFrom:"",
} }
}, },
mounted: function() { mounted: function() {
...@@ -394,7 +393,7 @@ ...@@ -394,7 +393,7 @@
this.user_Name = item.substring(4); this.user_Name = item.substring(4);
} }
}); });
this.getChannelFrom();
}, },
computed: { computed: {
...@@ -436,8 +435,36 @@ ...@@ -436,8 +435,36 @@
}, },
methods: { methods: {
getChannelFrom(){ loginOut(){
this.channelFrom = this.$root.getChannelPath(); /*
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(){ initIndent(){
......
...@@ -441,7 +441,6 @@ ...@@ -441,7 +441,6 @@
], ],
hidePage: true, hidePage: true,
user_Name: "", user_Name: "",
channelFrom: "",
} }
}, },
...@@ -456,7 +455,6 @@ ...@@ -456,7 +455,6 @@
this.user_Name = item.substring(4); this.user_Name = item.substring(4);
} }
}); });
this.getChannelFrom();
}, },
mounted: function() { mounted: function() {
var that = this; var that = this;
...@@ -478,10 +476,7 @@ ...@@ -478,10 +476,7 @@
}, },
methods: { methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
console.log(this.channelFrom, '~~~~~~~~~~~~~~~~~~~~~~~~~');
},
checkedCity(e){ checkedCity(e){
let city = this.regionValue[0]; let city = this.regionValue[0];
let area = this.regionValue[1]; 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