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
013fe8df
Commit
013fe8df
authored
Dec 01, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的分享
parent
54647312
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
7 deletions
+29
-7
pages/courseDetail/courseDetail.vue
+1
-1
pages/myShare/myShare.vue
+25
-4
pages/orderStatus/orderStatus.vue
+3
-2
No files found.
pages/courseDetail/courseDetail.vue
View file @
013fe8df
...
...
@@ -322,7 +322,7 @@
onReady
(){
this
.
videoContext
=
uni
.
createVideoContext
(
'myVideo'
);
},
destroyed
()
{
onUnload
()
{
if
(
this
.
timer
){
clearInterval
(
this
.
timer
)
}
...
...
pages/myShare/myShare.vue
View file @
013fe8df
...
...
@@ -78,14 +78,23 @@
return
{
queryDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
maxDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
userId
:
'1'
,
coursesCountInfos
:{},
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
coursesCountInfos
:
{
shareFrequencyMonth
:
0
,
integralMonth
:
0
,
shareSectionMonth
:
0
,
shareFrequencyCount
:
0
,
integralCount
:
0
,
shareSectionCount
:
0
},
userShareCourses
:[]
}
},
methods
:
{
bindDateChange
:
function
(
e
)
{
this
.
queryDate
=
e
.
detail
.
value
this
.
queryDate
=
e
.
detail
.
value
;
this
.
userShareCount
();
this
.
userShareQuery
();
},
userShareCount
(){
const
params
=
{
...
...
@@ -95,7 +104,17 @@
api
.
userShareCount
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
coursesCountInfos
=
res
[
'data'
];
this
.
coursesCountInfos
=
res
[
'data'
]
?
res
[
'data'
]
:
this
.
coursesCountInfos
;
}
else
{
this
.
coursesCountInfos
=
{
shareFrequencyMonth
:
0
,
integralMonth
:
0
,
shareSectionMonth
:
0
,
shareFrequencyCount
:
0
,
integralCount
:
0
,
shareSectionCount
:
0
};
console
.
log
(
this
.
coursesCountInfos
)
}
})
},
...
...
@@ -109,6 +128,8 @@
console
.
log
(
res
)
if
(
res
[
'success'
]){
this
.
userShareCourses
=
res
[
'data'
][
'userShareCourses'
];
}
else
{
this
.
userShareCourses
=
[];
}
})
},
...
...
pages/orderStatus/orderStatus.vue
View file @
013fe8df
<
template
>
<view
class=
"container"
>
<view
class=
"statusBox"
>
<view
class=
"successBox"
v-if=
"orderStatus==
=
'1'"
>
<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'"
>
<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>
...
...
@@ -66,6 +66,7 @@
this
.
orderId
=
options
.
orderId
;
this
.
orderStatus
=
options
.
orderStatus
;
this
.
fileId
=
options
.
fileId
;
console
.
log
(
this
.
orderStatus
)
}
}
</
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