编辑不默认省份

This commit is contained in:
老叶
2022-04-21 10:41:00 +08:00
parent 0c2963deb3
commit 3d3d756585
2 changed files with 4 additions and 3 deletions
+2 -2
View File
@@ -12,7 +12,7 @@ Page({
submitFlag:false,
isShowAddress:false,//是否显示地址弹框
region: ['福建省', '', ''],
region: ['', '', ''],
c_city_id:'',
oncardArray:[],//上牌城市
oncardIndex:-1,//上牌城市索引
@@ -44,7 +44,7 @@ Page({
address:res.data.address?res.data.address:'',
company:res.data.company?res.data.company:'',
credit:res.data.credit?res.data.credit:'',
region:res.data.pro?res.data.pro:['福建省', '', ''],
region:res.data.pro[2]?res.data.pro:['', '', ''],
})
//匹配上牌城市
+2 -1
View File
@@ -72,7 +72,8 @@
<view class="pt50 font-36 text-center">请填写车主地址信息</view>
<view class="pt30 pl60 pr60 pb40">
<picker class="inner20 bds-1-eb relative text-center font-28 ulib-r10" mode="region" bindchange="bindRegionChange" value="{{region}}">
<text>{{region[0]}}</text>
<text wx:if="{{region[0]}}">{{region[0]}}</text>
<text wx:else class="color-ccc">选择省份</text>
<text class="pl10 pr10 color-666">-</text>
<text wx:if="{{region[1]}}">{{region[1]}}</text>
<text wx:else class="color-ccc">选择城市</text>