Commit 6a63ccdf by 刘泽奇

123

parent 5b9fbb39
......@@ -292,13 +292,12 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
this.jdSelfFooterShow = false;
break;
}
});
},
// 处理参数方法
copyParams(actionBody, actionType, url, isUser = "no", isDecryptUser = "no") {
var data = this.commonParams;
data.actionProcess = this.$root.getChannelPath();
data.actionProcess = 'jd' || this.channelName;
data.actionType = actionType;
data.actionBody = actionBody || {};
data.requrl = this.host + url;
......@@ -332,7 +331,6 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
$(".spechorizotal .nav_color:hover").css("color", "#2692FF");
} else {
this.popupsType = true;
}
// setTimeout(()=>{
......
......@@ -81,7 +81,7 @@
<div><sup></sup><span>{{item.proPrice}}</span>/件</div>
<div class="brandreg-swiper-content-button"
:class="{\'brandreg-swiper-content-button-enter\':index==current}"
@click="jumpJdProductDetails(item,$event)">立即购买
@click="jumpJdProductDetails(item)">立即购买
</div>
</div>
</div>
......
......@@ -157,7 +157,7 @@
methods: {
/*全选 */
goIndentList(){
location.href="https://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=https://tm.plus.jdcloud.com/jdtm/getUser&state=jdindentlist&client_id=9491577327154697";
location.href = "https://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=https://tm.plus.jdcloud.com/jdtm/getUser&state=jdindentlist&client_id=9491577327154697";
},
handleCheckAllChange(val) {
if (val) {
......@@ -195,32 +195,62 @@
}
});
},
jumpJdProductDetails(code, e){
if (code.channelItemCode) {
switch (code.itemCode) {
case "zzsbzc":
location.href="https://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=https://tm.plus.jdcloud.com/jdtm/getUser&state=selftmreg&client_id=9491577327154697";
/*this.$router.push({ path: "/jd/selftmreg", query: {} });*/
break;
case "fzsbzc":
jumpJdProductDetails(code){
switch (this.$root.channelName) {
case "jd":
if (code.channelItemCode) {
switch (code.itemCode) {
case "zzsbzc":
location.href = "https://oauth2.jdcloud.com/authorize?response_type=token&redirect_uri=https://tm.plus.jdcloud.com/jdtm/getUser&state=selftmreg&client_id=9491577327154697";
/*this.$router.push({ path: "/jd/selftmreg", query: {} });*/
break;
case "fzsbzc":
case "dbsbzc":
let productId = code.channelItemCode.split('-')[1];
console.log(code.channelItemCode.split('-'),"xxxxxxxxxxxxxx");
window.open(`https://market.jdcloud.com/service/details/${productId}`);
break;
default:
break;
}
} else {
return
}
case "dbsbzc":
let productId = code.channelItemCode.split('-')[1];
console.log(code.channelItemCode.split('-'), "xxxxxxxxxxxxxx");
window.open(`https://market.jdcloud.com/service/details/${productId}`);
break;
default:
break;
}
} else {
return
}
break;
case "bw":
if (code.channelItemCode) {
switch (code.itemCode) {
case "zzsbzc":
this.$router.push({
path: `/${this.$root.channelName}/bwselftmreg`, query: {
sdsId: code.channelItemCode
}
});
/*this.$router.push({ path: "/jd/selftmreg", query: {} });*/
break;
case "fzsbzc":
case "dbsbzc":
this.$router.push({
path: `/${this.$root.channelName}/servicedetails`, query: {
sdsId: code.channelItemCode
}
});
break;
default:
break;
}
} else {
return
}
break;
default:
break;
}
console.log(code, e);
}
},
vname: "gsb-jdtrademark"
......
......@@ -5,10 +5,10 @@
<span style="font-weight:600;">服务详情页</span>
</div>
<div class="sds-img">
<img :src="serviceItem.mobilePic" alt="" style="width:100%;height:100%">
<img :src="serviceItem.picUrl" alt="" style="width:100%;height:100%">
</div>
<div class="sds-info">
<h3>{{serviceItem.name}}</h3>
<h3>{{serviceItem.itemName}}</h3>
<h5>{{serviceItem.shortDesc}}</h5>
<div class="sds-t">
<span style="color:#999;font-size:12px;margin:12px">服务费:</span> <b
......
......@@ -350,10 +350,13 @@
getServiceItemInfo(){
var sdsId = window.location.href.split("sdsId=")[1];
var that = this;
this.$root.getReq("/web/serviceitemCtl/findOneById", { id: sdsId }).then(function (d) {
if (d.code == 1) {
let obj = this.$root.copyParams({ channelUserId: "123", channelItemCode: sdsId }, "getProductDetail", "/action/tmOrder/springBoard");
this.$root.postReq("/web/trademark/tmqueryCtl/doPost", obj).then(function (d) {
if (d.status == 0) {
that.serviceItem = d.data;
console.log("返回信息", d.data)
console.log("返回信息", {...d.data})
} else {
console.log(d.msg);
}
})
},
......
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