Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
103528fc
Commit
103528fc
authored
Jul 23, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 详情异常问题修复
parent
bc6b3dcd
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
18 deletions
+35
-18
index.html
public/index.html
+0
-1
Card.vue
src/components/Card.vue
+3
-3
CrRadioBtn.vue
src/components/CrRadioBtn.vue
+10
-1
detail.vue
src/views/Goods/detail.vue
+20
-6
CompactCellGroup.vue
src/views/Goods/modules/CompactCellGroup.vue
+2
-2
vue.config.js
vue.config.js
+0
-5
No files found.
public/index.html
View file @
103528fc
...
@@ -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>
...
...
src/components/Card.vue
View file @
103528fc
<
template
>
<
template
>
<div
class=
"card"
:style=
"style"
>
<div
class=
"card"
:style=
"style
s
"
>
<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
:
{
style
s
:
{
type
:
Object
,
type
:
Object
,
default
()
{
default
()
{
return
{};
return
{};
...
...
src/components/CrRadioBtn.vue
View file @
103528fc
<
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
>
...
...
src/views/Goods/detail.vue
View file @
103528fc
...
@@ -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"
/>
...
...
src/views/Goods/modules/CompactCellGroup.vue
View file @
103528fc
...
@@ -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)"
>
>
...
...
vue.config.js
View file @
103528fc
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment