Commit 7f5b8a9c authored by 李俊赕's avatar 李俊赕
parents 5ab10fc4 7d801cfb
qn_base_url = 'https://qn-static.banshouhui.com/self-support/'
\ No newline at end of file
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
}, },
computed: { computed: {
url() { url() {
return '../../static/settle/top' + this.index + '@3x.png' return qn_base_url + 'top' + this.index + '.png'
} }
} }
} }
...@@ -47,4 +47,4 @@ ...@@ -47,4 +47,4 @@
bottom: 44rpx; bottom: 44rpx;
width: 100%; width: 100%;
} }
</style> </style>
<template> <template>
<view class="content-view"> <view class="content-view">
<view class="headimage-view"> <view class="headimage-view">
<image class="headimage-view-image" src="../../static/settle/kefu@3x.png"></image> <image class="headimage-view-image" :src="kefuImage"></image>
<text class="name-text">朱曼婷</text> <text class="name-text">朱曼婷</text>
</view> </view>
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view class="content-info-tip">长按二维码添加官方客服微信及时了解审核进度</view> <view class="content-info-tip">长按二维码添加官方客服微信及时了解审核进度</view>
</view> </view>
<view class="QRcode-view"> <view class="QRcode-view">
<image class="content-info-QRcode" src="../../static/settle/erweima@3x.png"></image> <image class="content-info-QRcode":src="erweimaImage"></image>
</view> </view>
</view> </view>
</view> </view>
...@@ -24,6 +24,14 @@ ...@@ -24,6 +24,14 @@
}, },
data() { data() {
return {} return {}
},
computed: {
erweimaImage() {
return qn_base_url + 'erweima.png'
},
kefuImage() {
return qn_base_url + 'kefu.png'
}
} }
} }
</script> </script>
...@@ -83,4 +91,4 @@ ...@@ -83,4 +91,4 @@
} }
} }
} }
</style> </style>
...@@ -4,6 +4,7 @@ import uView from "uview-ui"; ...@@ -4,6 +4,7 @@ import uView from "uview-ui";
import vuexStore from "@/store/$u.mixin.js"; import vuexStore from "@/store/$u.mixin.js";
import store from '@/store/index' import store from '@/store/index'
import {router,RouterMount} from '@/router/index.js' //路径换成自己的 import {router,RouterMount} from '@/router/index.js' //路径换成自己的
import './common/global.js'
Vue.config.productionTip = false Vue.config.productionTip = false
Vue.mixin(vuexStore) Vue.mixin(vuexStore)
......
...@@ -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="time1Image" 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="timuImage" 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="chenggongImage"></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() {
return ['单选', '多选', '问答']
}, },
contentFilter(txt){ time1Image() {
if(!txt){ return qn_base_url + 'time1.png'
return txt
}
let reg = /\w+\.?/;
const result = txt.replace(reg,'')
return result
}, },
//开始考试 点击 chenggongImage() {
startClick: function() { return qn_base_url + 'chenggong.png'
this.isStart = true
//this.getData()
//this.applyExam()
this.getUserExamInfo()
}, },
timuImage() {
//获取考试信息 return qn_base_url + 'timu.png'
getUserExamInfo: function() { }
},
uni.showLoading({ onLoad(e) {
title: '请稍候'
})
//this.postResult()
let that = this this.getUserExamInfo()
uni.request({
url: systemApiUrl + },
'/wxh-worker-rest/rest/exam' + methods: {
'/serviceRule/userExamInfo/' + goSignContract() {
getApp().globalData.token + const url = '/pages/settle/prompt'
'?examId=' + this.examId, uni.navigateTo({
method: 'POST', url: url + '?pageIndex=' + '3'
data: { })
//examId:this.examId, },
}, contentFilter(txt) {
header: { if (!txt) {
'Content-Type': 'application/x-www-form-urlencoded' return txt
}, }
success: (res) => { let reg = /\w+\.?/;
uni.hideLoading() const result = txt.replace(reg, '')
if (!res.data) { return result
return },
} //开始考试 点击
if (res.data.code == 401 || res.data.code == 403) { startClick: function() {
uni.navigateTo({ this.isStart = true
url: '/pages/login/wxlogin' //this.getData()
}) //this.applyExam()
return
} this.getUserExamInfo()
if (res.data.code == 200) {
//examStatus 用户考试状态 0考试中 1考试完成 2未参与 },
if (res.data.data.examStatus == 2) {
that.applyExam() //获取考试信息
return getUserExamInfo: function() {
}
if(res.data.data.examStatus == 1){ uni.showLoading({
console.log('111111111111111111111111111') title: '请稍候'
that.isComplete = true })
that.examScore = res.data.data.examScore
that.postResult() let that = this
return uni.request({
} url: systemApiUrl +
if (res.data.data.examStatus == 0 ) { '/wxh-worker-rest/rest/exam' +
that.userExamId = res.data.data.id '/serviceRule/userExamInfo/' +
that.getNext() getApp().globalData.token +
} '?examId=' + this.examId,
method: 'POST',
} else { data: {
uni.showToast({ //examId:this.examId,
icon: 'none', },
title: res.data.message header: {
}) 'Content-Type': 'application/x-www-form-urlencoded'
},
success: (res) => {
} uni.hideLoading()
if (!res.data) {
return
}, }
fail: (e) => { if (res.data.code == 401 || res.data.code == 403) {
uni.hideLoading() uni.navigateTo({
uni.showToast({ url: '/pages/login/wxlogin'
icon: 'none', })
title: '获取考试信息失败' return
}) }
} if (res.data.code == 200) {
}) //examStatus 用户考试状态 0考试中 1考试完成 2未参与
if (res.data.data.examStatus == 2) {
}, that.applyExam()
return
//申请考试 }
applyExam: function() { if (res.data.data.examStatus == 1) {
uni.showLoading({ console.log('111111111111111111111111111')
title: '请稍候' that.isComplete = true
}) that.examScore = res.data.data.examScore
that.postResult()
let that = this return
uni.request({ }
url: systemApiUrl + if (res.data.data.examStatus == 0) {
'/wxh-worker-rest/rest/exam' + that.userExamId = res.data.data.id
'/serviceRule/' + that.getNext()
getApp().globalData.token + }
'?examId=' + this.examId,
method: 'POST', } else {
data: { uni.showToast({
//examId:this.examId, icon: 'none',
}, title: res.data.message
header: { })
'Content-Type': 'application/x-www-form-urlencoded'
},
success: (res) => { }
uni.hideLoading()
if (res.statusCode == 401) { },
uni.navigateTo({ fail: (e) => {
url: '/pages/login/wxlogin' uni.hideLoading()
}) uni.showToast({
return icon: 'none',
} title: '获取考试信息失败'
})
if (res.data.code == 200) { }
})
if (res.data.data.userExamId) {
that.userExamId = res.data.data.userExamId },
that.getNext()
} //申请考试
applyExam: function() {
} else { uni.showLoading({
uni.showToast({ title: '请稍候'
icon: 'none', })
title: res.data.message
}) let that = this
uni.request({
url: systemApiUrl +
} '/wxh-worker-rest/rest/exam' +
'/serviceRule/' +
getApp().globalData.token +
}, '?examId=' + this.examId,
fail: (e) => { method: 'POST',
uni.hideLoading() data: {
uni.showToast({ //examId:this.examId,
icon: 'none', },
title: '申请考试 失败' header: {
}) 'Content-Type': 'application/x-www-form-urlencoded'
} },
}) success: (res) => {
}, uni.hideLoading()
//获取下一题 if (res.statusCode == 401) {
getNext: function() { uni.navigateTo({
url: '/pages/login/wxlogin'
var questionId = '' })
if (this.currentItem && return
this.currentItem.question && }
this.currentItem.question.id) {
questionId = this.currentItem.question.id if (res.data.code == 200) {
}
if (res.data.data.userExamId) {
uni.showLoading({ that.userExamId = res.data.data.userExamId
title: '请稍候' that.getNext()
}) }
let that = this } else {
uni.request({ uni.showToast({
url: systemApiUrl + icon: 'none',
'/wxh-worker-rest/rest/exam' + title: res.data.message
'/serviceRule/next/' + })
getApp().globalData.token +
'?userExamId=' + this.userExamId +
'&questionId=' + questionId + }
'&userAnswerIds=' + this.userAnswerIds,
method: 'POST',
data: { },
// userExamId:this.userExamId, fail: (e) => {
// questionId:this.currentItem.question.id, uni.hideLoading()
// userAnswerIds:this.userAnswerIds, uni.showToast({
}, icon: 'none',
header: { title: '申请考试 失败'
'Content-Type': 'application/x-www-form-urlencoded' })
}, }
success: (res) => { })
uni.hideLoading() },
if (res.statusCode == 401) {
uni.navigateTo({ //获取下一题
url: '/pages/login/wxlogin' getNext: function() {
})
return var questionId = ''
} if (this.currentItem &&
this.currentItem.question &&
if (res.data.code == 200) { this.currentItem.question.id) {
that.currentItem = res.data.data questionId = this.currentItem.question.id
that.progress = res.data.data.progress }
if (res.data.data.answerList) { uni.showLoading({
that.handleData() title: '请稍候'
})
that.currentTime = 100
that.isSelect = false let that = this
clearTimeout(this.timer) uni.request({
that.startCounting() url: systemApiUrl +
} else { '/wxh-worker-rest/rest/exam' +
that.isSelect = true '/serviceRule/next/' +
that.getUserExamInfo() getApp().globalData.token +
clearTimeout(this.timer) '?userExamId=' + this.userExamId +
this.isComplete = true '&questionId=' + questionId +
// that.bottomTitle = '完成考试,现在签约' '&userAnswerIds=' + this.userAnswerIds,
} method: 'POST',
data: {
} else { // userExamId:this.userExamId,
uni.showToast({ // questionId:this.currentItem.question.id,
icon: 'none', // userAnswerIds:this.userAnswerIds,
title: res.data.message },
}) header: {
'Content-Type': 'application/x-www-form-urlencoded'
},
} success: (res) => {
uni.hideLoading()
if (res.statusCode == 401) {
}, uni.navigateTo({
fail: (e) => { url: '/pages/login/wxlogin'
uni.hideLoading() })
uni.showToast({ return
icon: 'none', }
title: '获取下一题 失败'
}) if (res.data.code == 200) {
that.currentItem = res.data.data
} that.progress = res.data.data.progress
})
if (res.data.data.answerList) {
}, that.handleData()
that.currentTime = 100
handleData: function() { that.isSelect = false
this.currentItem.answerList.forEach((item,index) => { clearTimeout(this.timer)
item.isSelect = false that.startCounting()
this.$set(this.currentItem.answerList,index,item) } else {
}) that.isSelect = true
}, that.getUserExamInfo()
clearTimeout(this.timer)
startCounting: function() { this.isComplete = true
// that.bottomTitle = '完成考试,现在签约'
if (this.isStop) { }
return
} } else {
uni.showToast({
this.currentTime = this.currentTime - 1 icon: 'none',
title: res.data.message
if (this.currentTime > 0) { })
this.timer = setTimeout(this.startCounting, 1000);
} else {
clearTimeout(this.timer) }
this.currentTime = 100
this.nextClick()
} },
fail: (e) => {
}, uni.hideLoading()
uni.showToast({
icon: 'none',
title: '获取下一题 失败'
itemClick: function(currentItem, ikey) { })
this.isSelect = true
}
// console.log('选点点击--处理前--this.currentItem:') })
// console.log(this.currentItem)
// console.log('选点点击--处理前--ikey:') },
// console.log(ikey)
// console.log('选点点击--处理前--题目类型,1单选,2多选,3简答:')
// console.log(this.currentItem.question.answerType)
handleData: function() {
this.currentItem.answerList.forEach((item, index) => {
//answerType 题目类型,1单选,2多选,3简答, item.isSelect = false
this.$set(this.currentItem.answerList, index, item)
for (let i = 0; i < this.currentItem.answerList.length; i++) { })
var item = this.currentItem.answerList[i] },
if (this.currentItem.question.answerType == 2) { //多选 startCounting: function() {
if (ikey == i) {
item.isSelect = !item.isSelect if (this.isStop) {
return
} }
} else { //单选/简答
if (ikey == i) { this.currentTime = this.currentTime - 1
item.isSelect = !item.isSelect
if (this.currentTime > 0) {
} else { this.timer = setTimeout(this.startCounting, 1000);
item.isSelect = false } else {
clearTimeout(this.timer)
} this.currentTime = 100
} this.nextClick()
}
this.$set(this.currentItem.answerList[i],isSelect,item.isSelect)
},
}
var isSelect = false
this.currentItem.answerList.forEach(item => { itemClick: function(currentItem, ikey) {
if (item.isSelect) { this.isSelect = true
isSelect = true
} // console.log('选点点击--处理前--this.currentItem:')
}) // console.log(this.currentItem)
// console.log('选点点击--处理前--ikey:')
//有选答案 // console.log(ikey)
this.isSelect = isSelect // console.log('选点点击--处理前--题目类型,1单选,2多选,3简答:')
// console.log(this.currentItem.question.answerType)
// console.log('选点点击--处理后--this.currentItem.answerList:')
// console.log(this.currentItem.answerList)
//answerType 题目类型,1单选,2多选,3简答,
for (let i = 0; i < this.currentItem.answerList.length; i++) {
}, var item = this.currentItem.answerList[i]
//下一题 if (this.currentItem.question.answerType == 2) { //多选
nextClick: function() { if (ikey == i) {
item.isSelect = !item.isSelect
//判断有没有选
if (!this.isSelect){ }
return } else { //单选/简答
} if (ikey == i) {
item.isSelect = !item.isSelect
clearTimeout(this.timer)
} else {
this.currentNumber = this.currentNumber + 1 item.isSelect = false
//this.getData()
this.handleAnswer() }
//this.getNext() }
},
this.$set(this.currentItem.answerList[i], isSelect, item.isSelect)
//上传考试结果
postResult: function () { }
uni.showLoading({
title: '请稍候' var isSelect = false
}) this.currentItem.answerList.forEach(item => {
if (item.isSelect) {
let that = this isSelect = true
uni.request({ }
url: ucenterApiUrl+'/v1/settled/update-settled-exam-score' })
+'?access-token='+getApp().globalData.token,
method: 'POST', //有选答案
data: { this.isSelect = isSelect
score:this.examScore || 0,
}, // console.log('选点点击--处理后--this.currentItem.answerList:')
success: (res) => { // console.log(this.currentItem.answerList)
uni.hideLoading()
if (res.statusCode == 401) {
uni.navigateTo({ },
url: '/pages/login/wxlogin'
}) //下一题
return nextClick: function() {
}
//判断有没有选
if (res.statusCode == 200) { if (!this.isSelect) {
return
// uni.navigateTo({ }
// url: '/pages/settle/prompt'
// }) clearTimeout(this.timer)
} else { this.currentNumber = this.currentNumber + 1
uni.showToast({ //this.getData()
icon: 'none', this.handleAnswer()
title: "上传考试结果失败" //this.getNext()
}) },
//上传考试结果
} postResult: function() {
uni.showLoading({
title: '请稍候'
}, })
fail: (e) => {
uni.hideLoading() let that = this
uni.showToast({ uni.request({
icon: 'none', url: ucenterApiUrl + '/v1/settled/update-settled-exam-score' +
title: '上传考试结果失败' '?access-token=' + getApp().globalData.token,
}) method: 'POST',
data: {
} score: this.examScore || 0,
}) },
}, success: (res) => {
uni.hideLoading()
//所选答案
handleAnswer: function() { if (res.statusCode == 401) {
uni.navigateTo({
/* url: '/pages/login/wxlogin'
userAnswerIds })
本题回答。 return
多选题时id按从小到大排序,并英文逗号,分隔; }
简答题时直接存问题答案。
如果是第一次答题,不需要传。 if (res.statusCode == 200) {
*/
// uni.navigateTo({
// var idList = [] // url: '/pages/settle/prompt'
// idList.push(item.id) // })
//每次清空 } else {
this.userAnswerIds = '' uni.showToast({
icon: 'none',
this.currentItem.answerList.forEach(item => { title: "上传考试结果失败"
})
if (item.isSelect) {
}
//this.userAnswerIds = item.id + ',' + this.userAnswerIds
//answerType 题目类型,1单选,2多选,3简答, },
if (this.currentItem.question.answerType== 2){//多选 fail: (e) => {
uni.hideLoading()
uni.showToast({
///* icon: 'none',
if (this.userAnswerIds.length == 0) { title: '上传考试结果失败'
this.userAnswerIds = item.id })
} else { // if(this.userAnswerIds.length == 1)
this.userAnswerIds = item.id + ',' + this.userAnswerIds }
} })
//*/ },
//所选答案
}else{//单选 handleAnswer: function() {
this.userAnswerIds = item.id
} /*
userAnswerIds
本题回答。
多选题时id按从小到大排序,并英文逗号,分隔;
} 简答题时直接存问题答案。
如果是第一次答题,不需要传。
*/
})
// var idList = []
this.getNext() // idList.push(item.id)
}, //每次清空
this.userAnswerIds = ''
this.currentItem.answerList.forEach(item => {
if (item.isSelect) {
} //this.userAnswerIds = item.id + ',' + this.userAnswerIds
}
</script> //answerType 题目类型,1单选,2多选,3简答,
if (this.currentItem.question.answerType == 2) { //多选
<style lang="scss">
.backView {
background-color: #F3F3F3; ///*
// position: absolute; if (this.userAnswerIds.length == 0) {
// top: 0; this.userAnswerIds = item.id
// left: 0; } else { // if(this.userAnswerIds.length == 1)
// width: 100%; this.userAnswerIds = item.id + ',' + this.userAnswerIds
display: flex; }
flex-direction: column; //*/
}
.noticeView { } else { //单选
margin-top: 100rpx; this.userAnswerIds = item.id
width: 100%; }
display: flex;
}
.noticeText { }
font-size: 32rpx;
color: #555555;
padding-left: 40rpx; })
padding-right: 40rpx;
} this.getNext()
.numberView { },
margin-top: 40rpx;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
}
.numberText { }
color: #333333; }
font-size: 28rpx; </script>
font-weight: bold;
} <style lang="scss">
.backView {
.topicView { background-color: #F4F5F7;
margin-top: 60rpx; position: absolute;
width: 100%; top: 0;
display: flex; left: 0;
align-items: center; width: 100%;
} height: 100%;
display: flex;
.topicText { flex-direction: column;
color: #333333; }
font-size: 36rpx;
padding-left: 28rpx; .noticeView {
padding-right: 36rpx; margin-top: 100rpx;
padding-bottom: 20rpx; width: 100%;
line-height: 48rpx; display: flex;
font-weight: bold; }
}
.noticeText {
.itemBackView { font-size: 32rpx;
margin-top: 40rpx; color: #555555;
width: 100%; padding-left: 40rpx;
display: flex; padding-right: 40rpx;
justify-content: center; }
align-items: center;
} .numberView {
margin-top: 40rpx;
.itemView { width: 100%;
background-color: #FFFFFF; display: flex;
width: 690rpx; justify-content: center;
display: flex; align-items: center;
flex-direction: row; }
align-items: center;
border-radius: 12rpx; .numberText {
border:2rpx solid transparent; color: #333333;
&.active{ font-size: 28rpx;
border:2rpx solid #2272FF; font-weight: bold;
} }
}
.topicView {
.itemIndexView { margin-top: 40rpx;
margin-left: 30rpx; width: 100%;
width: 40rpx; display: flex;
height: 40rpx; align-items: center;
border-radius: 8rpx; margin-bottom: 40rpx;
overflow: hidden; }
display: flex;
align-items: center; .topicText {
justify-content: center; color: #333333;
} font-size: 32rpx;
line-height: 48rpx;
.grayBorder{ font-weight: bold;
border: 2rpx solid #999999; }
}
// .itemBackView {
.itemIndexText { // margin-top: 30rpx;
border-radius: 8rpx; // width: 100%;
width: 36rpx; // display: flex;
height: 36rpx; // justify-content: center;
display: block; // align-items: center;
line-height: 36rpx; // }
text-align: center;
font-size: 28rpx; .itemView {
} margin-top: 30rpx;
background-color: #F4F5F7;
.itemText { width: 100%;
margin-left: 20rpx; padding: 40rpx 30rpx;
font-size: 28rpx; display: flex;
padding-top: 40rpx; align-items: flex-start;
padding-bottom: 40rpx; border-radius: 12rpx;
padding-right: 40rpx; border: 2rpx solid transparent;
} font-size: 28rpx;
&.active {
.bottomView { background-color: #FFFFFF;
background-color: #FFFFFF; border: 2rpx solid #2272FF;
width: 100%; }
height: 140rpx; }
display: flex;
align-items: center; .itemIndexView {
justify-content: center; width: 40rpx;
position: fixed; height: 40rpx;
bottom: 0; border-radius: 8rpx;
} overflow: hidden;
display: flex;
.bottomBtn { align-items: center;
background-color: #007AFF; justify-content: center;
width: 60%; flex-shrink:0
height: 80rpx; }
border-radius: 40rpx;
display: flex; .grayBorder {
align-items: center; border: 2rpx solid #999999;
justify-content: center; }
}
.gray-color {
.bottomTitle { color: #999999;
font-size: 32rpx; }
color: #FFFFFF;
} .itemIndexText {
border-radius: 8rpx;
.answerBottomView { width: 36rpx;
background-color: #FFFFFF; height: 36rpx;
width: 100%; display: block;
height: 200rpx; line-height: 36rpx;
display: flex; text-align: center;
flex-direction: row; font-size: 28rpx;
align-items: center; }
justify-content: space-between;
position: fixed; .itemText {
bottom: 0; margin-left: 20rpx;
} font-size: 28rpx;
}
.bottomLeftView{
height: 160rpx; .bottomView {
display: flex; background-color: #FFFFFF;
flex-direction: row; width: 100%;
align-items: center; height: 140rpx;
display: flex;
} align-items: center;
justify-content: center;
.bottomRightView{ position: fixed;
height: 160rpx; bottom: 0;
display: flex; }
flex-direction: row;
align-items: center; .bottomBtn {
} background-color: #007AFF;
width: 60%;
.timeIcon { height: 80rpx;
margin-left: 30rpx; border-radius: 40rpx;
width: 48rpx; display: flex;
height: 48rpx; align-items: center;
} justify-content: center;
}
.timeText {
margin-left: 10rpx; .bottomTitle {
font-size: 28rpx; font-size: 32rpx;
color: #333333; color: #FFFFFF;
} }
.nextBtn { // .answerBottomView {
width: 400rpx; // background-color: #FFFFFF;
height: 104rpx; // width: 100%;
border-radius: 52rpx; // height: 200rpx;
margin-right: 30rpx; // display: flex;
display: flex; // flex-direction: row;
align-items: center; // align-items: center;
justify-content: center; // justify-content: space-between;
} // position: fixed;
// bottom: 0;
.defaultColor { // }
background-color: #FFFFFF;
color: #999999; .title-view {
} display: flex;
justify-content: space-between;
.defaultBackColor { align-items: center;
background-color: #999999;
} .title-text {
border-radius: 8rpx;
.selectedColor { background-color: #FF930D;
color: #2272FF; font-size: 20rpx;
} color: #FFFFFF;
width: 72rpx;
.whiteColor{ height: 40rpx;
color: #FFFFFF; display: flex;
} align-items: center;
justify-content: center;
.selectBackColor { }
background-color: #2272FF;
} .title-right-view {
display: flex;
.bottom-padding { flex-direction: row;
padding-bottom: 180rpx; align-items: center;
}
.mask{ .timeIcon {
position: fixed; margin-right: 12rpx;
left: 0; width: 32rpx;
width: 100%; height: 32rpx;
height: 100%; }
display: flex;
justify-content: center; .timeText {
flex-direction: column; font-size: 28rpx;
align-items: center; color: #333333;
background: rgba(0,0,0,0.5); }
}
.box{ .time-count-down {
width: 660rpx; width: 80rpx;
height:696rpx; text-align: right;
padding:0 70rpx; }
border-radius: 12rpx; }
background-color: #fff; }
.icon{
margin:80rpx auto 0 ; .bottomRightView {
display: block; display: flex;
width:192rpx; flex-direction: row;
height:192rpx; align-items: center;
} margin-right: 30rpx;
.txt{ }
margin-top:78rpx;
margin-bottom:98rpx; .nextBtn {
font-weight: bold; width: 300rpx;
font-size: 48rpx; height: 104rpx;
line-height:66rpx ; border-radius: 52rpx;
color: #666; display: flex;
text-align: center; align-items: center;
} justify-content: center;
.btn{ }
line-height: 104rpx;
border-radius: 52rpx; .defaultColor {
background: #2272ff; color: #333333;
font-size: 32rpx; }
color: #fff;
} .defaultBackColor {
} background-color: #D1D4D4;
</style> }
.selectedColor {
color: #2272FF;
}
.whiteColor {
color: #FFFFFF;
}
.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>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="exam-wrap"> <view class="exam-wrap">
<Settle :index="3"> <Settle :index="3">
<view class="tip-text"> <view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/tips1@3x.png"></image> <image class="tip-image" mode="widthFix" :src="tips1Image"></image>
<text>接单教程可让您快速了解如何使用小程序,建议先查看并学习教程。</text> <text>接单教程可让您快速了解如何使用小程序,建议先查看并学习教程。</text>
</view> </view>
<view class="learn-view"> <view class="learn-view">
...@@ -126,16 +126,19 @@ ...@@ -126,16 +126,19 @@
'background-color': '#FFFFFF', 'background-color': '#FFFFFF',
'font-size': '24rpx' 'font-size': '24rpx'
} }
},
buttonStyle() {
return {
'color': '#FFFFFF',
'width': '500rpx',
'height': '112rpx',
'background-color': '#2272FF',
'font-size': '32rpx',
'font-weight': 'bold'
}
}, },
buttonStyle() { tips1Image() {
return { return qn_base_url + 'tips1@3x.png'
'color': '#FFFFFF',
'width': '500rpx',
'height': '112rpx',
'background-color': '#2272FF',
'font-size': '32rpx',
'font-weight': 'bold'
}
} }
}, },
onLoad() { onLoad() {
...@@ -173,11 +176,11 @@ ...@@ -173,11 +176,11 @@
debugger; debugger;
console.log(e, 'loadLearnData'); console.log(e, 'loadLearnData');
}); });
}, },
handleClick() { handleClick() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/exam/index' url: '/pages/exam/index'
}) })
}, },
viewCourse(e) { viewCourse(e) {
let that = this; let that = this;
...@@ -244,23 +247,23 @@ ...@@ -244,23 +247,23 @@
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
font-weight: bold; font-weight: bold;
} }
.tip-bottom { .tip-bottom {
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 12rpx; border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx; padding: 38rpx 30rpx 30rpx 30rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
margin-bottom: 188rpx; margin-bottom: 188rpx;
.tip-bottom-h { .tip-bottom-h {
font-size: 24rpx; font-size: 24rpx;
color: #999999; color: #999999;
} }
.tip-bottom-t { .tip-bottom-t {
margin-top: 30rpx; margin-top: 30rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
} }
.learn-view { .learn-view {
...@@ -292,9 +295,9 @@ ...@@ -292,9 +295,9 @@
padding-top: 8rpx; padding-top: 8rpx;
padding-right: 2rpx; padding-right: 2rpx;
text-align: center; text-align: center;
margin-right: 20rpx; margin-right: 20rpx;
.item-st-text { .item-st-text {
color: #FFFFFF; color: #FFFFFF;
} }
} }
...@@ -311,4 +314,4 @@ ...@@ -311,4 +314,4 @@
} }
} }
} }
</style> </style>
...@@ -3,13 +3,13 @@ ...@@ -3,13 +3,13 @@
<Settle :index="2"> <Settle :index="2">
<view class="base-list"> <view class="base-list">
<view class="tip-text"> <view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image> <image class="tip-image" mode="widthFix" :src="anquanImage"></image>
<text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text> <text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text>
</view> </view>
<view class="base-item"> <view class="base-item">
<view class="item item-select" @click="gopage('/pages/settle/select?selectType=area')"> <view class="item item-select" @click="gopage('/pages/settle/select?selectType=area')">
<view class="flex-center"> <view class="flex-center">
<image class="item-image" src="../../static/settle/mixing@3x.png"></image> <image class="item-image" :src="mixingImage"></image>
<text class="label">接单城市</text> <text class="label">接单城市</text>
</view> </view>
<p :class="['u-flex-1 u-text-right txt', {before: !cityText}]">{{ cityText ? '已选择' : '去选择' }} <p :class="['u-flex-1 u-text-right txt', {before: !cityText}]">{{ cityText ? '已选择' : '去选择' }}
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<view class="base-item" style="height: 600rpx;"> <view class="base-item" style="height: 600rpx;">
<view class="item item-select" @click="gopage('/pages/settle/select?selectType=working_age')"> <view class="item item-select" @click="gopage('/pages/settle/select?selectType=working_age')">
<view class="flex-center"> <view class="flex-center">
<image class="item-image" src="../../static/settle/mixing@3x.png"></image> <image class="item-image" :src="mixingImage"></image>
<text class="label">电工工龄(年)</text> <text class="label">电工工龄(年)</text>
</view> </view>
<p :class="['u-flex-1 u-text-right area', {before: !baseInfo.working_age}]"> <p :class="['u-flex-1 u-text-right area', {before: !baseInfo.working_age}]">
...@@ -47,11 +47,11 @@ ...@@ -47,11 +47,11 @@
<view> <view>
<view class="item item-select" @click="locationClick()"> <view class="item item-select" @click="locationClick()">
<view class="flex-center"> <view class="flex-center">
<image class="item-image" src="../../static/settle/mixing@3x.png"></image> <image class="item-image" :src="mixingImage"></image>
<text class="itemTitle">详细地址</text> <text class="itemTitle">详细地址</text>
</view> </view>
<view class="flex-center"> <view class="flex-center">
<image class="item-image-l" src="../../static/settle/dizhi@3x.png"></image> <image class="item-image-l" :src="dizhiImage"></image>
<text class="right-label blueColor">自动定位</text> <text class="right-label blueColor">自动定位</text>
</view> </view>
</view> </view>
...@@ -123,6 +123,15 @@ ...@@ -123,6 +123,15 @@
}, },
cityText() { cityText() {
return this.areaTxts.join('、') return this.areaTxts.join('、')
},
anquanImage() {
return qn_base_url + 'anquan.png'
},
mixingImage() {
return qn_base_url + 'mixing.png'
},
dizhiImage() {
return qn_base_url + 'dizhi.png'
} }
}, },
components: { components: {
...@@ -691,4 +700,4 @@ ...@@ -691,4 +700,4 @@
margin-right: 8rpx; margin-right: 8rpx;
margin-top: 2rpx; margin-top: 2rpx;
} }
</style> </style>
...@@ -2,13 +2,13 @@ ...@@ -2,13 +2,13 @@
<view class="page-content"> <view class="page-content">
<Settle :index="2"> <Settle :index="2">
<view class="tip-text"> <view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image> <image class="tip-image" mode="widthFix" :src="anquanImage"></image>
<text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text> <text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text>
</view> </view>
<view class="info-view"> <view class="info-view">
<view v-for="(fileItem, index) in formShowList" class="title-view" :key="index"> <view v-for="(fileItem, index) in formShowList" class="title-view" :key="index">
<view> <view>
<image class="title-image" src="../../static/settle/mixing@3x.png"></image> <image class="title-image" :src="mixingImage"></image>
<text>{{ fileItem.label }}</text> <text>{{ fileItem.label }}</text>
</view> </view>
<view class="info-tip-text">{{ fileItem.tips }}</view> <view class="info-tip-text">{{ fileItem.tips }}</view>
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
></image> ></image>
</view> </view>
<view v-if="index == 0" class="bottom-tip-view"> <view v-if="index == 0" class="bottom-tip-view">
<image class="bottom-tip-image" mode="widthFix" src="../../static/settle/tishi@3x.png"></image> <image class="bottom-tip-image" mode="widthFix" :src="qn_base_url + 'tishi.png'"></image>
<text>所上传的身份证信息必须与银行卡开户绑定身份证信息一致,否则将导致订单报酬无法交付</text> <text>所上传的身份证信息必须与银行卡开户绑定身份证信息一致,否则将导致订单报酬无法交付</text>
</view> </view>
<view class="card-info-view" v-if="index == 0 <view class="card-info-view" v-if="index == 0
...@@ -116,14 +116,14 @@ export default { ...@@ -116,14 +116,14 @@ export default {
* vehicle:车辆照 * vehicle:车辆照
**/ **/
other_photos: { other_photos: {
"driver_license": { driver_license: {
"url": "", url: "",
}, },
"driving_license": { driving_license: {
"url": "", url: "",
}, },
"vehicle":{ vehicle: {
"url": "", url: "",
}, },
}, },
id_card_back_check: false, id_card_back_check: false,
...@@ -134,7 +134,8 @@ export default { ...@@ -134,7 +134,8 @@ export default {
electrician_certificate: [], electrician_certificate: [],
driver_license: [], driver_license: [],
driving_license: [], driving_license: [],
vehicle: [], vehicle_front: [],
vehicle_side: [],
}, },
formShowList: [{ formShowList: [{
filedName: "id_card_front", filedName: "id_card_front",
...@@ -143,7 +144,7 @@ export default { ...@@ -143,7 +144,7 @@ export default {
label: "实名认证", label: "实名认证",
tips: "上传二代身份证照片,图片大小不大于3M", tips: "上传二代身份证照片,图片大小不大于3M",
imgs: [], imgs: [],
placeholderImages: ['../../static/settle/renxiang@3x.png', '../../static/settle/guohui@3x.png'] placeholderImages: [qn_base_url + 'renxiang.png', qn_base_url + 'guohui.png']
}, },
// { // {
// filedName: "id_card_back", // filedName: "id_card_back",
...@@ -160,24 +161,24 @@ export default { ...@@ -160,24 +161,24 @@ export default {
maxImgs: 1, maxImgs: 1,
tips: "上传电工证证照片,图片大小不大于3M", tips: "上传电工证证照片,图片大小不大于3M",
imgs: [], imgs: [],
placeholderImages: ['../../static/settle/diangong@3x.png'] placeholderImages: [qn_base_url + 'diangong.png']
}, },
{ {
filedName: "driver_license", filedName: "driver_license",
label: "驾驶证/行驶证照片", label: "驾驶证/行驶证照片",
imgs: [], imgs: [],
maxImgs: 999, maxImgs: 999,
tips: "两证单张照片需包含两页内容,图片大小不大于3M", tips: "两证单张照片需包含两页内容,每种证件只上传一张照片",
placeholderImages: ['../../static/settle/jiashi@3x.png', '../../static/settle/jiashi@3x.png'] placeholderImages: [qn_base_url + 'jiashi.png', qn_base_url + 'jiashi.png']
}, },
{ {
filedName: "vehicle", filedName: "vehicle_front",
label: "车辆照", label: "车辆照",
maxImgs: 1, maxImgs: 1,
tips: "两证单张照片需包含两页内容,图片大小不大于3M", tips: "上传车辆照片",
imgs: [], imgs: [],
placeholderImages: ['../../static/settle/zhengmian@3x.png', placeholderImages: [qn_base_url + 'zhengmian.png',
'../../static/settle/cemian@3x.png'] qn_base_url + 'cemian.png']
}, },
], ],
...@@ -222,6 +223,12 @@ export default { ...@@ -222,6 +223,12 @@ export default {
'id_card_number': '身份证号', 'id_card_number': '身份证号',
'id_card_date': '有效期' 'id_card_date': '有效期'
} }
},
anquanImage() {
return qn_base_url + 'anquan.png'
},
mixingImage() {
return qn_base_url + 'mixing.png'
} }
}, },
components: { components: {
...@@ -253,8 +260,8 @@ export default { ...@@ -253,8 +260,8 @@ export default {
self.uploadType = item.filedName || '' self.uploadType = item.filedName || ''
// 默认上传证件类型图片 // 默认上传证件类型图片
let attr = {category: self.categories[1]} let attr = {category: self.categories[1]}
switch (index) { switch (item.filedName) {
case 0: case 'id_card_front':
// 身份证 // 身份证
// 上传图片 // 上传图片
// 成功之后更新 fileInfo、 item里的imgs // 成功之后更新 fileInfo、 item里的imgs
...@@ -267,6 +274,26 @@ export default { ...@@ -267,6 +274,26 @@ export default {
self.uploadType = "id_card_back" self.uploadType = "id_card_back"
} }
break; break;
case 'driver_license':
// 驾驶证/行驶证
if(key == 0) {
// 驾驶证照片
self.uploadType = "driver_license"
} else {
// 行驶证照片
self.uploadType = "driving_license"
}
break;
case 'vehicle_front':
// 车辆照
if(key == 0) {
// 车辆正面照片
self.uploadType = "vehicle_front"
} else {
// 车辆侧面照片
self.uploadType = "vehicle_side"
}
break;
default: default:
//其他 //其他
// 上传图片 // 上传图片
...@@ -289,15 +316,23 @@ export default { ...@@ -289,15 +316,23 @@ export default {
if (uploadImgs && uploadImgs.length < 1) { if (uploadImgs && uploadImgs.length < 1) {
return return
} }
if (uploadType === 'driver_license' || uploadType === 'driving_license' || uploadType === 'vehicle') { let photoType = uploadType;
const otherImgs = this.imgObj[uploadType] if(uploadType === 'vehicle_front' || uploadType === 'vehicle_side') {
photoType = 'vehicle'
}
if (photoType === 'driver_license' || photoType === 'driving_license' || photoType === 'vehicle') {
let otherImgs = this.imgObj[uploadType]
if (photoType === 'vehicle') {
otherImgs = this.imgObj['vehicle_front'].concat(this.imgObj['vehicle_side'])
}
let imgs = [] let imgs = []
otherImgs.map(item => { otherImgs.map(item => {
const img = item.key || item.src || '' const img = item.key || item.src || ''
imgs.push(img) imgs.push(img)
}) })
this.fileInfo[uploadType] = imgs.join(',')
this.fileInfo['other_photos'][photoType]['url'] = imgs.join(',')
return return
} }
this.fileInfo[uploadType] = uploadImgs[0].key || uploadImgs[0].src || '' this.fileInfo[uploadType] = uploadImgs[0].key || uploadImgs[0].src || ''
...@@ -362,6 +397,9 @@ export default { ...@@ -362,6 +397,9 @@ export default {
const fileInfo = this.fileInfo; const fileInfo = this.fileInfo;
let checkFunc = function(item) { let checkFunc = function(item) {
if(item.filedName === 'id_card') {
const value = fileInfo['id_card_front'];
}
const value = fileInfo[item.filedName]; const value = fileInfo[item.filedName];
const tips = "请上传您的" + item.label; const tips = "请上传您的" + item.label;
if (!value) { if (!value) {
...@@ -406,7 +444,9 @@ export default { ...@@ -406,7 +444,9 @@ export default {
if (!this.checkFileInfo()) { if (!this.checkFileInfo()) {
return; return;
} }
const fileInfo = this.fileInfo; let fileInfo = this.fileInfo;
debugger
fileInfo.other_photos = JSON.stringify(fileInfo.other_photos)
let submitInfoData = { let submitInfoData = {
...fileInfo, ...fileInfo,
recommender: getApp().globalData.settleRecommend recommender: getApp().globalData.settleRecommend
...@@ -457,265 +497,265 @@ export default { ...@@ -457,265 +497,265 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.page-content { .page-content {
background-color: #F4F5F7; background-color: #F4F5F7;
position: absolute; position: absolute;
top: 0; top: 0;
left: 0; left: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.base-list { .base-list {
.item { .item {
display: flex; display: flex;
margin-bottom: 58rpx; margin-bottom: 58rpx;
padding: 28rpx 30rpx; padding: 28rpx 30rpx;
width: 100%; width: 100%;
height: 100rpx; height: 100rpx;
font-size: 32rpx; font-size: 32rpx;
background-color: #fff; background-color: #fff;
.label { .label {
color: #333; color: #333;
font-size: 32rpx; font-size: 32rpx;
} }
.txt { .txt {
line-height: 44rpx; line-height: 44rpx;
color: #333; color: #333;
font-size: 32rpx; font-size: 32rpx;
} }
.required { .required {
margin: 0 6rpx; margin: 0 6rpx;
color: red; color: red;
font-size: 32rpx; font-size: 32rpx;
} }
.iconfont { .iconfont {
color: #999; color: #999;
} }
} }
.tips { .tips {
margin-top: 20rpx; margin-top: 20rpx;
padding: 0 30rpx; padding: 0 30rpx;
line-height: 40rpx; line-height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
color: #666; color: #666;
&+.id-identity-box { &+.id-identity-box {
margin-top: -38rpx; margin-top: -38rpx;
margin-bottom: 40rpx; margin-bottom: 40rpx;
} }
} }
.id-identity-box { .id-identity-box {
.txt { .txt {
padding-top: 8rpx; padding-top: 8rpx;
line-height: 40rpx; line-height: 40rpx;
font-size: 28rpx; font-size: 28rpx;
color: #666; color: #666;
&:first-child { &:first-child {
margin-top: -58rpx; margin-top: -58rpx;
padding-top: 12rpx; padding-top: 12rpx;
} }
.red { .red {
color: red; color: red;
} }
} }
// &.tips{ // &.tips{
// margin-bottom:0!important; // margin-bottom:0!important;
// } // }
} }
.item+.tips { .item+.tips {
margin-top: -38rpx; margin-top: -38rpx;
margin-bottom: 58rpx; margin-bottom: 58rpx;
} }
/*选择内容*/ /*选择内容*/
.item-select { .item-select {
font-size: 30rpx; font-size: 30rpx;
color: #333; color: #333;
font-weight: 500; font-weight: 500;
justify-content: space-between; justify-content: space-between;
border-bottom: 1rpx solid #f5f5f5; border-bottom: 1rpx solid #f5f5f5;
} }
.flex1 { .flex1 {
flex: 1 !important; flex: 1 !important;
&.txt { &.txt {
white-space: nowrap; white-space: nowrap;
// max-width: 450rpx; // max-width: 450rpx;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
} }
.item-input { .item-input {
overflow: hidden; overflow: hidden;
input { input {
text-align: right; text-align: right;
line-height: 44rpx; line-height: 44rpx;
width: 100%; width: 100%;
font-size: 30rpx; font-size: 30rpx;
color: #333; color: #333;
font-weight: 400; font-weight: 400;
} }
.input-readonly { .input-readonly {
font-size: 30rpx; font-size: 30rpx;
color: #999; color: #999;
font-weight: 400; font-weight: 400;
} }
input::-webkit-input-placeholder { input::-webkit-input-placeholder {
font-size: 30rpx; font-size: 30rpx;
color: #999; color: #999;
font-weight: 400; font-weight: 400;
} }
input:-moz-placeholder { input:-moz-placeholder {
font-size: 30rpx; font-size: 30rpx;
color: #999; color: #999;
font-weight: 400; font-weight: 400;
} }
input:-ms-input-placeholder { input:-ms-input-placeholder {
font-size: 30rpx; font-size: 30rpx;
color: #999; color: #999;
font-weight: 400; font-weight: 400;
} }
} }
} }
.tip-text { .tip-text {
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 12rpx; border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx; padding: 38rpx 30rpx 30rpx 30rpx;
height: 140rpx; height: 140rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
font-size: 24rpx; font-size: 24rpx;
color: #000000; color: #000000;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
} }
.tip-image { .tip-image {
width: 34rpx; width: 34rpx;
margin-right: 8rpx; margin-right: 8rpx;
margin-top: 2rpx; margin-top: 2rpx;
} }
.bottom-tip-view { .bottom-tip-view {
color: #999999; color: #999999;
font-size: 20rpx; font-size: 20rpx;
display: flex; display: flex;
align-items: flex-start; align-items: flex-start;
margin-top: 30rpx; margin-top: 30rpx;
} }
.bottom-tip-image { .bottom-tip-image {
width: 24rpx; width: 24rpx;
height: 24rpx; height: 24rpx;
margin-right: 8rpx; margin-right: 8rpx;
margin-top: 4rpx; margin-top: 4rpx;
} }
.seat { .seat {
padding-bottom: 144rpx; padding-bottom: 144rpx;
} }
/*提交按钮*/ /*提交按钮*/
.btn-wrap { .btn-wrap {
width: 100%; width: 100%;
.btn-submit { .btn-submit {
width: 600rpx; width: 600rpx;
height: 104rpx; height: 104rpx;
line-height: 104rpx; line-height: 104rpx;
border-radius: 52rpx; border-radius: 52rpx;
background: #2272FF; background: #2272FF;
font-size: 32rpx; font-size: 32rpx;
color: #fff; color: #fff;
&[disabled] { &[disabled] {
background-color: #D1D4D4; background-color: #D1D4D4;
color: #FFFFFF; color: #FFFFFF;
} }
} }
} }
.card-info-view { .card-info-view {
margin-top: 30rpx; margin-top: 30rpx;
.card-list-view { .card-list-view {
.card-list-item { .card-list-item {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
font-size: 28rpx; font-size: 28rpx;
margin-top: 20rpx; margin-top: 20rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
color: #333333; color: #333333;
.card-item-text { .card-item-text {
color: #666666; color: #666666;
width: 60%; width: 60%;
} }
} }
.line-view { .line-view {
background-color: #F4F5F7; background-color: #F4F5F7;
height: 2rpx; height: 2rpx;
width: 100%; width: 100%;
} }
.card-item-error{ .card-item-error{
color: red; color: red;
font-size: 20rpx; font-size: 20rpx;
} }
} }
} }
.info-view { .info-view {
margin-bottom: 188rpx; margin-bottom: 188rpx;
.title-view { .title-view {
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 12rpx; border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx; padding: 38rpx 30rpx 30rpx 30rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
.title-image { .title-image {
width: 24rpx; width: 24rpx;
height: 24rpx; height: 24rpx;
margin-right: 10rpx; margin-right: 10rpx;
} }
} }
.info-tip-text { .info-tip-text {
font-size: 24rpx; font-size: 24rpx;
color: #666666; color: #666666;
margin-top: 10rpx; margin-top: 10rpx;
} }
.image-view { .image-view {
margin-top: 30rpx; margin-top: 30rpx;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.info-image { .info-image {
width: 300rpx; width: 300rpx;
height: 226rpx; height: 226rpx;
} }
} }
} }
</style> </style>
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<template v-slot:bottom> <template v-slot:bottom>
<view class="btn-wrap flex-xc"> <view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="saving" @click="paySubmit"> <button class="btn-submit" :disabled="saving" @click="paySubmit">
<image class="button-image" mode="widthFix" src="../../static/settle/weixin@3x.png"></image> <image class="button-image" mode="widthFix" :src="weixinImage"></image>
<text>{{saving ? '支付中……' : '微信支付'}}</text> <text>{{saving ? '支付中……' : '微信支付'}}</text>
</button> </button>
</view> </view>
...@@ -63,7 +63,11 @@ ...@@ -63,7 +63,11 @@
this.getBaseInfo() this.getBaseInfo()
} }
}, },
computed: {}, computed: {
weixinImage() {
return qn_base_url + 'weixin.png'
}
},
watch: { watch: {
isRefresh(val) { isRefresh(val) {
this.getBaseInfo() this.getBaseInfo()
...@@ -75,7 +79,7 @@ ...@@ -75,7 +79,7 @@
methods: { methods: {
successCallback() { successCallback() {
uni.navigateTo({ uni.navigateTo({
url: '/pages/settle/prompt' url: '/pages/settle/prompt' + '?pageIndex=' + '4'
}) })
}, },
async getBaseInfo() { async getBaseInfo() {
...@@ -311,9 +315,9 @@ ...@@ -311,9 +315,9 @@
border-radius: 52rpx; border-radius: 52rpx;
background: #2272FF; background: #2272FF;
font-size: 32rpx; font-size: 32rpx;
color: #fff; color: #fff;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
&[disabled] { &[disabled] {
...@@ -322,4 +326,4 @@ ...@@ -322,4 +326,4 @@
} }
} }
} }
</style> </style>
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<view class="content-view"> <view class="content-view">
<view class="u-flex u-row-center"> <view class="u-flex u-row-center">
<image :class="['icon', {active: status != 1}]" <image :class="['icon', {active: status != 1}]"
:src="status == 1 ? require('@/static/settle/chenggong@3x.png') : require('@/static/settle/icon-prompt@3x.png')"> :src="imageUrl">
</image> </image>
</view> </view>
<view class="txt-box"> <view class="txt-box">
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
<view class="tips-box" v-if="info.tipsArr"> <view class="tips-box" v-if="info.tipsArr">
<text :class="['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']" <text :class="['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']"
v-for="(txt,index) in info.tipsArr">{{txt}}</text> v-for="(txt,index) in info.tipsArr">{{txt}}</text>
</view> </view>
<view class="services-view"> <view class="services-view">
<Services/> <Services/>
</view> </view>
</view> </view>
<template v-slot:bottom> <template v-slot:bottom>
...@@ -32,12 +32,12 @@ ...@@ -32,12 +32,12 @@
export default { export default {
components: { components: {
Settle, Settle,
Services Services
}, },
data() { data() {
return { return {
pageIndex: 2, pageIndex: 2,
settledInfo: null, settledInfo: null,
promptList: [{ promptList: [{
...@@ -93,21 +93,21 @@ ...@@ -93,21 +93,21 @@
} }
}, },
computed: { computed: {
imageUrl() { imageUrl() {
return this.status == 1 ? require('@/static/settle/chenggong@3x.png') : require( return this.status == 1 ? qn_base_url + 'chenggong.png' : qn_base_url + 'icon-prompt.png'
'@/static/settle/icon-prompt@3x.png') },
}
}, },
onLoad(e) { onLoad(e) {
if (e) { if (e) {
if (e.pageIndex) { if (e.pageIndex) {
this.pageIndex = e.pageIndex; this.pageIndex = e.pageIndex;
} }
} }
// if(!this.settledInfo){ // if(!this.settledInfo){
// this.getBaseInfo() // this.getBaseInfo()
// } // }
}, },
onShow() { onShow() {
...@@ -115,7 +115,6 @@ ...@@ -115,7 +115,6 @@
this.getBaseInfo() this.getBaseInfo()
} }
}, },
computed: {},
components: { components: {
}, },
...@@ -126,9 +125,9 @@ ...@@ -126,9 +125,9 @@
vm.settledInfo = result vm.settledInfo = result
vm.status = result.record.status vm.status = result.record.status
} }
let settledInfo = await app.getBaseInfo(this, callBack) let settledInfo = await app.getBaseInfo(this, callBack)
this.settledInfo = settledInfo this.settledInfo = settledInfo
this.status = settledInfo.record.status this.status = settledInfo.record.status
uni.hideLoading() uni.hideLoading()
this.initInfo(settledInfo.record) this.initInfo(settledInfo.record)
}, },
...@@ -161,16 +160,16 @@ ...@@ -161,16 +160,16 @@
this.info = info this.info = info
}, },
goPage() { goPage() {
const url = this.info.url const url = this.info.url
if (this.status == 1 || this.status == 3 || this.status == 3) { if (this.status == 1 || this.status == 3 || this.status == 3) {
uni.reLaunch({ uni.reLaunch({
url, url,
}); });
} else { } else {
uni.navigateTo({ uni.navigateTo({
url, url,
}); });
} }
}, },
}, },
...@@ -218,8 +217,8 @@ ...@@ -218,8 +217,8 @@
font-weight: bold; font-weight: bold;
font-size: 44rpx; font-size: 44rpx;
color: #2272FF; color: #2272FF;
&.failed { &.failed {
color: #FA5A49; color: #FA5A49;
} }
&.active { &.active {
color: #666666; color: #666666;
...@@ -235,7 +234,7 @@ ...@@ -235,7 +234,7 @@
} }
.tips { .tips {
color: #666666; color: #666666;
font-size: 24rpx; font-size: 24rpx;
} }
...@@ -254,11 +253,11 @@ ...@@ -254,11 +253,11 @@
background-color: #f3f3f3; background-color: #f3f3f3;
color: #999; color: #999;
} }
} }
.services-view { .services-view {
display: flex; display: flex;
justify-content: center; justify-content: center;
padding-top: 50rpx; padding-top: 50rpx;
} }
} }
</style> </style>
...@@ -2,19 +2,19 @@ ...@@ -2,19 +2,19 @@
<view class="page-content"> <view class="page-content">
<Settle :index="4"> <Settle :index="4">
<view class="tip-text"> <view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/tips3@3x.png"></image> <image class="tip-image" mode="widthFix" :src="tips3Image"></image>
<text>身份证信息、银行卡相关信息、签约人信息须为同一人,否则无法入驻。</text> <text>身份证信息、银行卡相关信息、签约人信息须为同一人,否则无法入驻。</text>
</view> </view>
<view class="base-list"> <view class="base-list">
<view class="agreement-view"> <view class="agreement-view">
<Agreement /> <Agreement />
</view> </view>
<view class="info-view"> <view class="info-view">
<view class="item item-input flex-yc"> <view class="item item-input flex-yc">
<label class="label">签约人</label> <label class="label">签约人</label>
<view class="input flex1 u-text-right">{{baseInfo.name}}</view> <view class="input flex1 u-text-right">{{baseInfo.name}}</view>
</view> </view>
<view class="line-view"></view> <view class="line-view"></view>
<view class="item u-row-between"> <view class="item u-row-between">
<view class="label">结算方式:</view> <view class="label">结算方式:</view>
...@@ -23,19 +23,19 @@ ...@@ -23,19 +23,19 @@
{{item.name}} {{item.name}}
</u-radio> </u-radio>
</u-radio-group> </u-radio-group>
</view> </view>
<view class="line-view"></view> <view class="line-view"></view>
<template v-if="baseInfo.pay_type==='bankcard'"> <template v-if="baseInfo.pay_type==='bankcard'">
<view class="item item-input flex u-row-between"> <view class="item item-input flex u-row-between">
<label class="label">银行名称</label> <label class="label">银行名称</label>
<input placeholder="请输入银行名称" :placeholder-style="placeholderStyle" maxlength="100" v-model="baseInfo.bank_name" class="input flex1" /> <input placeholder="请输入银行名称" :placeholder-style="placeholderStyle" maxlength="100" v-model="baseInfo.bank_name" class="input flex1" />
</view> </view>
<view class="line-view"></view> <view class="line-view"></view>
<view class="item item-input flex u-row-between"> <view class="item item-input flex u-row-between">
<label class="label">银行卡号</label> <label class="label">银行卡号</label>
<input placeholder="请输入银行卡号" :placeholder-style="placeholderStyle" maxlength="30" v-model="baseInfo.bank_no" type="number" <input placeholder="请输入银行卡号" :placeholder-style="placeholderStyle" maxlength="30" v-model="baseInfo.bank_no" type="number"
class="input flex1" /> class="input flex1" />
</view> </view>
<view class="line-view"></view> <view class="line-view"></view>
<view class="item item-input flex u-row-between"> <view class="item item-input flex u-row-between">
<label class="label">支行名称</label> <label class="label">支行名称</label>
...@@ -51,15 +51,15 @@ ...@@ -51,15 +51,15 @@
<label class="label">支付宝账号</label> <label class="label">支付宝账号</label>
<input placeholder="请输入支付宝账号" maxlength="100" v-model="baseInfo.bank_no" class="input flex1" /> <input placeholder="请输入支付宝账号" maxlength="100" v-model="baseInfo.bank_no" class="input flex1" />
</view> </view>
</template> </template>
</view> </view>
</view> </view>
<template v-slot:bottom> <template v-slot:bottom>
<view class="btn-wrap flex-xc"> <view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="!submitStatus" @click="$u.debounce(submitBaseInfo, 500)"> <button class="btn-submit" :disabled="!submitStatus" @click="$u.debounce(submitBaseInfo, 500)">
我已阅读协议,点击签约{{count ? '('+count+')' : ''}} 我已阅读协议,点击签约{{count ? '('+count+')' : ''}}
</button> </button>
</view> </view>
</template> </template>
</Settle> </Settle>
</view> </view>
...@@ -127,9 +127,12 @@ ...@@ -127,9 +127,12 @@
flag = flag && baseInfo.bank_site && baseInfo.bank_name flag = flag && baseInfo.bank_site && baseInfo.bank_name
} }
return flag && !this.saving && this.isStop; return flag && !this.saving && this.isStop;
},
placeholderStyle() {
return 'color:#999999;font-size:28rpx'
}, },
placeholderStyle() { tips3Image() {
return 'color:#999999;font-size:28rpx' return qn_base_url + 'tips3.png'
} }
}, },
components: { components: {
...@@ -270,7 +273,7 @@ ...@@ -270,7 +273,7 @@
this.baseInfo.bank_no = '' this.baseInfo.bank_no = ''
this.baseInfo.bank_site = '' this.baseInfo.bank_site = ''
}, },
async getBaseInfo() { async getBaseInfo() {
const app = getApp() const app = getApp()
const callBack = (vm, result) => { const callBack = (vm, result) => {
vm.settledInfo = result vm.settledInfo = result
...@@ -430,22 +433,22 @@ ...@@ -430,22 +433,22 @@
.base-list { .base-list {
// height:524rpx; // height:524rpx;
background-color: #FFFFFF; background-color: #FFFFFF;
border-radius: 12rpx; border-radius: 12rpx;
padding: 30rpx 30rpx 0rpx 30rpx; padding: 30rpx 30rpx 0rpx 30rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
margin-bottom: 188rpx; margin-bottom: 188rpx;
/deep/ .u-radio__label { /deep/ .u-radio__label {
line-height: 40rpx; line-height: 40rpx;
}
.info-view {
margin-top: 10rpx;
} }
.line-view { .info-view {
background-color: #F4F5F7; margin-top: 10rpx;
height: 2rpx; }
width: 100%; .line-view {
background-color: #F4F5F7;
height: 2rpx;
width: 100%;
} }
.item { .item {
display: flex; display: flex;
...@@ -594,8 +597,8 @@ ...@@ -594,8 +597,8 @@
width: 34rpx; width: 34rpx;
margin-right: 8rpx; margin-right: 8rpx;
margin-top: 2rpx; margin-top: 2rpx;
}
.radio-class {
margin-right: -20rpx;
} }
</style> .radio-class {
margin-right: -20rpx;
}
</style>
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