Commit 30f30651 authored by 郭志伟's avatar 郭志伟

Merge branch 'fix/goods' into 'master'

Fix/goods

See merge request !165
parents d733b441 08826362
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* @Description:华太30万轻重疾险 * @Description:华太30万轻重疾险
* @Date: 2020-07-27 15:46:37 * @Date: 2020-07-27 15:46:37
* @LastEditors: gzw * @LastEditors: gzw
* @LastEditTime: 2020-08-31 15:43:06 * @LastEditTime: 2020-08-31 17:37:32
*/ */
import goodsBg from "@/assets/images/goods/detail/zhongjixian/bg.png"; import goodsBg from "@/assets/images/goods/detail/zhongjixian/bg.png";
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
{ content: "华泰财险附加保险费分期支付条款", offset: true }, { content: "华泰财险附加保险费分期支付条款", offset: true },
{ content: "备案编号:C00015431912018061501152;", offset: false }, { content: "备案编号:C00015431912018061501152;", offset: false },
{ content: "C00015432622017111500872;", offset: true }, { content: "C00015432622017111500872;", offset: true },
{ content: "C00015431922018061503991", offset: true } { content: "C00015431922020082800111", offset: true }
], ],
navBarOptions: [ navBarOptions: [
{ label: "我要投保", value: "insure" }, { label: "我要投保", value: "insure" },
...@@ -240,7 +240,7 @@ export default { ...@@ -240,7 +240,7 @@ export default {
processDetail: [ processDetail: [
{ {
title: "电话报案", title: "电话报案",
desc: "请拨打华泰财险400-609-5509进行报案。华泰财险会有理赔专员1对1指导理赔事宜。 " desc: "请拨打华泰财险4006095509进行报案。华泰财险会有理赔专员1对1指导理赔事宜。 "
}, },
{ {
title: "提交资料", title: "提交资料",
...@@ -260,7 +260,7 @@ export default { ...@@ -260,7 +260,7 @@ export default {
processDetailLite: [ processDetailLite: [
{ {
title: "电话报案", title: "电话报案",
desc: "请拨打华泰财险400-609-5509进行报案。华泰财险会有理赔专员1对1指导理赔事宜。 " desc: "请拨打华泰财险4006095509进行报案。华泰财险会有理赔专员1对1指导理赔事宜。 "
}, },
{ {
title: "提交资料", title: "提交资料",
......
...@@ -42,27 +42,31 @@ const shareList = { ...@@ -42,27 +42,31 @@ const shareList = {
url: currentOrigin + "/user", url: currentOrigin + "/user",
imgUrl: logo imgUrl: logo
}, },
midetail: { tkylx001detail: {
title: "【芒果保险】万家保·百万医疗险", title: "【芒果保险】万家保·百万医疗险",
desc: desc:
"「报销型医疗险」最高600万全面医疗保障,120种重大疾病医疗0免赔,30天~65周岁均可保,70种抗癌特药定期上新,免费提供住院费用垫付服务等一站式就医服务。", "「报销型医疗险」最高600万全面医疗保障,120种重大疾病医疗0免赔,30天~65周岁均可保,70种抗癌特药定期上新,免费提供住院费用垫付服务等一站式就医服务。",
url: currentOrigin + "/goods/detail?id=TKYLX001",
imgUrl: currentOrigin + "/shareImg/goods-01.png" imgUrl: currentOrigin + "/shareImg/goods-01.png"
}, },
ciidetail: { htdqzjx001detail: {
title: "【芒果保险】万家保·重疾轻症险", title: "【芒果保险】万家保·重疾轻症险",
desc: desc:
"「给付型重疾险」100种重症+40种轻症确诊即赔,轻症赔付后,重疾保障继续有效。30天~60周岁均可保。", "「给付型重疾险」100种重症+40种轻症确诊即赔,轻症赔付后,重疾保障继续有效。30天~60周岁均可保。",
url: currentOrigin + "/goods/detail?id=HTDQZJX001",
imgUrl: currentOrigin + "/shareImg/goods-02.png" imgUrl: currentOrigin + "/shareImg/goods-02.png"
}, },
aidetail: { zaywx001detail: {
title: "【芒果保险】万家保·综合意外险", title: "【芒果保险】万家保·综合意外险",
desc: "「给付型意外险」意外风险覆盖全,保额最高100万,猝死也可赔。", desc: "「给付型意外险」意外风险覆盖全,保额最高100万,猝死也可赔。",
url: currentOrigin + "/goods/detail?id=ZAYWX001",
imgUrl: currentOrigin + "/shareImg/goods-03.png" imgUrl: currentOrigin + "/shareImg/goods-03.png"
}, },
lidetail: { hgsx001detail: {
title: "【芒果保险】华贵大麦2020定期寿险", title: "【芒果保险】华贵大麦2020定期寿险",
desc: desc:
"「定期寿险」家庭主要收入贡献者的必备保险,最高可赔350万。免体检,责任免除仅3条,1~6类职业均可保,健康告知仅3条。", "「定期寿险」家庭主要收入贡献者的必备保险,最高可赔350万。免体检,责任免除仅3条,1~6类职业均可保,健康告知仅3条。",
url: currentOrigin + "/goods/detail?id=HGSX001",
imgUrl: currentOrigin + "/shareImg/goods-04.png" imgUrl: currentOrigin + "/shareImg/goods-04.png"
}, },
policydetail: { policydetail: {
...@@ -86,7 +90,7 @@ export const getShare = to => { ...@@ -86,7 +90,7 @@ export const getShare = to => {
} else if (_path.includes("smart-measure")) { } else if (_path.includes("smart-measure")) {
shareName = "SmartMeasure"; shareName = "SmartMeasure";
} else if (to.name === "GoodsDetail") { } else if (to.name === "GoodsDetail") {
shareName = to.query.type + "detail"; shareName = to.query.id + "detail";
} else if (_path.includes("goods") || to.name === "AddPolicy") { } else if (_path.includes("goods") || to.name === "AddPolicy") {
shareName = "Goods"; shareName = "Goods";
} else if (to.name === "PolicyDetail") { } else if (to.name === "PolicyDetail") {
......
...@@ -13,8 +13,8 @@ ...@@ -13,8 +13,8 @@
:value="item.value.tpl || item.value" :value="item.value.tpl || item.value"
:class="{ :class="{
'compact-cell': 1, 'compact-cell': 1,
'compact-cell_divider': item.divider, 'compact-cell_divider': item && item.divider,
'compact-cell_inline': item.inline 'compact-cell_inline': item && item.inline
}" }"
:style="{ fontSize: fontSize + 'px' }" :style="{ fontSize: fontSize + 'px' }"
@click="cellClick(item)" @click="cellClick(item)"
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
* @Description: weixin-js-sdk * @Description: weixin-js-sdk
* @LastEditors: gzw * @LastEditors: gzw
* @Date: 20120-08-30 18:40:11 * @Date: 20120-08-30 18:40:11
* @LastEditTime: 2020-08-30 20:41:55 * @LastEditTime: 2020-08-31 17:40:33
*/ */
import cfg from "@/config/index"; import cfg from "@/config/index";
import { getwxAuth } from "@/api/user"; import { getwxAuth } from "@/api/user";
import wx from "weixin-js-sdk"; import wx from "weixin-js-sdk";
export default async function({ title = "", desc = "", link = window.location.href, imgUrl = "" }) { export default async function({ title = "", desc = "", link = window.location.href, imgUrl = "" }) {
console.log(title, desc, link, imgUrl); // console.log(title, desc, link, imgUrl);
const res = await getwxAuth({ const res = await getwxAuth({
appId: cfg.wxAppId, appId: cfg.wxAppId,
url: window.location.href url: window.location.href
......
...@@ -49,8 +49,6 @@ ...@@ -49,8 +49,6 @@
<a class="cul-tel-num" :href="`tel:${info.tel}`"> <a class="cul-tel-num" :href="`tel:${info.tel}`">
<svg-icon icon-class="call" />{{ info.tel }} <svg-icon icon-class="call" />{{ info.tel }}
</a> </a>
<a class="cul-tel-num" :href="`tel://${info.tel}`">1312312312</a>
<a class="cul-tel-num" :href="`callto:${info.tel}`">1312312312</a>
<div class="cul-time">服务时间 {{ info.date }}</div> <div class="cul-time">服务时间 {{ info.date }}</div>
</div> </div>
<div class="cul-slogan"> <div class="cul-slogan">
......
...@@ -330,7 +330,7 @@ export default { ...@@ -330,7 +330,7 @@ export default {
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData; const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask; let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId; const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList || []; const familyList = this.$refs["insureForm"]?.familyList || [];
if (!currentIdNo) return ""; if (!currentIdNo) return "";
currentIdNo = currentIdNo =
currentIdNo.indexOf("**") > -1 currentIdNo.indexOf("**") > -1
......
...@@ -346,7 +346,7 @@ export default { ...@@ -346,7 +346,7 @@ export default {
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData; const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask; let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId; const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList || []; const familyList = this.$refs["insureForm"]?.familyList || [];
if (!currentIdNo) return ""; if (!currentIdNo) return "";
currentIdNo = currentIdNo =
currentIdNo.indexOf("**") > -1 currentIdNo.indexOf("**") > -1
......
...@@ -339,7 +339,7 @@ export default { ...@@ -339,7 +339,7 @@ export default {
const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData; const { selfSecId: holderUserId, selfIdNo: holderIdNoMask } = this.formData;
let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask; let currentIdNo = !relation || relation === "1" ? holderIdNoMask : idNoMask;
const currentUserId = !relation || relation === "1" ? holderUserId : userId; const currentUserId = !relation || relation === "1" ? holderUserId : userId;
const familyList = this.$refs["insureForm"].familyList || []; const familyList = this.$refs["insureForm"]?.familyList || [];
if (!currentIdNo) return ""; if (!currentIdNo) return "";
currentIdNo = currentIdNo =
currentIdNo.indexOf("**") > -1 currentIdNo.indexOf("**") > -1
......
...@@ -37,6 +37,9 @@ export default { ...@@ -37,6 +37,9 @@ export default {
userBackState: false userBackState: false
}; };
}, },
computed: {
...mapState(["showAuthXyqb"])
},
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
const blackList = ["Goods", "Home", "Detail", "ConsultantPlan", "User"]; const blackList = ["Goods", "Home", "Detail", "ConsultantPlan", "User"];
if (isXyqb && this.showAuthXyqb == 2) { if (isXyqb && this.showAuthXyqb == 2) {
...@@ -52,10 +55,7 @@ export default { ...@@ -52,10 +55,7 @@ export default {
}, },
mounted() { mounted() {
this.getOrderInfo(); this.getOrderInfo();
this.detailType = this.$route.query.type; this.setDetailType();
},
computed: {
...mapState(["showAuthXyqb"])
}, },
methods: { methods: {
...mapActions(["setAuthXyqb"]), ...mapActions(["setAuthXyqb"]),
...@@ -74,6 +74,27 @@ export default { ...@@ -74,6 +74,27 @@ export default {
if (e === 2) { if (e === 2) {
this.$router.replace({ path: "/consultant" }); this.$router.replace({ path: "/consultant" });
} }
},
setDetailType() {
const _id = this.$route.query.id;
let detailType = "";
switch (_id) {
case "HTDQZJX001":
detailType = "cii";
break;
case "TKYLX001":
detailType = "mi";
break;
case "ZAYWX001":
detailType = "ai";
break;
case "HGSX001":
detailType = "li";
break;
default:
break;
}
this.detailType = detailType;
} }
} }
}; };
......
...@@ -76,15 +76,20 @@ export default { ...@@ -76,15 +76,20 @@ export default {
break; break;
} }
setTimeout(() => { setTimeout(() => {
console.log(document.getElementById("dtp")); const dtp = document.getElementById("dtp");
document.getElementById("dtp").onclick = () => { const zhongyao = document.getElementById("70zhongyao");
this.pupopData = this.planInfo[5].options[0]; if (dtp) {
this.popupShow = true; dtp.onclick = () => {
}; this.pupopData = this.planInfo[5].options[0];
document.getElementById("70zhongyao").onclick = () => { this.popupShow = true;
this.pupopData = this.planInfo[5].options[1]; };
this.popupShow = true; }
}; if (zhongyao) {
zhongyao.onclick = () => {
this.pupopData = this.planInfo[5].options[1];
this.popupShow = true;
};
}
}, 500); }, 500);
}, },
methods: { methods: {
......
...@@ -33,11 +33,11 @@ ...@@ -33,11 +33,11 @@
</div> </div>
</div> </div>
<popup-with-iframe <popup-with-iframe
v-model="popupShow" v-model="popupShow"
:title="pupopData.title" :title="pupopData.title"
:content="pupopData.content" :content="pupopData.content"
:url="pupopData.url" :url="pupopData.url"
/> />
</div> </div>
</template> </template>
<script> <script>
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
<script> <script>
import detailPayMixin from "@/views/Goods/Detail/modules/detailPay.mixin"; import detailPayMixin from "@/views/Goods/Detail/modules/detailPay.mixin";
// import qs from "qs"; // import qs from "qs";
import localStorage from "@/service/localStorage";
import { isXyqb } from "@/service/validation"; import { isXyqb } from "@/service/validation";
export default { export default {
name: "PayWaiting", name: "PayWaiting",
...@@ -25,8 +26,12 @@ export default { ...@@ -25,8 +26,12 @@ export default {
// } // }
this.isPayWait = true; this.isPayWait = true;
this.orderInfo = this.$route.query; this.orderInfo = this.$route.query;
let thirdParams = "";
if (this.orderInfo.third) {
thirdParams = decodeURIComponent(this.orderInfo.third);
}
// 如果存在isXyqb,同时当前不是在信用钱包环境 // 如果存在isXyqb,同时当前不是在信用钱包环境
if ((this.orderInfo.isXyqb == 1 && !isXyqb) || this.orderInfo.third == 1) { if ((this.orderInfo.isXyqb == 1 && !isXyqb) || thirdParams.indexOf("1") === 0) {
window.location.href = "xyqb://my"; window.location.href = "xyqb://my";
if (localStorage.get("mongoToken")) { if (localStorage.get("mongoToken")) {
this.$router.replace("/policy"); this.$router.replace("/policy");
......
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