Commit 26039978 authored by Facius's avatar Facius

入驻考试页面高保真

parent 0fb0c16a
...@@ -145,7 +145,9 @@ ...@@ -145,7 +145,9 @@
{ {
"path": "pages/exam/index", "path": "pages/exam/index",
"style": { "style": {
"navigationBarTitleText": "入驻考试" "navigationBarTitleText": "入驻考试",
"navigationStyle": "custom",
"disableScroll": true
} }
}, },
{ {
...@@ -227,8 +229,8 @@ ...@@ -227,8 +229,8 @@
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
}, },
{ {
"name": "在线考试-old", //模式名称 "name": "入驻考试", //模式名称
"path": "pages/exam/start", //启动页面,必选 "path": "pages/exam/index", //启动页面,必选
"query": "" //启动参数,在页面的onLoad函数里面得到 "query": "" //启动参数,在页面的onLoad函数里面得到
}, },
{ {
......
<template> <template>
<view class="backView"> <view class="backView">
<template v-if="isStart==false"> <Settle :index="2">
<view class="noticeView"> <!-- <template v-if="isStart==false">
<text class="noticeText">规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。 <view class="noticeView">
</text> <text class="noticeText">规则:系统随机出现20道考试题目,每道题5分,每题答题时间100秒,在规定时间内答对题目的记分。
</view> </text>
<view class="bottomView"> </view>
<view class="bottomBtn" @click="startClick()"> <view class="bottomView">
<text class="bottomTitle">开始考试答题</text> <view class="bottomBtn" @click="startClick()">
</view> <text class="bottomTitle">开始考试答题</text>
</view> </view>
</template> </view>
<template v-if="isStart==true && currentItem"> </template> -->
<view class="bottom-padding"> <!-- <template v-if="isStart==true && currentItem"> -->
<view class="numberView"> <view class="bottom-padding" v-if="currentItem">
<text class="numberText">{{progress}}</text> <view class="title-view">
</view> <view class="title-text">
<view class="topicView"> <text>{{ titleText[Math.max(0, currentItem.question.answerType - 1)] }}</text>
<text class="topicText">{{currentItem.question.content}}</text> </view>
</view> <view class="title-right-view">
<image class="timeIcon" src="/static/settle/time1@3x.png" mode=""></image>
<view class="itemBackView" v-for="(item,ikey) in currentItem.answerList" :key="ikey"> <text class="timeText">倒计时:</text><text class="time-count-down">{{currentTime}}</text>
<view :class="['itemView',item.isSelect ? 'active':'']" @click="itemClick(item,ikey)"> </view>
<view :class="item.isSelect ? 'itemIndexView' : 'itemIndexView grayBorder' "> </view>
<text :class="item.isSelect ? 'itemIndexText whiteColor selectBackColor' : 'itemIndexText defaultColor' "> <view class="topicView">
{{alphaArr[ikey]}} <text class="topicText">{{currentItem.question.content}}</text>
</text> </view>
</view>
<text :class="item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' ">{{contentFilter(item.content)}}</text> <view :class="['itemView',item.isSelect ? 'active':'']" v-for="(item,ikey) in currentItem.answerList" :key="ikey" @click="itemClick(item,ikey)">
<!--view></view--> <view :class="item.isSelect ? 'itemIndexView' : 'itemIndexView grayBorder' ">
</view> <text
:class="item.isSelect ? 'itemIndexText whiteColor selectBackColor' : 'itemIndexText gray-color' ">
</view> {{alphaArr[ikey]}}
</text>
<!--view class="itemView" v-for="(item,ikey) in currentItem.answerList":key="ikey"> </view>
<text :class="item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' " <view
@click="itemClick(item,ikey)">{{item.content}}</text> :class="item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' ">{{contentFilter(item.content)}}</view>
</view--> </view>
<view class="answerBottomView">
<view class="bottomLeftView"> <!--view class="itemView" v-for="(item,ikey) in currentItem.answerList":key="ikey">
<image class="timeIcon" :src="clock_url" mode=""></image> <text :class="item.isSelect ? 'itemText selectedColor' : 'itemText defaultColor' "
<text class="timeText">倒计时:{{currentTime}}</text> @click="itemClick(item,ikey)">{{item.content}}</text>
</view> </view-->
<view class="bottomRightView"> </view>
<view :class="isSelect ? 'nextBtn selectBackColor' : 'nextBtn defaultBackColor' "
@click="nextClick()"> <!-- </template> -->
<text class="bottomTitle">{{bottomTitle}}</text> <template v-slot:bottom>
</view> <view class="answerBottomView">
</view> <view class="bottom-left-view">
<image class="bottom-icon" src="/static/settle/timu@3x.png" mode=""></image>
</view> <text class="numberText">{{progress}}</text>
</view> </view>
<view class="bottomRightView">
</template> <view :class="isSelect ? 'nextBtn selectBackColor' : 'nextBtn defaultBackColor' "
<view class="mask" v-show="isComplete"> @click="nextClick()">
<view class="box"> <text class="bottomTitle">{{bottomTitle}}</text>
<image class="icon" src="@/static/settle/icon-success.png"></image> </view>
<view class="txt">您已成功完成考试</view> </view>
<button class="btn" @click="$u.debounce(goSignContract, 500)">
去提交 </view>
</button> </template>
</view> </Settle>
</view> <view class="mask" v-show="isComplete">
</view> <view class="box">
</template> <image class="icon" src="../../static/settle/chenggong@3x.png"></image>
<view class="txt">您已成功完成考试</view>
<script> <button class="btn" @click="$u.debounce(goSignContract, 500)">
const globalUrl = process.uniEnv || {} 去提交
const systemApiUrl = globalUrl.systemUrl.apiUrl </button>
const ucenterApiUrl = globalUrl.ucenterUrl.apiUrl </view>
export default { </view>
data() { </view>
return { </template>
examId: 2,
userExamId: 0, <script>
userAnswerIds: '', import Settle from '@/components/settle/index.vue'
isStart: true, const globalUrl = process.uniEnv || {}
currentNumber: 1, const systemApiUrl = globalUrl.systemUrl.apiUrl
currentItem: null, const ucenterApiUrl = globalUrl.ucenterUrl.apiUrl
isSelect: false, export default {
currentTime: 100, components: {
progress: '', Settle
bottomTitle: '下一题', },
isStop: false, data() {
clock_url:'https://qn-static.banshouhui.com/clock_exam.png', return {
examScore:0, examId: 2,
alphaArr:['A','B','C','D','E'], userExamId: 0,
timer:null, userAnswerIds: '',
isComplete:false, // 是否已经考试完成判定 isStart: true,
} currentNumber: 1,
}, currentItem: null,
onLoad(e) { isSelect: false,
currentTime: 100,
progress: '',
//this.postResult() bottomTitle: '下一题',
this.getUserExamInfo() isStop: false,
clock_url: 'https://qn-static.banshouhui.com/clock_exam.png',
}, examScore: 0,
methods: { alphaArr: ['A', 'B', 'C', 'D', 'E'],
goSignContract(){ timer: null,
const url = '/pages/settle/prompt' isComplete: false, // 是否已经考试完成判定
uni.navigateTo({ }
url },
}) computed: {
}, titleText() {
contentFilter(txt){ return ['单选', '多选', '问答']
if(!txt){ }
return txt },
} onLoad(e) {
let reg = /\w+\.?/;
const result = txt.replace(reg,'')
return result //this.postResult()
}, this.getUserExamInfo()
//开始考试 点击
startClick: function() { },
this.isStart = true methods: {
//this.getData() goSignContract() {
//this.applyExam() const url = '/pages/settle/prompt'
uni.navigateTo({
this.getUserExamInfo() url: url + '?pageIndex=' + '3'
})
}, },
contentFilter(txt) {
//获取考试信息 if (!txt) {
getUserExamInfo: function() { return txt
}
uni.showLoading({ let reg = /\w+\.?/;
title: '请稍候' const result = txt.replace(reg, '')
}) return result
},
let that = this //开始考试 点击
uni.request({ startClick: function() {
url: systemApiUrl + this.isStart = true
'/wxh-worker-rest/rest/exam' + //this.getData()
'/serviceRule/userExamInfo/' + //this.applyExam()
getApp().globalData.token +
'?examId=' + this.examId, this.getUserExamInfo()
method: 'POST',
data: { },
//examId:this.examId,
}, //获取考试信息
header: { getUserExamInfo: function() {
'Content-Type': 'application/x-www-form-urlencoded'
}, uni.showLoading({
success: (res) => { title: '请稍候'
uni.hideLoading() })
if (!res.data) {
return let that = this
} uni.request({
if (res.data.code == 401 || res.data.code == 403) { url: systemApiUrl +
uni.navigateTo({ '/wxh-worker-rest/rest/exam' +
url: '/pages/login/wxlogin' '/serviceRule/userExamInfo/' +
}) getApp().globalData.token +
return '?examId=' + this.examId,
} method: 'POST',
if (res.data.code == 200) { data: {
//examStatus 用户考试状态 0考试中 1考试完成 2未参与 //examId:this.examId,
if (res.data.data.examStatus == 2) { },
that.applyExam() header: {
return 'Content-Type': 'application/x-www-form-urlencoded'
} },
if(res.data.data.examStatus == 1){ success: (res) => {
console.log('111111111111111111111111111') uni.hideLoading()
that.isComplete = true if (!res.data) {
that.examScore = res.data.data.examScore return
that.postResult() }
return if (res.data.code == 401 || res.data.code == 403) {
} uni.navigateTo({
if (res.data.data.examStatus == 0 ) { url: '/pages/login/wxlogin'
that.userExamId = res.data.data.id })
that.getNext() return
} }
if (res.data.code == 200) {
} else { //examStatus 用户考试状态 0考试中 1考试完成 2未参与
uni.showToast({ if (res.data.data.examStatus == 2) {
icon: 'none', that.applyExam()
title: res.data.message return
}) }
if (res.data.data.examStatus == 1) {
console.log('111111111111111111111111111')
} that.isComplete = true
that.examScore = res.data.data.examScore
that.postResult()
}, return
fail: (e) => { }
uni.hideLoading() if (res.data.data.examStatus == 0) {
uni.showToast({ that.userExamId = res.data.data.id
icon: 'none', that.getNext()
title: '获取考试信息失败' }
})
} } else {
}) uni.showToast({
icon: 'none',
}, title: res.data.message
})
//申请考试
applyExam: function() {
uni.showLoading({ }
title: '请稍候'
})
},
let that = this fail: (e) => {
uni.request({ uni.hideLoading()
url: systemApiUrl + uni.showToast({
'/wxh-worker-rest/rest/exam' + icon: 'none',
'/serviceRule/' + title: '获取考试信息失败'
getApp().globalData.token + })
'?examId=' + this.examId, }
method: 'POST', })
data: {
//examId:this.examId, },
},
header: { //申请考试
'Content-Type': 'application/x-www-form-urlencoded' applyExam: function() {
}, uni.showLoading({
success: (res) => { title: '请稍候'
uni.hideLoading() })
if (res.statusCode == 401) { let that = this
uni.navigateTo({ uni.request({
url: '/pages/login/wxlogin' url: systemApiUrl +
}) '/wxh-worker-rest/rest/exam' +
return '/serviceRule/' +
} getApp().globalData.token +
'?examId=' + this.examId,
if (res.data.code == 200) { method: 'POST',
data: {
if (res.data.data.userExamId) { //examId:this.examId,
that.userExamId = res.data.data.userExamId },
that.getNext() header: {
} 'Content-Type': 'application/x-www-form-urlencoded'
},
} else { success: (res) => {
uni.showToast({ uni.hideLoading()
icon: 'none',
title: res.data.message if (res.statusCode == 401) {
}) uni.navigateTo({
url: '/pages/login/wxlogin'
})
} return
}
}, if (res.data.code == 200) {
fail: (e) => {
uni.hideLoading() if (res.data.data.userExamId) {
uni.showToast({ that.userExamId = res.data.data.userExamId
icon: 'none', that.getNext()
title: '申请考试 失败' }
})
} } else {
}) uni.showToast({
}, icon: 'none',
title: res.data.message
//获取下一题 })
getNext: function() {
var questionId = '' }
if (this.currentItem &&
this.currentItem.question &&
this.currentItem.question.id) { },
questionId = this.currentItem.question.id fail: (e) => {
} uni.hideLoading()
uni.showToast({
uni.showLoading({ icon: 'none',
title: '请稍候' title: '申请考试 失败'
}) })
}
let that = this })
uni.request({ },
url: systemApiUrl +
'/wxh-worker-rest/rest/exam' + //获取下一题
'/serviceRule/next/' + getNext: function() {
getApp().globalData.token +
'?userExamId=' + this.userExamId + var questionId = ''
'&questionId=' + questionId + if (this.currentItem &&
'&userAnswerIds=' + this.userAnswerIds, this.currentItem.question &&
method: 'POST', this.currentItem.question.id) {
data: { questionId = this.currentItem.question.id
// userExamId:this.userExamId, }
// questionId:this.currentItem.question.id,
// userAnswerIds:this.userAnswerIds, uni.showLoading({
}, title: '请稍候'
header: { })
'Content-Type': 'application/x-www-form-urlencoded'
}, let that = this
success: (res) => { uni.request({
uni.hideLoading() url: systemApiUrl +
if (res.statusCode == 401) { '/wxh-worker-rest/rest/exam' +
uni.navigateTo({ '/serviceRule/next/' +
url: '/pages/login/wxlogin' getApp().globalData.token +
}) '?userExamId=' + this.userExamId +
return '&questionId=' + questionId +
} '&userAnswerIds=' + this.userAnswerIds,
method: 'POST',
if (res.data.code == 200) { data: {
that.currentItem = res.data.data // userExamId:this.userExamId,
that.progress = res.data.data.progress // questionId:this.currentItem.question.id,
// userAnswerIds:this.userAnswerIds,
if (res.data.data.answerList) { },
that.handleData() header: {
'Content-Type': 'application/x-www-form-urlencoded'
that.currentTime = 100 },
that.isSelect = false success: (res) => {
clearTimeout(this.timer) uni.hideLoading()
that.startCounting() if (res.statusCode == 401) {
} else { uni.navigateTo({
that.isSelect = true url: '/pages/login/wxlogin'
that.getUserExamInfo() })
clearTimeout(this.timer) return
this.isComplete = true }
// that.bottomTitle = '完成考试,现在签约'
} if (res.data.code == 200) {
that.currentItem = res.data.data
} else { that.progress = res.data.data.progress
uni.showToast({
icon: 'none', if (res.data.data.answerList) {
title: res.data.message that.handleData()
})
that.currentTime = 100
that.currentTime = 10000
}
that.isSelect = false
clearTimeout(this.timer)
}, that.startCounting()
fail: (e) => { } else {
uni.hideLoading() that.isSelect = true
uni.showToast({ that.getUserExamInfo()
icon: 'none', clearTimeout(this.timer)
title: '获取下一题 失败' this.isComplete = true
}) // that.bottomTitle = '完成考试,现在签约'
}
}
}) } else {
uni.showToast({
}, icon: 'none',
title: res.data.message
})
handleData: function() {
this.currentItem.answerList.forEach((item,index) => { }
item.isSelect = false
this.$set(this.currentItem.answerList,index,item)
}) },
}, fail: (e) => {
uni.hideLoading()
startCounting: function() { uni.showToast({
icon: 'none',
if (this.isStop) { title: '获取下一题 失败'
return })
}
}
this.currentTime = this.currentTime - 1 })
if (this.currentTime > 0) { },
this.timer = setTimeout(this.startCounting, 1000);
} else {
clearTimeout(this.timer)
this.currentTime = 100 handleData: function() {
this.nextClick() this.currentItem.answerList.forEach((item, index) => {
} item.isSelect = false
this.$set(this.currentItem.answerList, index, item)
}, })
},
startCounting: function() {
itemClick: function(currentItem, ikey) {
this.isSelect = true if (this.isStop) {
return
// console.log('选点点击--处理前--this.currentItem:') }
// console.log(this.currentItem)
// console.log('选点点击--处理前--ikey:') this.currentTime = this.currentTime - 1
// console.log(ikey)
// console.log('选点点击--处理前--题目类型,1单选,2多选,3简答:') if (this.currentTime > 0) {
// console.log(this.currentItem.question.answerType) this.timer = setTimeout(this.startCounting, 1000);
} else {
clearTimeout(this.timer)
//answerType 题目类型,1单选,2多选,3简答, this.currentTime = 100
this.nextClick()
for (let i = 0; i < this.currentItem.answerList.length; i++) { }
var item = this.currentItem.answerList[i]
},
if (this.currentItem.question.answerType == 2) { //多选
if (ikey == i) {
item.isSelect = !item.isSelect
itemClick: function(currentItem, ikey) {
} this.isSelect = true
} else { //单选/简答
if (ikey == i) { // console.log('选点点击--处理前--this.currentItem:')
item.isSelect = !item.isSelect // console.log(this.currentItem)
// console.log('选点点击--处理前--ikey:')
} else { // console.log(ikey)
item.isSelect = false // console.log('选点点击--处理前--题目类型,1单选,2多选,3简答:')
// console.log(this.currentItem.question.answerType)
}
}
//answerType 题目类型,1单选,2多选,3简答,
this.$set(this.currentItem.answerList[i],isSelect,item.isSelect)
for (let i = 0; i < this.currentItem.answerList.length; i++) {
} var item = this.currentItem.answerList[i]
var isSelect = false if (this.currentItem.question.answerType == 2) { //多选
this.currentItem.answerList.forEach(item => { if (ikey == i) {
if (item.isSelect) { item.isSelect = !item.isSelect
isSelect = true
} }
}) } else { //单选/简答
if (ikey == i) {
//有选答案 item.isSelect = !item.isSelect
this.isSelect = isSelect
} else {
// console.log('选点点击--处理后--this.currentItem.answerList:') item.isSelect = false
// console.log(this.currentItem.answerList)
}
}
}, this.$set(this.currentItem.answerList[i], isSelect, item.isSelect)
//下一题 }
nextClick: function() {
var isSelect = false
//判断有没有选 this.currentItem.answerList.forEach(item => {
if (!this.isSelect){ if (item.isSelect) {
return isSelect = true
} }
})
clearTimeout(this.timer)
//有选答案
this.currentNumber = this.currentNumber + 1 this.isSelect = isSelect
//this.getData()
this.handleAnswer() // console.log('选点点击--处理后--this.currentItem.answerList:')
//this.getNext() // console.log(this.currentItem.answerList)
},
//上传考试结果
postResult: function () { },
uni.showLoading({
title: '请稍候' //下一题
}) nextClick: function() {
let that = this //判断有没有选
uni.request({ if (!this.isSelect) {
url: ucenterApiUrl+'/v1/settled/update-settled-exam-score' return
+'?access-token='+getApp().globalData.token, }
method: 'POST',
data: { clearTimeout(this.timer)
score:this.examScore || 0,
}, this.currentNumber = this.currentNumber + 1
success: (res) => { //this.getData()
uni.hideLoading() this.handleAnswer()
//this.getNext()
if (res.statusCode == 401) { },
uni.navigateTo({
url: '/pages/login/wxlogin' //上传考试结果
}) postResult: function() {
return uni.showLoading({
} title: '请稍候'
})
if (res.statusCode == 200) {
let that = this
// uni.navigateTo({ uni.request({
// url: '/pages/settle/prompt' url: ucenterApiUrl + '/v1/settled/update-settled-exam-score' +
// }) '?access-token=' + getApp().globalData.token,
method: 'POST',
} else { data: {
uni.showToast({ score: this.examScore || 0,
icon: 'none', },
title: "上传考试结果失败" success: (res) => {
}) uni.hideLoading()
if (res.statusCode == 401) {
} uni.navigateTo({
url: '/pages/login/wxlogin'
})
}, return
fail: (e) => { }
uni.hideLoading()
uni.showToast({ if (res.statusCode == 200) {
icon: 'none',
title: '上传考试结果失败' // uni.navigateTo({
}) // url: '/pages/settle/prompt'
// })
}
}) } else {
}, uni.showToast({
icon: 'none',
//所选答案 title: "上传考试结果失败"
handleAnswer: function() { })
/*
userAnswerIds }
本题回答。
多选题时id按从小到大排序,并英文逗号,分隔;
简答题时直接存问题答案。 },
如果是第一次答题,不需要传。 fail: (e) => {
*/ uni.hideLoading()
uni.showToast({
// var idList = [] icon: 'none',
// idList.push(item.id) title: '上传考试结果失败'
})
//每次清空
this.userAnswerIds = '' }
})
this.currentItem.answerList.forEach(item => { },
//所选答案
if (item.isSelect) { handleAnswer: function() {
//this.userAnswerIds = item.id + ',' + this.userAnswerIds /*
userAnswerIds
//answerType 题目类型,1单选,2多选,3简答, 本题回答。
if (this.currentItem.question.answerType== 2){//多选 多选题时id按从小到大排序,并英文逗号,分隔;
简答题时直接存问题答案。
如果是第一次答题,不需要传。
///* */
if (this.userAnswerIds.length == 0) {
this.userAnswerIds = item.id // var idList = []
} else { // if(this.userAnswerIds.length == 1) // idList.push(item.id)
this.userAnswerIds = item.id + ',' + this.userAnswerIds
} //每次清空
//*/ this.userAnswerIds = ''
this.currentItem.answerList.forEach(item => {
}else{//单选
this.userAnswerIds = item.id
} if (item.isSelect) {
//this.userAnswerIds = item.id + ',' + this.userAnswerIds
} //answerType 题目类型,1单选,2多选,3简答,
if (this.currentItem.question.answerType == 2) { //多选
})
///*
this.getNext() if (this.userAnswerIds.length == 0) {
this.userAnswerIds = item.id
}, } else { // if(this.userAnswerIds.length == 1)
this.userAnswerIds = item.id + ',' + this.userAnswerIds
}
//*/
} else { //单选
this.userAnswerIds = item.id
} }
}
</script>
<style lang="scss"> }
.backView {
background-color: #F3F3F3;
// position: absolute; })
// top: 0;
// left: 0; this.getNext()
// width: 100%;
display: flex; },
flex-direction: column;
}
.noticeView {
margin-top: 100rpx;
width: 100%;
display: flex;
} }
}
.noticeText { </script>
font-size: 32rpx;
color: #555555; <style lang="scss">
padding-left: 40rpx; .backView {
padding-right: 40rpx; background-color: #F4F5F7;
} position: absolute;
top: 0;
.numberView { left: 0;
margin-top: 40rpx; width: 100%;
width: 100%; height: 100%;
display: flex; display: flex;
justify-content: center; flex-direction: column;
}
.noticeView {
margin-top: 100rpx;
width: 100%;
display: flex;
}
.noticeText {
font-size: 32rpx;
color: #555555;
padding-left: 40rpx;
padding-right: 40rpx;
}
.numberView {
margin-top: 40rpx;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.numberText {
color: #333333;
font-size: 28rpx;
font-weight: bold;
}
.topicView {
margin-top: 40rpx;
width: 100%;
display: flex;
align-items: center; align-items: center;
} margin-bottom: 40rpx;
}
.numberText {
color: #333333; .topicText {
font-size: 28rpx; color: #333333;
font-weight: bold; font-size: 32rpx;
} line-height: 48rpx;
font-weight: bold;
.topicView { }
margin-top: 60rpx;
width: 100%; // .itemBackView {
display: flex; // margin-top: 30rpx;
align-items: center; // width: 100%;
} // display: flex;
// justify-content: center;
.topicText { // align-items: center;
color: #333333; // }
font-size: 36rpx;
padding-left: 28rpx;
padding-right: 36rpx;
padding-bottom: 20rpx;
line-height: 48rpx;
font-weight: bold;
}
.itemBackView {
margin-top: 40rpx;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.itemView { .itemView {
background-color: #FFFFFF; margin-top: 30rpx;
width: 690rpx; background-color: #F4F5F7;
display: flex;
flex-direction: row;
align-items: center;
border-radius: 12rpx;
border:2rpx solid transparent;
&.active{
border:2rpx solid #2272FF;
}
}
.itemIndexView {
margin-left: 30rpx;
width: 40rpx;
height: 40rpx;
border-radius: 8rpx;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center;
}
.grayBorder{
border: 2rpx solid #999999;
}
.itemIndexText {
border-radius: 8rpx;
width: 36rpx;
height: 36rpx;
display: block;
line-height: 36rpx;
text-align: center;
font-size: 28rpx;
}
.itemText {
margin-left: 20rpx;
font-size: 28rpx;
padding-top: 40rpx;
padding-bottom: 40rpx;
padding-right: 40rpx;
}
.bottomView {
background-color: #FFFFFF;
width: 100%; width: 100%;
height: 140rpx; padding: 40rpx 30rpx;
display: flex; display: flex;
align-items: center; align-items: flex-start;
border-radius: 12rpx;
border: 2rpx solid transparent;
font-size: 28rpx;
&.active {
background-color: #FFFFFF;
border: 2rpx solid #2272FF;
}
}
.itemIndexView {
width: 40rpx;
height: 40rpx;
border-radius: 8rpx;
overflow: hidden;
display: flex;
align-items: center;
justify-content: center; justify-content: center;
position: fixed; flex-shrink:0
bottom: 0; }
}
.grayBorder {
.bottomBtn { border: 2rpx solid #999999;
background-color: #007AFF;
width: 60%;
height: 80rpx;
border-radius: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bottomTitle {
font-size: 32rpx;
color: #FFFFFF;
}
.answerBottomView {
background-color: #FFFFFF;
width: 100%;
height: 200rpx;
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
position: fixed;
bottom: 0;
}
.bottomLeftView{
height: 160rpx;
display: flex;
flex-direction: row;
align-items: center;
} }
.bottomRightView{ .gray-color {
height: 160rpx;
display: flex;
flex-direction: row;
align-items: center;
}
.timeIcon {
margin-left: 30rpx;
width: 48rpx;
height: 48rpx;
}
.timeText {
margin-left: 10rpx;
font-size: 28rpx;
color: #333333;
}
.nextBtn {
width: 400rpx;
height: 104rpx;
border-radius: 52rpx;
margin-right: 30rpx;
display: flex;
align-items: center;
justify-content: center;
}
.defaultColor {
background-color: #FFFFFF;
color: #999999; color: #999999;
} }
.defaultBackColor { .itemIndexText {
background-color: #999999; border-radius: 8rpx;
} width: 36rpx;
height: 36rpx;
.selectedColor { display: block;
color: #2272FF; line-height: 36rpx;
} text-align: center;
font-size: 28rpx;
.whiteColor{ }
color: #FFFFFF;
} .itemText {
margin-left: 20rpx;
.selectBackColor { font-size: 28rpx;
background-color: #2272FF; }
}
.bottomView {
.bottom-padding { background-color: #FFFFFF;
padding-bottom: 180rpx; width: 100%;
} height: 140rpx;
.mask{ display: flex;
position: fixed; align-items: center;
left: 0; justify-content: center;
width: 100%; position: fixed;
height: 100%; bottom: 0;
display: flex; }
justify-content: center;
flex-direction: column; .bottomBtn {
background-color: #007AFF;
width: 60%;
height: 80rpx;
border-radius: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.bottomTitle {
font-size: 32rpx;
color: #FFFFFF;
}
// .answerBottomView {
// background-color: #FFFFFF;
// width: 100%;
// height: 200rpx;
// display: flex;
// flex-direction: row;
// align-items: center;
// justify-content: space-between;
// position: fixed;
// bottom: 0;
// }
.title-view {
display: flex;
justify-content: space-between;
align-items: center;
.title-text {
border-radius: 8rpx;
background-color: #FF930D;
font-size: 20rpx;
color: #FFFFFF;
width: 72rpx;
height: 40rpx;
display: flex;
align-items: center;
justify-content: center;
}
.title-right-view {
display: flex;
flex-direction: row;
align-items: center;
.timeIcon {
margin-right: 12rpx;
width: 32rpx;
height: 32rpx;
}
.timeText {
font-size: 28rpx;
color: #333333;
}
.time-count-down {
width: 80rpx;
text-align: right;
}
}
}
.bottomRightView {
display: flex;
flex-direction: row;
align-items: center; align-items: center;
background: rgba(0,0,0,0.5); margin-right: 30rpx;
} }
.box{
width: 660rpx; .nextBtn {
height:696rpx; width: 300rpx;
padding:0 70rpx; height: 104rpx;
border-radius: 12rpx; border-radius: 52rpx;
background-color: #fff; display: flex;
.icon{ align-items: center;
margin:80rpx auto 0 ; justify-content: center;
display: block; }
width:192rpx;
height:192rpx; .defaultColor {
} color: #333333;
.txt{ }
margin-top:78rpx;
margin-bottom:98rpx; .defaultBackColor {
font-weight: bold; background-color: #D1D4D4;
font-size: 48rpx; }
line-height:66rpx ;
color: #666; .selectedColor {
text-align: center; color: #2272FF;
} }
.btn{
line-height: 104rpx; .whiteColor {
border-radius: 52rpx; color: #FFFFFF;
background: #2272ff; }
font-size: 32rpx;
color: #fff; .selectBackColor {
} background-color: #2272FF;
} }
.bottom-padding {
margin-bottom: 188rpx;
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 40rpx 30rpx 46rpx 30rpx;
}
.answerBottomView {
display: flex;
align-items: center;
justify-content: space-between;
.bottom-left-view {
display: flex;
align-items: center;
margin-left: 30rpx;
.bottom-icon {
width: 44rpx;
height: 44rpx;
}
.numberText {
color: #666666;
font-size: 32rpx;
margin-left: 30rpx;
}
}
}
.mask {
position: fixed;
left: 0;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
background: rgba(0, 0, 0, 0.5);
}
.box {
width: 660rpx;
height: 696rpx;
padding: 0 70rpx;
border-radius: 12rpx;
background-color: #fff;
.icon {
margin: 80rpx auto 0;
display: block;
width: 224rpx;
height: 224rpx;
}
.txt {
margin-top: 20rpx;
margin-bottom: 98rpx;
font-weight: bold;
font-size: 40rpx;
line-height: 66rpx;
color: #2272FF;
text-align: center;
}
.btn {
line-height: 104rpx;
border-radius: 52rpx;
background: #2272ff;
font-size: 32rpx;
color: #fff;
}
}
</style> </style>
...@@ -75,7 +75,7 @@ ...@@ -75,7 +75,7 @@
methods: { methods: {
successCallback() { successCallback() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/settle/prompt' url: '/pages/settle/prompt' + '?pageIndex=' + '4'
}) })
}, },
async getBaseInfo() { async getBaseInfo() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment