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
01ab6c3f
Commit
01ab6c3f
authored
Feb 27, 2021
by
李俊赕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ui优化-bug问题
parent
4a62675b
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
36 additions
and
47 deletions
+36
-47
pages.json
take-order/pages.json
+4
-0
index.vue
take-order/pages/exam/index.vue
+22
-24
base.vue
take-order/pages/settle/base.vue
+4
-10
prompt.vue
take-order/pages/settle/prompt.vue
+3
-3
sign-contract.vue
take-order/pages/settle/sign-contract.vue
+3
-10
No files found.
take-order/pages.json
View file @
01ab6c3f
...
@@ -291,6 +291,10 @@
...
@@ -291,6 +291,10 @@
"name"
:
"基本信息"
,
//模式名称
"name"
:
"基本信息"
,
//模式名称
"path"
:
"pages/settle/base"
,
//启动页面,必选
"path"
:
"pages/settle/base"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
"name"
:
"入驻提示"
,
//模式名称
"path"
:
"pages/settle/prompt"
,
//启动页面,必选
"query"
:
""
//启动参数,在页面的onLoad函数里面得到
},{
},{
"name"
:
"资料信息"
,
//模式名称
"name"
:
"资料信息"
,
//模式名称
"path"
:
"pages/settle/file"
,
//启动页面,必选
"path"
:
"pages/settle/file"
,
//启动页面,必选
...
...
take-order/pages/exam/index.vue
View file @
01ab6c3f
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<image
class=
"icon"
src=
"@/static/settle/icon-success.png"
></image>
<image
class=
"icon"
src=
"@/static/settle/icon-success.png"
></image>
<view
class=
"txt"
>
您已成功完成考试
</view>
<view
class=
"txt"
>
您已成功完成考试
</view>
<button
class=
"btn"
@
click=
"$u.debounce(goSignContract, 500)"
>
<button
class=
"btn"
@
click=
"$u.debounce(goSignContract, 500)"
>
去
签约
去
提交
</button>
</button>
</view>
</view>
</view>
</view>
...
@@ -84,7 +84,7 @@
...
@@ -84,7 +84,7 @@
bottomTitle
:
'下一题'
,
bottomTitle
:
'下一题'
,
isStop
:
false
,
isStop
:
false
,
clock_url
:
'https://qn-static.banshouhui.com/clock_exam.png'
,
clock_url
:
'https://qn-static.banshouhui.com/clock_exam.png'
,
examScore
:
1
,
examScore
:
0
,
alphaArr
:[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
],
alphaArr
:[
'A'
,
'B'
,
'C'
,
'D'
,
'E'
],
timer
:
null
,
timer
:
null
,
isComplete
:
false
,
// 是否已经考试完成判定
isComplete
:
false
,
// 是否已经考试完成判定
...
@@ -158,11 +158,15 @@
...
@@ -158,11 +158,15 @@
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
if
(
res
.
data
.
data
.
examStatus
==
2
)
{
if
(
res
.
data
.
data
.
examStatus
==
2
)
{
that
.
applyExam
()
that
.
applyExam
()
return
}
}
if
(
res
.
data
.
data
.
examStatus
==
1
){
if
(
res
.
data
.
data
.
examStatus
==
0
||
that
.
isComplete
=
true
res
.
data
.
data
.
examStatus
==
1
)
{
that
.
examScore
=
res
.
data
.
data
.
examScore
this
.
examScore
=
res
.
data
.
data
.
examScore
that
.
postResult
()
return
}
if
(
res
.
data
.
data
.
examStatus
==
0
)
{
that
.
userExamId
=
res
.
data
.
data
.
id
that
.
userExamId
=
res
.
data
.
data
.
id
that
.
getNext
()
that
.
getNext
()
}
}
...
@@ -301,8 +305,11 @@
...
@@ -301,8 +305,11 @@
that
.
startCounting
()
that
.
startCounting
()
}
else
{
}
else
{
that
.
isSelect
=
true
that
.
isSelect
=
true
this
.
getUserExamInfo
()
clearTimeout
(
this
.
timer
)
clearTimeout
(
this
.
timer
)
this
.
isComplete
=
true
this
.
isComplete
=
true
// that.bottomTitle = '完成考试,现在签约'
// that.bottomTitle = '完成考试,现在签约'
}
}
...
@@ -394,15 +401,6 @@
...
@@ -394,15 +401,6 @@
//下一题
//下一题
nextClick
:
function
()
{
nextClick
:
function
()
{
if
(
this
.
isComplete
)
{
clearTimeout
(
this
.
timer
)
this
.
postResult
()
// uni.navigateTo({
// url: '/pages/settle/prompt'
// })
return
}
this
.
currentNumber
=
this
.
currentNumber
+
1
this
.
currentNumber
=
this
.
currentNumber
+
1
//this.getData()
//this.getData()
this
.
handleAnswer
()
this
.
handleAnswer
()
...
@@ -421,7 +419,7 @@
...
@@ -421,7 +419,7 @@
+
'?access-token='
+
getApp
().
globalData
.
token
,
+
'?access-token='
+
getApp
().
globalData
.
token
,
method
:
'POST'
,
method
:
'POST'
,
data
:
{
data
:
{
score
:
this
.
examScore
,
score
:
this
.
examScore
||
0
,
},
},
success
:
(
res
)
=>
{
success
:
(
res
)
=>
{
uni
.
hideLoading
()
uni
.
hideLoading
()
...
@@ -435,9 +433,9 @@
...
@@ -435,9 +433,9 @@
if
(
res
.
statusCode
==
200
)
{
if
(
res
.
statusCode
==
200
)
{
uni
.
navigateTo
({
//
uni.navigateTo({
url
:
'/pages/settle/prompt'
//
url: '/pages/settle/prompt'
})
//
})
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -512,10 +510,10 @@
...
@@ -512,10 +510,10 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.backView
{
.backView
{
background-color
:
#F3F3F3
;
background-color
:
#F3F3F3
;
position
:
absolute
;
//
position: absolute;
top
:
0
;
//
top: 0;
left
:
0
;
//
left: 0;
width
:
100%
;
//
width: 100%;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
}
}
...
...
take-order/pages/settle/base.vue
View file @
01ab6c3f
...
@@ -315,12 +315,6 @@
...
@@ -315,12 +315,6 @@
return
;
return
;
}
}
if
(
this
.
isPosting
){
return
}
this
.
isPosting
=
true
//尝试防抖
this
.
saving
=
true
;
this
.
saving
=
true
;
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'加载中'
title
:
'加载中'
...
@@ -533,9 +527,9 @@
...
@@ -533,9 +527,9 @@
color
:
#fff
;
color
:
#fff
;
&
[
disabled
]
{
&
[
disabled
]
{
border
:
none
;
border
:
2rpx
solid
#999
;
background-color
:
#
999999
;
background-color
:
#
f3f3f3
;
color
:
#
fff
;
color
:
#
999
;
}
}
}
}
}
}
...
...
take-order/pages/settle/prompt.vue
View file @
01ab6c3f
...
@@ -72,9 +72,9 @@
...
@@ -72,9 +72,9 @@
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
if
(
!
this
.
settledInfo
){
//
if(!this.settledInfo){
this
.
getBaseInfo
()
//
this.getBaseInfo()
}
//
}
},
},
onShow
(){
onShow
(){
if
(
!
this
.
settledInfo
){
if
(
!
this
.
settledInfo
){
...
...
take-order/pages/settle/sign-contract.vue
View file @
01ab6c3f
...
@@ -82,13 +82,6 @@
...
@@ -82,13 +82,6 @@
我已阅读协议,点击签约{{count ? '('+count+')' : ''}}
我已阅读协议,点击签约{{count ? '('+count+')' : ''}}
</button>
</button>
</view>
</view>
<view
class=
"mask"
>
<view
class=
"box"
>
<button>
去提交
</button>
</view>
</view>
</view>
</view>
</template>
</template>
...
@@ -607,9 +600,9 @@
...
@@ -607,9 +600,9 @@
color
:
#fff
;
color
:
#fff
;
&
[
disabled
]
{
&
[
disabled
]
{
border
:
none
;
border
:
2rpx
solid
#999
;
background-color
:
#999999
;
background-color
:
#f3f3f3
;
color
:
#
fff
;
color
:
#
999
;
}
}
}
}
}
}
...
...
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