Commit 8968153a by 宋毅

Merge branch 'igirl-channel-web' of gitlab.gongsibao.com:jiangyong/zhichan into igirl-channel-web

parents 6c3fbd4c b41072b0
......@@ -5,6 +5,7 @@
<meta charset="utf-8">
<meta name="keywords" content="PAAS 开放平台">
<meta name="baidu-site-verification" content="lATAxZAm8y" />
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">
<meta name="viewport" content="width=device-width, initial-scale=0.8, maximum-scale=0.8, user-scalable=1">
<title id="idtitle"></title>
<!-- <%=app?app.name:'应用未启用'%> -->
......@@ -76,11 +77,10 @@
</span>
<el-dropdown-menu slot="dropdown">
<el-dropdown-item icon="el-icon-plus">我的订单</el-dropdown-item>
<el-dropdown-item icon="el-icon-circle-plus">我的账号</el-dropdown-item>
<el-dropdown-item icon="el-icon-circle-plus">退出登录</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
<span @click="loginOut" v-if="user_Name">退出</span>
<!-- <span @click="loginOut" v-if="user_Name">退出</span> -->
</div>
<div v-else>
<router-link class="commonchannel-login" :to="'/'+channelName+'/login'">登录</router-link>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -163,7 +163,7 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
jdSelfHeaderShow: true,
commonHeader: true,
commonFooter: true,
user_Name: "123xxxxxxxxxxx",
user_Name: "",
channelMessage: "",
};
......@@ -219,6 +219,9 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
case '1688':
title.innerText = "1688商标注册服务";
break;
case 'gsbhome':
title.innerText = "公司宝商标注册服务";
break;
default:
title.innerText = "启服通";
break;
......@@ -292,13 +295,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 +334,6 @@ axios.get("/web/common/metaCtl/getRouteConfig").then(d => {
$(".spechorizotal .nav_color:hover").css("color", "#2692FF");
} else {
this.popupsType = true;
}
// setTimeout(()=>{
......
......@@ -365,54 +365,16 @@
watch: {
nclOne: {
handler(newVal, oldVal){
this.form.totalSum = (newVal.length * this.form.totalPrices).toFixed(2);
/*大类 */
if (newVal.length > 0) {
if (newVal.length > 1) {
this.$refs.tree.setChecked(newVal[1], false);
this.$refs.tree.setChecked(newVal[1].nclThree[0], false);
newVal.pop();
this.message.show = !this.message.show;
this.message.info = "只能选择同一个类别";
var timer = setTimeout(() => {
this.message.show = false;
clearTimeout(timer);
}, 2000);
};
/*小类 */
if (newVal[0].nclThree.length > 10) {
this.$refs.tree.setChecked(newVal[0].nclThree[10], false);
newVal[0].nclThree.pop();
console.log(newVal, newVal[0].nclThree, `xxxxxxxxxxxxxxxxxxxxxxxxxxxxx`);
this.message.show = !this.message.show;
this.message.info = "最多只能选择10项";
var timer2 = setTimeout(() => {
this.message.show = false;
clearTimeout(timer2);
}, 2000);
this.form.totalSum = 0;
console.log(newVal.length, 1111111111111, oldVal.length);
newVal.map((item, index) => {
if (item.nclThree.length > 10) {
this.form.totalSum += Number(item.nclThree.length * 30);
} else {
this.form.totalSum += Number(300);
}
});
}
/*
console.log(this, newVal.length, '???????????????????');
if (newVal.length > 0) {
newVal.forEach((item, index) => {
if (item.nclThree.length > 10) {
this.$refs.tree.setChecked(item.nclThree[10], false);
item.nclThree.pop();
console.log(newVal, item.nclThree, `xxxxxxxxxxxxxxxxxxxxxxxxxxxxx`);
this.message.show = !this.message.show;
this.message.info = "最多只能选择10项";
var timer2 = setTimeout(() => {
this.message.show = false;
clearTimeout(timer2);
}, 2000);
}
});
}
*/
},
deep: true
}
......@@ -981,13 +943,20 @@
})
},
handleCheckChange(obj, a, b) {
console.log(obj, a, b, this.nclOne, '1233333333333333333333344444444444444444444');
/**
*
*
* console.log(obj, a, b, this.nclOne, '1233333333333333333333344444444444444444444', dataRecieve);
*/
let dataRecieve = this.$refs.tree.getCheckedNodes();
if (obj.type) {
return
}
/*let ppncl = this.ppnclArr;*/
let ppncl = this.$refs.tree.getNode(obj).parent.parent.data;
console.log(ppncl);
let key = (dataRecieve.length - 1);
let eData = null;
......
......@@ -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"
......
......@@ -3,15 +3,15 @@
<div class="nowbuy-main">
<div class="nowbuy-nav">
<div class="tm-body-breadcrumb" style="margin-bottom: 15px;"><span @click="tiaozhuan(\'/\',\'首页\')"
<!-- <div class="nowbuy-nav">
<div class="tm-body-breadcrumb" style="margin-bottom: 15px;"><span @click="tiaozhuan(1)"
style="cursor: pointer;">首页</span>
<i class="el-icon-arrow-right"></i>
<span style="font-weight:600;cursor: pointer;font-weight: 300;"
@click="tiaozhuan( \'/servicedetails\',\'服务详情\',)">{{serviceName||\'担保商标注册\'}}</span>
@click="tiaozhuan(2)">{{serviceName||\'担保商标注册\'}}</span>
<i class="el-icon-arrow-right">下单</i>
</div>
</div>
</div> -->
<div class="nowbuy-title">
<div>
购买服务
......
......@@ -59,7 +59,7 @@
totalSum: null,
},
},
serviceName:"",
serviceName: "",
}
},
......@@ -87,19 +87,19 @@
this.params.itemCode = this.tableData[0].code;
this.$root.postReq("/web/orderCtl/createOtherOrder", this.params).then((d) => {
console.log("---------submitOrder-------");
if (this.$store.state.currentUser == null){
if (this.$store.state.currentUser == null) {
this.$message.warning("未登录");
return
}
if (d.code == 1) {
this.$root.pushx({
title: "订单支付",
name: "/orderpay",
params: { orderNum: d.data.code }
});
} else {
this.$message.warning(d.msg);
}
if (d.code == 1) {
this.$root.pushx({
title: "订单支付",
name: "/orderpay",
params: { orderNum: d.data.code }
});
} else {
this.$message.warning(d.msg);
}
}).catch((e) => {
console.log(e);
})
......@@ -119,15 +119,22 @@
}
});
},
tiaozhuan(path, name, params) {
this.$root.pushx({
title: name,
name: path,
params: {
isDirectJump: 1,
sdsId: this.$route.query.sdsId
}
});
tiaozhuan(code) {
switch (code) {
case 1:
this.$router.push({
path: `/${this.$root.channelName}/jdtrademark?`
});
break;
case 2:
this.$router.push({
path: `/${this.$root.channelName}/servicedetails`
});
break;
default:
break;
}
},
},
computed: {
......
......@@ -8,7 +8,7 @@
</div> -->
<div class="login-div" v-if="a">
<div class="login-content" style="width: 380px;
height: 508px;
height: 430px;
background: rgba(255,255,255,1);
border: 1px solid rgba(151,151,151,1);">
<div class="logins-title">
......@@ -17,10 +17,7 @@
<!-- 验证码登录 -->
<div v-if="activeIndex==1" class="login-content-inputs">
<el-form ref="form1" :rules="rules1" :model="form1" label-width="0px" key="1">
<el-form-item>
<el-input v-model="form1.username" placeholder="请输入企业名称"> <i slot="prefix"
class="el-input__icon el-icon-tickets"></i></el-input>
</el-form-item>
<el-form-item prop="mobile">
<el-input v-model="form1.mobile" placeholder="请输入11位手机号码"><i slot="prefix"
class="el-input__icon el-icon-mobile-phone"></i></el-input>
......
<div class="sds-container" style="background-color:white">
<div style="width:1200px;color:#000;margin:0 auto;padding-top:20px;padding-bottom:30px;min-height:1000px">
<div class="tm-body-breadcrumb" style="margin-bottom: 15px;"><span @click="tiaozhuan(\'/\',\'首页\')"
<div class="tm-body-breadcrumb" style="margin-bottom: 15px;"><span @click="tiaozhuan()"
style="cursor: pointer;">首页</span> <i class="el-icon-arrow-right"></i>
<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
......@@ -24,7 +24,7 @@
style="color:#ff5135;font-size:18px">&yen;&nbsp;{{serviceItem.price?serviceItem.price.toFixed(2):0}}</b>
</div>
<div class="sds-operate">
<span class="sds-op2" @click="showneed()">立即办理</span>
<span class="sds-op2" @click="showneed()">提交需求</span>
<span class="sds-op1" @click="sdsOp2()">立即购买</span>
</div>
<p>服务承诺:全流程服务 全程公开透明</p>
......
......@@ -333,27 +333,27 @@
},
mounted() {
this.getServiceItemInfo();
setTimeout(() => {
$(".spechorizotal .nav_color").css("color", "black");
}, 2000);
scrollTo(0, 0);
/*$("#idtitle").text("服务详情");*/
},
created() {
},
methods: {
tiaozhuan(path, name) {
this.$root.pushx({
title: name,
name: path
tiaozhuan() {
this.$router.push({
path: `/${this.$root.channelName}/jdtrademark`
});
},
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);
}
})
},
......@@ -370,7 +370,7 @@
window.open("https://wpa.qq.com/msgrd?v=3&uin="+this.$root.contextCompany().serviceqq+"&site=qq&menu=yes");
*/
let routeUrl = this.$router.resolve({
path: "/nowbuy",
path: `/${this.$root.channelName}/nowbuy`,
query: {
isDirectJump: 1,
num: this.num,
......
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