调整实名认证城市,新增个人订单确认流程,调整退款订单状态
This commit is contained in:
@@ -24,13 +24,13 @@
|
||||
<view class="identity-inpus" v-if="provinces.length > 0">
|
||||
<label>经营省份</label>
|
||||
<picker class="city-picker" :value="provincesVal" :range="provinces" range-key="name" @change="onPickerChange($event, 'provincesVal')">
|
||||
<view class="city-picker-text">{{provinces[provincesVal].name}}<uni-icons class="city-icon" type="bottom" color="gray"></uni-icons></view>
|
||||
<view class="city-picker-text" :class="{'text-gray': provincesVal === 0}">{{provinces[provincesVal].name}}<uni-icons class="city-icon" type="bottom" color="gray"></uni-icons></view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="identity-inpus" v-if="citys.length > 0">
|
||||
<label>经营城市</label>
|
||||
<picker class="city-picker" :value="citysVal" :range="citys" range-key="name" @change="onPickerChange($event, 'citysVal')">
|
||||
<view class="city-picker-text">{{citys[citysVal].name}}<uni-icons class="city-icon" type="bottom" color="gray"></uni-icons></view>
|
||||
<view class="city-picker-text" :class="{'text-gray': citysVal === 0}">{{citys[citysVal].name}}<uni-icons class="city-icon" type="bottom" color="gray"></uni-icons></view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
@@ -100,9 +100,12 @@
|
||||
},
|
||||
created() {
|
||||
getRegion().then(res => {
|
||||
this.provinces = res
|
||||
this.getCity()
|
||||
this.provinces = [{
|
||||
id : '',
|
||||
name: '请选择经营省份'
|
||||
}, ...res]
|
||||
this.getCertified()
|
||||
this.getCity()
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
@@ -149,7 +152,13 @@
|
||||
mask : true
|
||||
})
|
||||
getRegion(this.provinces[this.provincesVal].id).then(res => {
|
||||
this.citys = res
|
||||
this.citys = [
|
||||
{
|
||||
id : '',
|
||||
name: '请选择经营城市'
|
||||
},
|
||||
...res
|
||||
]
|
||||
if(id){
|
||||
this.citysVal = this.citys.findIndex(val => val.id === id)
|
||||
}else{
|
||||
@@ -163,7 +172,7 @@
|
||||
})
|
||||
})
|
||||
},
|
||||
// 提交真实信息
|
||||
// 获取实名信息
|
||||
getInfo(){
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
@@ -208,7 +217,8 @@
|
||||
front_card: this.frontCard.path,
|
||||
back_card : this.backCard.path,
|
||||
redirect_url: 'http://web.douhuofalv.com/app/e-sign?sign_type=personal',
|
||||
app_scheme: 'doufire://'
|
||||
app_scheme: 'doufire://',
|
||||
channel: 'app'
|
||||
}).then(res => {
|
||||
let certificationData = res;
|
||||
this.idCard = true
|
||||
@@ -337,6 +347,9 @@
|
||||
position: absolute;
|
||||
right: 0;
|
||||
}
|
||||
&.text-gray{
|
||||
color: gray;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user