编辑不默认省份
This commit is contained in:
@@ -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:['', '', ''],
|
||||
})
|
||||
|
||||
//匹配上牌城市
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user