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
cba915a3
Commit
cba915a3
authored
Dec 01, 2022
by
kyle
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch '20221201' into dev
parents
1b9806a5
013fe8df
Hide 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 @
cba915a3
...
@@ -322,7 +322,7 @@
...
@@ -322,7 +322,7 @@
onReady
(){
onReady
(){
this
.
videoContext
=
uni
.
createVideoContext
(
'myVideo'
);
this
.
videoContext
=
uni
.
createVideoContext
(
'myVideo'
);
},
},
destroyed
()
{
onUnload
()
{
if
(
this
.
timer
){
if
(
this
.
timer
){
clearInterval
(
this
.
timer
)
clearInterval
(
this
.
timer
)
}
}
...
...
pages/myShare/myShare.vue
View file @
cba915a3
...
@@ -78,14 +78,23 @@
...
@@ -78,14 +78,23 @@
return
{
return
{
queryDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
queryDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
maxDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
maxDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
userId
:
'1'
,
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
coursesCountInfos
:{},
coursesCountInfos
:
{
shareFrequencyMonth
:
0
,
integralMonth
:
0
,
shareSectionMonth
:
0
,
shareFrequencyCount
:
0
,
integralCount
:
0
,
shareSectionCount
:
0
},
userShareCourses
:[]
userShareCourses
:[]
}
}
},
},
methods
:
{
methods
:
{
bindDateChange
:
function
(
e
)
{
bindDateChange
:
function
(
e
)
{
this
.
queryDate
=
e
.
detail
.
value
this
.
queryDate
=
e
.
detail
.
value
;
this
.
userShareCount
();
this
.
userShareQuery
();
},
},
userShareCount
(){
userShareCount
(){
const
params
=
{
const
params
=
{
...
@@ -95,7 +104,17 @@
...
@@ -95,7 +104,17 @@
api
.
userShareCount
(
params
).
then
(
res
=>
{
api
.
userShareCount
(
params
).
then
(
res
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
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 @@
...
@@ -109,6 +128,8 @@
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
userShareCourses
=
res
[
'data'
][
'userShareCourses'
];
this
.
userShareCourses
=
res
[
'data'
][
'userShareCourses'
];
}
else
{
this
.
userShareCourses
=
[];
}
}
})
})
},
},
...
...
pages/orderStatus/orderStatus.vue
View file @
cba915a3
<
template
>
<
template
>
<view
class=
"container"
>
<view
class=
"container"
>
<view
class=
"statusBox"
>
<view
class=
"statusBox"
>
<view
class=
"successBox"
v-if=
"orderStatus==
=
'1'"
>
<view
class=
"successBox"
v-if=
"orderStatus=='1'"
>
<i
class=
"iconfont icon-dengdai"
></i>
<i
class=
"iconfont icon-dengdai"
></i>
<text
class=
"statusText"
>
订单支付成功
</text>
<text
class=
"statusText"
>
订单支付成功
</text>
<text
@
click=
"viewDetail()"
class=
"viewOrder"
>
查看订单 >
</text>
<text
@
click=
"viewDetail()"
class=
"viewOrder"
>
查看订单 >
</text>
</view>
</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>
<text
style=
"color:#F04604"
><i
class=
"iconfont icon-guanbi"
></i>
订单支付失败
</text>
<view
class=
"optionBox"
>
<view
class=
"optionBox"
>
<text
@
click=
"cancelOrder()"
>
取消订单
</text>
<text
@
click=
"cancelOrder()"
>
取消订单
</text>
...
@@ -66,6 +66,7 @@
...
@@ -66,6 +66,7 @@
this
.
orderId
=
options
.
orderId
;
this
.
orderId
=
options
.
orderId
;
this
.
orderStatus
=
options
.
orderStatus
;
this
.
orderStatus
=
options
.
orderStatus
;
this
.
fileId
=
options
.
fileId
;
this
.
fileId
=
options
.
fileId
;
console
.
log
(
this
.
orderStatus
)
}
}
}
}
</
script
>
</
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