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
d1c918da
Commit
d1c918da
authored
Dec 21, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改H5 提交订单
parent
bbb2cd89
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
pages/orderConfirm/orderConfirm.vue
+4
-4
pages/orderStatus/orderStatus.vue
+4
-2
No files found.
pages/orderConfirm/orderConfirm.vue
View file @
d1c918da
...
...
@@ -262,19 +262,19 @@
orderInfo
:
aliOrderString
,
success
:
function
(
resp
)
{
uni
.
navigateTo
({
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=2&userId=
${
_this
.
userId
}
`
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=2&userId=
${
_this
.
userId
}
isRedirect=1
`
})
},
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
uni
.
navigateTo
({
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=1&userId=
${
_this
.
userId
}
`
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=1&userId=
${
_this
.
userId
}
isRedirect=1
`
})
}
});
}
else
{
uni
.
navigateTo
({
url
:
`/pages/orderStatus/orderStatus?orderId=
${
this
.
orderId
}
&fileId=
${
this
.
fileId
}
&orderStatus=2&userId=
${
this
.
userId
}
`
url
:
`/pages/orderStatus/orderStatus?orderId=
${
this
.
orderId
}
&fileId=
${
this
.
fileId
}
&orderStatus=2&userId=
${
this
.
userId
}
isRedirect=1
`
})
}
...
...
@@ -301,7 +301,7 @@
this
.
tipsFlag
=
true
;
this
.
amount
=
this
.
totalPrice
;
this
.
paymentBtnDisabled
=
false
;
let
deductionCore
=
this
.
isDeduction
==
true
?
parseFloat
(
this
.
deductionCore
)
:
0
,
let
deductionCore
=
this
.
isDeduction
==
true
?
parseFloat
(
this
.
deductionCore
)
:
0
;
let
url
=
window
.
location
.
href
+
`&isRedirect=1&amount=
${
this
.
amount
}
&jumptime=
${
new
Date
()}
&isDeduction=
${
this
.
isDeduction
}
&deductionCore=
${
deductionCore
}
`
;
window
.
history
.
replaceState
(
null
,
''
,
url
);
return
;
...
...
pages/orderStatus/orderStatus.vue
View file @
d1c918da
...
...
@@ -19,7 +19,7 @@
<view
class=
"course_content"
>
<view
class=
"tag"
>
<h4>
精品课程
</h4>
<view
v-if=
"this.
userId != ''
"
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
<view
v-if=
"this.
isRedirect == 1
"
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
</view>
<courselist
:tagIds=
"[1111]"
:onlyShowList=
"0"
></courselist>
</view>
...
...
@@ -37,7 +37,8 @@
fileId
:
''
,
orderId
:
''
,
orderStatus
:
'2'
,
userId
:
''
userId
:
''
,
isRedirect
:
''
};
},
methods
:{
...
...
@@ -70,6 +71,7 @@
this
.
userId
=
options
.
userId
;
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
)
};
this
.
isRedirect
=
option
.
isRedirect
this
.
orderId
=
options
.
orderId
;
this
.
orderStatus
=
options
.
orderStatus
;
this
.
fileId
=
options
.
fileId
;
...
...
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