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
d097ebb0
Commit
d097ebb0
authored
Aug 25, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(投保为确认阅读协议弹框,已确认直接下一步;未算价不能提交): 未算价不能提交;投保确认后不用弹框
parent
a21bf51d
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
103 additions
and
61 deletions
+103
-61
dev.config.js
src/config/dev.config.js
+2
-2
AIDetail.vue
src/views/Goods/Detail/AIDetail.vue
+21
-11
CIIDetail.vue
src/views/Goods/Detail/CIIDetail.vue
+32
-23
LIDetail.vue
src/views/Goods/Detail/LIDetail.vue
+1
-0
MIDetail.vue
src/views/Goods/Detail/MIDetail.vue
+32
-22
ProtocolRead.vue
src/views/Goods/Detail/modules/ProtocolRead.vue
+6
-1
index.vue
src/views/Policy/Add/index.vue
+9
-2
No files found.
src/config/dev.config.js
View file @
d097ebb0
let
protocol
=
window
.
location
.
protocol
;
export
default
{
basicHost
:
"
http://yapi.quantgroups.com/mock/329/
"
,
//
basicHost: "https://hathaway-mg.liangkebang.net/",
//
basicHost: "http://yapi.quantgroups.com/mock/329/",
basicHost
:
"
https://hathaway-mg.liangkebang.net/
"
,
// basicHost: "http://192.168.29.211:8964/",
wxAppId
:
"
wx514de17b23d53a20
"
,
shenceUrl
:
`
${
protocol
}
//bn.xyqb.com/sa?project=default`
,
// 神策数据请求地址
...
...
src/views/Goods/Detail/AIDetail.vue
View file @
d097ebb0
...
...
@@ -141,9 +141,10 @@ export default {
payType
:
"
1
"
,
amountInsured
:
"
1000000
"
,
autoRenewPolicy
:
false
,
read
:
tru
e
read
:
fals
e
},
goInsureState
:
false
goInsureState
:
false
,
isCalPrice
:
false
};
},
watch
:
{
...
...
@@ -222,6 +223,10 @@ export default {
this
.
popupShow
=
true
;
},
onSubmit
()
{
if
(
!
this
.
isCalPrice
)
{
this
.
$notify
({
type
:
"
warn
"
,
message
:
"
被保人年龄不在可投保范围,请仔细核对
"
});
return
;
}
if
(
localStorage
.
get
(
"
mongoToken
"
))
{
this
.
$refs
.
insureForm
.
getFamilyList_I
().
then
(()
=>
{
this
.
getIsRead
();
...
...
@@ -338,15 +343,20 @@ export default {
}
}
};
const
res
=
await
trail
(
_param
);
if
(
res
)
{
price
[
0
]
=
res
.
downPayPrice
;
price
[
1
]
=
"
元/年
"
;
this
.
goodActionInfo
=
{
title
:
price
};
this
.
goodBuyModalInfo
=
[{
title
:
`每年保费`
,
value
:
`
${
price
[
0
]}
元`
}];
noticeCellInfo
[
amountInsured
][
2
].
value
=
`
${
price
[
0
]
+
price
[
1
]}
`
;
try
{
const
res
=
await
trail
(
_param
);
if
(
res
)
{
price
[
0
]
=
res
.
downPayPrice
;
price
[
1
]
=
"
元/年
"
;
this
.
goodActionInfo
=
{
title
:
price
};
this
.
goodBuyModalInfo
=
[{
title
:
`每年保费`
,
value
:
`
${
price
[
0
]}
元`
}];
noticeCellInfo
[
amountInsured
][
2
].
value
=
`
${
price
[
0
]
+
price
[
1
]}
`
;
}
this
.
isCalPrice
=
true
;
}
catch
(
error
)
{
this
.
isCalPrice
=
false
;
}
}
}
...
...
src/views/Goods/Detail/CIIDetail.vue
View file @
d097ebb0
...
...
@@ -138,9 +138,10 @@ export default {
payType
:
"
1
"
,
amountInsured
:
"
300000
"
,
autoRenewPolicy
:
false
,
read
:
tru
e
read
:
fals
e
},
goInsureState
:
false
goInsureState
:
false
,
isCalPrice
:
false
};
},
watch
:
{
...
...
@@ -281,6 +282,10 @@ export default {
this
.
popupShow
=
true
;
},
onSubmit
()
{
if
(
!
this
.
isCalPrice
)
{
this
.
$notify
({
type
:
"
warn
"
,
message
:
"
被保人年龄不在可投保范围,请仔细核对
"
});
return
;
}
if
(
localStorage
.
get
(
"
mongoToken
"
))
{
this
.
$refs
.
insureForm
.
getFamilyList_I
().
then
(()
=>
{
this
.
getIsRead
();
...
...
@@ -363,27 +368,31 @@ export default {
}
}
};
const
res
=
await
trail
(
_param
);
if
(
res
)
{
price
[
2
]
=
payType
===
"
2
"
?
""
:
"
首月
"
;
price
[
0
]
=
res
.
downPayPrice
;
subPrice
[
1
]
=
"
元/月
"
;
subPrice
[
0
]
=
payType
===
"
2
"
?
""
:
res
.
regularPrice
;
this
.
goodActionInfo
=
{
title
:
price
,
sub
:
subPrice
[
0
]
?
subPrice
:
""
};
this
.
goodBuyModalInfo
=
[
{
title
:
`
${
price
[
2
]}
保费`
,
value
:
`
${
price
[
0
]}${
price
[
1
]}
`
},
{
title
:
`
${
subPrice
[
2
]}
保费`
,
value
:
subPrice
[
0
]
?
`
${
subPrice
[
0
]}${
subPrice
[
1
]}${
subPrice
[
3
]}
`
:
""
}
];
noticeCellInfo
[
amountInsured
][
3
].
value
.
tpl
=
`保费与保额、被保人年龄有关<br />
${
price
[
2
]
+
price
[
0
]
+
price
[
1
]}
,
${
subPrice
[
0
]
?
subPrice
[
2
]
+
subPrice
[
0
]
+
subPrice
[
1
]
:
""
}
`
;
try
{
const
res
=
await
trail
(
_param
);
if
(
res
)
{
price
[
2
]
=
payType
===
"
2
"
?
""
:
"
首月
"
;
price
[
0
]
=
res
.
downPayPrice
;
subPrice
[
1
]
=
"
元/月
"
;
subPrice
[
0
]
=
payType
===
"
2
"
?
""
:
res
.
regularPrice
;
this
.
goodActionInfo
=
{
title
:
price
,
sub
:
subPrice
[
0
]
?
subPrice
:
""
};
this
.
goodBuyModalInfo
=
[
{
title
:
`
${
price
[
2
]}
保费`
,
value
:
`
${
price
[
0
]}${
price
[
1
]}
`
},
{
title
:
`
${
subPrice
[
2
]}
保费`
,
value
:
subPrice
[
0
]
?
`
${
subPrice
[
0
]}${
subPrice
[
1
]}${
subPrice
[
3
]}
`
:
""
}
];
noticeCellInfo
[
amountInsured
][
3
].
value
.
tpl
=
`保费与保额、被保人年龄有关<br />
${
price
[
2
]
+
price
[
0
]
+
price
[
1
]}
,
${
subPrice
[
0
]
?
subPrice
[
2
]
+
subPrice
[
0
]
+
subPrice
[
1
]
:
""
}
`
;
}
this
.
isCalPrice
=
true
;
}
catch
(
error
)
{
this
.
isCalPrice
=
false
;
}
}
}
...
...
src/views/Goods/Detail/LIDetail.vue
View file @
d097ebb0
...
...
@@ -47,6 +47,7 @@
:options=
"[]"
:text-bold=
"true"
v-model=
"read"
:show-radio=
"false"
:cell-data=
"noticeCellInfo"
@
cell-click=
"openIframePupop"
>
...
...
src/views/Goods/Detail/MIDetail.vue
View file @
d097ebb0
...
...
@@ -140,10 +140,11 @@ export default {
payType
:
"
1
"
,
planValue
:
"
3
"
,
autoRenewPolicy
:
false
,
read
:
tru
e
read
:
fals
e
},
goodActionShow
:
false
,
goInsureState
:
false
goInsureState
:
false
,
isCalPrice
:
false
};
},
watch
:
{
...
...
@@ -217,6 +218,10 @@ export default {
this
.
popupShow
=
true
;
},
onSubmit
()
{
if
(
!
this
.
isCalPrice
)
{
this
.
$notify
({
type
:
"
warn
"
,
message
:
"
被保人年龄不在可投保范围,请仔细核对
"
});
return
;
}
if
(
localStorage
.
get
(
"
mongoToken
"
))
{
socialSecurityCache
=
this
.
formData
.
socialSecurity
;
this
.
$refs
.
insureForm
.
getFamilyList_I
().
then
(()
=>
{
...
...
@@ -347,26 +352,31 @@ export default {
}
}
};
const
res
=
await
trail
(
_param
);
if
(
res
)
{
price
[
2
]
=
payType
===
"
2
"
?
""
:
"
首月
"
;
price
[
0
]
=
res
.
downPayPrice
;
subPrice
[
0
]
=
payType
===
"
2
"
?
""
:
res
.
regularPrice
;
subPrice
[
1
]
=
"
元/月
"
;
this
.
goodActionInfo
=
{
title
:
price
,
sub
:
subPrice
[
0
]
?
subPrice
:
""
};
this
.
goodBuyModalInfo
=
[
{
title
:
`
${
price
[
2
]}
保费`
,
value
:
`
${
price
[
0
]}${
price
[
1
]}
`
},
{
title
:
`
${
subPrice
[
2
]}
保费`
,
value
:
subPrice
[
0
]
?
`
${
subPrice
[
0
]}${
subPrice
[
1
]}${
subPrice
[
3
]}
`
:
""
}
];
this
.
noticeCellInfo
[
3
].
value
.
tpl
=
`保费于被保人年龄、有无社保有关<br />
${
price
[
2
]
+
price
[
0
]
+
price
[
1
]}
,
${
subPrice
[
0
]
?
subPrice
[
2
]
+
subPrice
[
0
]
+
subPrice
[
1
]
:
""
}
`
;
try
{
const
res
=
await
trail
(
_param
);
if
(
res
)
{
price
[
2
]
=
payType
===
"
2
"
?
""
:
"
首月
"
;
price
[
0
]
=
res
.
downPayPrice
;
subPrice
[
0
]
=
payType
===
"
2
"
?
""
:
res
.
regularPrice
;
subPrice
[
1
]
=
"
元/月
"
;
this
.
goodActionInfo
=
{
title
:
price
,
sub
:
subPrice
[
0
]
?
subPrice
:
""
};
this
.
goodBuyModalInfo
=
[
{
title
:
`
${
price
[
2
]}
保费`
,
value
:
`
${
price
[
0
]}${
price
[
1
]}
`
},
{
title
:
`
${
subPrice
[
2
]}
保费`
,
value
:
subPrice
[
0
]
?
`
${
subPrice
[
0
]}${
subPrice
[
1
]}${
subPrice
[
3
]}
`
:
""
}
];
this
.
noticeCellInfo
[
3
].
value
.
tpl
=
`保费于被保人年龄、有无社保有关<br />
${
price
[
2
]
+
price
[
0
]
+
price
[
1
]}
,
${
subPrice
[
0
]
?
subPrice
[
2
]
+
subPrice
[
0
]
+
subPrice
[
1
]
:
""
}
`
;
}
this
.
isCalPrice
=
true
;
}
catch
(
error
)
{
this
.
isCalPrice
=
false
;
}
}
}
...
...
src/views/Goods/Detail/modules/ProtocolRead.vue
View file @
d097ebb0
...
...
@@ -4,13 +4,14 @@
<slot></slot>
<template
v-slot:footer
>
<div
class=
"insure-form-pact"
slot=
"footer"
>
<cr-field
name=
"pact"
>
<cr-field
name=
"pact"
v-show=
"showRadio"
>
<template
#input
>
<cr-checkbox
shape=
"round"
icon-size=
"13px"
v-model=
"pact"
checked-color=
"#FFC842"
>
投保前请阅读
</cr-checkbox>
</
template
>
</cr-field>
<div
v-show=
"!showRadio"
></div>
<div
class=
"insure-form-pact-link"
>
<a
href=
"javascript:;"
...
...
@@ -50,6 +51,10 @@ export default {
return
[
"
查看完整费率表
"
];
}
},
showRadio
:
{
type
:
Boolean
,
default
:
true
},
protocolData
:
{
type
:
Array
,
default
()
{
...
...
src/views/Policy/Add/index.vue
View file @
d097ebb0
...
...
@@ -586,7 +586,7 @@ export default {
goodBuyModalInfo
:
[],
mongoToken
:
localStorage
.
get
(
"
mongoToken
"
),
policyFormData
:
JSON
.
parse
(
sessionStorage
.
getItem
(
"
policyFormData
"
)
||
"
{}
"
),
pact
:
tru
e
,
pact
:
fals
e
,
formData
:
{
insuredUserInfo
:
{
relation
:
""
,
...
...
@@ -794,13 +794,20 @@ export default {
this
.
onRelationCancel
();
},
onFormSubmit
()
{
this
.
g
oInsureState
=
true
;
this
.
g
etIsRead
()
;
},
onFormFailed
(
errorInfo
)
{
console
.
log
(
errorInfo
);
const
{
errors
}
=
errorInfo
;
this
.
$notify
({
type
:
"
warning
"
,
message
:
errors
[
0
].
message
});
},
getIsRead
()
{
if
(
this
.
pact
)
{
this
.
nextStep
();
}
else
{
this
.
goInsureState
=
true
;
}
},
nextStep
()
{
this
.
subFormData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
const
{
socialSecurity
,
longTerm
,
relation
}
=
this
.
subFormData
.
insuredUserInfo
;
...
...
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