Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-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
group-buy-ui
Commits
151c79b5
Commit
151c79b5
authored
Sep 26, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
fecc0760
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
pay.service.js
src/service/pay.service.js
+2
-0
payWaiting.vue
src/views/pay/payWaiting.vue
+9
-9
No files found.
src/service/pay.service.js
View file @
151c79b5
...
@@ -108,7 +108,9 @@ function payByALIH5(info) {
...
@@ -108,7 +108,9 @@ function payByALIH5(info) {
*/
*/
function
payByThirdPartyCashier
(
info
)
{
function
payByThirdPartyCashier
(
info
)
{
if
(
!
info
.
url
)
return
;
if
(
!
info
.
url
)
return
;
const
orderNo
=
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
info
.
params
.
third
=
1
;
info
.
params
.
third
=
1
;
info
.
params
.
orderNo
=
orderNo
;
const
currentPath
=
encodeURIComponent
(
const
currentPath
=
encodeURIComponent
(
window
.
location
.
origin
+
window
.
location
.
origin
+
'
/payWaiting
'
+
'
/payWaiting
'
+
...
...
src/views/pay/payWaiting.vue
View file @
151c79b5
...
@@ -34,9 +34,9 @@
...
@@ -34,9 +34,9 @@
<
script
>
<
script
>
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
localStorage
from
'
@/service/localStorage.service
'
;
//
import localStorage from '@/service/localStorage.service';
import
{
goUrlExtends
}
from
'
./extends
'
;
import
{
goUrlExtends
}
from
'
./extends
'
;
import
{
isIOS
}
from
'
@/service/validation.service
'
;
//
import { isIOS } from '@/service/validation.service';
export
default
{
export
default
{
components
:
{},
components
:
{},
extends
:
goUrlExtends
,
extends
:
goUrlExtends
,
...
@@ -52,12 +52,12 @@ export default {
...
@@ -52,12 +52,12 @@ export default {
created
()
{
created
()
{
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
this
.
orderNo
=
this
.
$route
.
query
.
orderNo
||
cookies
.
get
(
'
orderNo
'
)?.
orderNo
;
this
.
isWx
=
this
.
$route
.
query
.
isWx
;
this
.
isWx
=
this
.
$route
.
query
.
isWx
;
if
(
!
localStorage
.
get
(
'
isAppInner
'
))
{
//
if (!localStorage.get('isAppInner')) {
const
schema
=
isIOS
?
'
xincheng://
'
:
'
app://xincheng/splash
'
;
//
const schema = isIOS ? 'xincheng://' : 'app://xincheng/splash';
setTimeout
(()
=>
{
//
setTimeout(() => {
window
.
location
.
href
=
schema
;
//
window.location.href = schema;
},
2000
);
//
}, 2000);
}
//
}
},
},
mounted
()
{
mounted
()
{
this
.
$dialog
({
this
.
$dialog
({
...
@@ -92,7 +92,7 @@ export default {
...
@@ -92,7 +92,7 @@ export default {
},
},
goSuccess
()
{
goSuccess
()
{
// 支付成功
// 支付成功
this
.
$router
.
push
({
name
:
'
paySuccess
'
});
this
.
$router
.
replace
({
name
:
'
paySuccess
'
,
query
:
{
orderNo
:
this
.
orderNo
}
});
},
},
goPay
()
{
goPay
()
{
if
(
this
.
isWx
)
{
if
(
this
.
isWx
)
{
...
...
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