技师列表 跳回的时候清空筛选记录
This commit is contained in:
parent
45fabca996
commit
bcca3fc677
|
@ -240,7 +240,7 @@
|
|||
<view class="pay_btn" @click="quding">确认</view>
|
||||
</view>
|
||||
</u-popup>
|
||||
<u-select v-model="Cityshow" :list="selectedValues" @confirm="getCity"></u-select>
|
||||
<!-- <u-select v-model="Cityshow" :list="selectedValues" @confirm="getCity"></u-select> -->
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
|
@ -367,6 +367,7 @@
|
|||
if(e){
|
||||
this.artificerName=e.searchValue
|
||||
}
|
||||
that.tabNavSon()
|
||||
uni.getLocation({
|
||||
type: 'gcj02',
|
||||
geocode: true, //设置该参数为true可直接获取经纬度及城市信息
|
||||
|
@ -394,7 +395,6 @@
|
|||
// #endif
|
||||
}
|
||||
})
|
||||
that.tabNavSon()
|
||||
// 获取邀请码保存到本地
|
||||
if (e.invitation) {
|
||||
that.$queue.setData('inviterCode', e.invitation);
|
||||
|
@ -429,9 +429,8 @@
|
|||
that.latitude = location[1]
|
||||
that.componentKey++
|
||||
that.initMap();
|
||||
console.log("location========>",add)
|
||||
}
|
||||
that.getKTCityList();
|
||||
// that.getKTCityList();
|
||||
that.getTpCount();
|
||||
that.getTpMy();
|
||||
that.userId = uni.getStorageSync('userId')
|
||||
|
@ -440,6 +439,9 @@
|
|||
url: '/pages/public/login'
|
||||
})
|
||||
}
|
||||
that.orderList=[];
|
||||
that.technicianType='3'
|
||||
that.selectedValues=[];
|
||||
that.token = uni.getStorageSync('token')
|
||||
if (uni.getStorageSync('token')) {
|
||||
if (that.latitude && that.longitude) {
|
||||
|
@ -457,12 +459,13 @@
|
|||
that.latitude = res.latitude
|
||||
that.longitude = res.longitude
|
||||
that.page = 1
|
||||
that.getTypeList();
|
||||
that.tabNavSon()
|
||||
// that.getTypeList();
|
||||
that.selectCity(that.longitude,that.latitude)
|
||||
},
|
||||
fail: function() {
|
||||
that.getlist()
|
||||
that.tabNavSon()
|
||||
that.getlist()
|
||||
console.log('获取地址失败2')
|
||||
}
|
||||
})
|
||||
|
@ -481,7 +484,6 @@
|
|||
},
|
||||
onReady() {
|
||||
this.initMap();
|
||||
|
||||
//this.initMapPointThread();
|
||||
},
|
||||
onUnload() {
|
||||
|
@ -543,9 +545,6 @@
|
|||
longitude: that.longitude,
|
||||
city: that.city
|
||||
}
|
||||
console.log("that.city=======",that.city)
|
||||
console.log("that.current=======",that.current)
|
||||
console.log("that.page=======",that.page)
|
||||
that.$Request.get("/app/artificer/selectArtificerList", data).then(res => {
|
||||
that.loading = false;
|
||||
if (res.code == 0) {
|
||||
|
@ -569,14 +568,12 @@
|
|||
//加载到地图里
|
||||
if (that.amap) {
|
||||
// debugger;
|
||||
console.log("that.orderList=========>",that.orderList)
|
||||
if (that.orderList.length > 0) {
|
||||
let rmap = {};
|
||||
let onLineArtificerList = that.orderList.filter((item) => item.status == 1);
|
||||
onLineArtificerList.forEach(x => {
|
||||
rmap[x.userId] = x.latitude + ',' + x.longitude; //没有给个签到坐标
|
||||
});
|
||||
console.log('在orderList初始化:', JSON.parse(JSON.stringify(rmap)));
|
||||
that.pointMap = rmap;
|
||||
that.creatMarker(rmap);
|
||||
}
|
||||
|
@ -594,7 +591,6 @@
|
|||
wx.requestSubscribeMessage({
|
||||
tmplIds: this.arr,
|
||||
success(re) {
|
||||
console.log(JSON.stringify(re), 111111111111)
|
||||
var datas = JSON.stringify(re);
|
||||
if (datas.indexOf("accept") != -1) {
|
||||
console.log(re)
|
||||
|
@ -752,10 +748,10 @@
|
|||
getCity(e) {
|
||||
console.log("得到的城市-------------》",e[0].label);
|
||||
this.city = e[0].label;
|
||||
uni.setStorageSync('city', this.city)
|
||||
this.getKTCityList();
|
||||
this.page = 1
|
||||
this.getlist()
|
||||
// uni.setStorageSync('city', this.city)
|
||||
// this.getKTCityList();
|
||||
// this.page = 1
|
||||
// this.getlist()
|
||||
},
|
||||
getKTCityList() {
|
||||
let cityName;
|
||||
|
@ -829,7 +825,7 @@
|
|||
that.city=city
|
||||
that.page = 1
|
||||
that.getlist()
|
||||
that.getKTCityList();
|
||||
// that.getKTCityList();
|
||||
} else {
|
||||
console.log('逆地理编码失败', response.data);
|
||||
}
|
||||
|
@ -1081,7 +1077,6 @@
|
|||
onLineArtificerList.forEach(x => {
|
||||
rmap[x.userId] = x.latitude + ',' + x.longitude; //没有给个签到坐标
|
||||
});
|
||||
console.log('在initMap初始化:', JSON.parse(JSON.stringify(rmap)));
|
||||
this.pointMap = rmap;
|
||||
that.creatMarker(rmap);
|
||||
}
|
||||
|
@ -1089,8 +1084,6 @@
|
|||
},
|
||||
creatMarker(map) {
|
||||
let that = this;
|
||||
console.log("uni.amap=============>",uni.amap)
|
||||
console.log("map=============>",map)
|
||||
webMap.addMarker(uni.amap, map, this.orderList, (e, udata) => {
|
||||
that.currentMarkerIndex = udata.userId;
|
||||
that.showPopup = true;
|
||||
|
@ -1193,7 +1186,6 @@
|
|||
// data.forEach(x => rdata[x.userId]);
|
||||
|
||||
//rmap = datas.data; //debug
|
||||
console.log('坐标最终结果:', JSON.parse(JSON.stringify(rmap)));
|
||||
this.pointMap = rmap;
|
||||
that.creatMarker(rmap);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue