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
e71cf276
Commit
e71cf276
authored
Sep 14, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'orderChannel' into 'master'
feat: 下单追加channel See merge request
!246
parents
b54b4230
14f99061
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
1 deletion
+17
-1
LoginModal.vue
src/components/LoginModal.vue
+2
-1
index.js
src/router/index.js
+7
-0
AIDetail.vue
src/views/Goods/Detail/AIDetail.vue
+2
-0
CIIDetail.vue
src/views/Goods/Detail/CIIDetail.vue
+2
-0
MIDetail.vue
src/views/Goods/Detail/MIDetail.vue
+2
-0
index.vue
src/views/Policy/Add/index.vue
+2
-0
No files found.
src/components/LoginModal.vue
View file @
e71cf276
...
...
@@ -100,7 +100,8 @@ export default {
this
.
$notify
({
type
:
"
warning
"
,
message
:
errors
[
0
].
message
});
},
async
login
()
{
this
.
formData
.
loginChannel
=
isWeixinBrower
?
1
:
2
;
const
xyqbToken
=
localStorage
.
get
(
"
xyqbToken
"
);
this
.
formData
.
loginChannel
=
isWeixinBrower
&&
xyqbToken
?
3
:
isWeixinBrower
?
1
:
2
;
this
.
formData
.
openId
=
localStorage
.
get
(
"
openId
"
)
||
null
;
const
res
=
await
loginByPhone
(
this
.
formData
);
if
(
res
)
{
...
...
src/router/index.js
View file @
e71cf276
...
...
@@ -37,6 +37,7 @@ const router = new VueRouter({
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
const
urlParams
=
parseSearch
(
window
.
location
.
href
);
setTitle
(
to
.
meta
.
title
,
to
.
path
,
to
.
query
);
setChannelId
(
urlParams
);
if
(
isXyqb
)
getAuthInfo
(
urlParams
.
vccToken
||
urlParams
.
token
);
if
(
isWeixinBrower
)
{
getWxOpenId
(
urlParams
.
code
);
...
...
@@ -99,4 +100,10 @@ function setTitle(title, path, query) {
}
}
function
setChannelId
(
params
)
{
if
(
params
.
channelId
)
{
localStorage
.
set
(
"
channelId
"
,
params
.
channelId
);
}
}
export
default
router
;
src/views/Goods/Detail/AIDetail.vue
View file @
e71cf276
...
...
@@ -292,6 +292,7 @@ export default {
this
.
generateOrder
(
"
ai
"
);
},
generateFormData
()
{
const
channel
=
localStorage
.
get
(
"
channelId
"
);
const
{
userInfoSecId
,
name
,
...
...
@@ -321,6 +322,7 @@ export default {
productItem
:
{
amountInsured
},
channel
:
channel
?
channel
:
undefined
,
autoRenewPolicy
:
autoRenewPolicy
};
if
(
relation
===
"
1
"
)
{
...
...
src/views/Goods/Detail/CIIDetail.vue
View file @
e71cf276
...
...
@@ -301,6 +301,7 @@ export default {
},
generateFormData
()
{
const
subFormData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
const
channel
=
localStorage
.
get
(
"
channelId
"
);
const
{
userInfoSecId
,
name
,
...
...
@@ -328,6 +329,7 @@ export default {
payType
,
amountInsured
},
channel
:
channel
?
channel
:
undefined
,
autoRenewPolicy
:
autoRenewPolicy
};
if
(
relation
===
"
1
"
)
{
...
...
src/views/Goods/Detail/MIDetail.vue
View file @
e71cf276
...
...
@@ -287,6 +287,7 @@ export default {
if
(
!
this
.
formData
.
socialSecurity
)
{
this
.
formData
.
socialSecurity
=
socialSecurityCache
;
}
const
channel
=
localStorage
.
get
(
"
channelId
"
);
const
subFormData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
const
{
userInfoSecId
,
...
...
@@ -313,6 +314,7 @@ export default {
productItem
:
{
payType
},
channel
:
channel
?
channel
:
undefined
,
autoRenewPolicy
:
autoRenewPolicy
};
if
(
relation
===
"
1
"
)
{
...
...
src/views/Policy/Add/index.vue
View file @
e71cf276
...
...
@@ -815,10 +815,12 @@ export default {
},
nextStep
()
{
this
.
subFormData
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
formData
));
const
channel
=
localStorage
.
get
(
"
channelId
"
);
const
{
socialSecurity
,
longTerm
,
relation
}
=
this
.
subFormData
.
insuredUserInfo
;
this
.
subFormData
.
insuredUserInfo
.
socialSecurity
=
socialSecurity
===
"
1
"
?
true
:
false
;
this
.
subFormData
.
insuredUserInfo
.
longTerm
=
longTerm
===
"
2
"
?
true
:
false
;
this
.
subFormData
.
holderUserInfo
.
longTerm
=
longTerm
===
"
2
"
?
true
:
false
;
this
.
subFormData
.
channel
=
channel
?
channel
:
undefined
;
if
(
relation
===
"
1
"
)
{
const
selfInfo
=
this
.
familyList
.
find
(
item
=>
item
.
relation
===
1
);
const
{
weight
,
height
,
socialSecurity
}
=
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