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
c02d2be1
Commit
c02d2be1
authored
Nov 23, 2022
by
kyle
Browse files
Options
Browse Files
Download
Plain Diff
退课
parents
68c1b84a
39cc23ed
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
267 additions
and
3 deletions
+267
-3
api/api.ts
+4
-0
pages.json
+17
-0
pages/certifyDetail/certifyDetail.vue
+1
-1
pages/courseDetail/courseDetail.vue
+1
-1
pages/dropLists/dropLists.vue
+90
-0
pages/orderStatus/orderStatus.vue
+148
-0
pages/pointsExchange/pointsExchange.vue
+6
-1
No files found.
api/api.ts
View file @
c02d2be1
...
@@ -216,5 +216,9 @@ export default {
...
@@ -216,5 +216,9 @@ export default {
// 教育等级查询
// 教育等级查询
educationLevelQuery
()
{
educationLevelQuery
()
{
return
request
(
`
${
apiURL
}
/metadata/educationLevelQuery`
,
"GET"
)
return
request
(
`
${
apiURL
}
/metadata/educationLevelQuery`
,
"GET"
)
},
// 退课列表
queryDropCourseList
(
params
){
return
request
(
`
${
cffpURL
}
/course/queryDropCourseList`
,
"POST"
,
params
)
}
}
}
}
pages.json
View file @
c02d2be1
...
@@ -337,9 +337,26 @@
...
@@ -337,9 +337,26 @@
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
"path"
:
"pages/orderStatus/orderStatus"
,
"style"
:
{
"navigationBarTitleText"
:
"订单支付"
,
"enablePullDownRefresh"
:
false
}
}
}
,{
"path"
:
"pages/dropLists/dropLists"
,
"style"
:
{
"navigationBarTitleText"
:
"已退课"
,
"enablePullDownRefresh"
:
false
}
}
],
],
//
"tabBar"
:
{
//
"tabBar"
:
{
//
"color"
:
"#7A7E83"
,
//
tab
上的文字默认颜色
//
"color"
:
"#7A7E83"
,
//
tab
上的文字默认颜色
...
...
pages/certifyDetail/certifyDetail.vue
View file @
c02d2be1
...
@@ -104,7 +104,7 @@
...
@@ -104,7 +104,7 @@
},
},
registerNow
(){
registerNow
(){
const
param
=
{
const
param
=
{
productType
:
this
.
certificateInfo
.
fileType
,
productType
:
'1'
,
productId
:
this
.
certificateInfo
.
fileId
,
productId
:
this
.
certificateInfo
.
fileId
,
userId
:
this
.
userId
,
userId
:
this
.
userId
,
dataSource
:
1
dataSource
:
1
...
...
pages/courseDetail/courseDetail.vue
View file @
c02d2be1
...
@@ -126,7 +126,7 @@
...
@@ -126,7 +126,7 @@
})
})
}
else
{
}
else
{
const
param
=
{
const
param
=
{
productType
:
this
.
courseInfo
.
fileType
,
productType
:
'1'
,
productId
:
this
.
courseInfo
.
fileId
,
productId
:
this
.
courseInfo
.
fileId
,
userId
:
this
.
userId
,
userId
:
this
.
userId
,
shareUserId
:
this
.
shareUserId
,
shareUserId
:
this
.
shareUserId
,
...
...
pages/dropLists/dropLists.vue
0 → 100644
View file @
c02d2be1
<
template
>
<view
class=
"container"
>
<view
class=
"dropItem"
v-for=
"item in dropLists"
>
<view
class=
"ulBox"
>
<text>
订单编号:
</text>
<text>
{{
item
.
orderNo
}}
</text>
</view>
<view
class=
"ulBox"
>
<text>
课程名称:
</text>
<text>
{{
item
.
itemName
}}
</text>
</view>
<view
class=
"ulBox"
>
<text>
课程状态:
</text>
<text
@
click=
"viewDetail(item)"
class=
"dropStatus"
>
{{
item
.
orderStatus
}}
<i
class=
"iconfont icon-youjiantou"
style=
"margin-left: 5rpx;font-size: 26rpx;"
></i></text>
</view>
<view
class=
"ulBox"
>
<text>
退课积分:
</text>
<text>
{{
Math
.
abs
(
item
.
commissionAmount
)
}}
</text>
</view>
<view
class=
"ulBox"
>
<text>
退课时间:
</text>
<text>
{{
item
.
refundTime
}}
</text>
</view>
</view>
</view>
</
template
>
<
script
>
import
api
from
"@/api/api"
;
export
default
{
data
()
{
return
{
userId
:
'1'
,
dropLists
:[]
}
},
methods
:
{
viewDetail
(
item
){
uni
.
navigateTo
({
url
:
`/pages/orderDetail/orderDetail?id=
${
item
.
orderId
}
&type=drop`
})
},
queryDropCourseList
(){
api
.
queryDropCourseList
({
userId
:
this
.
userId
}).
then
(
res
=>
{
if
(
res
[
'success'
]){
this
.
dropLists
=
res
[
'data'
][
'dropCourseListDtos'
]
}
})
}
},
onLoad
()
{
this
.
queryDropCourseList
();
}
}
</
script
>
<
style
lang=
"scss"
>
.container
{
height
:
100%
;
margin-bottom
:
20
rpx
;
.dropItem{
background-color
:
#fff
;
border-radius
:
20
rpx
;
padding
:
10
rpx
40
rpx
;
font-size
:
28
rpx
;
margin
:
20
rpx
;
.ulBox{
margin-bottom
:
20
rpx
;
position
:
relative
;
display
:
flex
;
justify-content
:
space-between
;
&:first-child{
&::before{
content
:
''
;
position
:
absolute
;
left
:
-30
rpx
;
top
:
20%
;
width
:
8
rpx
;
height
:
70%
;
border-radius
:
20
rpx
;
background-color
:
#F04604
;
}
}
.dropStatus
{
color
:
#20279B
;
}
}
}
}
</
style
>
pages/orderStatus/orderStatus.vue
0 → 100644
View file @
c02d2be1
<
template
>
<view
class=
"container"
>
<view
class=
"statusBox"
>
<view
class=
"successBox"
v-if=
"orderStatus==='1'"
>
<i
class=
"iconfont icon-dengdai"
></i>
<text
class=
"statusText"
>
订单支付成功
</text>
<text
@
click=
"viewDetail()"
class=
"viewOrder"
>
查看订单 >
</text>
</view>
<view
class=
"failBox"
v-if=
"orderStatus!=='1'"
>
<text
style=
"color:#F04604"
><i
class=
"iconfont icon-guanbi"
></i>
订单支付失败
</text>
<view
class=
"optionBox"
>
<text
@
click=
"cancelOrder()"
>
取消订单
</text>
<text
@
click=
"continuePay()"
>
继续支付
</text>
</view>
</view>
</view>
<!-- 精选课程 -->
<view
class=
"courlistBox"
>
<view
class=
"course_content"
>
<view
class=
"tag"
>
<h4>
精品课程
</h4>
<view
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
</view>
<courselist
:tagIds=
"[1111]"
:onlyShowList=
"0"
></courselist>
</view>
</view>
</view>
</
template
>
<
script
>
import
courselist
from
'@/pages/courselist/courselist.vue'
;
import
api
from
"@/api/api"
;
export
default
{
components
:{
courselist
},
data
()
{
return
{
fileId
:
''
,
orderId
:
''
,
orderStatus
:
'2'
};
},
methods
:{
viewDetail
(){
// 查看详情
uni
.
navigateTo
({
url
:
`/pages/orderDetail/orderDetail?id=
${
this
.
orderId
}
`
})
},
goToCourselist
(){
uni
.
navigateTo
({
url
:
'../../pages/courselist/courselist'
})
},
continuePay
(){
uni
.
navigateTo
({
url
:
`/pages/orderConfirm/orderConfirm?fileId=
${
this
.
fileId
}
&orderId=
${
this
.
orderId
}
`
})
},
cancelOrder
(){
uni
.
navigateTo
({
url
:
'/pages/index/index'
})
}
}
}
</
script
>
<
style
lang=
"scss"
>
.statusBox
{
padding
:
30
rpx
0
;
background-color
:
#fff
;
margin-bottom
:
10
rpx
;
.successBox{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.statusText{
color
:
#20279B
;
font-size
:
36
rpx
;
}
.viewOrder
{
color
:
#666666
;
font-size
:
30
rpx
;
margin-top
:
30
rpx
;
}
.iconfont
{
margin-bottom
:
30
rpx
;
font-size
:
100
rpx
;
color
:
#20279B
;
}
}
.failBox
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
.iconfont{
border
:
1px
solid
#F15A1F
;
padding
:
12
rpx
;
border-radius
:
50%
;
margin-right
:
20
rpx
;
}
.optionBox
{
display
:
flex
;
justify-content
:
center
;
margin-top
:
60
rpx
;
text{
border-radius
:
40
rpx
;
background-color
:
#20279B
;
color
:
#fff
;
font-size
:
30
rpx
;
padding
:
10
rpx
50
rpx
;
margin-right
:
20
rpx
;
&:first-child{
background-color
:
transparent
;
color
:
#20279B
;
border
:
1px
solid
#20279B
;
}
}
}
}
}
.course_content
{
background
:
#fff
;
position
:
relative
;
padding
:
0
30
rpx
100
rpx
30
rpx
;
.tag{
padding
:
20
rpx
;
display
:
flex
;
justify-content
:
space-between
;
h4{
margin-left
:
20
rpx
;
}
}
.tag
:before
{
position
:
absolute
;
left
:
20
rpx
;
top
:
20
rpx
;
display
:
inline-block
;
content
:
''
;
width
:
2px
;
height
:
16px
;
background-color
:
#F15A1F
;
border-radius
:
2px
;
}
}
</
style
>
pages/pointsExchange/pointsExchange.vue
View file @
c02d2be1
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
</view>
</view>
<view
class=
"item"
>
<view
class=
"item"
>
<text>
E.已退课
</text>
<text>
E.已退课
</text>
<text
>
{{
returnFortune
?
returnFortune
:
0
}}
积分
</text>
<text
@
click=
"viewDropLists()"
>
{{
returnFortune
?
returnFortune
:
0
}}
积分
<i
class=
"iconfont icon-youjiantou"
style=
"margin-right: 10rpx;"
></i>
</text>
</view>
</view>
</view>
</view>
<view
class=
"total"
>
<view
class=
"total"
>
...
@@ -90,6 +90,11 @@
...
@@ -90,6 +90,11 @@
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/exchangeRecord/exchangeRecord'
url
:
'/pages/exchangeRecord/exchangeRecord'
})
})
},
viewDropLists
(){
uni
.
navigateTo
({
url
:
'/pages/dropLists/dropLists'
})
}
}
}
}
}
}
...
...
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