Commit 47458425 by 刘泽奇

123

parent 6a63ccdf
......@@ -76,11 +76,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>
......
......@@ -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;
......
......@@ -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;
......
......@@ -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>
......@@ -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,18 +333,15 @@
},
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(){
......@@ -354,7 +351,7 @@
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);
}
......@@ -373,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