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
61fc0cd2
Commit
61fc0cd2
authored
Aug 04, 2020
by
郭志伟
Committed by
郝聪敏
Aug 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 顾问联调
parent
7544b9e5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
LoginModal.vue
src/components/LoginModal.vue
+1
-0
index.vue
src/views/Consultant/Buy/index.vue
+11
-1
index.vue
src/views/Consultant/index.vue
+6
-5
No files found.
src/components/LoginModal.vue
View file @
61fc0cd2
...
...
@@ -86,6 +86,7 @@ export default {
this
.
$notify
(
"
登录成功
"
);
this
.
setIsShowLogin
(
false
);
// localStorage.setItem("mongoToken", res.token);
// TODO 开发目前使用这个token
localStorage
.
setItem
(
"
mongoToken
"
,
"
6ae7da7dd4c543f1a36c702c6f419f12
"
);
}
},
...
...
src/views/Consultant/Buy/index.vue
View file @
61fc0cd2
...
...
@@ -95,6 +95,12 @@ export default {
// eslint-disable-next-line
Collapse
},
props
:
{
state
:
{
type
:
[
Number
,
String
],
default
:
0
}
},
data
()
{
return
{
isLogin
:
localStorage
.
get
(
"
mongoToken
"
),
...
...
@@ -212,7 +218,11 @@ export default {
this
.
setIsShowLogin
(
true
);
return
;
}
this
.
generateOrder
();
if
(
this
.
state
==
1
)
{
this
.
goPay
();
}
else
{
this
.
generateOrder
();
}
},
async
generateOrder
()
{
const
res
=
await
create
();
...
...
src/views/Consultant/index.vue
View file @
61fc0cd2
<
template
>
<div>
<buy
v-if=
"orderState
=== 1
"
/>
<success
v-if=
"orderState ===
2
&& isLogin && !showQuestion"
/>
<buy
v-if=
"orderState
<
1
"
:state=
"orderState
"
/>
<success
v-if=
"orderState ===
3
&& isLogin && !showQuestion"
/>
<exclusive
v-if=
"(orderState ===
3 || orderState === 4
) && isLogin"
:has-suggestion=
"orderState ===
4
"
v-if=
"(orderState ===
4 || orderState === 5
) && isLogin"
:has-suggestion=
"orderState ===
5
"
/>
<question
v-if=
"showQuestion && isLogin"
/>
<tabbar
/>
...
...
@@ -37,7 +37,7 @@ export default {
orderInfo
:
[
{
consultantOrderNo
:
""
,
state
:
1
state
:
0
}
]
};
...
...
@@ -59,6 +59,7 @@ export default {
this
.
getOrderInfo
();
},
methods
:
{
// 1-待支付,3-支付成功,4-问卷收集完成,方案配置中,5-方案配置完成, -1 -支付失败订单关闭,-2 -支付超过1小时订单关闭,-3 -订单关闭
async
getOrderInfo
()
{
if
(
!
this
.
isLogin
)
return
;
this
.
showQuestion
=
false
;
...
...
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