Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
confucius
Commits
222a680f
Commit
222a680f
authored
Mar 06, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
76b027b8
4db9dd63
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
194 additions
and
109 deletions
+194
-109
courseList.vue
src/pages/sale/courseList.vue
+194
-109
No files found.
src/pages/sale/courseList.vue
View file @
222a680f
<
style
>
li
{
list-style-type
:
none
;
}
.courseList
ul
{
padding
:
0px
}
.courseList
li
{
background
:
rgba
(
221
,
222
,
224
,
0.2
);
border-radius
:
4px
;
margin-top
:
15px
}
.courseList
li
.dline
{
display
:
table
;
width
:
100%
;
display
:
flex
;
flex-direction
:
row
}
.courseList
li
.d1
,
.courseList
li
.d2
,
.courseList
li
.d3
,
.courseList
li
.d4
,
.courseList
li
.d5
{
width
:
18%
;
padding
:
20px
20px
10px
;
}
.courseList
li
.d7
{
flex
:
1
;
width
:
1px
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
center
}
.courseList
li
.d1
.di-title
{
font-size
:
16px
;
color
:
#111111
;
}
.courseList
li
.d1
.di-c
{
font-size
:
14px
;
display
:
flex
;
align-items
:
center
;
line-height
:
28px
;
color
:
#111111
}
.courseList
li
.d6
{
padding
:
10px
20px
;
width
:
100%
;
height
:
inherit
;
position
:
relative
;
border-top
:
1px
solid
#DDDEE0
}
.courseList
li
.d6
.progress
{
width
:
100%
;
height
:
5px
;
position
:
absolute
;
left
:
0
;
bottom
:
0
}
.courseList
li
.d2
div
{
margin
:
2px
0
;
font-size
:
14px
;
color
:
#111111
;
}
.courseList
li
.d2-n
{
font-size
:
12px
;
color
:
#999999
;
margin-right
:
20px
}
.courseList
li
.d3
.d3-s
{
color
:
var
(
--q-color-negative
);
font-weight
:
bold
}
.courseList
li
.d3
div
{
margin
:
10px
0
;
font-size
:
14px
;
}
.courseList
li
.d4
div
{
font-size
:
14px
;
color
:
#111111
;
margin
:
10px
0
;
}
.courseList
li
.d5
div
{
font-size
:
14px
;
color
:
#111111
;
margin
:
10px
0
;
}
</
style
>
<
template
>
<div
class=
"page-body"
>
<div
class=
"page-body
courseList
"
>
<div
class=
"page-search row items-center"
>
<div
class=
"col row wrap q-mr-lg q-col-gutter-md"
>
<div
class=
"col-3"
>
...
...
@@ -9,75 +113,92 @@
</div>
</div>
<div
class=
"page-content"
>
<q-table
:pagination=
"msg"
:loading=
"loading"
no-data-label=
"暂无相关数据"
flat
class=
"sticky-tow-column-table"
separator=
"none"
:data=
"data"
:columns=
"columns"
row-key=
"name"
>
<template
v-slot:top=
"props"
>
<div
class=
"col-2 q-table__title"
>
课程信息
</div>
</
template
>
<
template
v-slot:body-cell-CoverImg=
"props"
>
<q-td
:props=
"props"
>
<q-avatar
square
size=
"100px"
>
<img
v-if=
"props.value"
:src=
"props.value"
/>
</q-avatar>
</q-td>
</
template
>
<
template
v-slot:body-cell-CourseIntro=
"props"
>
<q-td
:props=
"props"
>
<span
v-html=
"props.value"
></span>
</q-td>
</
template
>
<
template
v-slot:body-cell-Status=
"props"
>
<q-td
:props=
"props"
>
<q-badge
:color=
"props.value==1?'negative':'primary'"
:label=
"props.value==0?'正常':'禁用'"
/>
</q-td>
</
template
>
<
template
v-slot:body-cell-optioned=
"props"
>
<q-td
:props=
"props"
>
<template
v-if=
"props.row.PreferentialList&&props.row.PreferentialList.length>0"
>
<table>
<thead>
<tr>
<td>
优惠条件
</td>
<td>
同行返佣
</td>
<td>
销售返佣
</td>
</tr>
</thead>
<tbody>
<tr
v-for=
"item in props.row.PreferentialList"
>
<td>
<template
v-if=
"item.PriceDiscountType==1"
>
买
{{
item
.
BuyNum
}}
送
{{
item
.
SendNum
}}
</
template
>
<
template
v-else-if=
"item.PriceDiscountType==5"
>
刷卡分期
</
template
>
<
template
v-else
>
{{
item
.
PriceDiscountTypeStr
}}
{{
item
.
PriceMoney
}}
%
</
template
>
</td>
<td>
{{item.B2BCommissionMoney}} %
</td>
<td>
{{item.SaleCommissionMoney}} %
</td>
</tr>
</tbody>
</table>
</template>
</q-td>
</template>
<
template
v-slot:bottom
>
<q-pagination
class=
"full-width justify-end"
v-model=
"msg.pageIndex"
color=
"primary"
:max=
"pageCount"
:input=
"true"
@
input=
"changePage"
/>
</
template
>
</q-table>
<ul
v-if=
"data.length!=0"
>
<li
v-for=
"(item,index) in data"
:key=
"index"
>
<div
class=
"dline"
>
<div
class=
"d1"
style=
"width:25%"
>
<div
class=
"di-title"
>
课程名称
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<img
:src=
"item.CoverImg"
style=
"width:60px;height:60px;margin-right:10px;"
/>
{{
item
.
CourseName
}}
</div>
</div>
<div
class=
"d2"
>
<div
class=
"di-title"
>
讲师
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<div
style=
"display:flex;align-items:center;"
v-for=
"(subItem,sIndex) in item.TeacherList"
:key=
"sIndex"
>
<div><img
style=
"width:25px;height:25px;border-radius:50%;"
:src=
"subItem.TeacherIcon"
/></div>
<div
style=
"margin-left:5px;"
>
{{
subItem
.
TeacherName
}}
</div>
</div>
</div>
</div>
<div
class=
"d3"
>
<div
class=
"di-title"
>
销售平台
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<span
style=
"margin-right:5px;"
v-for=
"(pItem,pIndex) in item.SalePlatArr"
>
{{
pItem
}}
</span>
</div>
</div>
<div
class=
"d4"
style=
"width:10%"
>
<div
class=
"di-title"
>
基础价格
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<span>
{{
item
.
OriginalPrice
}}
</span>
</div>
</div>
<div
class=
"d5"
style=
"width:29%"
>
<div
class=
"di-title"
>
优惠价格
</div>
<div
class=
"di-c"
style=
"margin-top: 25px;"
>
<template
v-if=
"item.PreferentialList&&item.PreferentialList.length>0"
>
<table>
<thead>
<tr>
<td
style=
"width:55%"
>
优惠条件
</td>
<td
style=
"width:25%"
>
同行返佣
</td>
<td
style=
"width:25%"
>
销售返佣
</td>
</tr>
</thead>
<tbody>
<tr
v-for=
"pitem in item.PreferentialList"
>
<td>
<template
v-if=
"pitem.PriceDiscountType==1"
>
买
{{
pitem
.
BuyNum
}}
送
{{
pitem
.
SendNum
}}
</
template
>
<
template
v-else-if=
"pitem.PriceDiscountType==5"
>
刷卡分期
</
template
>
<
template
v-else
>
{{
pitem
.
PriceDiscountTypeStr
}}
{{
pitem
.
PriceMoney
}}
%
</
template
>
</td>
<td>
{{pitem.B2BCommissionMoney}} %
</td>
<td>
{{pitem.SaleCommissionMoney}} %
</td>
</tr>
</tbody>
</table>
</template>
</div>
</div>
</div>
<div
class=
"d6 row"
>
<p
style=
"color:var(--q-color-negative);font-weight: bold"
><span
style=
"color:#2D2D2D;"
>
课程特色:
</span>
{{item.CourseFeature}}
</p>
</div>
</li>
<li
style=
"border: none;display: flex;justify-content: flex-end;background: white;padding: 5px 20px"
>
<q-pagination
v-model=
"msg.pageIndex"
:max=
"pageCount"
@
input=
"changePage"
class=
"full-width justify-end"
color=
"primary"
:input=
"true"
>
</q-pagination>
</li>
</ul>
<div
v-else
style=
"width: 100%;color: #999999;text-align: center;font-size: 15px"
>
暂无数据
</div>
</div>
</div>
</template>
...
...
@@ -95,43 +216,6 @@
data
()
{
return
{
currentUrl
:
""
,
columns
:
[{
name
:
'CourseId'
,
label
:
'课程编号'
,
field
:
'CourseId'
,
align
:
'left'
},
{
name
:
'CourseName'
,
required
:
true
,
label
:
'课程名称'
,
align
:
'left'
,
field
:
row
=>
row
.
CourseName
},
{
name
:
'CoverImg'
,
label
:
'课程封面'
,
field
:
'CoverImg'
,
align
:
'left'
},
{
name
:
'OriginalPrice'
,
label
:
'基础价格'
,
field
:
'OriginalPrice'
,
align
:
'left'
},
{
name
:
'optioned'
,
label
:
'价格信息'
,
field
:
'CourseId'
},
{
name
:
'Status'
,
label
:
'状态'
,
align
:
'left'
,
field
:
'Status'
}
],
data
:
[],
loading
:
true
,
msg
:
{
...
...
@@ -142,7 +226,7 @@
QCateIds
:
""
,
Status
:
"0"
,
IsQPrice
:
1
,
//是否查询优惠价格设置
IsQTeacher
:
1
,
//是否查询课程讲师
IsQTeacher
:
1
,
//是否查询课程讲师
},
pageCount
:
0
,
}
...
...
@@ -168,7 +252,8 @@
queryCoursePage
(
this
.
msg
).
then
(
res
=>
{
this
.
loading
=
false
this
.
data
=
res
.
Data
.
PageData
this
.
pageCount
=
res
.
Data
.
PageCount
this
.
pageCount
=
res
.
Data
.
PageCount
;
console
.
log
(
this
.
data
,
'data'
);
}).
catch
(()
=>
{
this
.
loading
=
false
})
...
...
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