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
c5184d26
Commit
c5184d26
authored
Feb 26, 2021
by
和慭琛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
考试 模块 添加 提交考试结果 接口
parent
3746a326
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
22 deletions
+81
-22
pages.json
take-order/pages.json
+12
-12
index.vue
take-order/pages/exam/index.vue
+64
-5
base.vue
take-order/pages/settle/base.vue
+5
-5
No files found.
take-order/pages.json
View file @
c5184d26
take-order/pages/exam/index.vue
View file @
c5184d26
...
@@ -41,7 +41,8 @@
...
@@ -41,7 +41,8 @@
<text
class=
"timeText"
>
倒计时:
{{
currentTime
}}
</text>
<text
class=
"timeText"
>
倒计时:
{{
currentTime
}}
</text>
</view>
</view>
<view
class=
"bottomRightView"
>
<view
class=
"bottomRightView"
>
<view
:class=
"isSelect ? 'nextBtn selectBackColor' : 'nextBtn defaultBackColor' "
@
click=
"nextClick()"
>
<view
:class=
"isSelect ? 'nextBtn selectBackColor' : 'nextBtn defaultBackColor' "
@
click=
"nextClick()"
>
<text
class=
"bottomTitle"
>
{{
bottomTitle
}}
</text>
<text
class=
"bottomTitle"
>
{{
bottomTitle
}}
</text>
</view>
</view>
</view>
</view>
...
@@ -70,12 +71,14 @@
...
@@ -70,12 +71,14 @@
progress
:
''
,
progress
:
''
,
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
,
}
}
},
},
onLoad
(
e
)
{
onLoad
(
e
)
{
//this.postResult()
this
.
getUserExamInfo
()
this
.
getUserExamInfo
()
},
},
...
@@ -388,9 +391,10 @@
...
@@ -388,9 +391,10 @@
console
.
log
(
this
.
bottomTitle
)
console
.
log
(
this
.
bottomTitle
)
if
(
this
.
bottomTitle
==
'完成考试,现在签约'
)
{
if
(
this
.
bottomTitle
==
'完成考试,现在签约'
)
{
uni
.
navigateTo
({
this
.
postResult
()
url
:
'/pages/settle/prompt'
// uni.navigateTo({
})
// url: '/pages/settle/prompt'
// })
return
return
}
}
...
@@ -400,6 +404,61 @@
...
@@ -400,6 +404,61 @@
//this.getNext()
//this.getNext()
},
},
//上传考试结果
postResult
:
function
()
{
uni
.
showLoading
({
title
:
'请稍候'
})
let
that
=
this
uni
.
request
({
url
:
'https://rest-u.test.ibanshou.cn/v1/settled/update-settled-exam-score'
+
'?access-token='
+
getApp
().
globalData
.
token
,
method
:
'POST'
,
data
:
{
score
:
this
.
examScore
,
},
success
:
(
res
)
=>
{
uni
.
hideLoading
()
console
.
log
(
'上传考试结果 成功'
)
console
.
log
(
res
)
if
(
res
.
statusCode
==
401
)
{
uni
.
navigateTo
({
url
:
'/pages/login/wxlogin'
})
return
}
if
(
res
.
statusCode
==
200
)
{
uni
.
navigateTo
({
url
:
'/pages/settle/prompt'
})
}
else
{
uni
.
showToast
({
icon
:
'none'
,
title
:
"上传考试结果失败"
})
}
},
fail
:
(
e
)
=>
{
uni
.
hideLoading
()
uni
.
showToast
({
icon
:
'none'
,
title
:
'上传考试结果失败'
})
// console.log('获取下单列表 失败')
// console.log(e)
}
})
},
//所选答案
//所选答案
handleAnswer
:
function
()
{
handleAnswer
:
function
()
{
...
...
take-order/pages/settle/base.vue
View file @
c5184d26
...
@@ -68,7 +68,7 @@
...
@@ -68,7 +68,7 @@
<view
class=
"addressBackView"
>
<view
class=
"addressBackView"
>
<textarea
<textarea
class=
"addressTextAreaView"
class=
"addressTextAreaView"
maxlength=
"
3
00"
maxlength=
"
1
00"
v-model=
"baseInfo.address"
v-model=
"baseInfo.address"
auto-height=
"true"
auto-height=
"true"
value=
""
value=
""
...
@@ -81,12 +81,12 @@
...
@@ -81,12 +81,12 @@
</view>
</view>
<view
class=
"seat"
></view>
<view
class=
"seat"
></view>
<view
class=
"btn-wrap flex-xc"
>
<view
class=
"btn-wrap flex-xc"
>
<<<<<<<
HEAD
<button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"$u.debounce(submitBaseInfo, 500)"
>
<button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"$u.debounce(submitBaseInfo, 500)"
>
=======
<!--view class="">submitBaseInfo
</view-->
<!--view class="">submitBaseInfo
</view-->
<
button
class=
"btn-submit"
:disabled=
"!submitStatus"
@
click=
"submitBaseInfo()"
>
<
!--button class="btn-submit" :disabled="!submitStatus" @click="submitBaseInfo()"--
>
>>>>>>> 0dade5e4a5ee0777e1ef0c34a1dacaef53b723bb
确定
确定
</button>
</button>
</view>
</view>
...
...
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