Commit 5e8a5b9c authored by 郝聪敏's avatar 郝聪敏

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

parent 16c3c3d4
......@@ -77,15 +77,15 @@ export default {
popupArray: [
{
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: "投保须知及声明",
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: "平台服务协议",
url: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
}
],
protocolData: [
......
......@@ -144,42 +144,42 @@ export default {
popupArray: [
{
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: "健康告知",
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: "投保须知及声明",
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: "平台服务协议",
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: "自动续保服务协议",
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: "人身保险投保提示书",
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: "税收居民身份声明",
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: "风控查询授权说明书",
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: "转账授权书",
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: [
......
......@@ -155,26 +155,26 @@ export default {
popupArray: [
{
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: "健康告知",
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: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/"
url: "https://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/"
},
{
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: "自动续保服务协议",
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: [
......@@ -298,7 +298,7 @@ export default {
desc:
"<p>重大疾病包括恶性肿瘤、急性心肌梗塞、终末期肾病(或称慢性肾功能衰竭尿毒症期)等100种。在等待期(90天,意外伤害事故无等待期)后初次发生并经医院专科医生确诊罹患本合同约定的一种或多种重大疾病,保险人按照保险单中约定的重大疾病保险金额给付重大疾病保险金,同时在本保险合同项下对该被保险人的保险责任终止。</p>",
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 {
desc:
"<p>轻症疾病包括冠状动脉介入手术、非危及生命的(极早期的)恶性病变、轻度中风后遗症等40种。在等待期(90天,意外伤害事故无等待期)后初次发生并经医院专科医生确诊罹患本合同约定的一种或多种轻症。保险人按照保险合同中约定的轻症保险金额给付轻症保险金,同时轻症责任终止。轻症保险金仅针对本保险合同约定的轻症进行给付,轻症疾病必须在生前诊断,对于任何身故后的尸检诊断不给付轻症疾病保险金。对于已经符合重大疾病保险金给付条件的,仅给付重大疾病保险金,不再给付轻症保险金。</p>",
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 {
popupArray: [
{
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: "健康告知",
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: "投保须知及声明",
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: "平台服务协议",
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: "自动续保服务协议",
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: [
......@@ -235,7 +235,7 @@ export default {
`,
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 {
<p>4、服务流程:拨打泰康在线服务热线4000795522申请服务。</p>
`,
options: [
{ title: "DTP药房", path: "http://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: "DTP药房", path: "https://mangguo-contract.qthbx.com/tai-kang-dtpyao-fang-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 {
<p>2、保险期间内,保险人仅承担一次指定检查费用保险金,且该次指定检查费用保险金的赔付金额不超过指定检查费用保险金限额5000元。</p>
<p>3、请拨打泰康在线专属服务热线4000795522申请服务。</p>`,
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 {
desc:
"因意外伤害或者在等待期30天后,在医院经专科医生初次确诊罹患保险合同所定义的特定疾病(无论一种或者多种),保险人给付5000元保险金额的特定疾病保险金,同时本项保险责任终止。",
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 {
{
title: "3650家三甲和二甲公立医院",
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 {
{
title: "1233家知名三甲医院",
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 {
popupArray: [
{
title: "保险条款",
url: "http://mangguo-contract.qthbx.com/zhong-an-baoxiantiaokuan-v1/"
url: "https://mangguo-contract.qthbx.com/zhong-an-baoxiantiaokuan-v1/"
},
{
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: "平台服务协议",
url: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
url: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/"
},
{ title: "保险计划" },
{ title: "保险计划" },
......@@ -152,7 +152,7 @@ export default {
{ 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: {
......
......@@ -30,19 +30,19 @@ export default {
popupArray: [
{
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: "健康告知",
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: "投保须知及声明",
url: "http://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/"
url: "https://mangguo-contract.qthbx.com/huatai-toubaoxuzhi-v1/"
},
{
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 {
userAgreement: "http://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/",
privacyPolicy: "http://mangguo-contract.qthbx.com/yin-si-zheng-ce-v1/"
userAgreement: "https://mangguo-contract.qthbx.com/fu-wu-xie-yi-v1/",
privacyPolicy: "https://mangguo-contract.qthbx.com/yin-si-zheng-ce-v1/"
};
......@@ -7,7 +7,7 @@ export default {
copyright: "全天候保险代理股份有限公司",
renewalAgreement: {
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: {
name: "赵玉龙",
......
......@@ -92,7 +92,7 @@ axios.interceptors.response.use(
afterRequest();
store.dispatch("setIsPayWait", false);
// 判断是否取消请求
if (err.message === "取消重复请求") {
if (err?.message === "取消重复请求") {
const res = {
status: 409,
data: {}
......@@ -101,6 +101,7 @@ axios.interceptors.response.use(
}
// 错误提示
console.error(err);
if (err.response) {
err.message = ERR_MESSAGE_MAP.status[err.response.status] || `连接错误${err.response.status}`;
} else {
......
......@@ -4,7 +4,7 @@ import { getPolicyList } from "@/api/policy";
import man from "@/assets/images/user/man@2x.png";
import woman from "@/assets/images/user/woman@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 = {
avatar: {
......@@ -57,23 +57,23 @@ export default {
if (!policyList) {
policyList = await getPolicyList();
}
let goodsMap = _.groupBy(GOODS_LIST, "itype");
let goodsMap = groupBy(GOODS_LIST, "itype");
// todo 家人保单列表筛选
const result = familyList.map(family => ({
...family,
avatar: +family.gender === 1 ? CONSTANT.avatar.man : CONSTANT.avatar.woman,
appellation: getReletion(family.relation, family.gender),
policyList: _.values(
_.mapValues(goodsMap, goodsList => {
policyList: values(
mapValues(goodsMap, goodsList => {
const policyListFilted = policyList
.filter(
policy =>
_.some(goodsList, { id: policy.productNo }) &&
some(goodsList, { id: policy.productNo }) &&
family.userInfoSecId === policy.insuredUserInfoSecId &&
["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);
return policyListFilted?.[0] || goodsList[0];
......
......@@ -49,7 +49,8 @@ export default {
}
}
&-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;
padding: 24px 24px 21.5px;
h4 {
......
......@@ -48,7 +48,8 @@
class="cr-button cr-button--warning cr-button--normal cr-button--square cr-button--block insure-btn"
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>
<div class="det-hd-insured-people">
已有
......@@ -181,6 +182,9 @@ export default {
}
}
.insure-btn {
display: flex;
justify-content: center;
align-items: center;
margin-top: 30px;
height: @button-large-height;
line-height: @button-large-line-height;
......@@ -193,6 +197,11 @@ export default {
display: block;
margin: 10px auto;
}
span {
font-size: 22px;
font-weight: bold;
color: #333333;
}
}
&-people {
.sub-text-mixins();
......
......@@ -41,7 +41,7 @@ export default {
orderInfo: {},
refreshIframe: true,
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() {
......
......@@ -6,7 +6,11 @@
</div>
<cr-row class="ai-test-cell" type="flex" align="center">
<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>
<div class="ai-test-cell-title">
<h5>智能<span>风险测评</span></h5>
......
......@@ -57,7 +57,7 @@ import { addRiskEvaluation } from "@/api/smartMeasure";
import autoSaveForm from "@/mixins/autoSaveForm.mixin";
import { answerMap, paramsMap } from "./constants";
import localStorage from "@/service/localStorage";
import _ from "lodash";
import { cloneDeep, debounce } from "lodash-es";
import man from "@/assets/images/user/male@2x.png";
import woman from "@/assets/images/user/female@2x.png";
......@@ -71,7 +71,7 @@ export default {
},
data() {
return {
dataList: _.cloneDeep(questionList),
dataList: cloneDeep(questionList),
isLoading: false,
currentAnswer: ""
};
......@@ -97,7 +97,7 @@ export default {
}
},
methods: {
nextQuestion: _.debounce(function() {
nextQuestion: debounce(function() {
const id = this.smartMeasure[this.smartMeasure.length - 1].id;
const smartMeasureLength = this.smartMeasure.length;
this.dataList = this.dataList.map(data => {
......
......@@ -30,7 +30,7 @@
margin-left: -76.5px;
width: 153px;
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;
animation: free_download .8s linear alternate infinite;
}
......
......@@ -5,7 +5,7 @@
width=""
height=""
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-service">
......@@ -106,7 +106,7 @@ import goodsList from "@/api/goodsList.mock";
import settings from "@/api/settings";
import { getRiskEvaluation } from "@/api/smartMeasure";
import localStorage from "@/service/localStorage";
import _ from "lodash";
import { has } from "lodash-es";
export default {
name: "Home",
......@@ -184,7 +184,7 @@ export default {
}
},
async goSmartMeasure() {
if (_.has(this.report, "age") && _.has(this.report, "gender")) {
if (has(this.report, "age") && has(this.report, "gender")) {
this.$router.push({
path: "/home/smart-measure/report",
query: this.report
......
......@@ -131,7 +131,7 @@
<div class="Ad-panel-body">
<iframe
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"
height="100%"
></iframe>
......
......@@ -91,7 +91,6 @@
</template>
<script>
import businessLicence from "@/assets/images/user/business-licence.jpeg";
import angencyLicense from "@/assets/images/user/angency-license.jpeg";
import companys from "../constant";
export default {
......@@ -99,7 +98,7 @@ export default {
data() {
return {
businessLicence,
angencyLicense,
angencyLicense: "http://activitystatic.xyqb.com/mongo/images/angency-license.ec9bda82.jpeg",
companys
};
},
......
......@@ -526,7 +526,7 @@ import detailPayMixin from "@/views/Goods/Detail/modules/detailPay.mixin";
import autoSaveForm from "@/mixins/autoSaveForm.mixin";
import liCalFee from "@/views/Goods/Detail/modules/liCalFee.mixin";
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 localStorage from "@/service/localStorage";
import { mapState, mapActions } from "vuex";
......
......@@ -39,7 +39,7 @@ import StatusDesc from "../modules/StatusDesc";
import CustomerService from "../modules/CustomerService";
import detailPayMixin from "@/views/Policy/mixin/orderInfo.mixin";
import { parseTime } from "@/service/utils";
import _ from "lodash";
import { cloneDeep } from "lodash-es";
import ciiDetail from "@/api/detail.huatai.zhongjixian";
import liDetail from "@/api/detail.huagui.shouxian";
......@@ -193,19 +193,19 @@ export default {
const { productNo } = this.data;
switch (productNo) {
case "TKYLX001":
this.productInfo = _.cloneDeep(miDetail);
this.productInfo = cloneDeep(miDetail);
break;
case "HTDQZJX001":
this.productInfo = _.cloneDeep(ciiDetail);
this.productInfo = cloneDeep(ciiDetail);
break;
case "BNZJX001":
this.productInfo = _.cloneDeep(biDetail);
this.productInfo = cloneDeep(biDetail);
break;
case "ZAYWX001":
this.productInfo = _.cloneDeep(aiDetail);
this.productInfo = cloneDeep(aiDetail);
break;
case "HGSX001":
this.productInfo = _.cloneDeep(liDetail);
this.productInfo = cloneDeep(liDetail);
break;
default:
break;
......
import _ from "lodash";
import { cloneDeep, find, findKey } from "lodash-es";
import STATUS_MAP from "../constants";
import { parseTime } from "@/service/utils";
import GOODS_LIST from "@/api/goodsList.mock";
......@@ -7,11 +7,11 @@ export default {
methods: {
getData(policy) {
const key = this.findKey(policy);
let value = _.cloneDeep(STATUS_MAP[key]);
let value = cloneDeep(STATUS_MAP[key]);
// 保单详情key为“15”时特殊处理
if (key === "15" && this.policy) {
value = _.cloneDeep(STATUS_MAP["6"]);
value = cloneDeep(STATUS_MAP["6"]);
}
if (["6", "7", "8", "9"].includes(key)) {
......@@ -47,13 +47,13 @@ export default {
return {
...policy,
..._.find(GOODS_LIST, { id: policy?.productNo }),
...find(GOODS_LIST, { id: policy?.productNo }),
cardConfig: { ...value, key, status: this.getStatus(policy) }
};
},
findKey(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) {
return policy?.payState
......@@ -63,7 +63,7 @@ export default {
getGoodsInfo(policy) {
return {
...policy,
..._.find(GOODS_LIST, { id: policy?.productNo })
...find(GOODS_LIST, { id: policy?.productNo })
};
}
}
......
......@@ -73,7 +73,7 @@
</div>
</template>
<script>
import _ from "lodash";
import { some } from "lodash-es";
import GOODS_LIST from "@/api/goodsList.mock";
import { getPolicyList } from "@/api/policy";
import settings from "@/api/settings";
......@@ -118,7 +118,7 @@ export default {
this.list = list
.filter(
v =>
_.some(GOODS_LIST, { id: v.productNo }) &&
some(GOODS_LIST, { id: v.productNo }) &&
(type === 0 ? true : v.insuredRelation === relations[type]) &&
this.findKey(v)
)
......
......@@ -124,7 +124,7 @@ import formValidMixin from "@/mixins/formValidate.mixin";
import { addFamily, updateFamily, delFamily } from "@/api/user";
import CrRadioBtn from "@/components/CrRadioBtn";
import Modal from "@/components/Modal";
import _ from "lodash";
import { cloneDeep } from "lodash-es";
const relations = ["本人", "配偶", "父母", "子女"];
const planOptions = [
......@@ -170,7 +170,7 @@ export default {
confirm: false,
delete: false
},
formData: _.cloneDeep(this.information),
formData: cloneDeep(this.information),
isCollapse: true
};
},
......@@ -206,7 +206,7 @@ export default {
watch: {
information(value) {
console.log(value);
this.formData = _.cloneDeep(value);
this.formData = cloneDeep(value);
}
},
methods: {
......@@ -228,7 +228,7 @@ export default {
await addFamily(params);
this.$notify({ type: "success", message: "添加成功" });
await this.setFamilyList();
this.formData = _.cloneDeep(defaultFormData);
this.formData = cloneDeep(defaultFormData);
} else {
params.userInfoSecId = this.information?.userInfoSecId;
await updateFamily(params);
......
......@@ -86,14 +86,6 @@ module.exports = {
reuseExistingChunk: 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: {
name: "chunk-libs",
test: /[\\/]node_modules[\\/]/,
......@@ -113,8 +105,7 @@ module.exports = {
images: {
name: "chunk-image",
priority: 8,
chunks: "all",
minChunks: 3,
chunks: "initial",
test: resolve("src/assets/images"),
reuseExistingChunk: true,
enforce: true
......@@ -156,7 +147,7 @@ module.exports = {
})
);
//生产环境取消 console.log
config.optimization.minimizer[0].options.terserOptions.compress.drop_console = true;
// config.optimization.minimizer[0].options.terserOptions.compress.drop_console = 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