Commit 103528fc authored by 郭志伟's avatar 郭志伟

fix: 详情异常问题修复

parent bc6b3dcd
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1 ,user-scalable=no"> <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1 ,user-scalable=no">
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> <link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title><%= htmlWebpackPlugin.options.title %></title> <title><%= htmlWebpackPlugin.options.title %></title>
<script crossorigin="anonymous" integrity="sha384-OZmxTjkv7EQo5XDMPAmIkkvywVeXw59YyYh6zq8UKfkbor13jS+5p8qMTBSA1q+F" src="https://lib.baomitu.com/vue/2.6.11/vue.min.js"></script>
</head> </head>
<body> <body>
<noscript> <noscript>
......
<template> <template>
<div class="card" :style="style"> <div class="card" :style="styles">
<div class="card-header"> <div class="card-header">
<slot name="header"> <slot name="header">
<h5 class="card-title" v-if="title"> <h5 class="card-title" v-if="title">
...@@ -35,7 +35,7 @@ export default { ...@@ -35,7 +35,7 @@ export default {
props: { props: {
title: { title: {
type: String, type: String,
required: true default: ""
}, },
content: { content: {
type: String, type: String,
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
type: String, type: String,
default: "" default: ""
}, },
style: { styles: {
type: Object, type: Object,
default() { default() {
return {}; return {};
......
<template> <template>
<cr-radio-group v-model="value" class="radio-btn"> <cr-radio-group v-model="radioVal" class="radio-btn">
<cr-radio <cr-radio
:name="item.value" :name="item.value"
:class="{ checked: value === item.value }" :class="{ checked: value === item.value }"
...@@ -25,8 +25,17 @@ export default { ...@@ -25,8 +25,17 @@ export default {
}, },
watch: { watch: {
value(val) { value(val) {
this.radioVal = val;
this.$emit(CHANGE_EVENT, val);
},
radioVal(val) {
this.$emit(CHANGE_EVENT, val); this.$emit(CHANGE_EVENT, val);
} }
},
data() {
return {
radioVal: ""
};
} }
}; };
</script> </script>
......
...@@ -15,14 +15,22 @@ ...@@ -15,14 +15,22 @@
<card title="请填写投保信息"> <card title="请填写投保信息">
<h6 class="insure-form-title">本人信息</h6> <h6 class="insure-form-title">本人信息</h6>
<cr-cell-group class="insure-form"> <cr-cell-group class="insure-form">
<cr-field v-model="value" placeholder="请输入投保人姓名" label="姓名" /> <cr-field v-model="formData.selfName" placeholder="请输入投保人姓名" label="姓名" />
<cr-field v-model="value" placeholder="信息保密,仅用于投保" label="身份证号" /> <cr-field
v-model="formData.selfIdNo"
placeholder="信息保密,仅用于投保"
label="身份证号"
/>
</cr-cell-group> </cr-cell-group>
<h6 class="insure-form-title">为谁投保</h6> <h6 class="insure-form-title">为谁投保</h6>
<cr-radio-btn v-model="formData.insured" :radio-data="insuredOptions" /> <cr-radio-btn v-model="formData.insured" :radio-data="insuredOptions" />
<cr-cell-group class="insure-form"> <cr-cell-group class="insure-form">
<cr-field v-model="value" placeholder="请输入投保人姓名" label="姓名" /> <cr-field v-model="formData.relativeName" placeholder="请输入投保人姓名" label="姓名" />
<cr-field v-model="value" placeholder="信息保密,仅用于投保" label="身份证号" /> <cr-field
v-model="formData.relativeIdNo"
placeholder="信息保密,仅用于投保"
label="身份证号"
/>
<cr-cell title="缴费方式" class="insure-form-item_nobg"> <cr-cell title="缴费方式" class="insure-form-item_nobg">
<cr-radio-btn v-model="formData.payway" :radio-data="paywayOptions" /> <cr-radio-btn v-model="formData.payway" :radio-data="paywayOptions" />
</cr-cell> </cr-cell>
...@@ -44,7 +52,7 @@ ...@@ -44,7 +52,7 @@
<card <card
title="投保须知" title="投保须知"
:option="['查看完整费率表']" :option="['查看完整费率表']"
:footer="true" footer="协议"
@option-click="openIframePupop(6)" @option-click="openIframePupop(6)"
> >
<compactCellGroup :cell-data="noticeCellData" /> <compactCellGroup :cell-data="noticeCellData" />
...@@ -69,7 +77,13 @@ ...@@ -69,7 +77,13 @@
</div> </div>
</card> </card>
<card class="intro"> <card class="intro">
<cr-image :src="item" v-for="(item, index) in introImg" :key="index" /> <cr-image
:src="item"
v-for="(item, index) in introImg"
:key="index"
width="100%"
height="auto"
/>
</card> </card>
<cps-demo /> <cps-demo />
<cps-process @click="openIframePupop" /> <cps-process @click="openIframePupop" />
......
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
<cr-cell <cr-cell
v-for="(item, index) in cellData" v-for="(item, index) in cellData"
:key="index" :key="index"
:title="!item.title.needSlot && (item.title.tpl || item.title)" :title="item.title.tpl || item.title"
:value="!item.value.needSlot && (item.value.tpl || item.value)" :value="item.value.tpl || item.value"
:class="{ 'compact-cell': 1, 'compact-cell_br': item.value.longTxt }" :class="{ 'compact-cell': 1, 'compact-cell_br': item.value.longTxt }"
@click="cellClick(item)" @click="cellClick(item)"
> >
......
...@@ -3,11 +3,6 @@ const resolve = dir => path.join(__dirname, dir); ...@@ -3,11 +3,6 @@ const resolve = dir => path.join(__dirname, dir);
const IS_PROD = process.env.NODE_ENV === "production"; const IS_PROD = process.env.NODE_ENV === "production";
module.exports = { module.exports = {
configureWebpack: {
externals: {
vue: "Vue"
}
},
chainWebpack: config => { chainWebpack: config => {
// 修复HMR // 修复HMR
config.resolve.symlinks(true); config.resolve.symlinks(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