Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
ca124670
Commit
ca124670
authored
May 17, 2021
by
林文清
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:学习样式文案调整
parent
b4fb3328
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
70 additions
and
60 deletions
+70
-60
learn.vue
src/pages/index/learn.vue
+26
-49
answer.vue
src/pages/learn/answer.vue
+2
-1
assessment.vue
src/pages/learn/assessment.vue
+1
-1
section.vue
src/pages/learn/section.vue
+41
-9
No files found.
src/pages/index/learn.vue
View file @
ca124670
...
@@ -81,8 +81,7 @@
...
@@ -81,8 +81,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"title u-margin-top-30 u-margin-bottom-30"
>
技能课程
</view>
<view
class=
"learn-currency-class u-margin-bottom-20 u-margin-top-30"
style=
"padding-bottom: 300rpx;"
>
<view
class=
"learn-currency-class u-margin-bottom-20"
style=
"padding-bottom: 300rpx;"
>
<view
class=
"learn-class1"
@
click=
"goPlay(courselist[2])"
>
<view
class=
"learn-class1"
@
click=
"goPlay(courselist[2])"
>
<image
class=
"learn-img"
:src=
"courselist[2].pic"
mode=
""
></image>
<image
class=
"learn-img"
:src=
"courselist[2].pic"
mode=
""
></image>
<image
class=
"bofang"
:src=
"bofang"
mode=
""
></image>
<image
class=
"bofang"
:src=
"bofang"
mode=
""
></image>
...
@@ -151,8 +150,8 @@
...
@@ -151,8 +150,8 @@
var
json
=
{
var
json
=
{
dev
:
[
dev
:
[
{
{
title
:
"
服务规范
"
,
title
:
"
安装材料及工具准备
"
,
desc
:
"
为用户提供更好服务,自己赚更多钱
"
,
desc
:
"
前期的安装材料及安装工具的准备是工作的良好开始
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
...
@@ -160,8 +159,8 @@ var json = {
...
@@ -160,8 +159,8 @@ var json = {
sectionId
:
""
,
sectionId
:
""
,
},
},
{
{
title
:
"
接单规范
"
,
title
:
"
服务理念与时效
"
,
desc
:
"
快速学习,使用APP 接单、抢单
"
,
desc
:
"
为用户提供更好的服务,自己赚更多的钱
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
...
@@ -169,8 +168,8 @@ var json = {
...
@@ -169,8 +168,8 @@ var json = {
sectionId
:
""
,
sectionId
:
""
,
},
},
{
{
title
:
"
从0-1学习充电桩安装服务
"
,
title
:
"
充电桩安装要点提示
"
,
desc
:
"
让你全面了解充电桩市场及服务规范
"
,
desc
:
"
在充电装安装过程中需要着重注意的要点
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
...
@@ -180,8 +179,8 @@ var json = {
...
@@ -180,8 +179,8 @@ var json = {
],
],
test
:
[
test
:
[
{
{
title
:
"
服务规范
"
,
title
:
"
安装材料及工具准备
"
,
desc
:
"
为用户提供更好服务,自己赚更多钱
"
,
desc
:
"
前期的安装材料及安装工具的准备是工作的良好开始
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
...
@@ -189,8 +188,8 @@ var json = {
...
@@ -189,8 +188,8 @@ var json = {
sectionId
:
""
,
sectionId
:
""
,
},
},
{
{
title
:
"
接单规范
"
,
title
:
"
服务理念与时效
"
,
desc
:
"
快速学习,使用APP 接单、抢单
"
,
desc
:
"
为用户提供更好的服务,自己赚更多的钱
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
...
@@ -198,8 +197,8 @@ var json = {
...
@@ -198,8 +197,8 @@ var json = {
sectionId
:
""
,
sectionId
:
""
,
},
},
{
{
title
:
"
从0-1学习充电桩安装服务
"
,
title
:
"
充电桩安装要点提示
"
,
desc
:
"
让你全面了解充电桩市场及服务规范
"
,
desc
:
"
在充电装安装过程中需要着重注意的要点
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
...
@@ -209,24 +208,24 @@ var json = {
...
@@ -209,24 +208,24 @@ var json = {
],
],
prod
:
[
prod
:
[
{
{
title
:
"
服务规范
"
,
title
:
"
安装材料及工具准备
"
,
desc
:
"
为用户提供更好服务,自己赚更多钱
"
,
desc
:
"
前期的安装材料及安装工具的准备是工作的良好开始
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
sectionId
:
""
,
sectionId
:
""
,
},
},
{
{
title
:
"
接单规范
"
,
title
:
"
服务理念与时效
"
,
desc
:
"
快速学习,使用APP 接单、抢单
"
,
desc
:
"
为用户提供更好的服务,自己赚更多的钱
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
sectionId
:
""
,
sectionId
:
""
,
},
},
{
{
title
:
"
从0-1学习充电桩安装服务
"
,
title
:
"
充电桩安装要点提示
"
,
desc
:
"
让你全面了解充电桩市场及服务规范
"
,
desc
:
"
在充电装安装过程中需要着重注意的要点
"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x-v2.png"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x-v2.png"
,
percent
:
0
,
percent
:
0
,
status
:
""
,
status
:
""
,
...
@@ -238,7 +237,7 @@ var json = {
...
@@ -238,7 +237,7 @@ var json = {
var
examJson
=
{
var
examJson
=
{
dev
:
[
dev
:
[
{
{
title
:
"
服务规范
"
,
title
:
"
安装材料及工具准备
"
,
desc
:
"通过本认证,是接单的必要条件"
,
desc
:
"通过本认证,是接单的必要条件"
,
condition
:
"随机20题,及格20题"
,
condition
:
"随机20题,及格20题"
,
status
:
""
,
status
:
""
,
...
@@ -264,7 +263,7 @@ var examJson = {
...
@@ -264,7 +263,7 @@ var examJson = {
],
],
test
:
[
test
:
[
{
{
title
:
"
服务规范
"
,
title
:
"
安装材料及工具准备
"
,
desc
:
"通过本认证,是接单的必要条件"
,
desc
:
"通过本认证,是接单的必要条件"
,
condition
:
"随机10题,及格10题"
,
condition
:
"随机10题,及格10题"
,
status
:
""
,
status
:
""
,
...
@@ -290,7 +289,7 @@ var examJson = {
...
@@ -290,7 +289,7 @@ var examJson = {
],
],
prod
:
[
prod
:
[
{
{
title
:
"
服务规范
"
,
title
:
"
安装材料及工具准备
"
,
desc
:
"通过本认证,是接单的必要条件"
,
desc
:
"通过本认证,是接单的必要条件"
,
condition
:
"随机20题,及格20题"
,
condition
:
"随机20题,及格20题"
,
status
:
""
,
status
:
""
,
...
@@ -327,7 +326,7 @@ export default {
...
@@ -327,7 +326,7 @@ export default {
name
:
"交付规范"
,
name
:
"交付规范"
,
},
},
{
{
name
:
"
培训
通知"
,
name
:
"
消息
通知"
,
},
},
{
{
name
:
"在线学习"
,
name
:
"在线学习"
,
...
@@ -709,31 +708,9 @@ export default {
...
@@ -709,31 +708,9 @@ export default {
index
index
].
questionTime
;
].
questionTime
;
var
examInfo
=
this
.
examList
[
index
];
var
examInfo
=
this
.
examList
[
index
];
if
(
examInfo
.
examStatus
==
0
)
{
wx
.
navigateTo
({
wx
.
navigateTo
({
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
});
});
}
else
if
(
examInfo
.
examStatus
==
1
)
{
let
url
=
''
;
if
(
examInfo
.
status
==
"已通过"
)
{
url
=
"/pages/learn/exam-pass?userExamId="
+
examInfo
.
examId
+
"&examId="
+
examInfo
.
id
;
}
else
{
url
=
"/pages/learn/result?userExamId="
+
examInfo
.
examId
+
"&examId="
+
examInfo
.
id
}
wx
.
navigateTo
({
url
:
url
,
});
}
else
if
(
examInfo
.
examStatus
==
2
)
{
wx
.
navigateTo
({
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
});
}
},
},
//跳转到播放
//跳转到播放
goPlay
(
info
)
{
goPlay
(
info
)
{
...
...
src/pages/learn/answer.vue
View file @
ca124670
...
@@ -368,7 +368,7 @@ export default {
...
@@ -368,7 +368,7 @@ export default {
var
wz
=
str
.
indexOf
(
"."
);
var
wz
=
str
.
indexOf
(
"."
);
let
str1
=
str
.
substring
(
wz
+
1
);
let
str1
=
str
.
substring
(
wz
+
1
);
console
.
log
(
that
.
currentItem
);
console
.
log
(
that
.
currentItem
);
that
.
currentItem
.
question
.
content
=
str1
;
that
.
currentItem
.
question
.
content
=
str1
.
replace
(
'*'
,
''
)
;
console
.
log
(
str1
,
"切割的字符串"
);
console
.
log
(
str1
,
"切割的字符串"
);
}
}
if
(
res
.
data
.
data
.
answerList
)
{
if
(
res
.
data
.
data
.
answerList
)
{
...
@@ -682,6 +682,7 @@ export default {
...
@@ -682,6 +682,7 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
padding-right
:
30rpx
;
.title-text
{
.title-text
{
border-radius
:
8rpx
;
border-radius
:
8rpx
;
...
...
src/pages/learn/assessment.vue
View file @
ca124670
...
@@ -206,7 +206,7 @@ export default {
...
@@ -206,7 +206,7 @@ export default {
font-size
:
40
rpx
;
font-size
:
40
rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
color
:
#333333
;
color
:
#333333
;
line-height
:
20
px
;
line-height
:
68
r
px
;
padding
:
50
rpx
58
rpx
46
rpx
30
rpx
;
padding
:
50
rpx
58
rpx
46
rpx
30
rpx
;
}
}
...
...
src/pages/learn/section.vue
View file @
ca124670
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
<view
class=
"title-content"
>
<view
class=
"title-content"
>
<view
class=
"item-content"
>
<view
class=
"item-content"
>
<view
class=
"item-st"
>
<view
class=
"item-st"
>
<image
style=
"width: 80rpx; height: 36rpx
"
:src=
"kcImage"
></image>
<image
class=
"kc-image
"
:src=
"kcImage"
></image>
<text
class=
"item-st-text"
>
{{
courseTotal
}}
课时
</text>
<text
class=
"item-st-text"
>
{{
courseTotal
}}
课时
</text>
</view>
</view>
<view
class=
"item-title"
>
{{
courseTitle
}}
</view>
<view
class=
"item-title"
>
{{
courseTitle
}}
</view>
...
@@ -20,17 +20,16 @@
...
@@ -20,17 +20,16 @@
</view>
</view>
<view
class=
"learn-view"
v-if=
"courseId >= 0"
>
<view
class=
"learn-view"
v-if=
"courseId >= 0"
>
<view
class=
"learn-view-title color-teacher"
>
课程讲师
</view>
<view
class=
"learn-view-title color-teacher"
>
课程讲师
</view>
<view
class=
"
"
style=
"padding-top: 30rpx;display: flex;padding-left: 30rpx;
"
>
<view
class=
"
teacher-desc
"
>
<u-avatar
:style=
"
{'width':'100rpx', 'height':'100rpx'}" :src="teacherImage" mode="circle">
<u-avatar
:style=
"
{'width':'100rpx', 'height':'100rpx'}" :src="teacherImage" mode="circle">
</u-avatar>
</u-avatar>
<view
style=
"height:120rpx;font-size: 30rpx;padding-left:30rpx;padding-right: 30rpx;
"
>
<view
class=
"teacher-right
"
>
<view
class=
"
"
style=
"display: flex;font-size: 32rpx;
"
>
<view
class=
"
teacher-right-top
"
>
<view
class=
""
style=
"font-size: 32rpx;font-weight: bold;"
>
{{
teacher
.
name
}}
</view>
<view
class=
""
style=
"font-size: 32rpx;font-weight: bold;"
>
{{
teacher
.
name
}}
</view>
<view
class=
""
<view
class=
"teacher-disc"
>
课程讲师
style=
"font-size: 24rpx;margin-left: 30rpx;margin-top: 6rpx;color: #999999;"
>
课程讲师
</view>
</view>
</view>
</view>
<view
class=
"
"
style=
"font-size: 24rpx;margin-top: 30rpx;
"
>
{{
teacherIntro
}}
</view>
<view
class=
"
teacher-intro
"
>
{{
teacherIntro
}}
</view>
</view>
</view>
</view>
</view>
<view
class=
"learn-view-title"
>
目录
</view>
<view
class=
"learn-view-title"
>
目录
</view>
...
@@ -456,10 +455,9 @@
...
@@ -456,10 +455,9 @@
width
:
100%
;
width
:
100%
;
height
:
150rpx
;
height
:
150rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
// padding: 20rpx;
padding-left
:
20rpx
;
padding-left
:
20rpx
;
background
:
#fff
;
background
:
#fff
;
// border: 1px solid red
;
margin-top
:
30rpx
;
}
}
.scroll_box
scroll-view
{
.scroll_box
scroll-view
{
...
@@ -484,4 +482,38 @@
...
@@ -484,4 +482,38 @@
border
:
2rpx
solid
#2272FF
;
border
:
2rpx
solid
#2272FF
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.teacher-intro
{
font-size
:
24rpx
;
margin-top
:
15rpx
;
}
.teacher-disc
{
font-size
:
24rpx
;
margin-left
:
30rpx
;
margin-top
:
6rpx
;
color
:
#999999
;
}
.kc-image
{
width
:
80rpx
;
height
:
36rpx
}
.teacher-desc
{
padding-top
:
30rpx
;
display
:
flex
;
padding-left
:
30rpx
;
}
.teacher-right
{
font-size
:
30rpx
;
padding-left
:
30rpx
;
padding-right
:
30rpx
;
}
.teacher-right-top
{
display
:
flex
;
font-size
:
32rpx
;
}
</
style
>
</
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