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
b3bd3150
Commit
b3bd3150
authored
May 14, 2021
by
刘用法
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://git.banshouhui.com/lijundan/self-support
parents
fbe34a6b
f842eb02
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
845 additions
and
826 deletions
+845
-826
setting.vue
src/components/photo/setting.vue
+1
-1
standard.vue
src/components/photo/standard.vue
+3
-1
index.vue
src/components/take/index.vue
+1
-1
learn.vue
src/pages/index/learn.vue
+837
-821
answer.vue
src/pages/learn/answer.vue
+3
-2
No files found.
src/components/photo/setting.vue
View file @
b3bd3150
...
...
@@ -413,7 +413,7 @@
}
.popBtnView
{
margin-top
:
110
rpx
;
margin-top
:
65
rpx
;
width
:
100%
;
display
:
flex
;
align-items
:
center
;
...
...
src/components/photo/standard.vue
View file @
b3bd3150
...
...
@@ -52,7 +52,9 @@
dx
:
0
,
};
},
onLoad
()
{},
onLoad
()
{
this
.
$refs
.
tabs
.
setFinishCurrent
(
current
);
},
computed
:
{
swiperList
()
{
let
list
=
this
.
currentItem
.
images
||
[]
...
...
src/components/take/index.vue
View file @
b3bd3150
...
...
@@ -31,7 +31,7 @@
</cover-view>
<canvas
canvas-id=
"canvas"
id=
"photoCanvas"
class=
"canvas"
:style=
"
{'width':750 + 'rpx','height': cameraHeight + 'rpx'}">
</canvas>
<view
v-
show
=
"standardShow"
class=
"page-mask"
:z-index=
"10000"
>
<view
v-
if
=
"standardShow"
class=
"page-mask"
:z-index=
"10000"
>
<photo-standard
:currentItem=
"currentItem"
/>
<view
class=
"btn-close"
>
<image
@
click=
"closeShadow"
class=
"icon icon-close"
mode=
"aspectFit"
src=
"/static/photo/icon-close.png"
></image>
...
...
src/pages/index/learn.vue
View file @
b3bd3150
...
...
@@ -4,8 +4,7 @@
<text
class=
"title-view"
>
学习
</text>
</u-navbar>
<image
:src=
"bannerImage"
mode=
""
class=
"banner"
></image>
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
:bar-width=
"52"
swiperWidth=
"750"
></u-tabs-swiper>
<u-tabs-swiper
bg-color=
"#F4F5F7"
inactive-color=
"#999999"
font-size=
"28"
ref=
"uTabs"
:list=
"tabs"
:current=
"current"
@
change=
"tabsChange"
:is-scroll=
"false"
:bar-width=
"52"
swiperWidth=
"750"
></u-tabs-swiper>
<swiper
class=
"swiper_group"
:current=
"swiperCurrent"
@
animationfinish=
"animationfinish"
>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 0"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
>
...
...
@@ -23,10 +22,7 @@
</scroll-view>
</swiper-item>
<swiper-item
@
touchmove
.
stop
.
prevent=
"stopTouchMove"
v-show=
"current == 1"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"onReachBottom"
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
refresherpulling=
"onPulling"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
<scroll-view
scroll-y
style=
"height:100%;width:100%;"
@
scrolltolower=
"onReachBottom"
scroll-y=
"true"
refresher-enabled=
"true"
:refresher-triggered=
"triggered"
:refresher-threshold=
"100"
@
refresherpulling=
"onPulling"
@
refresherrefresh=
"onRefresh"
@
refresherrestore=
"onRestore"
@
refresherabort=
"onAbort"
>
<view
v-for=
"item in list"
:key=
"item.id"
class=
"notice"
@
click=
"bbb(item)"
>
<view
class=
"n-head"
>
{{
item
.
title
}}
...
...
@@ -61,11 +57,9 @@
</view>
</view>
<view
class=
"line-percent u-margin-top-35"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[0].percent"
:show-percent=
"false"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[0].percent"
:show-percent=
"false"
>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[0].percent}"
v-text="courselist[0].status">
</text>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[0].percent}" v-text="courselist[0].status">
</text>
</view>
</view>
<view
class=
"learn-class1 u-margin-left-30"
@
click=
"goPlay(courselist[1])"
>
...
...
@@ -80,11 +74,9 @@
</view>
</view>
<view
class=
"line-percent u-margin-top-35"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[1].percent"
:show-percent=
"false"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[1].percent"
:show-percent=
"false"
>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[1].percent}"
v-text="courselist[1].status">
</text>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[1].percent}" v-text="courselist[1].status">
</text>
</view>
</view>
</view>
...
...
@@ -101,13 +93,10 @@
{{
courselist
[
2
].
desc
}}
</view>
</view>
<view
class=
"line-percent u-margin-top-35"
style=
"display:flex;justify-content: space-between;"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[2].percent"
:show-percent=
"false"
>
<view
class=
"line-percent u-margin-top-35"
style=
"display:flex;justify-content: space-between;"
>
<u-line-progress
active-color=
"#2979ff"
:percent=
"courselist[2].percent"
:show-percent=
"false"
>
</u-line-progress>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[2].percent}"
v-text="courselist[2].status">
</text>
<text
class=
"font-default-color"
:class=
"
{'font-active-color':courselist[2].percent}" v-text="courselist[2].status">
</text>
</view>
</view>
</view>
...
...
@@ -128,8 +117,7 @@
</view>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<text
class=
"font-color-999999"
>
{{
examList
[
0
].
condition
}}
</text>
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[0].isComplete}">
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[0].isComplete}">
{{
examList
[
0
].
status
}}
</text>
</view>
...
...
@@ -146,8 +134,7 @@
</view>
<view
class=
"u-font-24"
style=
"display:flex;justify-content: space-between;"
>
<text
class=
"font-color-999999"
>
{{
examList
[
1
].
condition
}}
</text>
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[1].isComplete}">
<text
class=
"font-default-exam-color"
:class=
"
{'font-active-color':examList[1].isComplete}">
{{
examList
[
1
].
status
}}
</text>
</view>
</view>
...
...
@@ -160,340 +147,421 @@
</
template
>
<
script
>
var
json
=
{
"dev"
:
[{
"title"
:
"服务规范"
,
"desc"
:
"为用户提供更好服务,自己赚更多钱"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"id"
:
173
,
"sectionId"
:
""
},
{
"title"
:
"接单规范"
,
"desc"
:
"快速学习,使用APP 接单、抢单"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"id"
:
173
,
"sectionId"
:
""
},
{
"title"
:
"从0-1学习充电桩安装服务"
,
"desc"
:
"让你全面了解充电桩市场及服务规范"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"id"
:
173
,
"sectionId"
:
""
}
],
"test"
:
[{
"title"
:
"服务规范"
,
"desc"
:
"为用户提供更好服务,自己赚更多钱"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"id"
:
150
,
"sectionId"
:
""
},
{
"title"
:
"接单规范"
,
"desc"
:
"快速学习,使用APP 接单、抢单"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"id"
:
149
,
"sectionId"
:
""
},
{
"title"
:
"从0-1学习充电桩安装服务"
,
"desc"
:
"让你全面了解充电桩市场及服务规范"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"id"
:
151
,
"sectionId"
:
""
}
],
"prod"
:
[{
"title"
:
"服务规范"
,
"desc"
:
"为用户提供更好服务,自己赚更多钱"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"sectionId"
:
""
},
{
"title"
:
"接单规范"
,
"desc"
:
"快速学习,使用APP 接单、抢单"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"sectionId"
:
""
},
{
"title"
:
"从0-1学习充电桩安装服务"
,
"desc"
:
"让你全面了解充电桩市场及服务规范"
,
"pic"
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
"percent"
:
0
,
"status"
:
""
,
"sectionId"
:
""
}
]
}
var
examJson
=
{
"dev"
:
[{
title
:
'服务规范'
,
desc
:
'通过本认证,是接单的必要条件'
,
condition
:
'随机20题,及格20题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
id
:
2
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
},
{
title
:
'接单操作'
,
desc
:
'快速认证,是否具备接单操作能力'
,
condition
:
'随机20题,及格16题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
2
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
}
],
"test"
:
[{
title
:
'服务规范'
,
desc
:
'通过本认证,是接单的必要条件'
,
condition
:
'随机10题,及格10题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-e-3x.png"
,
id
:
3
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
var
json
=
{
dev
:
[
{
title
:
"服务规范"
,
desc
:
"为用户提供更好服务,自己赚更多钱"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
percent
:
0
,
status
:
""
,
id
:
173
,
sectionId
:
""
,
},
{
title
:
"接单规范"
,
desc
:
"快速学习,使用APP 接单、抢单"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
percent
:
0
,
status
:
""
,
id
:
173
,
sectionId
:
""
,
},
{
title
:
"从0-1学习充电桩安装服务"
,
desc
:
"让你全面了解充电桩市场及服务规范"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
percent
:
0
,
status
:
""
,
id
:
173
,
sectionId
:
""
,
},
],
test
:
[
{
title
:
"服务规范"
,
desc
:
"为用户提供更好服务,自己赚更多钱"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
percent
:
0
,
status
:
""
,
id
:
150
,
sectionId
:
""
,
},
{
title
:
"接单规范"
,
desc
:
"快速学习,使用APP 接单、抢单"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
percent
:
0
,
status
:
""
,
id
:
149
,
sectionId
:
""
,
},
{
title
:
"从0-1学习充电桩安装服务"
,
desc
:
"让你全面了解充电桩市场及服务规范"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
percent
:
0
,
status
:
""
,
id
:
151
,
sectionId
:
""
,
},
],
prod
:
[
{
title
:
"服务规范"
,
desc
:
"为用户提供更好服务,自己赚更多钱"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
percent
:
0
,
status
:
""
,
sectionId
:
""
,
},
{
title
:
"接单规范"
,
desc
:
"快速学习,使用APP 接单、抢单"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-3x.png"
,
percent
:
0
,
status
:
""
,
sectionId
:
""
,
},
{
title
:
"从0-1学习充电桩安装服务"
,
desc
:
"让你全面了解充电桩市场及服务规范"
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"cdz-3x.png"
,
percent
:
0
,
status
:
""
,
sectionId
:
""
,
},
],
};
var
examJson
=
{
dev
:
[
{
title
:
"服务规范"
,
desc
:
"通过本认证,是接单的必要条件"
,
condition
:
"随机20题,及格20题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-3x.png"
,
id
:
2
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
{
title
:
"接单操作"
,
desc
:
"快速认证,是否具备接单操作能力"
,
condition
:
"随机20题,及格16题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
2
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
],
test
:
[
{
title
:
"服务规范"
,
desc
:
"通过本认证,是接单的必要条件"
,
condition
:
"随机10题,及格10题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-e-3x.png"
,
id
:
3
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
{
title
:
"交付规范"
,
desc
:
"快速认证,是否具备接单操作能力"
,
condition
:
"随机5题,及格5题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
4
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
],
prod
:
[
{
title
:
"服务规范"
,
desc
:
"通过本认证,是接单的必要条件"
,
condition
:
"随机20题,及格20题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-e-3x.png"
,
id
:
3
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
{
title
:
"接单操作"
,
desc
:
"快速认证,是否具备接单操作能力"
,
condition
:
"随机20题,及格16题"
,
status
:
""
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
4
,
examId
:
""
,
examStatus
:
""
,
isComplete
:
false
,
},
],
};
let
env
=
process
.
uniEnv
.
node_env
;
let
courseListJson
=
json
[
env
];
let
examListJson
=
examJson
[
env
];
export
default
{
data
()
{
return
{
tabs
:
[
{
name
:
"交付规范"
,
},
{
name
:
"培训通知"
,
},
{
name
:
"在线学习"
,
},
{
name
:
"考核认证"
,
},
],
bofang
:
process
.
uniEnv
.
qn_base_url
+
"bofang@3x.png"
,
current
:
0
,
swiperCurrent
:
0
,
params
:
{
start
:
0
,
},
{
title
:
'交付规范'
,
desc
:
'快速认证,是否具备接单操作能力'
,
condition
:
'随机4题,及格4题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
4
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
}
],
"prod"
:
[{
title
:
'服务规范'
,
desc
:
'通过本认证,是接单的必要条件'
,
condition
:
'随机20题,及格20题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"fwgf-e-3x.png"
,
id
:
3
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
list
:
[],
rule
:
{
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan@3x.png"
,
},
{
title
:
'接单操作'
,
desc
:
'快速认证,是否具备接单操作能力'
,
condition
:
'随机20题,及格16题'
,
status
:
''
,
pic
:
process
.
uniEnv
.
qn_base_url
+
"jdgf-e-3x.png"
,
id
:
4
,
examId
:
''
,
examStatus
:
''
,
isComplete
:
false
}
]
}
let
env
=
process
.
uniEnv
.
node_env
;
let
courseListJson
=
json
.[
env
];
let
examListJson
=
examJson
[
env
];
export
default
{
data
()
{
return
{
tabs
:
[{
name
:
"交付规范"
,
},
{
name
:
"培训通知"
,
},
{
name
:
"在线学习"
,
},
{
name
:
"考核认证"
,
},
],
bofang
:
process
.
uniEnv
.
qn_base_url
+
"bofang@3x.png"
,
current
:
0
,
swiperCurrent
:
0
,
params
:
{
start
:
0
,
courselist
:
[
{
title
:
courseListJson
[
0
].
title
,
desc
:
courseListJson
[
0
].
desc
,
percent
:
courseListJson
[
0
].
percent
,
status
:
courseListJson
[
0
].
status
,
pic
:
courseListJson
[
0
].
pic
,
id
:
courseListJson
[
0
].
id
,
sectionId
:
courseListJson
[
0
].
sectionId
,
},
list
:
[],
rule
:
{
pic
:
process
.
uniEnv
.
qn_base_url
+
"guifan@3x.png"
{
title
:
courseListJson
[
1
].
title
,
desc
:
courseListJson
[
1
].
desc
,
percent
:
courseListJson
[
1
].
percent
,
status
:
courseListJson
[
1
].
status
,
pic
:
courseListJson
[
1
].
pic
,
id
:
courseListJson
[
1
].
id
,
sectionId
:
courseListJson
[
1
].
sectionId
,
},
courselist
:
[{
title
:
courseListJson
[
0
].
title
,
desc
:
courseListJson
[
0
].
desc
,
percent
:
courseListJson
[
0
].
percent
,
status
:
courseListJson
[
0
].
status
,
pic
:
courseListJson
[
0
].
pic
,
id
:
courseListJson
[
0
].
id
,
sectionId
:
courseListJson
[
0
].
sectionId
},
{
title
:
courseListJson
[
1
].
title
,
desc
:
courseListJson
[
1
].
desc
,
percent
:
courseListJson
[
1
].
percent
,
status
:
courseListJson
[
1
].
status
,
pic
:
courseListJson
[
1
].
pic
,
id
:
courseListJson
[
1
].
id
,
sectionId
:
courseListJson
[
1
].
sectionId
},
{
title
:
courseListJson
[
2
].
title
,
desc
:
courseListJson
[
2
].
desc
,
percent
:
courseListJson
[
2
].
percent
,
status
:
courseListJson
[
2
].
status
,
pic
:
courseListJson
[
2
].
pic
,
id
:
courseListJson
[
2
].
id
,
sectionId
:
courseListJson
[
2
].
sectionId
,
}
],
examList
:
[{
title
:
examListJson
[
0
].
title
,
desc
:
examListJson
[
0
].
desc
,
condition
:
examListJson
[
0
].
condition
,
status
:
examListJson
[
0
].
status
,
pic
:
examListJson
[
0
].
pic
,
id
:
examListJson
[
0
].
id
,
examId
:
examListJson
[
0
].
examId
,
examStatus
:
examListJson
[
0
].
examStatus
,
isComplete
:
examListJson
[
0
].
isComplete
},
{
title
:
examListJson
[
1
].
title
,
desc
:
examListJson
[
1
].
desc
,
condition
:
examListJson
[
1
].
condition
,
status
:
examListJson
[
1
].
status
,
pic
:
examListJson
[
1
].
pic
,
id
:
examListJson
[
1
].
id
,
examId
:
examListJson
[
1
].
examId
,
examStatus
:
examListJson
[
1
].
examStatus
,
isComplete
:
examListJson
[
1
].
isComplete
}
],
loadStatus
:
"loading"
,
isLoadMore
:
false
,
exam
:
null
,
jianBianImg
:
process
.
uniEnv
.
qn_base_url
+
"jianbian@3x_bak1.png"
,
isReflesh
:
true
,
triggered
:
false
,
_freshing
:
false
,
{
title
:
courseListJson
[
2
].
title
,
desc
:
courseListJson
[
2
].
desc
,
percent
:
courseListJson
[
2
].
percent
,
status
:
courseListJson
[
2
].
status
,
pic
:
courseListJson
[
2
].
pic
,
id
:
courseListJson
[
2
].
id
,
sectionId
:
courseListJson
[
2
].
sectionId
,
},
],
examList
:
[
{
title
:
examListJson
[
0
].
title
,
desc
:
examListJson
[
0
].
desc
,
condition
:
examListJson
[
0
].
condition
,
status
:
examListJson
[
0
].
status
,
pic
:
examListJson
[
0
].
pic
,
id
:
examListJson
[
0
].
id
,
examId
:
examListJson
[
0
].
examId
,
examStatus
:
examListJson
[
0
].
examStatus
,
isComplete
:
examListJson
[
0
].
isComplete
,
},
{
title
:
examListJson
[
1
].
title
,
desc
:
examListJson
[
1
].
desc
,
condition
:
examListJson
[
1
].
condition
,
status
:
examListJson
[
1
].
status
,
pic
:
examListJson
[
1
].
pic
,
id
:
examListJson
[
1
].
id
,
examId
:
examListJson
[
1
].
examId
,
examStatus
:
examListJson
[
1
].
examStatus
,
isComplete
:
examListJson
[
1
].
isComplete
,
},
],
loadStatus
:
"loading"
,
isLoadMore
:
false
,
exam
:
null
,
jianBianImg
:
process
.
uniEnv
.
qn_base_url
+
"jianbian@3x_bak1.png"
,
isReflesh
:
true
,
triggered
:
false
,
_freshing
:
false
,
};
},
onLoad
(
param
)
{
var
that
=
this
;
try
{
if
(
param
.
tabs
)
{
this
.
current
=
param
.
tabs
;
this
.
swiperCurrent
=
param
.
tabs
;
}
}
catch
(
e
)
{}
},
computed
:
{
bannerImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"banner-xx@3x.png"
;
},
onLoad
(
param
)
{
var
that
=
this
;
try
{
if
(
param
.
tabs
)
{
this
.
current
=
param
.
tabs
;
this
.
swiperCurrent
=
param
.
tabs
;
}
}
catch
(
e
)
{}
},
onShow
:
function
(
param
)
{
if
(
this
.
current
==
2
||
this
.
current
==
3
)
{
this
.
tabsChange
(
this
.
current
);
}
},
methods
:
{
stopPull
()
{
let
that
=
this
;
setTimeout
(
function
()
{
that
.
triggered
=
false
;
that
.
_freshing
=
false
;
},
1000
);
},
computed
:
{
bannerImage
()
{
return
process
.
uniEnv
.
qn_base_url
+
"banner-xx@3x.png"
;
},
onPulling
(
e
)
{
return
true
;
console
.
log
(
"onpulling"
,
e
);
},
onRefresh
()
{
if
(
this
.
_freshing
)
return
;
this
.
triggered
=
true
;
this
.
_freshing
=
true
;
this
.
isLoadMore
=
false
;
this
.
loadStatus
=
"loading"
;
this
.
loadNews
();
},
onRestore
()
{
this
.
triggered
=
"restore"
;
// 需要重置
console
.
log
(
"onRestore"
);
},
onShow
:
function
(
param
)
{
if
(
this
.
current
==
2
||
this
.
current
==
3
){
this
.
tabsChange
(
this
.
current
);
onAbort
()
{
console
.
log
(
"onAbort"
);
},
//scroll-view到底部加载更多
onReachBottom
()
{
//上拉触底函数
if
(
!
this
.
isLoadMore
)
{
this
.
isLoadMore
=
true
;
this
.
params
.
start
+=
5
;
if
(
this
.
loadStatus
!==
"nomore"
)
{
this
.
getNoticeList
();
}
}
},
methods
:
{
stopPull
()
{
let
that
=
this
;
setTimeout
(
function
(){
that
.
triggered
=
false
;
that
.
_freshing
=
false
;
},
1000
)
},
onPulling
(
e
)
{
return
true
console
.
log
(
"onpulling"
,
e
);
},
onRefresh
()
{
if
(
this
.
_freshing
)
return
;
this
.
triggered
=
true
;
this
.
_freshing
=
true
;
this
.
isLoadMore
=
false
;
this
.
loadStatus
=
"loading"
;
this
.
loadNews
();
},
onRestore
()
{
this
.
triggered
=
'restore'
;
// 需要重置
console
.
log
(
"onRestore"
);
},
onAbort
()
{
console
.
log
(
"onAbort"
);
},
//scroll-view到底部加载更多
onReachBottom
()
{
//上拉触底函数
if
(
!
this
.
isLoadMore
)
{
this
.
isLoadMore
=
true
;
this
.
params
.
start
+=
5
;
if
(
this
.
loadStatus
!==
"nomore"
)
{
this
.
getNoticeList
();
stopTouchMove
()
{
return
false
;
},
getNoticeList
()
{
let
that
=
this
;
this
.
$u
.
api
.
getTrainingNoticeList
(
this
.
params
)
.
then
((
res
)
=>
{
that
.
stopPull
();
if
(
res
.
code
!=
200
)
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
,
});
that
.
isLoadMore
=
false
;
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
;
}
}
if
(
res
.
data
)
{
let
length
=
res
.
data
.
length
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
res
.
data
[
i
].
create_at
=
this
.
timeFormat
(
res
.
data
[
i
].
create_at
,
"yyyy.MM.dd hh:mm"
);
}
that
.
list
=
that
.
list
.
concat
(
res
.
data
);
}
if
(
res
.
data
.
length
>=
5
)
{
that
.
isLoadMore
=
false
;
}
else
{
that
.
isLoadMore
=
true
;
that
.
loadStatus
=
"nomore"
;
}
})
.
catch
((
err
)
=>
{
uni
.
showToast
({
title
:
err
,
icon
:
"none"
,
});
that
.
isLoadMore
=
false
;
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
;
}
});
},
timeFormat
(
time
,
format
,
fromMysql
=
true
)
{
let
rate
=
fromMysql
?
1000
:
1
;
let
dataFmt
=
format
||
"yyyy-MM-dd hh:mm:ss"
;
// 需要格式化的规则
time
=
typeof
time
==
"number"
?
time
:
new
Date
(
time
*
rate
);
// 处理传入的time
let
fmt
=
{
"y+"
:
time
.
getFullYear
(),
// 年份
"M+"
:
time
.
getMonth
()
+
1
,
// 月份
"d+"
:
time
.
getDate
(),
// 日
"h+"
:
time
.
getHours
(),
// 小时
"m+"
:
time
.
getMinutes
(),
// 分钟
"s+"
:
time
.
getSeconds
(),
// 秒
};
for
(
let
i
in
fmt
)
{
if
(
new
RegExp
(
"("
+
i
+
")"
).
test
(
dataFmt
))
{
dataFmt
=
dataFmt
.
replace
(
RegExp
.
$1
,
fmt
[
i
].
toString
().
length
<=
1
?
"0"
+
fmt
[
i
]
:
fmt
[
i
]
);
}
},
stopTouchMove
()
{
return
false
;
},
getNoticeList
()
{
let
that
=
this
;
}
return
dataFmt
;
},
getTypeName
(
percent
)
{
if
(
percent
==
0
)
{
return
"未开始"
;
}
else
if
(
percent
==
"100"
)
{
return
"已完成"
;
}
else
{
return
"继续"
;
}
},
//在线学习通用课程信息
getCourseList
()
{
let
courseLength
=
this
.
courselist
.
length
;
for
(
let
i
=
0
;
i
<
courseLength
;
i
++
)
{
let
param
=
{
course_id
:
this
.
courselist
[
i
].
id
,
};
this
.
$u
.
api
.
getTrainingNoticeList
(
this
.
params
)
.
CourseList
(
param
)
.
then
((
res
)
=>
{
that
.
stopPull
();
if
(
res
.
code
!=
200
){
if
(
res
.
code
!=
200
)
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
,
});
that
.
isLoadMore
=
false
;
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
;
}
}
if
(
res
.
data
)
{
let
length
=
res
.
data
.
length
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
res
.
data
[
i
].
create_at
=
this
.
timeFormat
(
res
.
data
[
i
].
create_at
,
'yyyy.MM.dd hh:mm'
);
}
that
.
list
=
that
.
list
.
concat
(
res
.
data
);
}
if
(
res
.
data
.
length
>=
5
){
that
.
isLoadMore
=
false
;
}
else
{
that
.
isLoadMore
=
true
;
that
.
loadStatus
=
"nomore"
;
res
.
data
.
learnedInfo
.
learnPercent
*=
100
;
this
.
courselist
[
i
].
status
=
this
.
getTypeName
(
res
.
data
.
learnedInfo
.
learnPercent
);
this
.
courselist
[
i
].
percent
=
res
.
data
.
learnedInfo
.
learnPercent
;
this
.
courselist
[
i
].
sectionId
=
res
.
data
.
learnedInfo
.
nextLearnedSectionId
;
}
})
.
catch
((
err
)
=>
{
...
...
@@ -501,504 +569,452 @@
title
:
err
,
icon
:
"none"
,
});
that
.
isLoadMore
=
false
;
if
(
that
.
params
.
start
>
0
)
{
that
.
page
-=
5
;
}
});
},
timeFormat
(
time
,
format
,
fromMysql
=
true
)
{
let
rate
=
fromMysql
?
1000
:
1
;
let
dataFmt
=
format
||
'yyyy-MM-dd hh:mm:ss'
// 需要格式化的规则
time
=
typeof
(
time
)
==
'number'
?
time
:
new
Date
(
time
*
rate
)
// 处理传入的time
let
fmt
=
{
'y+'
:
time
.
getFullYear
(),
// 年份
'M+'
:
time
.
getMonth
()
+
1
,
// 月份
'd+'
:
time
.
getDate
(),
// 日
'h+'
:
time
.
getHours
(),
// 小时
'm+'
:
time
.
getMinutes
(),
// 分钟
's+'
:
time
.
getSeconds
()
// 秒
}
for
(
let
i
in
fmt
)
{
if
(
new
RegExp
(
'('
+
i
+
')'
).
test
(
dataFmt
))
{
dataFmt
=
dataFmt
.
replace
(
RegExp
.
$1
,
fmt
[
i
].
toString
().
length
<=
1
?
'0'
+
fmt
[
i
]
:
fmt
[
i
])
}
}
return
dataFmt
;
},
getTypeName
(
percent
)
{
if
(
percent
==
0
)
{
return
'未开始'
;
}
else
if
(
percent
==
'100'
)
{
return
'已完成'
;
}
else
{
return
'继续'
;
}
},
//在线学习通用课程信息
getCourseList
()
{
let
courseLength
=
this
.
courselist
.
length
;
for
(
let
i
=
0
;
i
<
courseLength
;
i
++
)
{
let
param
=
{
course_id
:
this
.
courselist
[
i
].
id
};
this
.
$u
.
api
.
CourseList
(
param
)
.
then
((
res
)
=>
{
if
(
res
.
code
!=
200
)
{
uni
.
showToast
({
title
:
res
.
message
,
icon
:
"none"
,
});
}
if
(
res
.
data
)
{
res
.
data
.
learnedInfo
.
learnPercent
*=
100
;
this
.
courselist
[
i
].
status
=
this
.
getTypeName
(
res
.
data
.
learnedInfo
.
learnPercent
);
this
.
courselist
[
i
].
percent
=
res
.
data
.
learnedInfo
.
learnPercent
;
this
.
courselist
[
i
].
sectionId
=
res
.
data
.
learnedInfo
.
nextLearnedSectionId
;
}
})
.
catch
((
err
)
=>
{
uni
.
showToast
({
title
:
err
,
icon
:
"none"
,
});
});
}
},
//tabs通知swiper切换
tabsChange
(
index
)
{
this
.
swiperCurrent
=
index
;
switch
(
index
)
{
case
1
:
this
.
loadNews
()
break
;
case
2
:
this
.
getCourseList
();
break
;
case
3
:
this
.
getUserExamInfo
();
break
;
}
},
loadNews
()
{
this
.
params
.
start
=
0
;
this
.
list
=
[];
this
.
getNoticeList
();
},
animationfinish
(
e
)
{
let
current
=
e
.
detail
.
current
;
this
.
$refs
.
uTabs
.
setFinishCurrent
(
current
);
this
.
swiperCurrent
=
current
;
this
.
current
=
current
;
},
//跳转到拍照小程序首页
goToPrint
()
{
console
.
log
(
"111111"
);
uni
.
navigateToMiniProgram
({
appId
:
"wxd1d6eede324b0465"
,
success
(
res
)
{
//打开成功
console
.
log
(
"success"
,
res
);
},
fail
(
err
)
{
console
.
log
(
"err"
,
err
);
},
});
},
//考核认证,通用认证,考试通过or未通过查询接口请求
getUserExamInfo
()
{
uni
.
showLoading
({
title
:
"请稍候"
,
});
let
that
=
this
;
let
token
=
that
.
vuex_token
;
let
length
=
this
.
examList
.
length
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
let
examId
=
this
.
examList
[
i
].
id
;
this
.
$u
.
api
.
getExamResult
(
examId
)
.
then
((
res
)
=>
{
if
(
res
.
code
!=
200
){
console
.
log
(
'getUserExamInfo 200 err'
);
uni
.
showToast
({
icon
:
"none"
,
title
:
'获取考试信息失败'
,
});
}
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
//i;//
let
examResult
=
res
.
data
.
examLevelResult
;
this
.
examList
[
i
].
status
=
examResult
!=
''
?
examResult
:
'未通过'
;
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
that
.
exam
=
res
.
data
;
console
.
log
(
that
.
exam
);
if
(
res
.
data
.
examStatus
==
2
)
{
console
.
log
(
"examStatus "
+
i
+
" 2"
);
return
;
}
if
(
res
.
data
.
examStatus
==
1
)
{
console
.
log
(
"examStatus "
+
i
+
" 1"
);
that
.
examList
[
i
].
isComplete
=
this
.
examList
[
i
].
status
==
'通过'
;
that
.
examScore
=
res
.
data
.
examScore
;
return
;
}
if
(
res
.
data
.
examStatus
==
0
)
{
console
.
log
(
"examStatus "
+
i
+
" 0"
);
that
.
userExamId
=
res
.
data
.
id
;
}
})
.
catch
((
err
)
=>
{
console
.
log
(
'getUserExamInfo err'
+
err
);
uni
.
hideLoading
();
}
},
//tabs通知swiper切换
tabsChange
(
index
)
{
this
.
swiperCurrent
=
index
;
switch
(
index
)
{
case
1
:
this
.
loadNews
();
break
;
case
2
:
this
.
getCourseList
();
break
;
case
3
:
this
.
getUserExamInfo
();
break
;
}
},
loadNews
()
{
this
.
params
.
start
=
0
;
this
.
list
=
[];
this
.
getNoticeList
();
},
animationfinish
(
e
)
{
let
current
=
e
.
detail
.
current
;
this
.
$refs
.
uTabs
.
setFinishCurrent
(
current
);
this
.
swiperCurrent
=
current
;
this
.
current
=
current
;
},
//跳转到拍照小程序首页
goToPrint
()
{
uni
.
navigateToMiniProgram
({
appId
:
"wxd1d6eede324b0465"
,
path
:
"/pages/photo/index"
,
success
(
res
)
{
//打开成功
console
.
log
(
"success"
,
res
);
},
fail
(
err
)
{
console
.
log
(
"err"
,
err
);
},
});
},
//考核认证,通用认证,考试通过or未通过查询接口请求
getUserExamInfo
()
{
uni
.
showLoading
({
title
:
"请稍候"
,
});
let
that
=
this
;
let
token
=
that
.
vuex_token
;
let
length
=
this
.
examList
.
length
;
for
(
let
i
=
0
;
i
<
length
;
i
++
)
{
let
examId
=
this
.
examList
[
i
].
id
;
this
.
$u
.
api
.
getExamResult
(
examId
)
.
then
((
res
)
=>
{
if
(
res
.
code
!=
200
)
{
console
.
log
(
"getUserExamInfo 200 err"
);
uni
.
showToast
({
icon
:
"none"
,
title
:
"获取考试信息失败"
,
});
}
this
.
examList
[
i
].
examId
=
res
.
data
.
id
;
this
.
examList
[
i
].
examStatus
=
res
.
data
.
examStatus
;
//i;//
let
examResult
=
res
.
data
.
examLevelResult
;
this
.
examList
[
i
].
status
=
examResult
!=
""
?
examResult
:
"未通过"
;
// examStatus 用户考试状态 0考试中 1考试完成 2未参与
that
.
exam
=
res
.
data
;
console
.
log
(
that
.
exam
);
if
(
res
.
data
.
examStatus
==
2
)
{
console
.
log
(
"examStatus "
+
i
+
" 2"
);
return
;
}
if
(
res
.
data
.
examStatus
==
1
)
{
console
.
log
(
"examStatus "
+
i
+
" 1"
);
that
.
examList
[
i
].
isComplete
=
this
.
examList
[
i
].
status
==
"通过"
;
that
.
examScore
=
res
.
data
.
examScore
;
return
;
}
if
(
res
.
data
.
examStatus
==
0
)
{
console
.
log
(
"examStatus "
+
i
+
" 0"
);
that
.
userExamId
=
res
.
data
.
id
;
}
})
.
catch
((
err
)
=>
{
console
.
log
(
"getUserExamInfo err"
+
err
);
uni
.
hideLoading
();
uni
.
showToast
({
icon
:
"none"
,
title
:
"获取考试信息失败"
,
});
}
},
//跳转到assessment页面
aaa
(
index
)
{
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//考试完成分成通过、未通过
var
examInfo
=
this
.
examList
[
index
];
if
(
examInfo
.
examStatus
==
0
)
{
console
.
log
(
"这是试卷id"
,
examInfo
.
id
);
});
}
},
//跳转到assessment页面
aaa
(
index
)
{
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//考试完成分成通过、未通过
var
examInfo
=
this
.
examList
[
index
];
if
(
examInfo
.
examStatus
==
0
)
{
console
.
log
(
"这是试卷id"
,
examInfo
.
id
);
wx
.
navigateTo
({
url
:
"/pages/learn/answer?examId="
+
examInfo
.
id
,
});
}
else
if
(
examInfo
.
examStatus
==
1
)
{
// examInfo.status = '通过';
if
(
examInfo
.
status
==
"通过"
)
{
wx
.
navigateTo
({
url
:
"/pages/learn/answer?examId="
+
examInfo
.
id
,
url
:
"/pages/learn/exam-pass?userExamId="
+
examInfo
.
examId
,
});
}
else
if
(
examInfo
.
examStatus
==
1
)
{
// examInfo.status = '通过';
if
(
examInfo
.
status
==
'通过'
)
{
wx
.
navigateTo
({
url
:
"/pages/learn/exam-pass?userExamId="
+
examInfo
.
examId
,
});
}
else
{
wx
.
navigateTo
({
url
:
"/pages/learn/result?userExamId="
+
examInfo
.
examId
+
"&examId="
+
examInfo
.
id
,
});
}
}
else
if
(
examInfo
.
examStatus
==
2
)
{
}
else
{
wx
.
navigateTo
({
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
url
:
"/pages/learn/result?userExamId="
+
examInfo
.
examId
+
"&examId="
+
examInfo
.
id
,
});
}
},
//跳转到播放
goPlay
(
info
)
{
uni
.
navigateTo
({
url
:
"/pages/learn/section?section_id="
+
info
.
sectionId
+
"&course_id="
+
info
.
id
,
});
},
//跳转到
bbb
(
e
)
{
var
news
=
{
body
:
e
.
body
,
title
:
e
.
title
};
let
that
=
this
;
}
else
if
(
examInfo
.
examStatus
==
2
)
{
wx
.
navigateTo
({
url
:
'/pages/learn/news-details'
,
success
:
function
(
res
)
{
res
.
eventChannel
.
emit
(
'acceptDataFromLearn'
,
news
)
}
url
:
"/pages/learn/assessment?examId="
+
examInfo
.
id
,
});
},
}
},
//跳转到播放
goPlay
(
info
)
{
uni
.
navigateTo
({
url
:
"/pages/learn/section?section_id="
+
info
.
sectionId
+
"&course_id="
+
info
.
id
,
});
},
//跳转到
bbb
(
e
)
{
var
news
=
{
body
:
e
.
body
,
title
:
e
.
title
,
};
let
that
=
this
;
wx
.
navigateTo
({
url
:
"/pages/learn/news-details"
,
success
:
function
(
res
)
{
res
.
eventChannel
.
emit
(
"acceptDataFromLearn"
,
news
);
},
});
},
};
},
};
</
script
>
<
style
>
.study
{
height
:
100vh
;
background-color
:
#f4f5f7
;
padding
:
0
rpx
30
rpx
0
30
rpx
;
}
.title-view
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
40
rpx
;
}
.banner
{
width
:
690
rpx
;
height
:
240
rpx
;
margin-top
:
10
rpx
;
}
/* 交付规范 */
.standard
{
width
:
690
rpx
;
height
:
180
rpx
;
display
:
flex
;
justify-content
:
space-between
;
/* border-bottom: 1rpx solid #82848a; */
/* padding: 0 34rpx; */
/* margin: 72rpx auto; */
border-radius
:
12
rpx
;
padding
:
30
rpx
;
margin-top
:
30
rpx
;
background-color
:
#FFFFFF
;
}
/* 培训通知 */
.notice
{
/* border: #808080 solid 2rpx; */
width
:
100%
;
min-height
:
370
rpx
;
margin-top
:
36
rpx
;
overflow
:
hidden
;
background-color
:
#ffffff
;
border-radius
:
12
rpx
;
padding
:
30
rpx
;
}
.n-head
{
text-align
:
left
;
font-size
:
32
rpx
;
font-weight
:
bold
;
color
:
#333333
;
}
.news
{
height
:
168
rpx
;
overflow
:
hidden
;
margin-top
:
30
rpx
;
font-size
:
24
rpx
;
color
:
#666666
;
line-height
:
34
rpx
;
margin-bottom
:
20
rpx
;
}
/* 在线学习 */
.currency-class
{
width
:
100%
;
background
:
#ffffff
;
padding
:
30
rpx
;
border-radius
:
12
rpx
;
}
.learn-currency-class
{
width
:
100%
;
border-radius
:
12
rpx
;
display
:
flex
;
}
.jf-currency-class
{
width
:
100%
;
height
:
180
rpx
;
position
:
absolute
;
border-radius
:
12
rpx
;
margin-top
:
60
rpx
;
}
.title
{
font-size
:
32
rpx
;
font-weight
:
bold
;
font-family
:
PingFang-SC-Bold
,
PingFang-SC
;
}
.class1
{
display
:
-webkit-box
;
display
:
-webkit-flex
;
display
:
flex
;
-webkit-box-pack
:
justify
;
-webkit-justify-content
:
space-between
;
justify-content
:
space-between
;
}
.learn-class1
{
display
:
-webkit-box
;
display
:
-webkit-flex
;
display
:
block
;
-webkit-box-pack
:
justify
;
-webkit-justify-content
:
space-between
;
justify-content
:
space-between
;
width
:
330
rpx
;
height
:
420
rpx
;
background-color
:
#ffffff
;
position
:
relative
;
border-radius
:
12
rpx
;
}
.img
{
width
:
160
rpx
;
height
:
120
rpx
;
}
.learn-img
{
width
:
330
rpx
;
height
:
194
rpx
;
}
.jf-img
{
width
:
160
rpx
;
height
:
200
rpx
;
position
:
absolute
;
top
:
-45
rpx
;
left
:
30
rpx
;
}
.right
{
width
:
434
rpx
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
}
.intro
{
color
:
#9999a6
;
}
.tab
{
background
:
#fff
;
height
:
82
rpx
;
margin
:
0
0
;
}
.text
{
margin
:
0
40
rpx
;
line-height
:
82
rpx
;
color
:
#667eb5
;
}
.content
{
margin
:
5px
0
;
height
:
485
rpx
;
background
:
#fff
;
}
swiper
{
height
:
70vh
;
}
.line-percent
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
24
rpx
;
color
:
#999999
;
margin
:
20
rpx
;
margin-top
:
25
rpx
;
}
.jf-line
{
display
:
flex
;
justify-content
:
space-between
;
width
:
120
rpx
;
height
:
52
rpx
;
border-radius
:
26
rpx
;
background-color
:
#ffffff
;
color
:
#2272FF
;
text-align
:
center
;
padding-left
:
20
rpx
;
padding-top
:
6
rpx
;
margin-top
:
20
rpx
;
}
.u-progress
{
width
:
160
rpx
!important
;
height
:
12
rpx
!important
;
background-color
:
#ececec
;
}
.font-bold
{
font-weight
:
bold
;
}
.font-default-color
{
color
:
#999999
;
}
.font-default-exam-color
{
color
:
#FA5A49
;
}
.font-active-color
{
color
:
#2272FF
;
}
.font-color-999999
{
color
:
#999999
;
}
.standard-img
{
width
:
160
rpx
;
height
:
120
rpx
;
}
.standard-body
{
height
:
120
rpx
;
display
:
flex
;
}
.standard-body-title
{
font-size
:
32
rpx
;
font-weight
:
bold
;
}
.jf-right
{
padding-left
:
190
rpx
;
width
:
460
rpx
;
color
:
#ffffff
;
}
.notice-bottom
{
margin-top
:
20
rpx
;
display
:
block
;
position
:
relative
;
}
.notice-bottom-left
{
font-size
:
24
rpx
;
color
:
#999999
;
float
:
left
;
}
.notice-bottom-right
{
font-size
:
24
rpx
;
color
:
#2272FF
;
float
:
right
;
}
.bofang
{
width
:
60
rpx
;
height
:
60
rpx
;
position
:
absolute
;
left
:
130
rpx
;
top
:
70
rpx
;
}
.learn-desc
{
height
:
138
rpx
;
margin-top
:
-10
rpx
;
padding-top
:
20
rpx
;
padding-left
:
20
rpx
;
padding-right
:
20
rpx
;
}
.learn-intro
{
color
:
#999999
;
margin-top
:
20
rpx
;
font-size
:
20
rpx
;
}
.h48
{
height
:
48
rpx
;
}
.current-img
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
}
.load-more
{
padding-top
:
50
rpx
;
padding-bottom
:
200
rpx
;
}
.study
{
height
:
100vh
;
background-color
:
#f4f5f7
;
padding
:
0
rpx
30
rpx
0
30
rpx
;
}
.title-view
{
color
:
#333333
;
font-weight
:
bold
;
font-size
:
40
rpx
;
}
.banner
{
width
:
690
rpx
;
height
:
240
rpx
;
margin-top
:
10
rpx
;
}
/* 交付规范 */
.standard
{
width
:
690
rpx
;
height
:
180
rpx
;
display
:
flex
;
justify-content
:
space-between
;
/* border-bottom: 1rpx solid #82848a; */
/* padding: 0 34rpx; */
/* margin: 72rpx auto; */
border-radius
:
12
rpx
;
padding
:
30
rpx
;
margin-top
:
30
rpx
;
background-color
:
#ffffff
;
}
/* 培训通知 */
.notice
{
/* border: #808080 solid 2rpx; */
width
:
100%
;
min-height
:
370
rpx
;
margin-top
:
36
rpx
;
overflow
:
hidden
;
background-color
:
#ffffff
;
border-radius
:
12
rpx
;
padding
:
30
rpx
;
}
.n-head
{
text-align
:
left
;
font-size
:
32
rpx
;
font-weight
:
bold
;
color
:
#333333
;
}
.news
{
height
:
168
rpx
;
overflow
:
hidden
;
margin-top
:
30
rpx
;
font-size
:
24
rpx
;
color
:
#666666
;
line-height
:
34
rpx
;
margin-bottom
:
20
rpx
;
}
/* 在线学习 */
.currency-class
{
width
:
100%
;
background
:
#ffffff
;
padding
:
30
rpx
;
border-radius
:
12
rpx
;
}
.learn-currency-class
{
width
:
100%
;
border-radius
:
12
rpx
;
display
:
flex
;
}
.jf-currency-class
{
width
:
100%
;
height
:
180
rpx
;
position
:
absolute
;
border-radius
:
12
rpx
;
margin-top
:
60
rpx
;
}
.title
{
font-size
:
32
rpx
;
font-weight
:
bold
;
font-family
:
PingFang-SC-Bold
,
PingFang-SC
;
}
.class1
{
display
:
-webkit-box
;
display
:
-webkit-flex
;
display
:
flex
;
-webkit-box-pack
:
justify
;
-webkit-justify-content
:
space-between
;
justify-content
:
space-between
;
}
.learn-class1
{
display
:
-webkit-box
;
display
:
-webkit-flex
;
display
:
block
;
-webkit-box-pack
:
justify
;
-webkit-justify-content
:
space-between
;
justify-content
:
space-between
;
width
:
330
rpx
;
height
:
420
rpx
;
background-color
:
#ffffff
;
position
:
relative
;
border-radius
:
12
rpx
;
}
.img
{
width
:
160
rpx
;
height
:
120
rpx
;
}
.learn-img
{
width
:
330
rpx
;
height
:
194
rpx
;
}
.jf-img
{
width
:
160
rpx
;
height
:
200
rpx
;
position
:
absolute
;
top
:
-45
rpx
;
left
:
30
rpx
;
}
.right
{
width
:
434
rpx
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
space-between
;
}
.intro
{
color
:
#9999a6
;
}
.tab
{
background
:
#fff
;
height
:
82
rpx
;
margin
:
0
0
;
}
.text
{
margin
:
0
40
rpx
;
line-height
:
82
rpx
;
color
:
#667eb5
;
}
.content
{
margin
:
5px
0
;
height
:
485
rpx
;
background
:
#fff
;
}
swiper
{
height
:
70vh
;
}
.line-percent
{
display
:
flex
;
justify-content
:
space-between
;
font-size
:
24
rpx
;
color
:
#999999
;
margin
:
20
rpx
;
margin-top
:
25
rpx
;
}
.jf-line
{
display
:
flex
;
justify-content
:
space-between
;
width
:
120
rpx
;
height
:
52
rpx
;
border-radius
:
26
rpx
;
background-color
:
#ffffff
;
color
:
#2272ff
;
text-align
:
center
;
padding-left
:
20
rpx
;
padding-top
:
6
rpx
;
margin-top
:
20
rpx
;
}
.u-progress
{
width
:
160
rpx
!important
;
height
:
12
rpx
!important
;
background-color
:
#ececec
;
}
.font-bold
{
font-weight
:
bold
;
}
.font-default-color
{
color
:
#999999
;
}
.font-default-exam-color
{
color
:
#fa5a49
;
}
.font-active-color
{
color
:
#2272ff
;
}
.font-color-999999
{
color
:
#999999
;
}
.standard-img
{
width
:
160
rpx
;
height
:
120
rpx
;
}
.standard-body
{
height
:
120
rpx
;
display
:
flex
;
}
.standard-body-title
{
font-size
:
32
rpx
;
font-weight
:
bold
;
}
.jf-right
{
padding-left
:
190
rpx
;
width
:
460
rpx
;
color
:
#ffffff
;
}
.notice-bottom
{
margin-top
:
20
rpx
;
display
:
block
;
position
:
relative
;
}
.notice-bottom-left
{
font-size
:
24
rpx
;
color
:
#999999
;
float
:
left
;
}
.notice-bottom-right
{
font-size
:
24
rpx
;
color
:
#2272ff
;
float
:
right
;
}
.bofang
{
width
:
60
rpx
;
height
:
60
rpx
;
position
:
absolute
;
left
:
130
rpx
;
top
:
70
rpx
;
}
.learn-desc
{
height
:
138
rpx
;
margin-top
:
-10
rpx
;
padding-top
:
20
rpx
;
padding-left
:
20
rpx
;
padding-right
:
20
rpx
;
}
.learn-intro
{
color
:
#999999
;
margin-top
:
20
rpx
;
font-size
:
20
rpx
;
}
.h48
{
height
:
48
rpx
;
}
.current-img
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
}
.load-more
{
padding-top
:
50
rpx
;
padding-bottom
:
200
rpx
;
}
</
style
>
src/pages/learn/answer.vue
View file @
b3bd3150
...
...
@@ -136,7 +136,7 @@ export default {
//判断是否通过,通过去成功页,失败去失败页
let
examInfo
=
this
.
examInfo
;
let
examId
=
this
.
examId
;
let
status
=
examInfo
.
examLevelResult
==
"通过"
;
let
status
=
examInfo
.
examLevelResult
==
"
已
通过"
;
if
(
status
)
{
wx
.
navigateTo
({
url
:
...
...
@@ -332,7 +332,8 @@ export default {
"&questionId="
+
questionId
+
"&userAnswerIds="
+
(
this
.
userAnswerIds
||
"9999"
),
// 9999超时自动下一题
(
this
.
userAnswerIds
||
"9999"
)
+
","
,
// 9999超时自动下一题
method
:
"POST"
,
data
:
{
// userExamId:this.userExamId,
...
...
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