Commit 23cf1908 authored by 郝聪敏's avatar 郝聪敏

Merge branch 'feature/add_https' into 'master'

fix: 修改协议为https、修改产品详情button文案

See merge request !112
parents 16c3c3d4 5e8a5b9c
...@@ -77,15 +77,15 @@ export default { ...@@ -77,15 +77,15 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "http://mangguo-contract.qthbx.com/hua-gui-bao-xian-tiao-kuan-v1/" url: "https://mangguo-contract.qthbx.com/hua-gui-bao-xian-tiao-kuan-v1/"
}, },
{ {
title: "投保须知及声明", title: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/huagui-tou-bao-xu-zhi-v1/" url: "https://mangguo-contract.qthbx.com/huagui-tou-bao-xu-zhi-v1/"
}, },
{ {
title: "平台服务协议", title: "平台服务协议",
url: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
} }
], ],
protocolData: [ protocolData: [
......
...@@ -144,42 +144,42 @@ export default { ...@@ -144,42 +144,42 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "http://mangguo-contract.qthbx.com/hua-gui-bao-xian-tiao-kuan-v1/" url: "https://mangguo-contract.qthbx.com/hua-gui-bao-xian-tiao-kuan-v1/"
}, },
{ {
title: "健康告知", title: "健康告知",
url: "http://mangguo-contract.qthbx.com/hua-gui-jian-kang-gao-zhi-v1/" url: "https://mangguo-contract.qthbx.com/hua-gui-jian-kang-gao-zhi-v1/"
}, },
{ {
title: "投保须知及声明", title: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/huagui-tou-bao-xu-zhi-v1/" url: "https://mangguo-contract.qthbx.com/huagui-tou-bao-xu-zhi-v1/"
}, },
{ {
title: "平台服务协议", title: "平台服务协议",
url: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
}, },
{ title: "保险计划" }, { title: "保险计划" },
{ title: "理赔信息" }, { title: "理赔信息" },
{ title: "算一算保费" }, { title: "算一算保费" },
{ {
title: "自动续保服务协议", title: "自动续保服务协议",
url: "http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/"
}, },
{ {
title: "人身保险投保提示书", title: "人身保险投保提示书",
url: "http://mangguo-contract.qthbx.com/hua-gui-ren-shen-bao-xian-tou-bao-ti-shi-shu-v1/" url: "https://mangguo-contract.qthbx.com/hua-gui-ren-shen-bao-xian-tou-bao-ti-shi-shu-v1/"
}, },
{ {
title: "税收居民身份声明", title: "税收居民身份声明",
url: "http://mangguo-contract.qthbx.com/hua-gui-shui-shou-ju-min-shen-fen-sheng-ming-v1/" url: "https://mangguo-contract.qthbx.com/hua-gui-shui-shou-ju-min-shen-fen-sheng-ming-v1/"
}, },
{ {
title: "风控查询授权说明书", title: "风控查询授权说明书",
url: " http://mangguo-contract.qthbx.com/hua-gui-feng-kong-cha-xun-shou-quan-shuo-ming-shu-v1/" url: "https://mangguo-contract.qthbx.com/hua-gui-feng-kong-cha-xun-shou-quan-shuo-ming-shu-v1/"
}, },
{ {
title: "转账授权书", title: "转账授权书",
url: "http://mangguo-contract.qthbx.com/hua-gui-zhuan-zhang-shou-quan-shu-v1/" url: "https://mangguo-contract.qthbx.com/hua-gui-zhuan-zhang-shou-quan-shu-v1/"
} }
], ],
protocolData: [ protocolData: [
......
...@@ -155,26 +155,26 @@ export default { ...@@ -155,26 +155,26 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "http://mangguo-contract.qthbx.com/huatai-bao-xian-tiao-kuan-v1/" url: "https://mangguo-contract.qthbx.com/huatai-bao-xian-tiao-kuan-v1/"
}, },
{ {
title: "健康告知", title: "健康告知",
url: "http://mangguo-contract.qthbx.com/huatai-jian-kang-gao-zhi-v1/" url: "https://mangguo-contract.qthbx.com/huatai-jian-kang-gao-zhi-v1/"
}, },
{ {
title: "投保须知及声明", title: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/" url: "https://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/"
}, },
{ {
title: "平台服务协议", title: "平台服务协议",
url: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
}, },
{ title: "保险计划" }, { title: "保险计划" },
{ title: "理赔信息" }, { title: "理赔信息" },
{ title: "完整费率" }, { title: "完整费率" },
{ {
title: "自动续保服务协议", title: "自动续保服务协议",
url: "http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/"
} }
], ],
protocolData: [ protocolData: [
...@@ -298,7 +298,7 @@ export default { ...@@ -298,7 +298,7 @@ export default {
desc: desc:
"<p>重大疾病包括恶性肿瘤、急性心肌梗塞、终末期肾病(或称慢性肾功能衰竭尿毒症期)等100种。在等待期(90天,意外伤害事故无等待期)后初次发生并经医院专科医生确诊罹患本合同约定的一种或多种重大疾病,保险人按照保险单中约定的重大疾病保险金额给付重大疾病保险金,同时在本保险合同项下对该被保险人的保险责任终止。</p>", "<p>重大疾病包括恶性肿瘤、急性心肌梗塞、终末期肾病(或称慢性肾功能衰竭尿毒症期)等100种。在等待期(90天,意外伤害事故无等待期)后初次发生并经医院专科医生确诊罹患本合同约定的一种或多种重大疾病,保险人按照保险单中约定的重大疾病保险金额给付重大疾病保险金,同时在本保险合同项下对该被保险人的保险责任终止。</p>",
options: [ options: [
{ title: "查看100种重大疾病", type: "popup", path: "http://mangguo-contract.qthbx.com/hua-tai-100chong-zhong-ji-v1/" } { title: "查看100种重大疾病", type: "popup", path: "https://mangguo-contract.qthbx.com/hua-tai-100chong-zhong-ji-v1/" }
] ]
}, },
{ {
...@@ -306,7 +306,7 @@ export default { ...@@ -306,7 +306,7 @@ export default {
desc: desc:
"<p>轻症疾病包括冠状动脉介入手术、非危及生命的(极早期的)恶性病变、轻度中风后遗症等40种。在等待期(90天,意外伤害事故无等待期)后初次发生并经医院专科医生确诊罹患本合同约定的一种或多种轻症。保险人按照保险合同中约定的轻症保险金额给付轻症保险金,同时轻症责任终止。轻症保险金仅针对本保险合同约定的轻症进行给付,轻症疾病必须在生前诊断,对于任何身故后的尸检诊断不给付轻症疾病保险金。对于已经符合重大疾病保险金给付条件的,仅给付重大疾病保险金,不再给付轻症保险金。</p>", "<p>轻症疾病包括冠状动脉介入手术、非危及生命的(极早期的)恶性病变、轻度中风后遗症等40种。在等待期(90天,意外伤害事故无等待期)后初次发生并经医院专科医生确诊罹患本合同约定的一种或多种轻症。保险人按照保险合同中约定的轻症保险金额给付轻症保险金,同时轻症责任终止。轻症保险金仅针对本保险合同约定的轻症进行给付,轻症疾病必须在生前诊断,对于任何身故后的尸检诊断不给付轻症疾病保险金。对于已经符合重大疾病保险金给付条件的,仅给付重大疾病保险金,不再给付轻症保险金。</p>",
options: [ options: [
{ title: "查看40种轻症疾病", type: "popup", path: "http://mangguo-contract.qthbx.com/hua-tai-100chong-qing-zheng-v1/" } { title: "查看40种轻症疾病", type: "popup", path: "https://mangguo-contract.qthbx.com/hua-tai-100chong-qing-zheng-v1/" }
] ]
}, },
{ {
......
...@@ -108,26 +108,26 @@ export default { ...@@ -108,26 +108,26 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "http://mangguo-contract.qthbx.com/tai-kang-bai-mo-yi-liao-bao-xian-tiao-kuan-v1/" url: "https://mangguo-contract.qthbx.com/tai-kang-bai-mo-yi-liao-bao-xian-tiao-kuan-v1/"
}, },
{ {
title: "健康告知", title: "健康告知",
url: "http://mangguo-contract.qthbx.com/taikang-jian-kang-gao-zhi-v1/" url: "https://mangguo-contract.qthbx.com/taikang-jian-kang-gao-zhi-v1/"
}, },
{ {
title: "投保须知及声明", title: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/tai-kang-bai-mo-yi-liao-tou-bao-xu-zhi-ji-sheng-ming-v1/" url: "https://mangguo-contract.qthbx.com/tai-kang-bai-mo-yi-liao-tou-bao-xu-zhi-ji-sheng-ming-v1/"
}, },
{ {
title: "平台服务协议", title: "平台服务协议",
url: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
}, },
{ title: "保险计划" }, { title: "保险计划" },
{ title: "理赔信息" }, { title: "理赔信息" },
{ title: "完整费率" }, { title: "完整费率" },
{ {
title: "自动续保服务协议", title: "自动续保服务协议",
url: "http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/"
} }
], ],
protocolData: [ protocolData: [
...@@ -235,7 +235,7 @@ export default { ...@@ -235,7 +235,7 @@ export default {
`, `,
options: [ options: [
{ title: "查看120种重大疾病", path: "http://mangguo-contract.qthbx.com/tai-kang-120chong-zhong-da-ji-bing-v1/" } { title: "查看120种重大疾病", path: "https://mangguo-contract.qthbx.com/tai-kang-120chong-zhong-da-ji-bing-v1/" }
] ]
}, },
{ {
...@@ -297,8 +297,8 @@ export default { ...@@ -297,8 +297,8 @@ export default {
<p>4、服务流程:拨打泰康在线服务热线4000795522申请服务。</p> <p>4、服务流程:拨打泰康在线服务热线4000795522申请服务。</p>
`, `,
options: [ options: [
{ title: "DTP药房", path: "http://mangguo-contract.qthbx.com/tai-kang-dtpyao-fang-v1/", hide: true }, { title: "DTP药房", path: "https://mangguo-contract.qthbx.com/tai-kang-dtpyao-fang-v1/", hide: true },
{ title: "70种特定药品介绍", path: "http://mangguo-contract.qthbx.com/tai-kang-70chong-te-ding-yao-pin-jie-shao-v1/", hide: true } { title: "70种特定药品介绍", path: "https://mangguo-contract.qthbx.com/tai-kang-70chong-te-ding-yao-pin-jie-shao-v1/", hide: true }
] ]
}, },
{ {
...@@ -308,7 +308,7 @@ export default { ...@@ -308,7 +308,7 @@ export default {
<p>2、保险期间内,保险人仅承担一次指定检查费用保险金,且该次指定检查费用保险金的赔付金额不超过指定检查费用保险金限额5000元。</p> <p>2、保险期间内,保险人仅承担一次指定检查费用保险金,且该次指定检查费用保险金的赔付金额不超过指定检查费用保险金限额5000元。</p>
<p>3、请拨打泰康在线专属服务热线4000795522申请服务。</p>`, <p>3、请拨打泰康在线专属服务热线4000795522申请服务。</p>`,
options: [ options: [
{ title: "查看检查项目清单", path: "http://mangguo-contract.qthbx.com/tai-kang-jian-cha-xiang-mu-qing-dan-v1/" }, { title: "查看检查项目清单", path: "https://mangguo-contract.qthbx.com/tai-kang-jian-cha-xiang-mu-qing-dan-v1/" },
] ]
}, },
{ {
...@@ -316,7 +316,7 @@ export default { ...@@ -316,7 +316,7 @@ export default {
desc: desc:
"因意外伤害或者在等待期30天后,在医院经专科医生初次确诊罹患保险合同所定义的特定疾病(无论一种或者多种),保险人给付5000元保险金额的特定疾病保险金,同时本项保险责任终止。", "因意外伤害或者在等待期30天后,在医院经专科医生初次确诊罹患保险合同所定义的特定疾病(无论一种或者多种),保险人给付5000元保险金额的特定疾病保险金,同时本项保险责任终止。",
options: [ options: [
{ title: "查看20种特定疾病", path: "http://mangguo-contract.qthbx.com/tai-kang-20chong-te-ding-ji-bing-v1/" }, { title: "查看20种特定疾病", path: "https://mangguo-contract.qthbx.com/tai-kang-20chong-te-ding-ji-bing-v1/" },
] ]
}, },
{ {
...@@ -364,7 +364,7 @@ export default { ...@@ -364,7 +364,7 @@ export default {
{ {
title: "3650家三甲和二甲公立医院", title: "3650家三甲和二甲公立医院",
content: ``, content: ``,
path: "http://mangguo-contract.qthbx.com/tai-kang-3650jia-san-jia-he-er-jia-gong-li-yi-yuan-v1/" path: "https://mangguo-contract.qthbx.com/tai-kang-3650jia-san-jia-he-er-jia-gong-li-yi-yuan-v1/"
} }
] ]
}, },
...@@ -410,7 +410,7 @@ export default { ...@@ -410,7 +410,7 @@ export default {
{ {
title: "1233家知名三甲医院", title: "1233家知名三甲医院",
content: ``, content: ``,
path: "http://mangguo-contract.qthbx.com/tai-kang-san-jia-yi-yuan-v1/" path: "https://mangguo-contract.qthbx.com/tai-kang-san-jia-yi-yuan-v1/"
} }
] ]
}, },
......
...@@ -135,16 +135,16 @@ export default { ...@@ -135,16 +135,16 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "http://mangguo-contract.qthbx.com/zhong-an-baoxiantiaokuan-v1/" url: "https://mangguo-contract.qthbx.com/zhong-an-baoxiantiaokuan-v1/"
}, },
{ {
title: "投保须知及声明", title: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/zhong-an-tou-bao-xu-zhi-v1/" url: "https://mangguo-contract.qthbx.com/zhong-an-tou-bao-xu-zhi-v1/"
}, },
{ title: "" }, { title: "" },
{ {
title: "平台服务协议", title: "平台服务协议",
url: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
}, },
{ title: "保险计划" }, { title: "保险计划" },
{ title: "保险计划" }, { title: "保险计划" },
...@@ -152,7 +152,7 @@ export default { ...@@ -152,7 +152,7 @@ export default {
{ title: "完整费率" }, { title: "完整费率" },
{ {
title: "自动续保服务协议", title: "自动续保服务协议",
url: "http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/"
} }
], ],
caseInfo: { caseInfo: {
......
...@@ -30,19 +30,19 @@ export default { ...@@ -30,19 +30,19 @@ export default {
popupArray: [ popupArray: [
{ {
title: "保险条款", title: "保险条款",
url: "http://mangguo-contract.qthbx.com/huatai-bao-xian-tiao-kuan-v1/" url: "https://mangguo-contract.qthbx.com/huatai-bao-xian-tiao-kuan-v1/"
}, },
{ {
title: "健康告知", title: "健康告知",
url: "http://mangguo-contract.qthbx.com/huatai-jian-kang-gao-zhi-v1/" url: "https://mangguo-contract.qthbx.com/huatai-jian-kang-gao-zhi-v1/"
}, },
{ {
title: "投保须知及声明", title: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/" url: "https://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/"
}, },
{ {
title: "平台服务协议", title: "平台服务协议",
url: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
} }
] ]
}; };
export default { export default {
userAgreement: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/", userAgreement: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/",
privacyPolicy: "http://mangguo-contract.qthbx.com/yin-si-zheng-ce-v1/" privacyPolicy: "https://mangguo-contract.qthbx.com/yin-si-zheng-ce-v1/"
}; };
...@@ -7,7 +7,7 @@ export default { ...@@ -7,7 +7,7 @@ export default {
copyright: "全天候保险代理股份有限公司", copyright: "全天候保险代理股份有限公司",
renewalAgreement: { renewalAgreement: {
title: "自动续保协议", title: "自动续保协议",
url: "http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/" url: "https://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/"
}, },
consultant: { consultant: {
name: "赵玉龙", name: "赵玉龙",
......
...@@ -92,7 +92,7 @@ axios.interceptors.response.use( ...@@ -92,7 +92,7 @@ axios.interceptors.response.use(
afterRequest(); afterRequest();
store.dispatch("setIsPayWait", false); store.dispatch("setIsPayWait", false);
// 判断是否取消请求 // 判断是否取消请求
if (err.message === "取消重复请求") { if (err?.message === "取消重复请求") {
const res = { const res = {
status: 409, status: 409,
data: {} data: {}
...@@ -101,6 +101,7 @@ axios.interceptors.response.use( ...@@ -101,6 +101,7 @@ axios.interceptors.response.use(
} }
// 错误提示 // 错误提示
console.error(err);
if (err.response) { if (err.response) {
err.message = ERR_MESSAGE_MAP.status[err.response.status] || `连接错误${err.response.status}`; err.message = ERR_MESSAGE_MAP.status[err.response.status] || `连接错误${err.response.status}`;
} else { } else {
......
...@@ -4,7 +4,7 @@ import { getPolicyList } from "@/api/policy"; ...@@ -4,7 +4,7 @@ import { getPolicyList } from "@/api/policy";
import man from "@/assets/images/user/man@2x.png"; import man from "@/assets/images/user/man@2x.png";
import woman from "@/assets/images/user/woman@2x.png"; import woman from "@/assets/images/user/woman@2x.png";
import avatar from "@/assets/images/user/avatar@2x.png"; import avatar from "@/assets/images/user/avatar@2x.png";
import _ from "lodash"; import { groupBy, values, mapValues, some, find } from "lodash-es";
const CONSTANT = { const CONSTANT = {
avatar: { avatar: {
...@@ -57,23 +57,23 @@ export default { ...@@ -57,23 +57,23 @@ export default {
if (!policyList) { if (!policyList) {
policyList = await getPolicyList(); policyList = await getPolicyList();
} }
let goodsMap = _.groupBy(GOODS_LIST, "itype"); let goodsMap = groupBy(GOODS_LIST, "itype");
// todo 家人保单列表筛选 // todo 家人保单列表筛选
const result = familyList.map(family => ({ const result = familyList.map(family => ({
...family, ...family,
avatar: +family.gender === 1 ? CONSTANT.avatar.man : CONSTANT.avatar.woman, avatar: +family.gender === 1 ? CONSTANT.avatar.man : CONSTANT.avatar.woman,
appellation: getReletion(family.relation, family.gender), appellation: getReletion(family.relation, family.gender),
policyList: _.values( policyList: values(
_.mapValues(goodsMap, goodsList => { mapValues(goodsMap, goodsList => {
const policyListFilted = policyList const policyListFilted = policyList
.filter( .filter(
policy => policy =>
_.some(goodsList, { id: policy.productNo }) && some(goodsList, { id: policy.productNo }) &&
family.userInfoSecId === policy.insuredUserInfoSecId && family.userInfoSecId === policy.insuredUserInfoSecId &&
["6.1", "6.2", "6.3"].includes(policy.policyState) ["6.1", "6.2", "6.3"].includes(policy.policyState)
) )
.map(policy => ({ ...policy, ..._.find(goodsList, { id: policy.productNo }) })) .map(policy => ({ ...policy, ...find(goodsList, { id: policy.productNo }) }))
.sort((a, b) => a.termType > b.termType); .sort((a, b) => a.termType > b.termType);
return policyListFilted?.[0] || goodsList[0]; return policyListFilted?.[0] || goodsList[0];
......
...@@ -49,7 +49,8 @@ export default { ...@@ -49,7 +49,8 @@ export default {
} }
} }
&-header { &-header {
background: url(../../../../assets/images/goods/detail/assistant-card.png) top no-repeat; background: url(http://activitystatic.xyqb.com/mongo/images/assistant-card.d5444f9f.png) top
no-repeat;
background-size: contain; background-size: contain;
padding: 24px 24px 21.5px; padding: 24px 24px 21.5px;
h4 { h4 {
......
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
class="cr-button cr-button--warning cr-button--normal cr-button--square cr-button--block insure-btn" class="cr-button cr-button--warning cr-button--normal cr-button--square cr-button--block insure-btn"
type="submit" type="submit"
> >
<img src="@/assets/images/goods/detail/get-insure.png" alt="立即投保" /> <!-- <img src="@/assets/images/goods/detail/get-insure.png" alt="立即投保" /> -->
<span class="">立即投保</span>
</button> </button>
<div class="det-hd-insured-people"> <div class="det-hd-insured-people">
已有 已有
...@@ -181,6 +182,9 @@ export default { ...@@ -181,6 +182,9 @@ export default {
} }
} }
.insure-btn { .insure-btn {
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px; margin-top: 30px;
height: @button-large-height; height: @button-large-height;
line-height: @button-large-line-height; line-height: @button-large-line-height;
...@@ -193,6 +197,11 @@ export default { ...@@ -193,6 +197,11 @@ export default {
display: block; display: block;
margin: 10px auto; margin: 10px auto;
} }
span {
font-size: 22px;
font-weight: bold;
color: #333333;
}
} }
&-people { &-people {
.sub-text-mixins(); .sub-text-mixins();
......
...@@ -41,7 +41,7 @@ export default { ...@@ -41,7 +41,7 @@ export default {
orderInfo: {}, orderInfo: {},
refreshIframe: true, refreshIframe: true,
tradeType: "JSAPI", tradeType: "JSAPI",
url: "http://mangguo-contract.qthbx.com/huatai-jian-kang-gao-zhi-v1/" url: "https://mangguo-contract.qthbx.com/huatai-jian-kang-gao-zhi-v1/"
}; };
}, },
mounted() { mounted() {
......
...@@ -6,7 +6,11 @@ ...@@ -6,7 +6,11 @@
</div> </div>
<cr-row class="ai-test-cell" type="flex" align="center"> <cr-row class="ai-test-cell" type="flex" align="center">
<cr-col span="5" class="ai-test-cell-image"> <cr-col span="5" class="ai-test-cell-image">
<cr-image width="60px" height="68px" src="@/assets/images/goods/ai-mongo.png" /> <cr-image
width="60px"
height="68px"
src="http://activitystatic.xyqb.com/mongo/images/ai-mongo.286af3ee.png"
/>
</cr-col> </cr-col>
<div class="ai-test-cell-title"> <div class="ai-test-cell-title">
<h5>智能<span>风险测评</span></h5> <h5>智能<span>风险测评</span></h5>
......
...@@ -57,7 +57,7 @@ import { addRiskEvaluation } from "@/api/smartMeasure"; ...@@ -57,7 +57,7 @@ import { addRiskEvaluation } from "@/api/smartMeasure";
import autoSaveForm from "@/mixins/autoSaveForm.mixin"; import autoSaveForm from "@/mixins/autoSaveForm.mixin";
import { answerMap, paramsMap } from "./constants"; import { answerMap, paramsMap } from "./constants";
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import _ from "lodash"; import { cloneDeep, debounce } from "lodash-es";
import man from "@/assets/images/user/male@2x.png"; import man from "@/assets/images/user/male@2x.png";
import woman from "@/assets/images/user/female@2x.png"; import woman from "@/assets/images/user/female@2x.png";
...@@ -71,7 +71,7 @@ export default { ...@@ -71,7 +71,7 @@ export default {
}, },
data() { data() {
return { return {
dataList: _.cloneDeep(questionList), dataList: cloneDeep(questionList),
isLoading: false, isLoading: false,
currentAnswer: "" currentAnswer: ""
}; };
...@@ -97,7 +97,7 @@ export default { ...@@ -97,7 +97,7 @@ export default {
} }
}, },
methods: { methods: {
nextQuestion: _.debounce(function() { nextQuestion: debounce(function() {
const id = this.smartMeasure[this.smartMeasure.length - 1].id; const id = this.smartMeasure[this.smartMeasure.length - 1].id;
const smartMeasureLength = this.smartMeasure.length; const smartMeasureLength = this.smartMeasure.length;
this.dataList = this.dataList.map(data => { this.dataList = this.dataList.map(data => {
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
margin-left: -76.5px; margin-left: -76.5px;
width: 153px; width: 153px;
height: 60px; height: 60px;
background: url('../../assets/images/home/activity-button@2x.png') no-repeat center/contain; background: url('http://activitystatic.xyqb.com/mongo/images/activity-button%402x.ead076b6.png') no-repeat center/contain;
-webkit-animation: free_download .8s linear alternate infinite; -webkit-animation: free_download .8s linear alternate infinite;
animation: free_download .8s linear alternate infinite; animation: free_download .8s linear alternate infinite;
} }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
width="" width=""
height="" height=""
fit="cover" fit="cover"
src="@/assets/images/home/activity@2x.png" src="http://activitystatic.xyqb.com/mongo/images/activity%402x.272880e4.png"
/> />
<div class="home-button" @click="$router.push('/home/activity')"></div> <div class="home-button" @click="$router.push('/home/activity')"></div>
<div class="home-service"> <div class="home-service">
...@@ -106,7 +106,7 @@ import goodsList from "@/api/goodsList.mock"; ...@@ -106,7 +106,7 @@ import goodsList from "@/api/goodsList.mock";
import settings from "@/api/settings"; import settings from "@/api/settings";
import { getRiskEvaluation } from "@/api/smartMeasure"; import { getRiskEvaluation } from "@/api/smartMeasure";
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import _ from "lodash"; import { has } from "lodash-es";
export default { export default {
name: "Home", name: "Home",
...@@ -184,7 +184,7 @@ export default { ...@@ -184,7 +184,7 @@ export default {
} }
}, },
async goSmartMeasure() { async goSmartMeasure() {
if (_.has(this.report, "age") && _.has(this.report, "gender")) { if (has(this.report, "age") && has(this.report, "gender")) {
this.$router.push({ this.$router.push({
path: "/home/smart-measure/report", path: "/home/smart-measure/report",
query: this.report query: this.report
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
<div class="Ad-panel-body"> <div class="Ad-panel-body">
<iframe <iframe
class="activity-modal-detail" class="activity-modal-detail"
src="http://mangguo-contract.qthbx.com/huo-dong-xiang-qing/" src="https://mangguo-contract.qthbx.com/huo-dong-xiang-qing/"
frameborder="0" frameborder="0"
height="100%" height="100%"
></iframe> ></iframe>
......
...@@ -91,7 +91,6 @@ ...@@ -91,7 +91,6 @@
</template> </template>
<script> <script>
import businessLicence from "@/assets/images/user/business-licence.jpeg"; import businessLicence from "@/assets/images/user/business-licence.jpeg";
import angencyLicense from "@/assets/images/user/angency-license.jpeg";
import companys from "../constant"; import companys from "../constant";
export default { export default {
...@@ -99,7 +98,7 @@ export default { ...@@ -99,7 +98,7 @@ export default {
data() { data() {
return { return {
businessLicence, businessLicence,
angencyLicense, angencyLicense: "http://activitystatic.xyqb.com/mongo/images/angency-license.ec9bda82.jpeg",
companys companys
}; };
}, },
......
...@@ -526,7 +526,7 @@ import detailPayMixin from "@/views/Goods/Detail/modules/detailPay.mixin"; ...@@ -526,7 +526,7 @@ import detailPayMixin from "@/views/Goods/Detail/modules/detailPay.mixin";
import autoSaveForm from "@/mixins/autoSaveForm.mixin"; import autoSaveForm from "@/mixins/autoSaveForm.mixin";
import liCalFee from "@/views/Goods/Detail/modules/liCalFee.mixin"; import liCalFee from "@/views/Goods/Detail/modules/liCalFee.mixin";
import { addDays, addYears, format as dateFormat } from "date-fns"; import { addDays, addYears, format as dateFormat } from "date-fns";
import debounce from "lodash/debounce"; import { debounce } from "lodash-es";
import { getRealAge, getBirthDate } from "@/service/utils"; import { getRealAge, getBirthDate } from "@/service/utils";
import localStorage from "@/service/localStorage"; import localStorage from "@/service/localStorage";
import { mapState, mapActions } from "vuex"; import { mapState, mapActions } from "vuex";
......
...@@ -39,7 +39,7 @@ import StatusDesc from "../modules/StatusDesc"; ...@@ -39,7 +39,7 @@ import StatusDesc from "../modules/StatusDesc";
import CustomerService from "../modules/CustomerService"; import CustomerService from "../modules/CustomerService";
import detailPayMixin from "@/views/Policy/mixin/orderInfo.mixin"; import detailPayMixin from "@/views/Policy/mixin/orderInfo.mixin";
import { parseTime } from "@/service/utils"; import { parseTime } from "@/service/utils";
import _ from "lodash"; import { cloneDeep } from "lodash-es";
import ciiDetail from "@/api/detail.huatai.zhongjixian"; import ciiDetail from "@/api/detail.huatai.zhongjixian";
import liDetail from "@/api/detail.huagui.shouxian"; import liDetail from "@/api/detail.huagui.shouxian";
...@@ -193,19 +193,19 @@ export default { ...@@ -193,19 +193,19 @@ export default {
const { productNo } = this.data; const { productNo } = this.data;
switch (productNo) { switch (productNo) {
case "TKYLX001": case "TKYLX001":
this.productInfo = _.cloneDeep(miDetail); this.productInfo = cloneDeep(miDetail);
break; break;
case "HTDQZJX001": case "HTDQZJX001":
this.productInfo = _.cloneDeep(ciiDetail); this.productInfo = cloneDeep(ciiDetail);
break; break;
case "BNZJX001": case "BNZJX001":
this.productInfo = _.cloneDeep(biDetail); this.productInfo = cloneDeep(biDetail);
break; break;
case "ZAYWX001": case "ZAYWX001":
this.productInfo = _.cloneDeep(aiDetail); this.productInfo = cloneDeep(aiDetail);
break; break;
case "HGSX001": case "HGSX001":
this.productInfo = _.cloneDeep(liDetail); this.productInfo = cloneDeep(liDetail);
break; break;
default: default:
break; break;
......
import _ from "lodash"; import { cloneDeep, find, findKey } from "lodash-es";
import STATUS_MAP from "../constants"; import STATUS_MAP from "../constants";
import { parseTime } from "@/service/utils"; import { parseTime } from "@/service/utils";
import GOODS_LIST from "@/api/goodsList.mock"; import GOODS_LIST from "@/api/goodsList.mock";
...@@ -7,11 +7,11 @@ export default { ...@@ -7,11 +7,11 @@ export default {
methods: { methods: {
getData(policy) { getData(policy) {
const key = this.findKey(policy); const key = this.findKey(policy);
let value = _.cloneDeep(STATUS_MAP[key]); let value = cloneDeep(STATUS_MAP[key]);
// 保单详情key为“15”时特殊处理 // 保单详情key为“15”时特殊处理
if (key === "15" && this.policy) { if (key === "15" && this.policy) {
value = _.cloneDeep(STATUS_MAP["6"]); value = cloneDeep(STATUS_MAP["6"]);
} }
if (["6", "7", "8", "9"].includes(key)) { if (["6", "7", "8", "9"].includes(key)) {
...@@ -47,13 +47,13 @@ export default { ...@@ -47,13 +47,13 @@ export default {
return { return {
...policy, ...policy,
..._.find(GOODS_LIST, { id: policy?.productNo }), ...find(GOODS_LIST, { id: policy?.productNo }),
cardConfig: { ...value, key, status: this.getStatus(policy) } cardConfig: { ...value, key, status: this.getStatus(policy) }
}; };
}, },
findKey(policy) { findKey(policy) {
const status = this.getStatus(policy); const status = this.getStatus(policy);
return _.findKey(STATUS_MAP, v => v.status.includes(status)); return findKey(STATUS_MAP, v => v.status.includes(status));
}, },
getStatus(policy) { getStatus(policy) {
return policy?.payState return policy?.payState
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
getGoodsInfo(policy) { getGoodsInfo(policy) {
return { return {
...policy, ...policy,
..._.find(GOODS_LIST, { id: policy?.productNo }) ...find(GOODS_LIST, { id: policy?.productNo })
}; };
} }
} }
......
...@@ -73,7 +73,7 @@ ...@@ -73,7 +73,7 @@
</div> </div>
</template> </template>
<script> <script>
import _ from "lodash"; import { some } from "lodash-es";
import GOODS_LIST from "@/api/goodsList.mock"; import GOODS_LIST from "@/api/goodsList.mock";
import { getPolicyList } from "@/api/policy"; import { getPolicyList } from "@/api/policy";
import settings from "@/api/settings"; import settings from "@/api/settings";
...@@ -118,7 +118,7 @@ export default { ...@@ -118,7 +118,7 @@ export default {
this.list = list this.list = list
.filter( .filter(
v => v =>
_.some(GOODS_LIST, { id: v.productNo }) && some(GOODS_LIST, { id: v.productNo }) &&
(type === 0 ? true : v.insuredRelation === relations[type]) && (type === 0 ? true : v.insuredRelation === relations[type]) &&
this.findKey(v) this.findKey(v)
) )
......
...@@ -124,7 +124,7 @@ import formValidMixin from "@/mixins/formValidate.mixin"; ...@@ -124,7 +124,7 @@ import formValidMixin from "@/mixins/formValidate.mixin";
import { addFamily, updateFamily, delFamily } from "@/api/user"; import { addFamily, updateFamily, delFamily } from "@/api/user";
import CrRadioBtn from "@/components/CrRadioBtn"; import CrRadioBtn from "@/components/CrRadioBtn";
import Modal from "@/components/Modal"; import Modal from "@/components/Modal";
import _ from "lodash"; import { cloneDeep } from "lodash-es";
const relations = ["本人", "配偶", "父母", "子女"]; const relations = ["本人", "配偶", "父母", "子女"];
const planOptions = [ const planOptions = [
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
confirm: false, confirm: false,
delete: false delete: false
}, },
formData: _.cloneDeep(this.information), formData: cloneDeep(this.information),
isCollapse: true isCollapse: true
}; };
}, },
...@@ -206,7 +206,7 @@ export default { ...@@ -206,7 +206,7 @@ export default {
watch: { watch: {
information(value) { information(value) {
console.log(value); console.log(value);
this.formData = _.cloneDeep(value); this.formData = cloneDeep(value);
} }
}, },
methods: { methods: {
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
await addFamily(params); await addFamily(params);
this.$notify({ type: "success", message: "添加成功" }); this.$notify({ type: "success", message: "添加成功" });
await this.setFamilyList(); await this.setFamilyList();
this.formData = _.cloneDeep(defaultFormData); this.formData = cloneDeep(defaultFormData);
} else { } else {
params.userInfoSecId = this.information?.userInfoSecId; params.userInfoSecId = this.information?.userInfoSecId;
await updateFamily(params); await updateFamily(params);
......
...@@ -86,14 +86,6 @@ module.exports = { ...@@ -86,14 +86,6 @@ module.exports = {
reuseExistingChunk: true, reuseExistingChunk: true,
enforce: true enforce: true
}, },
lodash: {
name: "chunk-lodash", // split cherryUI into a single package
priority: 18, // the weight needs to be larger than libs and app or it will be packaged into libs or app
test: /[\\/]node_modules[\\/]lodash[\\/]/, // in order to adapt to cnpm
chunks: "initial",
reuseExistingChunk: true,
enforce: true
},
libs: { libs: {
name: "chunk-libs", name: "chunk-libs",
test: /[\\/]node_modules[\\/]/, test: /[\\/]node_modules[\\/]/,
...@@ -113,8 +105,7 @@ module.exports = { ...@@ -113,8 +105,7 @@ module.exports = {
images: { images: {
name: "chunk-image", name: "chunk-image",
priority: 8, priority: 8,
chunks: "all", chunks: "initial",
minChunks: 3,
test: resolve("src/assets/images"), test: resolve("src/assets/images"),
reuseExistingChunk: true, reuseExistingChunk: true,
enforce: true enforce: true
...@@ -156,7 +147,7 @@ module.exports = { ...@@ -156,7 +147,7 @@ module.exports = {
}) })
); );
//生产环境取消 console.log //生产环境取消 console.log
config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true; // config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true;
} }
}, },
lintOnSave: true, lintOnSave: true,
......
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