Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
phobos-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
phobos-ui
Commits
b2428c49
Commit
b2428c49
authored
Nov 08, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(pay.service): 问题调试
parent
cd7e1b8f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
pay.service.js
src/service/pay.service.js
+2
-2
payWaiting.vue
src/views/pay/payWaiting.vue
+1
-9
No files found.
src/service/pay.service.js
View file @
b2428c49
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Description: 支付微信h5, jsapi, 第三方收银台,跳转)
* @Description: 支付微信h5, jsapi, 第三方收银台,跳转)
* @Date: 2020-07-28 15:03:52
* @Date: 2020-07-28 15:03:52
* @LastEditors: gzw
* @LastEditors: gzw
* @LastEditTime: 2021-11-08 19:
19:28
* @LastEditTime: 2021-11-08 19:
36:02
*/
*/
import
qs
from
'
qs
'
;
import
qs
from
'
qs
'
;
...
@@ -65,7 +65,7 @@ function payByWeixinH5(info) {
...
@@ -65,7 +65,7 @@ function payByWeixinH5(info) {
info
.
params
.
vccToken
=
vccToken
;
info
.
params
.
vccToken
=
vccToken
;
info
.
params
.
orderNo
=
orderNo
;
info
.
params
.
orderNo
=
orderNo
;
info
.
params
.
isWx
=
true
;
info
.
params
.
isWx
=
true
;
const
redirectUrl
=
window
.
location
.
origin
;
const
redirectUrl
=
localStorage
.
get
(
'
redirectUrl
'
)
||
window
.
location
.
origin
;
const
currentPath
=
encodeURIComponent
(
const
currentPath
=
encodeURIComponent
(
redirectUrl
+
redirectUrl
+
// eslint-disable-next-line prettier/prettier
// eslint-disable-next-line prettier/prettier
...
...
src/views/pay/payWaiting.vue
View file @
b2428c49
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
qs
from
'
qs
'
;
import
{
queryPayStatus
}
from
'
@/api/pay.api
'
;
import
{
queryPayStatus
}
from
'
@/api/pay.api
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
{
goUrlExtends
}
from
'
./extends
'
;
import
{
goUrlExtends
}
from
'
./extends
'
;
...
@@ -35,7 +34,7 @@ export default {
...
@@ -35,7 +34,7 @@ export default {
timer
:
null
,
timer
:
null
,
time
:
10
,
time
:
10
,
init
:
false
,
init
:
false
,
hasRedirectUrl
:
localStorage
.
get
(
'
redirectUrl
'
),
hasRedirectUrl
:
!!
localStorage
.
get
(
'
redirectUrl
'
),
returnUrl
:
''
returnUrl
:
''
};
};
},
},
...
@@ -43,13 +42,6 @@ export default {
...
@@ -43,13 +42,6 @@ export default {
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
},
},
mounted
()
{
mounted
()
{
if
(
this
.
hasRedirectUrl
)
{
window
.
location
.
href
=
`
${
this
.
hasRedirectUrl
}
/payWaiting
${
qs
.
stringify
(
this
.
$route
.
query
,
{
encode
:
true
,
addQueryPrefix
:
true
})}
`
;
return
;
}
this
.
getQuery
();
this
.
getQuery
();
this
.
$track
.
registeredEvents
(
'
h5_RechargeResultPageExposure
'
,
{
this
.
$track
.
registeredEvents
(
'
h5_RechargeResultPageExposure
'
,
{
pay_status
:
'
正在支付
'
pay_status
:
'
正在支付
'
...
...
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