Commit b4d6d3e5 authored by Facius's avatar Facius

申请入驻基本信息

parent d307bdb4
...@@ -115,7 +115,9 @@ ...@@ -115,7 +115,9 @@
{ {
"path": "pages/settle/prompt", "path": "pages/settle/prompt",
"style": { "style": {
"navigationBarTitleText": "入驻提示" "navigationBarTitleText": "入驻提示",
"navigationStyle": "custom",
"disableScroll": true
} }
}, { }, {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
暂无订单 暂无订单
</view> </view>
<!-- 入驻前--> <!-- 入驻前-->
<view v-else> <view v-else-if="loaded">
<text class="title">当前订单{{ count }}笔\n入驻通过后,平台将向您推荐订单</text> <text class="title">当前订单{{ count }}笔\n入驻通过后,平台将向您推荐订单</text>
<u-button class="settle-button" type="primary" shape="circle" @click="immediatelyIn" <u-button class="settle-button" type="primary" shape="circle" @click="immediatelyIn"
:custom-style="buttonStyle"> :custom-style="buttonStyle">
...@@ -73,6 +73,7 @@ ...@@ -73,6 +73,7 @@
mode: 'round', mode: 'round',
indicatorPos: 'bottomCenter', indicatorPos: 'bottomCenter',
title: 'Hello', title: 'Hello',
loaded: false,
count: 0, // 推荐订单数量 count: 0, // 推荐订单数量
messageList: [{ messageList: [{
id: 1234, id: 1234,
...@@ -126,8 +127,9 @@ ...@@ -126,8 +127,9 @@
const callBack = (vm, result) => { const callBack = (vm, result) => {
// 后台自动判断入驻流程是否完成,前台通过status确定状态 // 后台自动判断入驻流程是否完成,前台通过status确定状态
if (result && result.record) { if (result && result.record) {
// vm.status = result.record.status vm.loaded = true
vm.status = 0 vm.status = result.record.status
// vm.status = 1
} }
} }
await app.getBaseInfo(this, callBack) await app.getBaseInfo(this, callBack)
......
...@@ -2,6 +2,10 @@ ...@@ -2,6 +2,10 @@
<view class="back_view"> <view class="back_view">
<Settle :index="2"> <Settle :index="2">
<view class="base-list"> <view class="base-list">
<view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image>
<text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text>
</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">
...@@ -669,4 +673,22 @@ ...@@ -669,4 +673,22 @@
.address-textarea { .address-textarea {
font-size: 26rpx; font-size: 26rpx;
} }
.tip-text {
background-color: #FFFFFF;
border-radius: 12rpx;
padding: 38rpx 30rpx 30rpx 30rpx;
height: 140rpx;
margin-bottom: 20rpx;
font-size: 24rpx;
color: #000000;
display: flex;
align-items: flex-start;
}
.tip-image {
width: 34rpx;
margin-right: 8rpx;
margin-top: 2rpx;
}
</style> </style>
<template> <template>
<view class="page-content"> <view class="page-content">
<Settle :index="2"> <Settle :index="2">
<view class="title">入驻充电安装业务所需资料</view> <view class="tip-text">
<image class="tip-image" mode="widthFix" src="../../static/settle/anquan@3x.png"></image>
<text>身份证照片、电工证照片、行驶证/驾驶证照片及车辆照片仅用于申请入驻。</text>
</view>
<template v-slot:bottom>
<view class="btn-wrap flex-xc">
<button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)">
{{
!submitBtnStatus ? "完成必填项,可提交资料" : "提交"
}}
</button>
</view>
</template>
<view class="base-list"> <view class="base-list">
<template v-for="(fileItem, index) in formShowList"> <template v-for="(fileItem, index) in formShowList">
<view class="item item-select flex flex-yc" :key="index" @click="toUploadImg(fileItem, index)"> <view class="item item-select flex flex-yc" :key="index" @click="toUploadImg(fileItem, index)">
...@@ -16,7 +32,8 @@ ...@@ -16,7 +32,8 @@
<view class="tips" :key="index + 't'"> <view class="tips" :key="index + 't'">
{{ fileItem.tips }} {{ fileItem.tips }}
</view> </view>
<view class="tips id-identity-box" :key="index + 'identity'" v-if="fileItem.filedName === 'id_card_front'"> <view class="tips id-identity-box" :key="index + 'identity'"
v-if="fileItem.filedName === 'id_card_front'">
<view class="txt">请核实识别结果</view> <view class="txt">请核实识别结果</view>
<view class="txt"> <view class="txt">
身份证姓名:{{ fileInfo.id_card_name}}<span class="red" v-show=" 身份证姓名:{{ fileInfo.id_card_name}}<span class="red" v-show="
...@@ -34,14 +51,14 @@ ...@@ -34,14 +51,14 @@
</view> </view>
</template> </template>
</view> </view>
<view class="seat"></view> <!-- <view class="seat"></view>
<view class="btn-wrap fixed flex flex-xc"> <view class="btn-wrap fixed flex flex-xc">
<button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)"> <button class="btn-submit" :disabled="!submitBtnStatus" @click="$u.debounce(submitFileInfo, 500)">
{{ {{
!submitBtnStatus ? "完成必填项,可提交资料" : "提交" !submitBtnStatus ? "完成必填项,可提交资料" : "提交"
}} }}
</button> </button>
</view> </view> -->
</Settle> </Settle>
</view> </view>
</template> </template>
...@@ -125,7 +142,7 @@ ...@@ -125,7 +142,7 @@
this.checkIdCard("front"); this.checkIdCard("front");
} else { } else {
this.fileInfo.id_card_name = ""; this.fileInfo.id_card_name = "";
this.fileInfo.id_card_number =""; this.fileInfo.id_card_number = "";
} }
}, },
"fileInfo.id_card_back"() { "fileInfo.id_card_back"() {
...@@ -148,20 +165,20 @@ ...@@ -148,20 +165,20 @@
}, },
methods: { methods: {
updateImgs(){ updateImgs() {
const uploadType = this.uploadType const uploadType = this.uploadType
const uploadImgs = this.imgObj[uploadType] const uploadImgs = this.imgObj[uploadType]
if(uploadImgs.length<1){ if (uploadImgs.length < 1) {
return return
} }
if(uploadType==='other_certificates'){ if (uploadType === 'other_certificates') {
const otherImgs = this.imgObj['other_certificates'] const otherImgs = this.imgObj['other_certificates']
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[uploadType] = imgs.join(',')
return return
} }
this.fileInfo[uploadType] = uploadImgs[0].key || uploadImgs[0].src || '' this.fileInfo[uploadType] = uploadImgs[0].key || uploadImgs[0].src || ''
...@@ -268,7 +285,7 @@ ...@@ -268,7 +285,7 @@
const fileInfo = this.fileInfo; const fileInfo = this.fileInfo;
let submitInfoData = { let submitInfoData = {
...fileInfo, ...fileInfo,
recommender:getApp().globalData.settleRecommend recommender: getApp().globalData.settleRecommend
} }
uni.showLoading({ uni.showLoading({
title: '加载中……' title: '加载中……'
...@@ -316,7 +333,18 @@ ...@@ -316,7 +333,18 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.page-content {
background-color: #F4F5F7;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
}
.base-list { .base-list {
.item { .item {
display: flex; display: flex;
...@@ -448,13 +476,22 @@ ...@@ -448,13 +476,22 @@
} }
} }
.title { .tip-text {
padding: 30rpx 0 40rpx; background-color: #FFFFFF;
text-align: center; border-radius: 12rpx;
line-height: 50rpx; padding: 38rpx 30rpx 30rpx 30rpx;
font-size: 36rpx; height: 140rpx;
color: #333; margin-bottom: 20rpx;
font-weight: bold; font-size: 24rpx;
color: #000000;
display: flex;
align-items: flex-start;
}
.tip-image {
width: 34rpx;
margin-right: 8rpx;
margin-top: 2rpx;
} }
.seat { .seat {
...@@ -463,30 +500,20 @@ ...@@ -463,30 +500,20 @@
/*提交按钮*/ /*提交按钮*/
.btn-wrap { .btn-wrap {
position: fixed; width: 100%;
// margin: px2rem(36);
left: 0;
right: 0;
bottom: 0;
padding: 30rpx 0;
background: #f3f3f3;
.btn-submit { .btn-submit {
width: 600rpx; width: 600rpx;
// left: 5%;
// bottom: px2rem(36);
height: 104rpx; height: 104rpx;
line-height: 104rpx; line-height: 104rpx;
border-radius: 52rpx; border-radius: 52rpx;
overflow: hidden; background: #2272FF;
background: #2272ff;
font-size: 32rpx; font-size: 32rpx;
color: #fff; color: #fff;
&[disabled] { &[disabled] {
border: 2rpx solid #999; background-color: #D1D4D4;
background-color: #f3f3f3; color: #FFFFFF;
color: #999;
} }
} }
} }
......
<template> <template>
<view class="container u-row-between" v-if="info"> <view class="container u-row-between" v-if="info">
<Settle :index="2">
<view class="content-view">
<view class="u-flex u-row-center"> <view class="u-flex u-row-center">
<image class="icon" src="@/static/settle/icon-prompt.png"></image> <image :class="['icon', {active: status != 1}]"
:src="status == 1 ? require('@/static/settle/chenggong@3x.png') : require('@/static/settle/icon-prompt@3x.png')">
</image>
</view> </view>
<view class="txt-box"> <view class="txt-box">
<text :class="['title',index ? 'active' : '']" v-for="(txt,index) in info.txtArr">{{txt}}</text> <text :class="['title',index ? 'active' : '']" v-for="(txt,index) in info.txtArr">{{txt}}</text>
</view> </view>
<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' : '']" v-for="(txt,index) in info.tipsArr">{{txt}}</text> <text :class="['tips',info.tipsArr.length>1 && index===0 ? 'red' : '']"
v-for="(txt,index) in info.tipsArr">{{txt}}</text>
</view> </view>
</view>
<template v-slot:bottom>
<button class="btn-submit" @click="$u.debounce(goPage, 500)">{{info.btnTxt}}</button> <button class="btn-submit" @click="$u.debounce(goPage, 500)">{{info.btnTxt}}</button>
</template>
</Settle>
</view> </view>
</template> </template>
<script> <script>
import Settle from '@/components/settle/index.vue'
export default { export default {
components: {
Settle
},
data() { data() {
return { return {
settledInfo:null, settledInfo: null,
promptList:[{ promptList: [{
status:1, status: 1,
statusName:'待审核', statusName: '待审核',
txtArr:['已提交,等待审核','正在审核中'], txtArr: ['已提交,等待审核', '正在审核中'],
btnTxt:'去接单广场逛逛', btnTxt: '去接单广场逛逛',
url:'/pages/take/index' url: '/pages/take/index'
},{ }, {
status:2, status: 2,
statusName:'已通过', statusName: '已通过',
txtArr:['恭喜,审核通过','“充电桩安装入驻审核”'], txtArr: ['恭喜,审核通过', '“充电桩安装入驻审核”'],
btnTxt:'去考试', btnTxt: '去考试',
url:'/pages/exam/start' url: '/pages/exam/start'
},{ }, {
status:3, status: 3,
statusName:'备选', statusName: '备选',
txtArr:['您已成为',"“充电桩安装备选服务商”"], txtArr: ['您已成为', "“充电桩安装备选服务商”"],
tipsArr:['后续如有业务,请留意通知!'], tipsArr: ['后续如有业务,请留意通知!'],
btnTxt:'去接单广场逛逛', btnTxt: '去接单广场逛逛',
url:'/pages/take/index' url: '/pages/take/index'
},{ }, {
status:4, status: 4,
statusName:'已驳回', statusName: '已驳回',
txtArr:['您的入驻资料已被驳回!','可重新提交资料!'], txtArr: ['您的入驻资料已被驳回!', '可重新提交资料!'],
tipsArr:['原因:','图片不够清楚'], tipsArr: ['原因:', '图片不够清楚'],
btnTxt:'重新提交', btnTxt: '重新提交',
url:'/pages/settle/file' url: '/pages/settle/file'
},{ }, {
status:8, status: 8,
statusName:'step4', statusName: 'step4',
txtArr:['您已通过','“充电桩安装入驻考试”'], txtArr: ['您已通过', '“充电桩安装入驻考试”'],
tipsArr:['可以正式签约了'], tipsArr: ['可以正式签约了'],
btnTxt:'去签约', btnTxt: '去签约',
url:'/pages/settle/sign-contract' url: '/pages/settle/sign-contract'
},{ }, {
status:[5,6], status: [5, 6],
statusName:'未支付保证金', statusName: '未支付保证金',
txtArr:['您已成为',"充电桩安装的签约服务商"], txtArr: ['您已成为', "充电桩安装的签约服务商"],
tipsArr:['请缴纳1000元质保金'], tipsArr: ['请缴纳1000元质保金'],
btnTxt:'去缴纳保证金', btnTxt: '去缴纳保证金',
url:'/pages/settle/pay-ensure' url: '/pages/settle/pay-ensure'
},{ }, {
status:7, status: 7,
statusName:'已支付保证金', statusName: '已支付保证金',
txtArr:['您已成为',"充电桩安装的正式服务商"], txtArr: ['您已成为', "充电桩安装的正式服务商"],
btnTxt:'去接单广场逛逛', btnTxt: '去接单广场逛逛',
url:'/pages/take/index' url: '/pages/take/index'
}], }],
// 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交' // 入驻状态:0=>'待提交',1=>'待审核',2=>'已通过',3=>'备选',4=>'已驳回',5=>'已签约',6=>'未支付保证金',7=>'已支付保证金',8=>'已通过考试',9=>'待提交'
status:'', status: '',
info:null, info: null,
} }
}, },
computed: {
imageUrl() {
return this.status == 1 ? require('@/static/settle/chenggong@3x.png') : require(
'@/static/settle/icon-prompt@3x.png')
}
},
onLoad(e) { onLoad(e) {
// if(!this.settledInfo){ // if(!this.settledInfo){
// this.getBaseInfo() // this.getBaseInfo()
// } // }
}, },
onShow(){ onShow() {
if(!this.settledInfo){ if (!this.settledInfo) {
this.getBaseInfo() this.getBaseInfo()
} }
}, },
computed: { computed: {},
},
components: { components: {
}, },
methods: { methods: {
async getBaseInfo(){ async getBaseInfo() {
const app = getApp() const app = getApp()
const callBack = (vm,result)=>{ const callBack = (vm, result) => {
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)
}, },
initInfo(record){ initInfo(record) {
if(!record){ if (!record) {
this.info = this.promptList[0] this.info = this.promptList[0]
return return
} }
const status = record.status const status = record.status
// const status = 7 // const status = 7
const infoArr = this.promptList.filter(item=>{ const infoArr = this.promptList.filter(item => {
const itemStatus = item.status const itemStatus = item.status
// console.log(itemStatus,'itemStatus') // console.log(itemStatus,'itemStatus')
let idx = -2 let idx = -2
if(Array.isArray(itemStatus)){ if (Array.isArray(itemStatus)) {
idx = itemStatus.indexOf(status) idx = itemStatus.indexOf(status)
} }
return itemStatus===status || idx>=0 return itemStatus === status || idx >= 0
}) })
const info = infoArr.length>0 && infoArr[0] const info = infoArr.length > 0 && infoArr[0]
if(!info){ if (!info) {
this.info = this.promptList[0] this.info = this.promptList[0]
return return
} }
if(status===6){ if (status === 6) {
info.tipsArr[0] = '请缴纳'+ this.settledInfo.record.deposit +'元质保金' info.tipsArr[0] = '请缴纳' + this.settledInfo.record.deposit + '元质保金'
}else if(status===4){ } else if (status === 4) {
info.tipsArr[1] = this.settledInfo.record.reason || '' info.tipsArr[1] = this.settledInfo.record.reason || ''
} }
this.info = info this.info = info
...@@ -137,51 +157,74 @@ ...@@ -137,51 +157,74 @@
} }
</script> </script>
<style lang="scss"> <style lang="scss" scoped>
.container{ .container {
display: flex; display: flex;
width:750rpx; width: 750rpx;
// height:500rpx; // height:500rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
.icon{ background-color: #F4F5F7;
margin-top:180rpx; height: 100%;
width:316rpx; position: absolute;
height:312rpx
.icon {
margin-top: 68rpx;
width: 334rpx;
height: 320rpx;
&.active {
width: 224rpx;
height: 224rpx;
}
} }
.txt-box{ .content-view {
margin-top:112rpx; background-color: #FFFFFF;
margin-bottom: 188rpx;
border-radius: 12rpx;
padding: 30rpx;
} }
.title{
.txt-box {
padding-bottom: 50rpx;
}
.title {
display: block; display: block;
font-weight: bold; font-weight: bold;
margin-top: 20rpx;
// padding: 0 30rpx; // padding: 0 30rpx;
text-align: center; text-align: center;
font-weight: bold; font-weight: bold;
line-height: 66rpx; font-size: 44rpx;
font-size: 48rpx; color: #2272FF;
color: #333;
&.active{ &.active {
color:#2272FF color: #666666;
font-size: 24rpx;
font-weight: 300rpx;
margin-top: 26rpx;
} }
} }
.tips-box{
margin-top:32rpx; .tips-box {
margin-top: 32rpx;
text-align: center; text-align: center;
} }
.tips{
.tips {
text-align: center; text-align: center;
line-height: 44rpx; line-height: 44rpx;
font-size: 32rpx; font-size: 32rpx;
color: #666; color: #666;
&.red{
color:red; &.red {
color: red;
} }
} }
.btn-submit { .btn-submit {
margin-top:112rpx; margin-top: 112rpx;
width: 600rpx; width: 600rpx;
height: 104rpx; height: 104rpx;
line-height: 104rpx; line-height: 104rpx;
......
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