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
a720f723
Commit
a720f723
authored
Mar 08, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改教育页面
parent
17fc05c2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
782 additions
and
297 deletions
+782
-297
quasar.conf.js
quasar.conf.js
+1
-1
course-form.vue
src/components/course/course-form.vue
+15
-3
course.vue
src/pages/course/course.vue
+80
-13
courseList copy.vue
src/pages/sale/courseList copy.vue
+326
-0
courseList.vue
src/pages/sale/courseList.vue
+360
-280
No files found.
quasar.conf.js
View file @
a720f723
...
...
@@ -48,7 +48,7 @@ module.exports = function (ctx) {
build
:
{
vueRouterMode
:
'hash'
,
// available values: 'hash', 'history'
env
:
ctx
.
dev
?
{
API
:
'http://192.168.1.
13:8085
/api'
API
:
'http://192.168.1.
27:8300
/api'
}
:
{
API
:
'http://eduapi.oytour.com/api'
},
...
...
src/components/course/course-form.vue
View file @
a720f723
...
...
@@ -17,8 +17,8 @@
map-options
multiple
/>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6 q-pb-lg"
>
<q-uploader
:style=
"
{backgroundImage:'url(' + objOption.CoverImg + ')'}" flat hide-upload-btn max-files="1"
<div
class=
"col-6 q-pb-lg
q-pr-lg
"
>
<q-uploader
:style=
"
{backgroundImage:'url(' + objOption.CoverImg + ')'}"
style="width:auto;height:139px"
flat hide-upload-btn max-files="1"
label="课程封面" accept=".jpg, image/*" :factory="uploadFile" auto-upload>
</q-uploader>
</div>
...
...
@@ -81,6 +81,14 @@
:rules=
"[val => !!val || '请填写续费售价']"
/>
</div>
</div>
<div
class=
"row wrap"
>
<div
class=
"col-6"
>
<q-input
filled
stack-label
maxlength=
"8"
:dense=
"false"
mask=
"#"
fill-mask=
"0"
reverse-fill-mask
v-model=
"objOption.ClassHours"
ref=
"ClassHours"
class=
"col-6 q-pr-lg q-pb-lg"
label=
"课时数量"
:rules=
"[val => !!val || '请填写课时信息']"
/>
</div>
</div>
<div
class=
"text-caption q-my-md q-px-xs text-grey-6"
>
课程介绍
</div>
<ext-editor
:defaultMsg=
"objOption.CourseIntro"
classStr=
"col-12"
@
getEditValue=
"getEditValue"
></ext-editor>
...
...
@@ -153,6 +161,7 @@
RenewSlPrice
:
0
,
//续费售价
Saleplat
:
""
,
//销售平台
IsKCourse
:
0
,
//是否是K12课程(1-是)
ClassHours
:
0
},
optionTitle
:
""
,
defaultArray
:
[],
...
...
@@ -248,6 +257,7 @@
this
.
objOption
.
CourseFeature
=
res
.
Data
.
CourseFeature
;
this
.
objOption
.
OriginalPrice
=
res
.
Data
.
OriginalPrice
;
this
.
objOption
.
SellPrice
=
res
.
Data
.
SellPrice
;
this
.
objOption
.
ClassHours
=
res
.
Data
.
ClassHours
;
this
.
objOption
.
IsOpenStepPrice
=
res
.
Data
.
IsOpenStepPrice
;
this
.
objOption
.
IsRenew
=
res
.
Data
.
IsRenew
;
this
.
objOption
.
RenewOgPrice
=
res
.
Data
.
RenewOgPrice
;
...
...
@@ -278,6 +288,7 @@
this
.
objOption
.
CourseFeature
=
""
;
this
.
objOption
.
OriginalPrice
=
0
;
this
.
objOption
.
SellPrice
=
0
;
this
.
objOption
.
ClassHours
=
0
this
.
objOption
.
IsOpenStepPrice
=
0
;
this
.
objOption
.
IsRenew
=
0
;
this
.
objOption
.
RenewOgPrice
=
0
;
...
...
@@ -294,7 +305,8 @@
//保存菜单
saveCourse
()
{
this
.
$refs
.
CourseName
.
validate
();
if
(
!
this
.
$refs
.
CourseName
.
hasError
)
{
this
.
$refs
.
ClassHours
.
validate
();
if
(
!
this
.
$refs
.
CourseName
.
hasError
&&!
this
.
$refs
.
ClassHours
.
hasError
)
{
this
.
saveCourseLoading
=
true
;
var
Teacher_Ids
=
""
;
if
(
this
.
chooseTeacher
&&
this
.
chooseTeacher
.
length
>
0
)
{
...
...
src/pages/course/course.vue
View file @
a720f723
...
...
@@ -28,9 +28,13 @@
</
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-img
:src=
"props.value"
spinner-color=
"white"
style=
"height: 54px; max-width: 100px"
class=
"rounded-borders"
>
</q-img>
</q-td>
</
template
>
<
template
v-slot:body-cell-CourseIntro=
"props"
>
...
...
@@ -38,6 +42,30 @@
<span
v-html=
"props.value"
></span>
</q-td>
</
template
>
<
template
v-slot:body-cell-PreferentialList=
"props"
>
<q-td
:props=
"props"
style=
"padding-right:0px"
>
<div
v-for=
"x in props.value"
>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType==1"
>
买
{{
x
.
BuyNum
}}
送
{{
x
.
SendNum
}}
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType==2"
>
单人报名享
{{
100
-
x
.
PriceMoney
}}
折优惠
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType==3"
>
双人报名享
{{
100
-
x
.
PriceMoney
}}
折优惠
</div>
<div
class=
"border-bottom"
v-if=
"x.PriceDiscountType==4"
>
续费享
{{
100
-
x
.
PriceMoney
}}
折优惠
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-PreferentialListSellCommission=
"props"
>
<q-td
:props=
"props"
style=
"padding-right:0px;padding-left:0px"
>
<div
v-for=
"x in props.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px;padding-right: 16px"
>
{{
x
.
SaleCommissionMoney
}}
%
</div>
</div>
</q-td>
</
template
>
<
template
v-slot:body-cell-PreferentialListB2BCommission=
"props"
>
<q-td
:props=
"props"
style=
"padding-left:0px"
>
<div
v-for=
"x in props.value"
>
<div
class=
"border-bottom"
style=
"padding-left: 16px"
>
{{
x
.
B2BCommissionMoney
}}
%
</div>
</div>
</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?'正常':'禁用'"
/>
...
...
@@ -87,12 +115,19 @@
data
()
{
return
{
currentUrl
:
""
,
columns
:
[{
name
:
'CourseId'
,
label
:
'课程编号'
,
field
:
'CourseId'
,
columns
:
[
{
name
:
'CoverImg'
,
label
:
'课程封面'
,
field
:
'CoverImg'
,
align
:
'left'
},
// {
// name: 'CourseId',
// label: '课程编号',
// field: 'CourseId',
// align: 'left'
// },
{
name
:
'CourseName'
,
required
:
true
,
...
...
@@ -101,12 +136,40 @@
field
:
row
=>
row
.
CourseName
},
{
name
:
'CoverImg'
,
label
:
'课程封面'
,
field
:
'CoverImg'
,
align
:
'left'
name
:
'OriginalPrice'
,
required
:
true
,
label
:
'原价'
,
align
:
'left'
,
field
:
row
=>
row
.
OriginalPrice
.
toFixed
(
2
)
},
{
name
:
'SellPrice'
,
required
:
true
,
label
:
'售价'
,
align
:
'left'
,
field
:
row
=>
row
.
SellPrice
.
toFixed
(
2
)
},
{
name
:
'PreferentialList'
,
required
:
true
,
label
:
'优惠政策'
,
align
:
'left'
,
field
:
row
=>
row
.
PreferentialList
},
{
name
:
'PreferentialListSellCommission'
,
required
:
true
,
label
:
'销售佣金'
,
align
:
'left'
,
field
:
row
=>
row
.
PreferentialList
},
{
name
:
'PreferentialListB2BCommission'
,
required
:
true
,
label
:
'销售佣金'
,
align
:
'left'
,
field
:
row
=>
row
.
PreferentialList
},
{
name
:
'CreateByName'
,
label
:
'创建人'
,
...
...
@@ -152,6 +215,7 @@
rowsPerPage
:
12
,
CourseName
:
""
,
QCateIds
:
""
,
IsQPrice
:
1
,
Status
:
"-1"
,
},
//课程分类树形列表
...
...
@@ -251,5 +315,8 @@
</
script
>
<
style
lang=
"sass"
>
@import
url('~assets/css/table.sass')
.border-bottom
border-bottom
:
1px
dashed
#EEE
padding-bottom
:
5px
margin-bottom
:
5px
</
style
>
src/pages/sale/courseList copy.vue
0 → 100644
View file @
a720f723
This diff is collapsed.
Click to expand it.
src/pages/sale/courseList.vue
View file @
a720f723
This diff is collapsed.
Click to expand it.
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