Commit 9140ffc5 by 刘泽奇

123

parent 513e79c2
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
currentStep:1, currentStep:1,
companyData:[], companyData:[],
user_Name:"", user_Name:"",
channelFrom:"",
} }
}, },
mounted: function() { mounted: function() {
...@@ -16,9 +17,12 @@ ...@@ -16,9 +17,12 @@
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") ; var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ;
......
...@@ -332,6 +332,7 @@ ...@@ -332,6 +332,7 @@
/**订单付款信息 */ /**订单付款信息 */
receiptVoucher: {}, receiptVoucher: {},
user_Name: "", user_Name: "",
channelFrom:"",
} }
}, },
mounted: function() { mounted: function() {
...@@ -393,6 +394,7 @@ ...@@ -393,6 +394,7 @@
this.user_Name = item.substring(4); this.user_Name = item.substring(4);
} }
}); });
this.getChannelFrom();
}, },
computed: { computed: {
...@@ -435,7 +437,9 @@ ...@@ -435,7 +437,9 @@
}, },
methods: { methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
loginOut(){ loginOut(){
/* /*
var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ; var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ;
......
...@@ -438,6 +438,7 @@ ...@@ -438,6 +438,7 @@
], ],
hidePage: true, hidePage: true,
user_Name:"", user_Name:"",
channelFrom:"",
} }
}, },
...@@ -452,6 +453,7 @@ ...@@ -452,6 +453,7 @@
this.user_Name = item.substring(4); this.user_Name = item.substring(4);
} }
}); });
this.getChannelFrom();
}, },
mounted: function() { mounted: function() {
var that = this; var that = this;
...@@ -473,7 +475,9 @@ ...@@ -473,7 +475,9 @@
}, },
methods: { methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
loginOut(){ loginOut(){
/* /*
var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ; var url = encodeURIComponent("http://tm.plus.jdcloud.com/#/jd/jdtrademark") ;
......
...@@ -2,21 +2,19 @@ ...@@ -2,21 +2,19 @@
<div class="jdindentdetail-warpper"> <div class="jdindentdetail-warpper">
<div class="jdindentlist-header" v-if="channelFrom == \'jd\'"> <div class="jdindentlist-header" v-if="channelFrom == \'jd\'">
<div>京东云PLUS工商、商标注册平台</div> <div>京东云PLUS工商、商标注册平台</div>
<div v-if="user_Name"> <div v-if="user_Name">
<span v-if="user_Name"><i class="el-icon-user"></i></span> <span v-if="user_Name"><i class="el-icon-user"></i></span>
<span>{{user_Name}}</span> <span>{{user_Name}}</span>
<span @click="loginOut" v-if="user_Name">退出</span> <span @click="loginOut" v-if="user_Name">退出</span>
</div> </div>
<div v-else> <div v-else>
<a :href="https://login.jdcloud.com/?returnUrl=http%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist" <a href="https://login.jdcloud.com/?returnUrl=http%3A%2F%2Ftm.plus.jdcloud.com%2F%23%2Fjd%2Fjdindentlist" class="jdindentlist-header-login" >登录</a>
class="jdindentlist-header-login">登录</a> <a href="https://user.jdcloud.com/register?source=jdcloud&ReturnUrl=https%3A%2F%2Fwww.jdcloud.com" style="display:inline-block;color: #fff;padding: 0 15px;background:linear-gradient(80deg,#3171ff 0,#a14faf 100%);border-radius:13px;height: 26px;
<a href="https://user.jdcloud.com/register?source=jdcloud&ReturnUrl=https%3A%2F%2Fwww.jdcloud.com" line-height: 26px;">免费注册</a>
style="display:inline-block;color: #fff;padding: 0 15px;background:linear-gradient(80deg,#3171ff 0,#a14faf 100%);border-radius:13px;height: 26px; </div>
line-height: 26px;">免费注册</a> </div>
</div>
</div>
<div class="jdindentdetail"> <div class="jdindentdetail">
......
...@@ -332,6 +332,7 @@ ...@@ -332,6 +332,7 @@
/**订单付款信息 */ /**订单付款信息 */
receiptVoucher: {}, receiptVoucher: {},
user_Name:"", user_Name:"",
channelFrom:"",
} }
}, },
mounted: function() { mounted: function() {
...@@ -393,7 +394,7 @@ ...@@ -393,7 +394,7 @@
this.user_Name = item.substring(4); this.user_Name = item.substring(4);
} }
}); });
this.getChannelFrom();
}, },
computed: { computed: {
...@@ -435,36 +436,8 @@ ...@@ -435,36 +436,8 @@
}, },
methods: { methods: {
loginOut(){ getChannelFrom(){
/* 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,6 +441,7 @@ ...@@ -441,6 +441,7 @@
], ],
hidePage: true, hidePage: true,
user_Name: "", user_Name: "",
channelFrom:"",
} }
}, },
...@@ -473,10 +474,13 @@ ...@@ -473,10 +474,13 @@
if (this.$root.channelUserId != "") { if (this.$root.channelUserId != "") {
this.handleSizeChange(); this.handleSizeChange();
} }
this.getChannelFrom();
}, },
methods: { methods: {
getChannelFrom(){
this.channelFrom = this.$root.getChannelPath();
},
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