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
3d890d98
Commit
3d890d98
authored
Nov 15, 2022
by
kyle
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
销售课程
parent
9997376d
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
211 additions
and
60 deletions
+211
-60
pages.json
+9
-3
pages/index/index.vue
+1
-1
pages/myShare/myShare.vue
+0
-55
pages/personalCenter/personalCenter.vue
+1
-1
pages/saleCourseLists/saleCourseLists.vue
+200
-0
No files found.
pages.json
View file @
3d890d98
...
...
@@ -136,7 +136,7 @@
"path"
:
"pages/myLearning/myLearning"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
"
我的学习
"
,
"enablePullDownRefresh"
:
false
}
...
...
@@ -145,7 +145,7 @@
"path"
:
"pages/myShare/myShare"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"navigationBarTitleText"
:
"
我的分享
"
,
"enablePullDownRefresh"
:
false
}
},
...
...
@@ -189,7 +189,13 @@
"navigationBarTitleText"
:
"我的售后"
,
"enablePullDownRefresh"
:
false
}
},{
"path"
:
"pages/saleCourseLists/saleCourseLists"
,
"style"
:
{
"navigationBarTitleText"
:
"销售课程"
,
"enablePullDownRefresh"
:
false
}
}
],
//
"tabBar"
:
{
...
...
pages/index/index.vue
View file @
3d890d98
...
...
@@ -67,7 +67,7 @@
data
()
{
return
{
featureLists
:[
{
key
:
'00'
,
name
:
'销售课程'
,
icon
:
'salesCourse'
,
link
:
''
,
isOpen
:
false
},
{
key
:
'00'
,
name
:
'销售课程'
,
icon
:
'salesCourse'
,
link
:
'
/pages/saleCourseLists/saleCourseLists
'
,
isOpen
:
false
},
{
key
:
'01'
,
name
:
'我的积分'
,
icon
:
'integral'
,
link
:
'../myPoints/myPoints'
,
isOpen
:
true
},
{
key
:
'02'
,
name
:
'申请加盟'
,
icon
:
'applyJoin'
,
link
:
'../application-process/basic-info'
,
isOpen
:
true
},
{
key
:
'03'
,
name
:
'学习认证'
,
icon
:
'learningCertify'
,
link
:
'../learnCertify/learnCertify'
,
isOpen
:
true
},
...
...
pages/myShare/myShare.vue
View file @
3d890d98
...
...
@@ -229,60 +229,5 @@
}
}
}
.courseInfoContent
{
display
:
flex
;
align-items
:
center
;
background-color
:
#fff
;
border-top-left-radius
:
20
rpx
;
border-top-right-radius
:
20
rpx
;
padding
:
5
rpx
10
rpx
;
.thumbnailBox{
width
:
200
rpx
;
height
:
200
rpx
;
background-color
:
#888
;
margin-right
:
26
rpx
;
img{
max-width
:
100%
;
height
:
auto
;
}
}
.courseDetailBox
{
width
:
100%
;
color
:
#333
;
h4{
font-size
:
32
rpx
;
}
.summaryBox
{
font-size
:
24
rpx
;
margin
:
10
rpx
0
;
text{
margin-right
:
20
rpx
;
}
}
.dataBox
{
strong{
color
:
#F15A1F
;
font-size
:
30
rpx
;
margin-right
:
20
rpx
;
}
text
{
font-size
:
28
rpx
;
}
}
.tagListBox
{
display
:
flex
;
.tagItem{
color
:
#20279B
;
font-size
:
28
rpx
;
border-radius
:
20
rpx
;
border-top-left-radius
:
0
;
border-bottom-right-radius
:
0
;
padding
:
10
rpx
18
rpx
;
border
:
1px
solid
#20279B
;
margin-right
:
20
rpx
;
}
}
}
}
}
</
style
>
pages/personalCenter/personalCenter.vue
View file @
3d890d98
...
...
@@ -83,7 +83,7 @@
mainMenuLists
:[
{
id
:
'00'
,
categoryName
:
'销售管理'
,
children
:[
{
title
:
'销售课程'
,
icon
:
'salesCourse'
,
link
:
'/pages/
courselist/courselist
'
,
isOpen
:
true
,
isShow
:
true
},
{
title
:
'销售课程'
,
icon
:
'salesCourse'
,
link
:
'/pages/
saleCourseLists/saleCourseLists
'
,
isOpen
:
true
,
isShow
:
true
},
{
title
:
'销售保单'
,
icon
:
'salesOrder'
,
link
:
''
,
isOpen
:
true
,
isShow
:
false
},
{
title
:
'我的售后'
,
icon
:
'afterSales'
,
link
:
'/pages/afterSales/afterSales'
,
isOpen
:
true
,
isShow
:
true
}
],
...
...
pages/saleCourseLists/saleCourseLists.vue
0 → 100644
View file @
3d890d98
<
template
>
<view
class=
"container"
>
<!-- 时间选择 -->
<view
class=
"timeSelectContent"
>
<picker
mode=
"date"
:value=
"queryDate"
:end=
"maxDate"
fields=
"month"
@
change=
"bindDateChange"
>
<view
class=
"uni-input"
>
{{
queryDate
}}
</view>
</picker>
<i
class=
"iconfont icon-youjiantou"
></i>
</view>
<!-- 销售统计 -->
<view
class=
"saleStatisticalContent"
>
<view
class=
"statisticItem"
>
<text>
{{
coursesCountInfos
.
shareFrequencyMonth
}}
</text>
<text>
累计积分
</text>
</view>
<view
class=
"statisticItem"
@
click=
"viewIntegral()"
>
<text
class=
"colorText"
>
{{
coursesCountInfos
.
integralMonth
}}
</text>
<text>
今日获得积分
</text>
</view>
<view
class=
"statisticItem"
>
<text>
{{
coursesCountInfos
.
shareSectionMonth
}}
</text>
<text>
本月得分
</text>
</view>
<view
class=
"statisticItem"
>
<text>
{{
coursesCountInfos
.
shareFrequencyCount
}}
</text>
<text>
累计订单
</text>
</view>
<view
class=
"statisticItem"
@
click=
"viewIntegral()"
>
<text
class=
"colorText"
>
{{
coursesCountInfos
.
integralCount
}}
</text>
<text>
今日成交单数
</text>
</view>
<view
class=
"statisticItem"
>
<text>
{{
coursesCountInfos
.
shareSectionCount
}}
</text>
<text>
本月单数
</text>
</view>
</view>
<!-- 分享明细 -->
<view
class=
"saleDetailContent"
>
<view
class=
"courseTab"
>
<text>
我的课程
</text>
<text>
分享课程
</text>
</view>
<view
class=
"totalCountBox"
>
合计(单):
<text>
12
</text></view>
<h4
class=
"noListTip"
v-if=
"!userShareCourses"
>
暂无销售记录!
</h4>
<template
v-if=
"userShareCourses"
>
<view
class=
"saleOrderInfoItem"
v-for=
"item in userShareCourses"
:key=
"item.fileId"
>
<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>
</view>
<view
class=
"countsContent"
@
click=
"goDetail(item.fileId)"
>
<view>
<text>
实际支付:¥199.00
</text>
</view>
</view>
</view>
</
template
>
</view>
</view>
</template>
<
script
>
import
api
from
"@/api/api"
;
import
courseItem
from
"@/components/courseItem/courseItem.vue"
;
export
default
{
components
:{
courseItem
},
data
()
{
return
{
queryDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
maxDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
userId
:
null
,
coursesCountInfos
:{},
userShareCourse
:[]
}
},
methods
:
{
bindDateChange
:
function
(
e
)
{
this
.
queryDate
=
e
.
detail
.
value
},
userShareQuery
(){
const
params
=
{
userId
:
this
.
userId
,
queryDate
:
this
.
queryDate
}
this
.
coursesCountInfos
=
{
shareFrequencyMonth
:
'XXX'
,
integralMonth
:
'XXX'
,
shareSectionMonth
:
'XXX'
,
shareFrequencyCount
:
'XXX'
,
integralCount
:
'XXX'
,
shareSectionCount
:
'XXX'
}
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
)
// api.userShareQuery(params).then(res=>{
// console.log(res)
// if(res['success']){
// this.coursesCountInfos = res['data']['coursesCountInfos'];
// this.userShareCourses = res['data']['userShareCourses'];
// }
// })
},
// 查看详情
goDetail
(
val
){
uni
.
navigateTo
({
url
:
`/pages/commonDetail/commonDetail?fileId=
${
val
}
&type=1`
})
},
// 查看积分
viewIntegral
(){
uni
.
navigateTo
({
url
:
`/pages/myPoints/myPoints`
})
}
},
onLoad
()
{
this
.
userShareQuery
()
},
mounted
()
{
}
}
</
script
>
<
style
lang=
"scss"
>
.container
{
height
:
100%
;
.timeSelectContent{
background-color
:
#fff
;
padding
:
10
rpx
0
;
display
:
flex
;
justify-content
:
center
;
align-items
:
baseline
;
color
:
#333
;
.iconfont{
color
:
#999
;
font-size
:
24
rpx
;
transform
:
rotate
(
90deg
);
margin-left
:
8
rpx
;
}
}
.saleStatisticalContent
{
background-color
:
#fff
;
margin
:
10
rpx
20
rpx
;
padding
:
20
rpx
14
rpx
;
display
:
flex
;
flex-wrap
:
wrap
;
.statisticItem{
flex
:
1
;
min-width
:
33%
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
border-right
:
1px
solid
#F4F4F4
;
margin-bottom
:
10
rpx
;
&:nth-of-type(3n){
border-right
:
none
;
}
text
{
color
:
#333
;
font-size
:
36
rpx
;
&:last-child{
color
:
#666
;
font-size
:
28
rpx
;
}
&
.colorText
{
color
:
#F15A1F
;
}
}
}
}
.saleDetailContent
{
margin
:
10
rpx
20
rpx
;
padding
:
20
rpx
14
rpx
;
h3{
color
:
#333
;
font-size
:
36
rpx
;
position
:
relative
;
margin
:
10
rpx
0
10
rpx
58
rpx
;
&::before{
content
:
''
;
display
:
block
;
position
:
absolute
;
left
:
-5px
;
top
:
4px
;
width
:
2px
;
height
:
70%
;
border-radius
:
4
rpx
;
background-color
:
#FA882F
;
}
}
.saleOrderInfoItem
{
margin
:
0
20
rpx
;
}
}
}
</
style
>
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