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