12121212
This commit is contained in:
@@ -34,8 +34,8 @@
|
||||
</view> -->
|
||||
<view class="filter-content-detail" v-show="pickerShow">
|
||||
<!-- 省市区选择 -->
|
||||
<view class="region-box" v-if="index==0">
|
||||
<picker-view disabled :value="region" @change="bindChange" ref="showHide">
|
||||
<view class="region-box" v-if="index==0">
|
||||
<picker-view disabled :value="region" @change="bindChange" ref="showHide">
|
||||
<picker-view-column>
|
||||
<view class="center" v-for="(item, index) in areaCodeList" :key="index">
|
||||
{{ item.areaName }}
|
||||
@@ -119,16 +119,18 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
setTimeout(()=>{
|
||||
if(this.areaCodeList1.length == 0){
|
||||
this.areaCodeList = uni.getStorageSync('areaCodeList')
|
||||
}else{
|
||||
this.areaCodeList = this.areaCodeList1
|
||||
}
|
||||
this.areaCodeList.unshift({areaName:'全部'})
|
||||
},1000)
|
||||
|
||||
console.log('%c 子组件参数↓','font-size:30px;color:red')
|
||||
},
|
||||
mounted() {
|
||||
if(this.areaCodeList1.length == 0){
|
||||
this.areaCodeList = uni.getStorageSync('areaCodeList')
|
||||
}else{
|
||||
this.areaCodeList = this.areaCodeList1
|
||||
}
|
||||
this.areaCodeList.unshift({areaName:'全部'})
|
||||
this.$forceUpdate();
|
||||
},
|
||||
computed: {
|
||||
selectedTitleObj() {
|
||||
let obj = {}
|
||||
|
||||
Reference in New Issue
Block a user