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
bc02e096
Commit
bc02e096
authored
Nov 19, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口对接
parent
0951c511
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
239 additions
and
132 deletions
+239
-132
App.vue
+33
-64
api/api.ts
+20
-0
components/courseItem/courseItem.vue
+24
-1
components/listItem/listItem.vue
+1
-2
components/login/login.vue
+3
-0
manifest.json
+10
-10
pages.json
+7
-0
pages/applyDropClass/applyDropClass.vue
+19
-0
pages/commonDetail/commonDetail.vue
+63
-21
pages/myShare/myShare.vue
+22
-21
pages/orderDetail/orderDetail.vue
+23
-3
pages/personalCenter/personalCenter.vue
+5
-1
pages/saleCourseLists/saleCourseLists.vue
+9
-9
No files found.
App.vue
View file @
bc02e096
...
@@ -3,70 +3,39 @@
...
@@ -3,70 +3,39 @@
export
default
{
export
default
{
onLaunch
:
function
()
{
onLaunch
:
function
()
{
console
.
log
(
'App Launch'
);
console
.
log
(
'App Launch'
);
uni
.
downloadFile
({
uni
.
getSystemInfo
({
url
:
'/cffpUpdate/__UNI__65C4CDC.wgt'
,
success
:(
systemInfo
)
=>
{
success
:
(
downloadResult
)
=>
{
uni
.
request
({
if
(
downloadResult
.
statusCode
===
200
)
{
url
:
'/api/appVersion/checkIsUpdate'
,
plus
.
runtime
.
install
(
downloadResult
.
tempFilePath
,
{
method
:
'POST'
,
force
:
false
data
:
{
},
function
()
{
appType
:
1
,
console
.
log
(
'install success...'
);
version
:
systemInfo
.
appVersion
,
plus
.
runtime
.
restart
();
systemType
:
systemInfo
.
osName
===
'android'
?
1
:
2
},
function
(
e
)
{
},
console
.
error
(
'install fail...'
);
success
:
(
result
)
=>
{
});
const
data
=
result
.
data
.
data
[
'appVersionInfo'
];
}
if
(
data
.
isForceUpdate
&&
data
.
wgtUrl
)
{
}
,
uni
.
downloadFile
({
fail
(
e
)
{
url
:
data
.
wgtUrl
,
console
.
log
(
e
)
success
:
(
downloadResult
)
=>
{
}
if
(
downloadResult
.
statusCode
===
200
)
{
});
plus
.
runtime
.
install
(
downloadResult
.
tempFilePath
,
{
// #ifdef APP-PLUS
force
:
false
plus
.
runtime
.
getProperty
(
plus
.
runtime
.
appid
,
function
(
widgetInfo
)
{
},
function
()
{
uni
.
downloadFile
({
console
.
log
(
'install success...'
);
url
:
'https://mdev.zuihuibi.cn/cffpUpdate/__UNI__65C4CDC.wgt'
,
plus
.
runtime
.
restart
();
success
:
(
downloadResult
)
=>
{
},
function
(
e
)
{
if
(
downloadResult
.
statusCode
===
200
)
{
console
.
error
(
'install fail...'
);
plus
.
runtime
.
install
(
downloadResult
.
tempFilePath
,
{
});
force
:
false
}
},
function
()
{
}
console
.
log
(
'install success...'
);
});
plus
.
runtime
.
restart
();
}
},
function
(
e
)
{
}
console
.
error
(
'install fail...'
);
});
});
}
}
})
}
});
// uni.request({
// url: 'http://www.example.com/update/',
// data: {
// version: widgetInfo.version,
// name: widgetInfo.name
// },
// success: (result) => {
// var data = result.data;
// if (data.update && data.wgtUrl) {
// uni.downloadFile({
// url: data.wgtUrl,
// success: (downloadResult) => {
// if (downloadResult.statusCode === 200) {
// plus.runtime.install(downloadResult.tempFilePath, {
// force: false
// }, function() {
// console.log('install success...');
// plus.runtime.restart();
// }, function(e) {
// console.error('install fail...');
// });
// }
// }
// });
// }
// }
// });
});
// #endif
initApp
()
initApp
()
},
},
onShow
:
function
()
{
onShow
:
function
()
{
...
...
api/api.ts
View file @
bc02e096
...
@@ -168,6 +168,26 @@ export default {
...
@@ -168,6 +168,26 @@ export default {
// 支付宝支付
// 支付宝支付
aliAppPay
(
params
){
aliAppPay
(
params
){
return
request
(
`
${
apiURL
}
/aliPay/aliAppPay`
,
"POST"
,
params
)
return
request
(
`
${
apiURL
}
/aliPay/aliAppPay`
,
"POST"
,
params
)
},
// 分享链接列表
userShareLinkList
(
params
){
return
request
(
`
${
cffpURL
}
/share/userShareLinkList`
,
"POST"
,
params
)
},
// 分享阅读列表
userShareReadList
(
params
){
return
request
(
`
${
cffpURL
}
/share/userShareReadList`
,
"POST"
,
params
)
},
// 分享购买列表
userShareBuyList
(
params
){
return
request
(
`
${
cffpURL
}
/share/userShareBuyList`
,
"POST"
,
params
)
},
// 我的分享统计
userShareCount
(
params
){
return
request
(
`
${
cffpURL
}
/share/userShareCount`
,
"POST"
,
params
)
},
// 退课明细
userRefundCourseDtl
(
params
){
return
request
(
`
${
cffpURL
}
/course /userRefundCourseDtl`
,
"POST"
,
params
)
}
}
}
}
components/courseItem/courseItem.vue
View file @
bc02e096
...
@@ -4,7 +4,10 @@
...
@@ -4,7 +4,10 @@
<image
:src=
"thumbnailPath"
alt=
""
mode=
"widthFix"
></image>
<image
:src=
"thumbnailPath"
alt=
""
mode=
"widthFix"
></image>
</view>
</view>
<view
class=
"courseDetailBox"
>
<view
class=
"courseDetailBox"
>
<h4>
{{
title
}}
</h4>
<view
class=
"title"
>
<h4>
{{
title
}}
</h4>
<text
class=
"detailBtn"
@
click=
"viewDetail()"
v-if=
"isNeedViewDetail"
>
订单详情>
</text>
</view>
<view
class=
"summaryBox"
v-if=
"summaryBox"
>
<view
class=
"summaryBox"
v-if=
"summaryBox"
>
<text>
{{
summaryBox
}}
</text>
<text>
{{
summaryBox
}}
</text>
</view>
</view>
...
@@ -37,6 +40,12 @@
...
@@ -37,6 +40,12 @@
},
},
dataList
:{
dataList
:{
type
:
Object
type
:
Object
},
isNeedViewDetail
:{
type
:
Boolean
},
orderId
:{
type
:
String
}
}
},
},
...
@@ -56,6 +65,11 @@
...
@@ -56,6 +65,11 @@
}
else
{
}
else
{
return
[].
concat
(
v2
,
v1
)
return
[].
concat
(
v2
,
v1
)
}
}
},
viewDetail
(){
uni
.
navigateTo
({
url
:
`/pages/orderDetail/orderDetail?id=
${
this
.
orderId
}
&type=drop`
})
}
}
}
}
}
}
...
@@ -76,6 +90,15 @@
...
@@ -76,6 +90,15 @@
.courseDetailBox
{
.courseDetailBox
{
width
:
100%
;
width
:
100%
;
color
:
#333
;
color
:
#333
;
.title{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
.detailBtn{
font-size
:
24
rpx
;
color
:
#4A4A4A
;
}
}
h4
{
h4
{
font-size
:
32
rpx
;
font-size
:
32
rpx
;
}
}
...
...
components/listItem/listItem.vue
View file @
bc02e096
...
@@ -32,7 +32,7 @@
...
@@ -32,7 +32,7 @@
};
};
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
title
,
this
.
lists
)
console
.
log
(
this
.
lists
)
},
},
onLoad
()
{
onLoad
()
{
...
@@ -40,7 +40,6 @@
...
@@ -40,7 +40,6 @@
methods
:{
methods
:{
link
(
val
){
link
(
val
){
if
(
val
){
if
(
val
){
console
.
log
(
val
)
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
val
url
:
val
})
})
...
...
components/login/login.vue
View file @
bc02e096
...
@@ -315,6 +315,9 @@
...
@@ -315,6 +315,9 @@
},
},
mounted
()
{
mounted
()
{
this
.
checkToken
();
this
.
checkToken
();
},
destroyed
()
{
uni
.
hideToast
();
}
}
}
}
</
script
>
</
script
>
...
...
manifest.json
View file @
bc02e096
...
@@ -128,16 +128,16 @@
...
@@ -128,16 +128,16 @@
},
},
"devServer"
:
{
"devServer"
:
{
"proxy"
:
{
"proxy"
:
{
"/api"
:
{
"/api"
:
{
"port"
:
3000
,
//
端口号
"port"
:
3000
,
//
端口号
"target"
:
"https://mdev.zuihuibi.cn"
,
//请求的目标域名
"target"
:
"https://mdev.zuihuibi.cn"
,
//请求的目标域名
"changeOrigin"
:
true
,
//是否跨域
"changeOrigin"
:
true
,
//是否跨域
"secure"
:
false
,
//设置支持https协议的代理
"secure"
:
false
,
//设置支持https协议的代理
"logLevel"
:
"debug"
,
"logLevel"
:
"debug"
,
"pathRewrite"
:
{
"pathRewrite"
:
{
"^/api"
:
""
"^/api"
:
""
}
}
}
}
}
}
}
}
}
}
...
...
pages.json
View file @
bc02e096
...
@@ -245,6 +245,13 @@
...
@@ -245,6 +245,13 @@
"navigationBarTitleText"
:
"纳税规则"
,
"navigationBarTitleText"
:
"纳税规则"
,
"enablePullDownRefresh"
:
false
"enablePullDownRefresh"
:
false
}
}
},{
"path"
:
"pages/applyDropClass/applyDropClass"
,
"style"
:
{
"navigationBarTitleText"
:
"申请退课"
,
"enablePullDownRefresh"
:
false
}
}
}
],
],
//
"tabBar"
:
{
//
"tabBar"
:
{
...
...
pages/applyDropClass/applyDropClass.vue
0 → 100644
View file @
bc02e096
<
template
>
<view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
};
}
}
</
script
>
<
style
lang=
"scss"
>
</
style
>
pages/commonDetail/commonDetail.vue
View file @
bc02e096
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<
script
>
<
script
>
import
listItem
from
"@/components/listItem/listItem.vue"
;
import
listItem
from
"@/components/listItem/listItem.vue"
;
import
api
from
"@/api/api"
;
export
default
{
export
default
{
components
:{
components
:{
listItem
listItem
...
@@ -19,13 +20,36 @@
...
@@ -19,13 +20,36 @@
lists
:[],
lists
:[],
fileId
:
''
,
fileId
:
''
,
type
:
'1'
,
type
:
'1'
,
userId
:
'1'
}
}
},
},
methods
:
{
methods
:
{
queryLists
(
obj
){
const
params
=
{
userId
:
this
.
userId
,
fileId
:
this
.
fileId
}
api
[
obj
.
req
](
params
).
then
(
res
=>
{
if
(
res
[
'success'
]){
const
r
=
res
[
'data'
][
obj
.
result
];
if
(
r
&&
r
.
length
>
0
){
for
(
let
i
=
0
;
i
<
r
.
length
;
i
++
){
this
.
lists
.
push
({
id
:
r
[
i
][
obj
.
id
],
children
:
JSON
.
parse
(
JSON
.
stringify
(
obj
.
children
))});
for
(
let
m
=
0
;
m
<
this
.
lists
[
i
][
'children'
].
length
;
m
++
){
this
.
lists
[
i
][
'children'
][
m
][
'value'
]
=
r
[
i
][
this
.
lists
[
i
][
'children'
][
m
][
'alias'
]]
?
r
[
i
][
this
.
lists
[
i
][
'children'
][
m
][
'alias'
]]
:
this
.
lists
[
i
][
'children'
][
m
][
'value'
];
if
(
this
.
lists
[
i
][
'children'
][
m
].
needParam
){
this
.
lists
[
i
][
'children'
][
m
][
'link'
]
+=
r
[
i
][
obj
.
id
]
}
}
}
}
}
else
{
this
.
lists
=
[]
}
})
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
console
.
log
(
option
)
this
.
fileId
=
option
.
fileId
;
this
.
fileId
=
option
.
fileId
;
// type 1为分享明细 2阅读明细 3购买明细
// type 1为分享明细 2阅读明细 3购买明细
this
.
type
=
option
.
type
;
this
.
type
=
option
.
type
;
...
@@ -38,13 +62,18 @@
...
@@ -38,13 +62,18 @@
{
no
:
2
,
name
:
'分享链接'
,
width
:
'35%'
},
{
no
:
2
,
name
:
'分享链接'
,
width
:
'35%'
},
{
no
:
3
,
name
:
'阅读明细'
,
width
:
'25%'
},
{
no
:
3
,
name
:
'阅读明细'
,
width
:
'25%'
},
];
];
this
.
lists
=
[
this
.
queryLists
(
{
id
:
1
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'40%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'35%'
},{
no
:
3
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=2`
,
width
:
'25%'
}]},
{
{
id
:
2
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'40%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'35%'
},{
no
:
3
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=2`
,
width
:
'25%'
}]},
req
:
'userShareLinkList'
,
{
id
:
3
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'40%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'35%'
},{
no
:
3
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=2`
,
width
:
'25%'
}]},
result
:
'userShareLinks'
,
{
id
:
4
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'40%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'35%'
},{
no
:
3
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=2`
,
width
:
'25%'
}]},
id
:
'shareId'
,
{
id
:
5
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'40%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'35%'
},{
no
:
3
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=2`
,
width
:
'25%'
}]},
children
:[
]
{
no
:
1
,
name
:
'分享时间'
,
width
:
'40%'
,
value
:
''
,
link
:
null
,
alias
:
'shareDate'
},
{
no
:
2
,
name
:
'分享链接'
,
width
:
'35%'
,
value
:
''
,
link
:
null
,
alias
:
'shareUrl'
},
{
no
:
3
,
name
:
'阅读明细'
,
width
:
'25%'
,
value
:
'阅读明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=2`
},
]
}
);
}
else
if
(
this
.
type
==
'2'
){
}
else
if
(
this
.
type
==
'2'
){
this
.
title
=
[
this
.
title
=
[
{
no
:
1
,
name
:
'用户'
,
width
:
'20%'
},
{
no
:
1
,
name
:
'用户'
,
width
:
'20%'
},
...
@@ -52,24 +81,37 @@
...
@@ -52,24 +81,37 @@
{
no
:
3
,
name
:
'阅读时间'
,
width
:
'25%'
},
{
no
:
3
,
name
:
'阅读时间'
,
width
:
'25%'
},
{
no
:
4
,
name
:
'购买明细'
,
width
:
'25%'
}
{
no
:
4
,
name
:
'购买明细'
,
width
:
'25%'
}
];
];
this
.
lists
=
[
this
.
queryLists
(
{
id
:
1
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'20%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'30%'
},{
no
:
3
,
value
:
'2022-10-12'
,
link
:
''
,
width
:
'25%'
},{
no
:
4
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=3`
,
width
:
'25%'
}]},
{
{
id
:
2
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'20%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'30%'
},{
no
:
3
,
value
:
'2022-10-12'
,
link
:
''
,
width
:
'25%'
},{
no
:
4
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=3`
,
width
:
'25%'
}]},
req
:
'userShareReadList'
,
{
id
:
3
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'20%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'30%'
},{
no
:
3
,
value
:
'2022-10-12'
,
link
:
''
,
width
:
'25%'
},{
no
:
4
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=3`
,
width
:
'25%'
}]},
result
:
'userShareReads'
,
{
id
:
4
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'20%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'30%'
},{
no
:
3
,
value
:
'2022-10-12'
,
link
:
''
,
width
:
'25%'
},{
no
:
4
,
value
:
'查看明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=3`
,
width
:
'25%'
}]},
id
:
'readId'
,
]
children
:[
{
no
:
1
,
name
:
'用户'
,
width
:
'20%'
,
value
:
''
,
link
:
null
,
alias
:
'readName'
},
{
no
:
2
,
name
:
'阅读链接'
,
width
:
'30%'
,
value
:
''
,
link
:
null
,
alias
:
'readUrl'
},
{
no
:
3
,
name
:
'阅读时间'
,
width
:
'25%'
,
value
:
''
,
link
:
null
,
alias
:
'readDate'
},
{
no
:
3
,
name
:
'购买明细'
,
width
:
'25%'
,
value
:
'购买明细'
,
link
:
`/pages/commonDetail/commonDetail?fileId=
${
this
.
fileId
}
&type=3`
},
]
}
);
}
else
if
(
this
.
type
==
'3'
){
}
else
if
(
this
.
type
==
'3'
){
this
.
title
=
[
this
.
title
=
[
{
no
:
1
,
name
:
'用户'
,
width
:
'30%'
},
{
no
:
1
,
name
:
'用户'
,
width
:
'30%'
},
{
no
:
2
,
name
:
'阅读链接'
,
width
:
'30%'
},
{
no
:
2
,
name
:
'阅读链接'
,
width
:
'30%'
},
{
no
:
3
,
name
:
'购买订单'
,
width
:
'40%'
},
{
no
:
3
,
name
:
'购买订单'
,
width
:
'40%'
},
];
];
this
.
lists
=
[
this
.
queryLists
(
{
id
:
1
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'30%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'30%'
},{
no
:
4
,
value
:
'查看明细'
,
link
:
`/pages/orderDetail/orderDetail?id=1`
,
width
:
'40%'
}]},
{
{
id
:
2
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'30%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'30%'
},{
no
:
4
,
value
:
'查看明细'
,
link
:
`/pages/orderDetail/orderDetail?id=1`
,
width
:
'40%'
}]},
req
:
'userShareBuyList'
,
{
id
:
3
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'30%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'30%'
},{
no
:
4
,
value
:
'查看明细'
,
link
:
`/pages/orderDetail/orderDetail?id=1`
,
width
:
'40%'
}]},
result
:
'userShareLinks'
,
{
id
:
4
,
children
:[{
no
:
1
,
value
:
'XXXXX'
,
link
:
''
,
width
:
'30%'
},{
no
:
2
,
value
:
'https://mdev.zuihuibi.cn/cffp/pages/commonDetail/commonDetail'
,
link
:
''
,
width
:
'30%'
},{
no
:
4
,
value
:
'查看明细'
,
link
:
`/pages/orderDetail/orderDetail?id=1`
,
width
:
'40%'
}]},
id
:
'orderId'
,
]
children
:[
{
no
:
1
,
name
:
'用户'
,
width
:
'30%'
,
value
:
''
,
link
:
null
,
alias
:
'buyName'
},
{
no
:
2
,
name
:
'阅读链接'
,
width
:
'30%'
,
value
:
''
,
link
:
null
,
alias
:
'buyUrl'
},
{
no
:
3
,
name
:
'购买订单'
,
width
:
'40%'
,
value
:
''
,
link
:
`/pages/orderDetail/orderDetail?id=`
,
alias
:
'orderNo'
,
needParam
:
true
},
]
}
);
}
}
}
}
}
}
...
...
pages/myShare/myShare.vue
View file @
bc02e096
...
@@ -78,39 +78,39 @@
...
@@ -78,39 +78,39 @@
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
:
null
,
userId
:
'1'
,
coursesCountInfos
:{},
coursesCountInfos
:{},
userShareCourse
:[]
userShareCourse
s
:[]
}
}
},
},
methods
:
{
methods
:
{
bindDateChange
:
function
(
e
)
{
bindDateChange
:
function
(
e
)
{
this
.
queryDate
=
e
.
detail
.
value
this
.
queryDate
=
e
.
detail
.
value
},
},
userShare
Query
(){
userShare
Count
(){
const
params
=
{
const
params
=
{
userId
:
this
.
userId
,
userId
:
this
.
userId
,
queryDate
:
this
.
queryDate
queryDate
:
this
.
queryDate
}
}
this
.
coursesCountInfos
=
{
api
.
userShareCount
(
params
).
then
(
res
=>
{
shareFrequencyMonth
:
'XXX'
,
console
.
log
(
res
)
integralMonth
:
'XXX'
,
if
(
res
[
'success'
]){
shareSectionMonth
:
'XXX'
,
this
.
coursesCountInfos
=
res
[
'data'
];
shareFrequencyCount
:
'XXX'
,
}
integralCount
:
'XXX'
,
})
shareSectionCount
:
'XXX'
},
userShareQuery
(){
const
params
=
{
userId
:
this
.
userId
,
queryDate
:
this
.
queryDate
}
}
this
.
userShareCourses
=
[
{
fileId
:
1
,
fileTitle
:
'11111'
,
fileLecturerName
:
'sssss'
,
fileLecturerRanks
:
'nnnnnn'
,
coursePrice
:
'12312'
,
salesNumber
:
123
,
shareDate
:
'2022-11-11 17:33'
,
shareCount
:
123
,
readCount
:
111
,
buyCount
:
111
}
]
console
.
log
(
this
.
userShareCourses
)
console
.
log
(
this
.
userShareCourses
)
// api.userShareQuery(params).then(res=>{
api
.
userShareQuery
(
params
).
then
(
res
=>
{
// console.log(res)
console
.
log
(
res
)
// if(res['success']){
if
(
res
[
'success'
]){
// this.coursesCountInfos = res['data']['coursesCountInfos'];
this
.
userShareCourses
=
res
[
'data'
][
'userShareCourses'
];
// this.userShareCourses = res['data']['userShareCourses'];
}
// }
})
// })
},
},
// 查看详情
// 查看详情
goDetail
(
val
){
goDetail
(
val
){
...
@@ -126,7 +126,8 @@
...
@@ -126,7 +126,8 @@
}
}
},
},
onLoad
()
{
onLoad
()
{
this
.
userShareQuery
()
this
.
userShareCount
();
this
.
userShareQuery
();
},
},
mounted
()
{
mounted
()
{
...
...
pages/orderDetail/orderDetail.vue
View file @
bc02e096
...
@@ -4,15 +4,19 @@
...
@@ -4,15 +4,19 @@
<view
class=
"ulBox"
>
<view
class=
"ulBox"
>
<view
v-for=
"item in orderInfoList.filter(item=>item.pageArea===1)"
:key=
"item.id"
class=
"liBox"
>
<view
v-for=
"item in orderInfoList.filter(item=>item.pageArea===1)"
:key=
"item.id"
class=
"liBox"
>
<text>
{{
item
.
name
}}
:
</text>
<text>
{{
item
.
name
}}
:
</text>
<text
:style=
"
{color:item.color ? item.color : '#666'}">
{{
item
.
value
}}
</text>
<text
:style=
"
{color:item.color ? item.color : '#666'}">
{{
item
.
type
===
'currency'
&&
item
.
value
?
'¥'
:
''
}}{{
item
.
value
?
item
.
value
:
'/'
}}
</text>
</view>
</view>
</view>
</view>
<view
class=
"ulBox"
>
<view
class=
"ulBox"
>
<view
v-for=
"item in orderInfoList.filter(item=>item.pageArea===2)"
:key=
"item.id"
class=
"liBox"
>
<view
v-for=
"item in orderInfoList.filter(item=>item.pageArea===2)"
:key=
"item.id"
class=
"liBox"
>
<text>
{{
item
.
name
}}
:
</text>
<text>
{{
item
.
name
}}
:
</text>
<text
:style=
"
{color:item.color ? item.color : '#666'}">
{{
item
.
value
}}
</text>
<text
:style=
"
{color:item.color ? item.color : '#666'}">
{{
item
.
type
===
'currency'
&&
item
.
value
?
'¥'
:
''
}}{{
item
.
value
?
item
.
value
:
'/'
}}
</text>
</view>
</view>
</view>
</view>
<!-- 退课 -->
<view
class=
"dropClassBox"
v-if=
"type=='drop'"
>
<view
class=
"dropBtn"
>
退课
</view>
</view>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -35,11 +39,12 @@
...
@@ -35,11 +39,12 @@
{
id
:
7
,
name
:
'课程现价'
,
value
:
'111111'
,
type
:
'currency'
,
alias
:
'orderPrice'
,
pageArea
:
1
},
{
id
:
7
,
name
:
'课程现价'
,
value
:
'111111'
,
type
:
'currency'
,
alias
:
'orderPrice'
,
pageArea
:
1
},
{
id
:
8
,
name
:
'积分抵扣'
,
value
:
'111111'
,
color
:
'#FA6900'
,
type
:
'currency'
,
alias
:
'integralExchange'
,
pageArea
:
1
},
{
id
:
8
,
name
:
'积分抵扣'
,
value
:
'111111'
,
color
:
'#FA6900'
,
type
:
'currency'
,
alias
:
'integralExchange'
,
pageArea
:
1
},
{
id
:
9
,
name
:
'实际支付'
,
value
:
'111111'
,
type
:
'currency'
,
alias
:
'paymentAmount'
,
pageArea
:
1
},
{
id
:
9
,
name
:
'实际支付'
,
value
:
'111111'
,
type
:
'currency'
,
alias
:
'paymentAmount'
,
pageArea
:
1
},
{
id
:
10
,
name
:
'获得积分'
,
value
:
'111111'
,
type
:
'
currency
'
,
color
:
'#F15A1F'
,
alias
:
'salesCommission'
,
pageArea
:
2
},
{
id
:
10
,
name
:
'获得积分'
,
value
:
'111111'
,
type
:
'
string
'
,
color
:
'#F15A1F'
,
alias
:
'salesCommission'
,
pageArea
:
2
},
{
id
:
11
,
name
:
'积分来源'
,
value
:
'111111'
,
type
:
'string'
,
alias
:
'commissionSource'
,
pageArea
:
2
},
{
id
:
11
,
name
:
'积分来源'
,
value
:
'111111'
,
type
:
'string'
,
alias
:
'commissionSource'
,
pageArea
:
2
},
{
id
:
12
,
name
:
'课程状态'
,
value
:
'111111'
,
type
:
'string'
,
alias
:
'courseStatusName'
,
pageArea
:
2
},
{
id
:
12
,
name
:
'课程状态'
,
value
:
'111111'
,
type
:
'string'
,
alias
:
'courseStatusName'
,
pageArea
:
2
},
{
id
:
13
,
name
:
'观看截至'
,
value
:
'111111'
,
type
:
'string'
,
alias
:
'effectiveEndDate'
,
pageArea
:
2
}
{
id
:
13
,
name
:
'观看截至'
,
value
:
'111111'
,
type
:
'string'
,
alias
:
'effectiveEndDate'
,
pageArea
:
2
}
],
],
type
:
''
};
};
},
},
methods
:{
methods
:{
...
@@ -68,6 +73,7 @@
...
@@ -68,6 +73,7 @@
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
this
.
orderId
=
option
.
id
this
.
orderId
=
option
.
id
this
.
type
=
option
.
type
}
}
}
}
...
@@ -97,6 +103,20 @@
...
@@ -97,6 +103,20 @@
}
}
}
}
.dropClassBox
{
display
:
flex
;
justify-content
:
flex-end
;
padding-right
:
20
rpx
;
margin-top
:
20
rpx
;
.dropBtn{
border-radius
:
80
rpx
;
color
:
#fff
;
background-color
:
#20269B
;
font-size
:
36
rpx
;
text-align
:
center
;
padding
:
6
rpx
50
rpx
;
}
}
}
}
}
}
</
style
>
</
style
>
pages/personalCenter/personalCenter.vue
View file @
bc02e096
...
@@ -166,7 +166,11 @@
...
@@ -166,7 +166,11 @@
api
.
queryInfo
({
userId
:
this
.
userId
}).
then
(
res
=>
{
api
.
queryInfo
({
userId
:
this
.
userId
}).
then
(
res
=>
{
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
customerBasicInfo
=
res
[
'data'
];
this
.
customerBasicInfo
=
res
[
'data'
];
console
.
log
(
res
)
}
else
{
uni
.
showToast
({
title
:
res
[
'message'
],
duration
:
2000
});
}
}
})
})
}
}
...
...
pages/saleCourseLists/saleCourseLists.vue
View file @
bc02e096
...
@@ -46,10 +46,10 @@
...
@@ -46,10 +46,10 @@
<template
v-if=
"userCourses && tabType===1"
>
<template
v-if=
"userCourses && tabType===1"
>
<view
class=
"saleOrderInfoItem"
v-for=
"item in userCourses"
:key=
"item.fileId"
>
<view
class=
"saleOrderInfoItem"
v-for=
"item in userCourses"
:key=
"item.fileId"
>
<view
class=
"courseInfoContent"
>
<view
class=
"courseInfoContent"
>
<course-item
:thumbnailPath=
"item.displayImage"
:title=
"item.fileTitle"
:summaryBox=
"item.fileSynopsis"
:dataList=
"
{coursePrice:item.coursePrice,salesNumber:item.salesNumber}" :tagList="{v1:item.fileLecturerRanks,v2:item.fileLecturerName}">
</course-item>
<course-item
:thumbnailPath=
"item.displayImage"
:title=
"item.fileTitle"
:summaryBox=
"item.fileSynopsis"
:dataList=
"
{coursePrice:item.coursePrice,salesNumber:item.salesNumber}" :tagList="{v1:item.fileLecturerRanks,v2:item.fileLecturerName}"
:isNeedViewDetail="true" :orderId="item.orderId"
>
</course-item>
</view>
</view>
<view
class=
"countsContent"
@
click=
"goDetail(item.fileId)"
>
<view
class=
"countsContent"
>
<text>
实际支付:¥
199.00
</text>
<text>
实际支付:¥
{{
item
.
paymentAmount
.
toFixed
(
2
)
}}
</text>
</view>
</view>
</view>
</view>
</
template
>
</
template
>
...
@@ -132,12 +132,12 @@
...
@@ -132,12 +132,12 @@
}
}
},
},
// 查看详情
//
//
查看详情
goDetail
(
val
){
//
goDetail(val){
uni
.
navigateTo
({
//
uni.navigateTo({
url
:
`/pages/commonDetail/commonDetail?fileId=
${
val
}
&type=1`
//
url:`/pages/commonDetail/commonDetail?fileId=${val}&type=1`
})
//
})
},
//
},
// 查看积分
// 查看积分
viewIntegral
(){
viewIntegral
(){
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
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