Commit 6e71ea04 by 刘泽奇

123

parent a9e4d1d7
...@@ -8,10 +8,11 @@ ...@@ -8,10 +8,11 @@
</div> </div>
</div> --> </div> -->
<div class="jdindentlist-header"> <div class="jdindentlist-header">
<div>京东云商标</div> <div>京东云PLUS工商、商标注册平台</div>
<div> <div>
<span><i class="el-icon-user"></i></span> <span v-if="user_Name"><i class="el-icon-user"></i></span>
<span>1366*565445</span> <span>{{user_Name}}</span>
<span @click="loginOut" v-if="user_Name">退出</span>
</div> </div>
</div> </div>
<!-- <div> <!-- <div>
......
...@@ -331,7 +331,7 @@ ...@@ -331,7 +331,7 @@
popupValue: "", popupValue: "",
/**订单付款信息 */ /**订单付款信息 */
receiptVoucher: {}, receiptVoucher: {},
user_Name: "",
} }
}, },
mounted: function() { mounted: function() {
...@@ -388,6 +388,11 @@ ...@@ -388,6 +388,11 @@
this.$root.channelUserId = this.$route.query.channelUserId; this.$root.channelUserId = this.$route.query.channelUserId;
console.log(this.$route.query.channelUserId, "11111111111"); console.log(this.$route.query.channelUserId, "11111111111");
} }
document.cookie.split('; ').map((item, index) => {
if (item.includes('pin=')) {
this.user_Name = item.substring(4);
}
});
}, },
computed: { computed: {
...@@ -430,7 +435,24 @@ ...@@ -430,7 +435,24 @@
}, },
methods: { methods: {
loginOut(){
$.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);
}
});
},
/*初始化订单数据 */ /*初始化订单数据 */
initIndent(){ initIndent(){
var deliveryObj = this.$root.copyParams({ "deliveryOrderNo": this.deliveryOrderNo, "channelUserId": this.$route.query.channelUserId }, "getTmOrderInfo", "/action/tmOrder/springBoard"); var deliveryObj = this.$root.copyParams({ "deliveryOrderNo": this.deliveryOrderNo, "channelUserId": this.$route.query.channelUserId }, "getTmOrderInfo", "/action/tmOrder/springBoard");
......
<div class="jdindentlist-warpper"> <div class="jdindentlist-warpper">
<div class="jdindentlist-header"> <div class="jdindentlist-header">
<div>京东云商标</div> <div>京东云PLUS工商、商标注册平台</div>
<div> <div>
<span><i class="el-icon-user"></i></span> <span v-if="user_Name"><i class="el-icon-user"></i></span>
<span>1366*565445</span> <span>{{user_Name}}</span>
<span @click="loginOut" v-if="user_Name">退出</span>
</div> </div>
</div> </div>
......
...@@ -437,6 +437,7 @@ ...@@ -437,6 +437,7 @@
}, },
], ],
hidePage: true, hidePage: true,
user_Name:"",
} }
}, },
...@@ -446,6 +447,11 @@ ...@@ -446,6 +447,11 @@
console.log(this.$route.query.channelUserId, "11111111111"); console.log(this.$route.query.channelUserId, "11111111111");
console.log(this.$route.fullPath.split("/")[this.$route.fullPath.split("/").length - 1]); console.log(this.$route.fullPath.split("/")[this.$route.fullPath.split("/").length - 1]);
} }
document.cookie.split('; ').map((item, index) => {
if (item.includes('pin=')) {
this.user_Name = item.substring(4);
}
});
}, },
mounted: function() { mounted: function() {
var that = this; var that = this;
...@@ -467,6 +473,24 @@ ...@@ -467,6 +473,24 @@
}, },
methods: { methods: {
loginOut(){
$.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);
}
});
},
checkedCity(e){ checkedCity(e){
let city = this.regionValue[0]; let city = this.regionValue[0];
let area = this.regionValue[1]; let area = this.regionValue[1];
......
...@@ -510,8 +510,8 @@ ...@@ -510,8 +510,8 @@
console.log(response); console.log(response);
} }
}); });
}, },
toViewImg(src) { toViewImg(src) {
this.toViewImgSrc = src; this.toViewImgSrc = src;
this.toViewImgType = true this.toViewImgType = true
......
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