Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
take_order
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
和慭琛
take_order
Commits
d470e676
Commit
d470e676
authored
Feb 26, 2021
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考试 UI高保真还原 100% bug fix
parent
24540e44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
65 additions
and
29 deletions
+65
-29
pages.json
take-order/pages.json
+7
-7
index.vue
take-order/pages/exam/index.vue
+58
-22
No files found.
take-order/pages.json
View file @
d470e676
...
...
@@ -6,18 +6,18 @@
"pages"
:
[
//pages数组中第一项表示应用启动页,参考:https
:
//uniapp.dcloud.io/collocation/pages
{
"path"
:
"pages/settle/index"
,
"style"
:
{
"navigationBarTitleText"
:
"充电桩安装招募"
}
},{
{
"path"
:
"pages/exam/index"
,
"style"
:
{
"navigationBarTitleText"
:
"入驻考试"
}
},{
"path"
:
"pages/settle/index"
,
"style"
:
{
"navigationBarTitleText"
:
"充电桩安装招募"
}
},{
"path"
:
"pages/exam/start"
,
"style"
:
{
...
...
take-order/pages/exam/index.vue
View file @
d470e676
...
...
@@ -21,11 +21,11 @@
</view>
<view
class=
"itemBackView"
v-for=
"(item,ikey) in currentItem.answerList"
:key=
"ikey"
>
<view
class=
"itemView"
>
<view
class=
"itemIndexView"
>
<text
:class=
"item.isSelect ? 'itemIndexText
selected
Color' : 'itemIndexText defaultColor' "
>
A
</text>
<view
class=
"itemView"
@
click=
"itemClick(item,ikey)"
>
<view
:class=
"item.isSelect ? 'itemIndexView' : 'itemIndexView grayBorder' "
>
<text
:class=
"item.isSelect ? 'itemIndexText
whiteColor selectBack
Color' : 'itemIndexText defaultColor' "
>
A
</text>
</view>
<text
class=
"itemText"
@
click=
"itemClick(item,ikey)
"
>
{{
item
.
content
}}
</text>
<text
:class=
"item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor'
"
>
{{
item
.
content
}}
</text>
<!--view>
</view-->
</view>
...
...
@@ -36,11 +36,16 @@
@
click=
"itemClick(item,ikey)"
>
{{
item
.
content
}}
</text>
</view-->
<view
class=
"answerBottomView"
>
<image
class=
"timeIcon"
src=
""
mode=
""
></image>
<text
class=
"timeText"
>
{{
currentTime
}}
</text>
<view
:class=
"isSelect ? 'nextBtn selectedColor' : 'nextBtn defaultColor' "
@
click=
"nextClick()"
>
<text
class=
"bottomTitle"
>
{{
bottomTitle
}}
</text>
<view
class=
"bottomLeftView"
>
<image
class=
"timeIcon"
:src=
"clock_url"
mode=
""
></image>
<text
class=
"timeText"
>
倒计时:
{{
currentTime
}}
</text>
</view>
<view
class=
"bottomRightView"
>
<view
:class=
"isSelect ? 'nextBtn selectBackColor' : 'nextBtn defaultBackColor' "
@
click=
"nextClick()"
>
<text
class=
"bottomTitle"
>
{{
bottomTitle
}}
</text>
</view>
</view>
</view>
</view>
...
...
@@ -65,6 +70,7 @@
progress
:
''
,
bottomTitle
:
'下一题'
,
isStop
:
false
,
clock_url
:
'https://qn-static.banshouhui.com/clock_exam.png'
}
},
onLoad
(
e
)
{
...
...
@@ -271,7 +277,8 @@
if
(
res
.
data
.
data
.
answerList
)
{
that
.
handleData
()
that
.
currentTime
=
30
//that.startCounting()
that
.
isSelect
=
false
//重置
that
.
startCounting
()
}
else
{
that
.
isSelect
=
true
that
.
bottomTitle
=
'完成考试,现在签约'
...
...
@@ -525,6 +532,10 @@
align-items
:
center
;
justify-content
:
center
;
}
.grayBorder
{
border
:
2
rpx
solid
#999999
;
}
.itemIndexText
{
width
:
40
rpx
;
...
...
@@ -572,33 +583,47 @@
.answerBottomView
{
background-color
:
#FFFFFF
;
width
:
100%
;
height
:
14
0
rpx
;
height
:
20
0
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
justify-content
:
space-between
;
position
:
fixed
;
bottom
:
0
;
}
.bottomLeftView
{
height
:
160
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
.bottomRightView
{
height
:
160
rpx
;
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
}
.timeIcon
{
background-color
:
#999999
;
margin-left
:
80
rpx
;
width
:
80
rpx
;
height
:
80
rpx
;
border-radius
:
40
rpx
;
margin-left
:
30
rpx
;
width
:
48
rpx
;
height
:
48
rpx
;
}
.timeText
{
margin-left
:
2
0
rpx
;
font-size
:
32
rpx
;
color
:
#
999999
;
margin-left
:
1
0
rpx
;
font-size
:
28
rpx
;
color
:
#
333333
;
}
.nextBtn
{
width
:
400
rpx
;
height
:
80
rpx
;
border-radius
:
40
rpx
;
margin-
left
:
4
0
rpx
;
height
:
104
rpx
;
border-radius
:
52
rpx
;
margin-
right
:
3
0
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
...
...
@@ -608,11 +633,22 @@
background-color
:
#FFFFFF
;
color
:
#999999
;
}
.defaultBackColor
{
background-color
:
#999999
;
}
.selectedColor
{
background-color
:
#2272FF
;
color
:
#2272FF
;
}
.whiteColor
{
color
:
#FFFFFF
;
}
.selectBackColor
{
background-color
:
#2272FF
;
}
.bottom-padding
{
padding-bottom
:
180
rpx
;
...
...
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