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
103967a5
Commit
103967a5
authored
Dec 15, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.还原课程购买页面
parent
90ea0902
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
pages/courseDetail/courseDetail.vue
+1
-1
pages/orderConfirm/orderConfirm.vue
+4
-7
No files found.
pages/courseDetail/courseDetail.vue
View file @
103967a5
...
...
@@ -286,7 +286,7 @@
if
(
res
[
'success'
])
{
this
.
orderId
=
res
[
'data'
][
'id'
];
uni
.
navigateTo
({
url
:
`/pages/orderConfirm/orderConfirm?fileId=
${
this
.
fileId
}
&orderId=
${
this
.
orderId
}
`
url
:
`/pages/orderConfirm/orderConfirm?fileId=
${
this
.
fileId
}
&orderId=
${
this
.
orderId
}
&userId=
${
this
.
userId
}
`
})
}
else
{
uni
.
showToast
({
...
...
pages/orderConfirm/orderConfirm.vue
View file @
103967a5
...
...
@@ -193,7 +193,7 @@
orderId
:
this
.
orderId
,
amount
:
this
.
totalPrice
,
paymentMethod
:
this
.
paymentMethod
,
userId
:
localStorage
.
getItem
(
'h5_userId'
)?
localStorage
.
getItem
(
'h5_userId'
):
this
.
userId
,
userId
:
this
.
userId
,
integralExchange
:
this
.
isDeduction
?
parseFloat
(
this
.
deductionCore
)
:
0
,
paymentType
:
''
}
...
...
@@ -260,11 +260,10 @@
//支付宝h5支付
param
.
paymentType
=
2
;
this
.
amount
=
this
.
totalPrice
;
let
userId
=
localStorage
.
getItem
(
'h5_userId'
)?
localStorage
.
getItem
(
'h5_userId'
):
this
.
userId
if
(
this
.
deviceType
==
3
){
this
.
tipsFlag
=
true
;
this
.
paymentBtnDisabled
=
false
;
let
url
=
window
.
location
.
href
+
`&isRedirect=1&userId=
${
userId
}
&amount=
${
this
.
amount
}
`
;
let
url
=
window
.
location
.
href
+
`&isRedirect=1&userId=
${
this
.
userId
}
&amount=
${
this
.
amount
}
`
;
window
.
history
.
replaceState
(
null
,
''
,
url
);
return
;
}
...
...
@@ -296,8 +295,7 @@
},
// 积分查询
queryByUserIdFortuneStatistic
(){
let
userId
=
localStorage
.
getItem
(
'h5_userId'
)
?
localStorage
.
getItem
(
'h5_userId'
)
:
this
.
userId
api
.
queryByUserIdFortuneStatistic
({
userId
:
userId
}).
then
(
res
=>
{
api
.
queryByUserIdFortuneStatistic
({
userId
:
this
.
userId
}).
then
(
res
=>
{
if
(
res
[
'success'
]){
this
.
intergralInfo
=
res
[
'data'
];
this
.
intergralInfo
.
preFortune
=
1.0
;
...
...
@@ -306,8 +304,7 @@
},
// 课程详情页面
courseDetail
(){
let
userId
=
localStorage
.
getItem
(
'h5_userId'
)
?
localStorage
.
getItem
(
'h5_userId'
)
:
this
.
userId
api
.
courseDetail
({
fileId
:
this
.
fileId
,
userId
:
userId
}).
then
(
res
=>
{
api
.
courseDetail
({
fileId
:
this
.
fileId
,
userId
:
this
.
userId
}).
then
(
res
=>
{
console
.
log
(
'课程详情'
,
res
);
if
(
res
[
'success'
]){
this
.
courseInfoItem
=
res
[
'data'
][
'data'
];
...
...
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