Commit 27387310 authored by 郭志伟's avatar 郭志伟

fix: 试算修改,添加sobot

parent 312d71e6
export default {
tel: "010-82194734",
serviceHours: "9:00-21:00",
sobot: "",
sobot:
"https://mangobaoxian.sobot.com/chat/h5/v2/index.html?sysnum=cfe2ac6677f94698be2e2d842f23066d",
icp: "京ICP备15059975号",
copyright: "全天候保险代理股份有限公司",
consultant: {
......
......@@ -34,6 +34,7 @@
*/
const LEFT_BTN_CLICK_EVENT = "leftClick";
const RIGHT_BTN_CLICK_EVENT = "click";
import settings from "@/api/settings";
export default {
name: "GoodAction",
props: {
......@@ -57,6 +58,7 @@ export default {
methods: {
leftClick() {
this.$emit(LEFT_BTN_CLICK_EVENT, {});
window.location.href = settings.sobot;
},
rightClick() {
// TODO
......
......@@ -2,7 +2,7 @@
* @Description: autoSaveForm mixins
* @LastEditors: gzw
* @Date: 2019-08-14 15:53:37
* @LastEditTime: 2020-08-20 13:49:26
* @LastEditTime: 2020-08-20 16:15:50
*/
import localStorage from "@/service/localStorage";
......@@ -33,6 +33,7 @@ export default {
},
getSaveInfoHandler(key, target) {
this[target] = localStorage.get(key);
this[target + "Cache"] = JSON.parse(JSON.stringify(localStorage.get(key)));
this.$forceUpdate();
}
}
......
......@@ -44,11 +44,7 @@
</div>
<detail-footer :company-info="companyInfo" />
<copyright />
<good-action
@leftClick="goInsureState = true"
:content="goodActionInfo"
v-show="goodActionShow"
/>
<good-action :content="goodActionInfo" v-show="goodActionShow" />
<popup-with-iframe
v-model="popupShow"
:title="pupopData.title"
......
......@@ -43,11 +43,7 @@
</div>
<detail-footer :company-info="companyInfo" />
<copyright />
<good-action
@leftClick="goInsureState = true"
:content="goodActionInfo"
v-show="goodActionShow"
/>
<good-action :content="goodActionInfo" v-show="goodActionShow" />
<popup-with-iframe
v-model="popupShow"
:title="pupopData.title"
......
......@@ -253,6 +253,7 @@ export default {
async calFee() {
let { price } = this.headerInfo;
const { birth, gender, amountInsured, policyPeriod, payPeriod, payType } = this.formData;
if (!birth || !gender || !amountInsured || !policyPeriod || !payPeriod || !payType) return;
const _param = {
productNo: this.goodId,
productUserInfo: {
......
......@@ -42,11 +42,7 @@
</div>
<detail-footer :company-info="companyInfo" />
<copyright />
<good-action
@leftClick="goInsureState = true"
:content="goodActionInfo"
v-show="goodActionShow"
/>
<good-action :content="goodActionInfo" v-show="goodActionShow" />
<popup-with-iframe
v-model="popupShow"
:title="pupopData.title"
......
......@@ -286,7 +286,7 @@ export default {
userInfoSecId,
socialSecurity:
socialSecurity === "" || typeof socialSecurity === "undefined"
? ""
? this[this.autoSaveKey + "Cache"].socialSecurity || ""
: socialSecurity
? "1"
: "0"
......
......@@ -426,7 +426,7 @@
]"
/>
</cr-cell-group>
<good-action @leftClick="goInsureState = true" :content="goodActionInfo" />
<good-action :content="goodActionInfo" />
</cr-form>
<go-insure-dialog
v-model="goInsureState"
......@@ -610,7 +610,6 @@ export default {
payType === oldpayType)
)
return;
this.calTimer = setTimeout(() => {
this.calFee();
}, 1000);
......@@ -720,7 +719,7 @@ export default {
// this.generateOrder();
},
relationOptionChange(relation) {
this.relationChange(relation, this.clearInsured);
relation && this.relationChange(relation, this.clearInsured);
setTimeout(() => {
this.clearInsured = true;
}, 1000);
......@@ -732,8 +731,9 @@ export default {
longTerm: "1"
};
}
if (this.hasAutoSaveData(AUTO_SAVE_KEY)) {
this.getSaveInfoHandler(AUTO_SAVE_KEY, AUTO_SAVE_TARGET);
// this.formData.insuredUserInfo.relation = relation;
}
this.familyList.forEach(item => {
const { relation, nameMask: name, idNoMask: idNo, userInfoSecId } = item;
if (+relation === 1) {
......@@ -772,6 +772,18 @@ export default {
: "0"
}
};
if (!this.formData.insuredUserInfo.socialSecurity) {
try {
this.formData.insuredUserInfo.socialSecurity = this[
AUTO_SAVE_TARGET + "Cache"
].insuredUserInfo.socialSecurity;
} catch (e) {
console.log(e);
}
}
if (relation) {
this.formData.insuredUserInfo.relation = relation;
}
this.calFee();
this.$forceUpdate();
},
......
......@@ -70,7 +70,12 @@ export default {
},
methods: {
showPdf() {
this.$router.push({ path: "/policy/virtual-detail", query: { url: "http://hathaway-mg.liangkebang.net/third/huagui/download?idStr=Z3BSb1djY1N0S2s9" } });
this.$router.push({
path: "/policy/virtual-detail",
query: {
url: "http://hathaway-mg.liangkebang.net/third/huagui/download?idStr=Z3BSb1djY1N0S2s9"
}
});
}
},
computed: {
......
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