Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
250935c6
Commit
250935c6
authored
Dec 13, 2022
by
sunchao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微信中支付宝支付调试
parent
8a715d74
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
8 deletions
+20
-8
manifest.json
+3
-3
pages/orderConfirm/orderConfirm.vue
+17
-5
No files found.
manifest.json
View file @
250935c6
...
...
@@ -9,9 +9,9 @@
"statusbar"
:
{
"immersed"
:
false
},
"compatible"
:
{
"ignoreVersion"
:
true
},
"compatible"
:
{
"ignoreVersion"
:
true
},
"usingComponents"
:
true
,
"nvueStyleCompiler"
:
"uni-app"
,
"compilerVersion"
:
3
,
...
...
pages/orderConfirm/orderConfirm.vue
View file @
250935c6
...
...
@@ -157,7 +157,9 @@
contentType
:
''
,
payForm
:
''
,
deviceType
:
''
,
tipsFlag
:
false
tipsFlag
:
false
,
isRedirect
:
null
,
amount
:
0
}
},
computed
:{
...
...
@@ -257,9 +259,11 @@
//#ifdef H5
//支付宝h5支付
param
.
paymentType
=
2
;
this
.
amount
=
this
.
totalPrice
;
if
(
this
.
deviceType
==
3
){
this
.
tipsFlag
=
true
;
let
url
=
window
.
location
.
href
+
'&isRedirect=1'
;
this
.
paymentBtnDisabled
=
false
;
let
url
=
window
.
location
.
href
+
`&isRedirect=1&userId=
${
this
.
userId
}
&amount=
${
this
.
amount
}
`
;
window
.
history
.
replaceState
(
null
,
''
,
url
);
return
;
}
...
...
@@ -358,12 +362,20 @@
this
.
courseDetail
();
this
.
queryByUserIdFortuneStatistic
()
this
.
deviceType
=
common
.
checkDeviceType
();
if
(
option
.
isRedirect
==
1
){
this
.
pay
();
this
.
isRedirect
=
option
.
isRedirect
;
if
(
this
.
isRedirect
==
1
){
if
(
option
.
amount
){
this
.
amount
=
option
.
amount
;
}
console
.
log
(
this
.
amount
)
this
.
totalPrice
=
this
.
amount
;
console
.
log
(
this
.
totalPrice
);
setTimeout
(()
=>
{
this
.
pay
();
},
500
)
}
},
mounted
()
{
}
}
</
script
>
...
...
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