Commit 6e71ea04 by 刘泽奇

123

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