Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
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
viitto
mallapp
Commits
b62968de
Commit
b62968de
authored
Oct 20, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3bdafbb9
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
55 additions
and
15 deletions
+55
-15
courseContent.vue
pages/school/courseContent.vue
+5
-4
courseInfo.vue
pages/school/courseInfo.vue
+50
-11
No files found.
pages/school/courseContent.vue
View file @
b62968de
<
template
>
<view
class=
"courseContent"
>
<view
class=
"courseContent"
v-if=
"loading"
>
<view
class=
"course-top"
>
<video
id=
"myVideo"
...
...
@@ -96,7 +95,8 @@
},
data
(){
return
{
pageTitle
:
''
,
pageTitle
:
'学习'
,
loading
:
false
,
mc
:
''
,
pricecolor
:
''
,
secondary
:
''
,
...
...
@@ -202,6 +202,7 @@
uni
.
navigateBack
({})
},
getGoodsCourseList
(){
this
.
request2
({
url
:
'/api/AppletSchool/GetAppletGoodsCourseList'
,
data
:
{
GoodsId
:
this
.
id
,
pageIndex
:
1
,
pageSize
:
10000
}
...
...
@@ -213,7 +214,7 @@
this
.
courseList
[
this
.
index
].
ImageList
.
forEach
((
x
)
=>
{
this
.
img
.
push
(
x
.
Path
);
});
this
.
loading
=
true
;
this
.
setMyCourseStudyOK
()
//课程已阅读
}
);
...
...
pages/school/courseInfo.vue
View file @
b62968de
...
...
@@ -61,6 +61,25 @@
/>
{{
g
.
name
}}
</view>
<view
class=
"g-label"
>
<view
class=
"gl-left"
>
<view
class=
"gl-left-item"
:style=
"
{background:mc}" v-for="(x, i) in g.course_lable_list" :key="ci">
{{
x
}}
</view>
</view>
<view
class=
"good-rb-box"
>
<text
class=
"good-rb-text"
>
5分
</text>
<u-rate
current=
'5'
active-color=
"#FEC471"
inactive-color=
"#DDDDDD"
active-icon=
"star"
inactive-icon=
"star-o"
size=
"24"
:disabled=
"true"
></u-rate>
</view>
</view>
<view
class=
"g-price-box"
>
<view
class=
"left"
>
<view
class=
"price u-skeleton-rect"
v-if=
" g.price!=0"
>
...
...
@@ -71,17 +90,7 @@
<text
class=
"oprice"
v-if=
"setting.is_underline_price == 1"
>
{{
g
.
original_price
}}
</text>
</view>
<view
class=
"sell u-skeleton-rect"
>
<!--
<view
class=
"good-rb-box"
>
<u-rate
:current=
"cx.course_score!=null &&cx.course_score>0?cx.course_score:'5'"
active-color=
"#FEC471"
inactive-color=
"#DDDDDD"
active-icon=
"star"
inactive-icon=
"star-o"
size=
"20"
:disabled=
"true"
></u-rate>
<text
class=
"good-rb-text"
>
{{
cx
.
course_score
!=
null
&&
cx
.
course_score
>
0
?
cx
.
course_score
.
toFixed
(
1
):
'5.0'
}}
分
</text>
</view>
-->
<text
v-if=
"setting.is_sales == 1"
>
{{
g
.
sales
}}
人学习过
</text>
</view>
</view>
...
...
@@ -984,4 +993,34 @@ export default {
border-radius
:
6px
;
}
.goods
.g-label
{
display
:
flex
;
align-items
:
center
;
padding
:
5px
0
;
}
.goods
.gl-left
{
flex
:
1
;
width
:
1px
;
display
:
flex
;
flex-wrap
:
wrap
;
}
.goods
.gl-left-item
{
padding
:
2px
4px
;
border-radius
:
2px
;
font-size
:
10px
;
color
:
#FAF8F9
;
margin-right
:
5px
;
margin-bottom
:
5px
;
}
.goods
.good-rb-box
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
.goods
.good-rb-text
{
font-size
:
11px
;
color
:
#999999
;
margin-top
:
3px
;
margin-left
:
2px
;
}
</
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