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
b4c68031
Commit
b4c68031
authored
Sep 03, 2020
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'fix/bainian_backurl' into 'master'
fix: 顾问问题修复 See merge request
!219
parents
b0801e0f
6503f917
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
3 deletions
+14
-3
index.vue
src/views/Consultant/Buy/index.vue
+2
-0
index.vue
src/views/Consultant/index.vue
+6
-1
index.vue
src/views/Policy/PayWaiting/index.vue
+6
-2
No files found.
src/views/Consultant/Buy/index.vue
View file @
b4c68031
...
...
@@ -90,6 +90,7 @@ import Collapse from "@/components/Collapse";
import
PayWaitLayer
from
"
@/components/PayWaitLayer
"
;
import
CpsQa
from
"
../../Goods/Detail/modules/CpsQA
"
;
import
{
checkOpenId
}
from
"
@/service/wxJsSdk
"
;
import
Cookies
from
"
js-cookie
"
;
const
SUM
=
300
;
export
default
{
name
:
"
ConsultantBuy
"
,
...
...
@@ -280,6 +281,7 @@ export default {
};
const
res
=
await
goPay
(
_param
);
if
(
res
)
{
Cookies
.
set
(
"
consultantPay
"
,
1
,
{
expires
:
3
*
60
*
60
*
1000
});
let
payInfo
=
""
;
if
(
res
.
payInfo
&&
res
.
payInfo
.
payUrl
)
{
payInfo
=
{
...
...
src/views/Consultant/index.vue
View file @
b4c68031
...
...
@@ -20,6 +20,7 @@ import Exclusive from "./Exclusive";
import
{
mapState
,
mapActions
}
from
"
vuex
"
;
import
localStorage
from
"
@/service/localStorage
"
;
import
{
getCulOrder
,
getPayState
}
from
"
@/api/consultant
"
;
import
Cookies
from
"
js-cookie
"
;
export
default
{
name
:
"
Consultant
"
,
components
:
{
...
...
@@ -57,7 +58,9 @@ export default {
}
},
mounted
()
{
const
fromPay
=
this
.
$route
.
query
.
from
&&
this
.
$route
.
query
.
from
===
"
wxh5
"
;
const
fromPay
=
(
this
.
$route
.
query
.
from
&&
this
.
$route
.
query
.
from
===
"
wxh5
"
)
||
Cookies
.
get
(
"
consultantPay
"
)
==
1
;
this
.
getOrderInfo
(
fromPay
);
},
methods
:
{
...
...
@@ -72,6 +75,8 @@ export default {
this
.
orderInfo
=
res
;
if
(
checkPayState
&&
res
[
0
]
&&
res
[
0
].
state
<
3
)
{
this
.
getPayState
();
}
else
{
Cookies
.
remove
(
"
consultantPay
"
);
}
this
.
$forceUpdate
();
}
...
...
src/views/Policy/PayWaiting/index.vue
View file @
b4c68031
...
...
@@ -28,8 +28,12 @@ export default {
this
.
orderInfo
=
this
.
$route
.
query
;
// 如果存在isXyqb,同时当前不是在信用钱包环境
if
(
this
.
orderInfo
.
isConsultant
)
{
if
(
!
isXyqb
)
{
window
.
location
.
href
=
"
xyqb://my
"
;
}
setTimeout
(()
=>
{
this
.
$router
.
replace
({
path
:
"
/consultant
"
,
query
:
{
from
:
"
wxh5
"
}
});
},
1000
);
return
;
}
else
if
(
(
this
.
orderInfo
.
isXyqb
==
1
||
...
...
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