|
|
@@ -14,12 +14,18 @@
|
|
|
<image class="filter-item-icon" :style="filterType==2&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
|
|
|
</view>
|
|
|
<view class="fflex">
|
|
|
- <picker mode="region" v-model="regionIndex" @change="regionChange">
|
|
|
+ <pickerAddress @change="regionChange">
|
|
|
<view :class="'filter-item fflex ddflex '+(areaIndex!=-1?'f-active':'')" @click="changeFilterType(3)">
|
|
|
<text style="max-width: 150rpx;" class="tover">{{regionText?regionText:'地区'}}</text>
|
|
|
<image class="filter-item-icon" :style="filterType==1&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
|
|
|
</view>
|
|
|
- </picker>
|
|
|
+ </pickerAddress>
|
|
|
+ <!-- <picker mode="region" v-model="regionIndex" @change="regionChange">
|
|
|
+ <view :class="'filter-item fflex ddflex '+(areaIndex!=-1?'f-active':'')" @click="changeFilterType(3)">
|
|
|
+ <text style="max-width: 150rpx;" class="tover">{{regionText?regionText:'地区'}}</text>
|
|
|
+ <image class="filter-item-icon" :style="filterType==1&&isShowPop?'transform: rotate(180deg);':''" src="../static/images/down.png"></image>
|
|
|
+ </view>
|
|
|
+ </picker> -->
|
|
|
</view>
|
|
|
<view :class="'filter-item fflex ddflex '+(filterType==1&&isShowPop?'f-active':'')" @click="changeFilterType(1)">
|
|
|
筛选
|
|
|
@@ -109,9 +115,12 @@
|
|
|
const req = require("../../utils/request.js");
|
|
|
const util = require('../../utils/util.js');
|
|
|
const QQMapWX = require("../../utils/qqmap.js");
|
|
|
+ import pickerAddress from '../components/wangding-pickerAddress/wangding-pickerAddressSingle.vue';
|
|
|
|
|
|
export default {
|
|
|
- components: {},
|
|
|
+ components: {
|
|
|
+ pickerAddress
|
|
|
+ },
|
|
|
props: {},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -177,7 +186,7 @@
|
|
|
endTime: '',
|
|
|
|
|
|
regionText:'',
|
|
|
- regionCode:[],
|
|
|
+ regionCode:'',
|
|
|
areaIndex:-1,
|
|
|
|
|
|
stateIndex: 0,
|
|
|
@@ -296,8 +305,9 @@
|
|
|
this.dateList = JSON.parse(JSON.stringify(this.dateList))
|
|
|
},
|
|
|
regionChange(e){
|
|
|
- this.regionText = e.detail.value.join('')
|
|
|
- this.regionCode = e.detail.code
|
|
|
+ console.log(e)
|
|
|
+ this.regionText = e.data.filter(item=>item&&item !="请选择").join('')
|
|
|
+ this.regionCode = e.ids.length>0?e.ids.filter(item=>item&&item!='0')[e.ids.filter(item=>item&&item!='0').length-1]:''
|
|
|
this.confirm()
|
|
|
},
|
|
|
confirm() {
|
|
|
@@ -315,7 +325,7 @@
|
|
|
})
|
|
|
this.dateList = JSON.parse(JSON.stringify(this.dateList))
|
|
|
this.regionText=''
|
|
|
- this.regionCode=[]
|
|
|
+ this.regionCode=''
|
|
|
},
|
|
|
// 分页查询
|
|
|
getDataList() {
|
|
|
@@ -347,8 +357,8 @@
|
|
|
queryParams.behavior = this.stateList[this.stateIndex].behavior;
|
|
|
}
|
|
|
}
|
|
|
- if(this.regionCode.length>0){
|
|
|
- queryParams.areaCode = this.regionCode[2]
|
|
|
+ if(this.regionCode){
|
|
|
+ queryParams.areaCode = this.regionCode
|
|
|
}
|
|
|
this.dateList.map(item=>{
|
|
|
if(item.key=="sex"){
|