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

fix: 详情异常问题修复

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