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
acfe4382
Commit
acfe4382
authored
Apr 16, 2021
by
Facius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考试首页
parent
5d47a90d
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
320 additions
and
137 deletions
+320
-137
pages.json
src/pages.json
+10
-0
index.vue
src/pages/exam/index.vue
+4
-5
course-detail.vue
src/pages/learn/course-detail.vue
+0
-1
exam.vue
src/pages/learn/exam.vue
+304
-128
index.vue
src/pages/login/index.vue
+0
-1
base.vue
src/pages/settle/base.vue
+1
-1
file.vue
src/pages/settle/file.vue
+1
-1
tips1@3x.png
src/static/settle/tips1@3x.png
+0
-0
No files found.
src/pages.json
View file @
acfe4382
...
@@ -217,6 +217,16 @@
...
@@ -217,6 +217,16 @@
"path"
:
"pages/settle/base"
,
//启动页面,必选
"path"
:
"pages/settle/base"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
},
{
"name"
:
"在线考试"
,
//模式名称
"path"
:
"pages/learn/exam"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
"name"
:
"在线考试-old"
,
//模式名称
"path"
:
"pages/exam/start"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},
{
{
"name"
:
"入驻提示"
,
//模式名称
"name"
:
"入驻提示"
,
//模式名称
"path"
:
"pages/settle/prompt"
,
//启动页面,必选
"path"
:
"pages/settle/prompt"
,
//启动页面,必选
...
...
src/pages/exam/index.vue
View file @
acfe4382
<
template
>
<
template
>
<view
class=
"backView"
>
<view
class=
"backView"
>
<process
:process=
"2"
:type=
"0"
title=
"业务流程"
></process>
<template
v-if=
"isStart==false"
>
<template
v-if=
"isStart==false"
>
<view
class=
"noticeView"
>
<view
class=
"noticeView"
>
<text
class=
"noticeText"
>
规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
<text
class=
"noticeText"
>
规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
...
@@ -151,7 +150,7 @@
...
@@ -151,7 +150,7 @@
}
}
if
(
res
.
data
.
code
==
401
||
res
.
data
.
code
==
403
)
{
if
(
res
.
data
.
code
==
401
||
res
.
data
.
code
==
403
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/login/
index
'
url
:
'/pages/login/
wxlogin
'
})
})
return
return
}
}
...
@@ -220,7 +219,7 @@
...
@@ -220,7 +219,7 @@
if
(
res
.
statusCode
==
401
)
{
if
(
res
.
statusCode
==
401
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/login/
index
'
url
:
'/pages/login/
wxlogin
'
})
})
return
return
}
}
...
@@ -289,7 +288,7 @@
...
@@ -289,7 +288,7 @@
uni
.
hideLoading
()
uni
.
hideLoading
()
if
(
res
.
statusCode
==
401
)
{
if
(
res
.
statusCode
==
401
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/login/
index
'
url
:
'/pages/login/
wxlogin
'
})
})
return
return
}
}
...
@@ -452,7 +451,7 @@
...
@@ -452,7 +451,7 @@
if
(
res
.
statusCode
==
401
)
{
if
(
res
.
statusCode
==
401
)
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'/pages/login/
index
'
url
:
'/pages/login/
wxlogin
'
})
})
return
return
}
}
...
...
src/pages/learn/course-detail.vue
View file @
acfe4382
...
@@ -65,7 +65,6 @@ export default {
...
@@ -65,7 +65,6 @@ export default {
let
that
=
this
let
that
=
this
if
(
that
.
courseId
)
{
if
(
that
.
courseId
)
{
that
.
$u
.
api
.
saveCourseRate
({
courseId
:
that
.
courseId
}).
then
(
res
=>
{
that
.
$u
.
api
.
saveCourseRate
({
courseId
:
that
.
courseId
}).
then
(
res
=>
{
debugger
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
// uni.navigateBack({delta: 1})
// uni.navigateBack({delta: 1})
uni
.
navigateTo
({
uni
.
navigateTo
({
...
...
src/pages/learn/exam.vue
View file @
acfe4382
<
template
>
<
template
>
<view
class=
"exam-wrap"
>
<view
class=
"exam-wrap"
>
<Settle
:index=
"3"
>
<Settle
:index=
"3"
>
<view
class=
"exam-tips"
><u-alert-tips
:show-icon=
"true"
class=
"exam-tips"
type=
"warning"
:title=
"tipsTitle"
:description=
"tipsDescription"
></u-alert-tips></view>
<view
class=
"tip-text"
>
<image
class=
"tip-image"
mode=
"widthFix"
src=
"../../static/settle/tips1@3x.png"
></image>
<text>
接单教程可让您快速了解如何使用小程序,建议先查看并学习教程。
</text>
</view>
<view
class=
"learn-view"
>
<view
class=
"learn-view-title"
>
接单操作须知
</view>
<view
class=
"learn-list"
v-for=
"(item, key) in tutorials"
:key=
"key"
>
<view
class=
"learn-list-item"
>
<view
class=
"item-content"
>
<view
class=
"item-st"
><text
class=
"item-st-text"
>
{{
item
.
title
.
split
(
' '
)
?
item
.
title
.
split
(
' '
)[
0
]
:
''
}}
</text>
</view>
<view
class=
"item-title"
>
{{
item
.
title
.
split
(
' '
)
?
item
.
title
.
split
(
' '
)[
1
]
:
''
}}
</view>
</view>
<u-button
v-if=
"item.status"
type=
"default"
hover-class=
"none"
shape=
"circle"
:custom-style=
"learnedStyle"
@
click=
"viewCourse(item)"
>
已学习
</u-button>
<u-button
v-else
type=
"'primary"
plain=
"true"
hover-class=
"none"
shape=
"circle"
:custom-style=
"learnStyle"
@
click=
"viewCourse(item)"
>
去学习
</u-button>
</view>
<view
class=
"line-view"
></view>
</view>
</view>
<view
class=
"tip-bottom"
>
<view
class=
"learn-view-title"
>
接单操作考试
</view>
<view
class=
"tip-bottom-t"
>
系统随机出20道选择题,每题5分,及格为70分,分数不及格将影响接单。考题来自接单操作须知,请务必认真查看及学习,以便快速通过考试。
</view>
<view
class=
"tip-bottom-h"
>
希望您认真对待,祝您能顺利通过考试!
</view>
</view>
<!--
<view
class=
"exam-tips"
>
<u-alert-tips
:show-icon=
"true"
class=
"exam-tips"
type=
"warning"
:title=
"tipsTitle"
:description=
"tipsDescription"
></u-alert-tips>
</view>
<view
class=
"exam-course"
>
<view
class=
"exam-course"
>
<u-card
margin=
"20rpx 0rpx 30rpx 0rpx"
:border=
"false"
:border-radius=
"cardRadius"
>
<u-card
margin=
"20rpx 0rpx 30rpx 0rpx"
:border=
"false"
:border-radius=
"cardRadius"
>
<view
class=
"exam-head"
slot=
"head"
>
师傅接单教程
</view>
<view
class=
"exam-head"
slot=
"head"
>
师傅接单教程
</view>
<view
class=
"exam-body"
slot=
"body"
>
<view
class=
"exam-body"
slot=
"body"
>
<u-cell-group
:border=
"false"
>
<u-cell-group
:border=
"false"
>
<u-cell-item
<u-cell-item
v-for=
"(item, key) in tutorials"
:key=
"key"
icon=
"play-circle"
v-for=
"(item, key) in tutorials"
:border-bottom=
"false"
:title=
"item.title"
:value=
"item.value"
:key=
"key"
:value-style=
"item.courseActive"
@
click=
"viewCourse(item)"
></u-cell-item>
icon=
"play-circle"
:border-bottom=
"false"
:title=
"item.title"
:value=
"item.value"
:value-style=
"item.courseActive"
@
click=
"viewCourse(item)"
></u-cell-item>
</u-cell-group>
</u-cell-group>
</view>
</view>
</u-card>
</u-card>
...
@@ -30,18 +54,21 @@
...
@@ -30,18 +54,21 @@
</uni-group>
</uni-group>
</u-card>
</u-card>
</view>
</view>
<view
class=
"content-gap"
></view>
<view
class=
"content-gap"
></view>
-->
</Settle>
<template
v-slot:bottom
>
<view
class=
"bottom-fix-btn"
>
<view
class=
"btn-wrap"
>
<view
class=
"btn-block"
><u-button
type=
"primary"
shape=
"circle"
>
去考试
</u-button></view>
<u-button
type=
"primary"
:custom-style=
"buttonStyle"
shape=
"circle"
>
去考试
</u-button>
</view>
</view>
</
template
>
</Settle>
</view>
</view>
</template>
</template>
<
script
>
<
script
>
import
Settle
from
'@/components/settle/index.vue'
;
import
Settle
from
'@/components/settle/index.vue'
;
let
app
=
getApp
()
let
app
=
getApp
()
export
default
{
export
default
{
components
:
{
components
:
{
Settle
Settle
},
},
...
@@ -50,23 +77,73 @@ export default {
...
@@ -50,23 +77,73 @@ export default {
cardRadius
:
12
,
cardRadius
:
12
,
tipsTitle
:
'提示:'
,
tipsTitle
:
'提示:'
,
// 简单使用固定培训视频
// 简单使用固定培训视频
tutorials
:
[
tutorials
:
[{
{
id
:
'Course1'
,
courseId
:
1
,
title
:
''
,
value
:
'已查看'
,
courseActive
:
{},
status
:
1
,
url
:
''
},
id
:
'Course1'
,
{
id
:
'Course2'
,
courseId
:
2
,
title
:
''
,
value
:
'未查看'
,
courseActive
:
{},
status
:
0
,
url
:
''
},
courseId
:
1
,
{
id
:
'Course3'
,
courseId
:
3
,
title
:
''
,
value
:
'未查看'
,
courseActive
:
{},
status
:
0
,
url
:
''
}
title
:
''
,
value
:
'已学习'
,
courseActive
:
{},
status
:
1
,
url
:
''
},
{
id
:
'Course2'
,
courseId
:
2
,
title
:
''
,
value
:
'去学习'
,
courseActive
:
{},
status
:
0
,
url
:
''
},
{
id
:
'Course3'
,
courseId
:
3
,
title
:
''
,
value
:
'去学习'
,
courseActive
:
{},
status
:
0
,
url
:
''
}
],
],
tipsDescription
:
'接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
tipsDescription
:
'接单考核可让您快速了解如何使用小程序,建议先查看学习教程'
};
};
},
},
computed
:
{
computed
:
{
learnStyle
()
{
return
{
'color'
:
'#2272FF'
,
'width'
:
'120rpx'
,
'height'
:
'48rpx'
,
'background-color'
:
'#FFFFFF'
,
'font-size'
:
'24rpx'
}
},
learnedStyle
()
{
return
{
'color'
:
'#999999'
,
'width'
:
'120rpx'
,
'height'
:
'48rpx'
,
'background-color'
:
'#FFFFFF'
,
'font-size'
:
'24rpx'
}
},
buttonStyle
()
{
return
{
'color'
:
'#FFFFFF'
,
'width'
:
'300rpx'
,
'height'
:
'112rpx'
,
'background-color'
:
'#2272FF'
,
'font-size'
:
'32rpx'
,
'font-weight'
:
'bold'
}
}
},
},
onLoad
()
{
onLoad
()
{
this
.
tutorials
.
map
((
item
,
key
)
=>
{
this
.
tutorials
.
map
((
item
,
key
)
=>
{
item
[
'url'
]
=
app
.
globalData
.
service_standard
[
item
.
id
].
url
item
[
'url'
]
=
app
.
globalData
.
service_standard
[
item
.
id
].
url
item
[
'title'
]
=
app
.
globalData
.
service_standard
[
item
.
id
].
title
item
[
'title'
]
=
app
.
globalData
.
service_standard
[
item
.
id
].
title
item
[
'value'
]
=
item
[
'status'
]
?
'已查看'
:
'未查看'
;
item
[
'value'
]
=
item
[
'status'
]
?
'已学习'
:
'去学习'
item
[
'courseActive'
]
=
item
[
'status'
]
?
{
"color"
:
"#2979ff"
}
:
{
"color"
:
"#ff0000"
}
item
[
'courseActive'
]
=
item
[
'status'
]
?
this
.
learnStyle
:
this
.
learnedStyle
})
})
this
.
loadLearnData
();
this
.
loadLearnData
();
},
},
...
@@ -81,8 +158,12 @@ export default {
...
@@ -81,8 +158,12 @@ export default {
that
.
tutorials
.
forEach
((
data
,
i
)
=>
{
that
.
tutorials
.
forEach
((
data
,
i
)
=>
{
if
(
results
.
hasOwnProperty
(
data
.
id
))
{
if
(
results
.
hasOwnProperty
(
data
.
id
))
{
data
.
status
=
results
[
data
.
id
];
data
.
status
=
results
[
data
.
id
];
data
.
value
=
data
.
status
?
'已查看'
:
'未查看'
;
data
.
value
=
data
.
status
?
'已学习'
:
'去学习'
;
data
.
courseActive
=
data
.
status
?
{
"color"
:
"#2979ff"
}
:
{
"color"
:
"red"
}
data
.
courseActive
=
data
.
status
?
{
"color"
:
"#2979ff"
}
:
{
"color"
:
"red"
}
that
.
tutorials
[
i
]
=
data
;
that
.
tutorials
[
i
]
=
data
;
}
}
});
});
...
@@ -101,11 +182,11 @@ export default {
...
@@ -101,11 +182,11 @@ export default {
})
})
},
},
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.exam-tips
.u-alert-tips
{
.exam-tips
.u-alert-tips
{
border-radius
:
12rpx
!
important
;
border-radius
:
12rpx
!
important
;
border
:
none
!
important
;
border
:
none
!
important
;
...
@@ -113,18 +194,113 @@ export default {
...
@@ -113,18 +194,113 @@ export default {
font-size
:
28rpx
!
important
;
font-size
:
28rpx
!
important
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
}
}
.exam-wrap
{
background
:
#f4f5f7
;
}
.exam-head
{
.exam-wrap
{
background-color
:
#F4F5F7
;
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
100%
;
height
:
100%
;
display
:
flex
;
flex-direction
:
column
;
}
.exam-head
{
font-size
:
36rpx
;
font-size
:
36rpx
;
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.content-gap
{
.content-gap
{
height
:
1rpx
;
height
:
1rpx
;
margin-bottom
:
200rpx
;
margin-bottom
:
200rpx
;
}
}
.tip-text
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
38rpx
30rpx
30rpx
30rpx
;
height
:
140rpx
;
margin-bottom
:
20rpx
;
font-size
:
24rpx
;
color
:
#000000
;
display
:
flex
;
align-items
:
flex-start
;
}
.tip-image
{
width
:
28rpx
;
margin-right
:
10rpx
;
margin-top
:
2rpx
;
}
.learn-view-title
{
font-size
:
32rpx
;
color
:
#333333
;
font-weight
:
bold
;
}
.tip-bottom
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
38rpx
30rpx
30rpx
30rpx
;
margin-bottom
:
20rpx
;
font-size
:
28rpx
;
color
:
#333333
;
margin-bottom
:
188rpx
;
.tip-bottom-h
{
font-size
:
24rpx
;
color
:
#999999
;
}
.tip-bottom-t
{
margin-top
:
30rpx
;
margin-bottom
:
20rpx
;
}
}
.learn-view
{
background-color
:
#FFFFFF
;
border-radius
:
12rpx
;
padding
:
38rpx
30rpx
30rpx
30rpx
;
margin-bottom
:
20rpx
;
font-size
:
32rpx
;
color
:
#333333
;
.learn-list
{
.learn-list-item
{
display
:
flex
;
justify-content
:
space-between
;
margin-top
:
30rpx
;
margin-bottom
:
30rpx
;
.item-content
{
display
:
flex
;
}
.item-st
{
width
:
80rpx
;
height
:
36rpx
;
background-image
:
linear-gradient
(
to
right
,
#FF930D
,
#FFC174
);
font-size
:
16rpx
;
border-radius
:
6rpx
36rpx
36rpx
6rpx
;
padding-top
:
8rpx
;
padding-right
:
2rpx
;
text-align
:
center
;
margin-right
:
20rpx
;
}
.item-title
{
color
:
#333333
;
font-size
:
28rpx
;
}
}
.line-view
{
background-color
:
#F4F5F7
;
height
:
2rpx
;
width
:
100%
;
}
}
}
</
style
>
</
style
>
src/pages/login/index.vue
View file @
acfe4382
...
@@ -103,7 +103,6 @@ export default {
...
@@ -103,7 +103,6 @@ export default {
signupLogin
(
e
)
{
signupLogin
(
e
)
{
var
that
=
this
var
that
=
this
debugger
console
.
log
(
e
.
detail
.
errMsg
)
console
.
log
(
e
.
detail
.
errMsg
)
console
.
log
(
e
.
detail
.
iv
)
console
.
log
(
e
.
detail
.
iv
)
console
.
log
(
e
.
detail
.
encryptedData
)
console
.
log
(
e
.
detail
.
encryptedData
)
...
...
src/pages/settle/base.vue
View file @
acfe4382
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
<u-icon
name=
"arrow-right"
color=
"#2272FF"
size=
"28"
></u-icon>
<u-icon
name=
"arrow-right"
color=
"#2272FF"
size=
"28"
></u-icon>
</view>
</view>
<view
class=
"tips"
>
可以服务的城市,可选多个
</view>
<view
class=
"tips"
>
可以服务的城市,可选多个
</view>
<view
v-if=
""
>
<view
v-if=
"
cityText
"
>
<view
class=
"line-view-d"
></view>
<view
class=
"line-view-d"
></view>
<view
class=
"city-text"
>
{{
cityText
}}
</view>
<view
class=
"city-text"
>
{{
cityText
}}
</view>
</view>
</view>
...
...
src/pages/settle/file.vue
View file @
acfe4382
src/static/settle/tips1@3x.png
0 → 100644
View file @
acfe4382
2.18 KB
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