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

fix: 试算修改,添加sobot

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