flat: 暂存 添加定位处理70%,key达上限未测

This commit is contained in:
Apcallover
2024-04-22 10:43:23 +08:00
parent 3cb42d7be1
commit c662539768
8 changed files with 96 additions and 38 deletions

View File

@@ -2,7 +2,7 @@
<view v-if="showDetail">
<view class="head">
<view class="proname">
{{info.missionTitle || '暂无'}}
{{info.jobName || '暂无'}}
</view>
<!-- <view class="prolist">
任务编码{{info.missionNo}}
@@ -226,8 +226,8 @@
maskShow: false,
nextBtn: false,
loading: false,
latitude: 39.909, //中心点
longitude: 116.39742,
latitude: 31.126855, //中心点
longitude: 104.397894,
covers: [{ //marker标记位置
id: 0,
latitude: 0,
@@ -320,10 +320,10 @@
self.info = resData.data.data;
self.status = resData.data.data.status;
self.missionNo = resData.data.data.missionNo;
self.latitude = self.info.lat;
self.longitude = self.info.lon;
self.covers[0].latitude = self.info.lat;
self.covers[0].longitude = self.info.lon;
// self.latitude = self.info.lat;
// self.longitude = self.info.lon;
// self.covers[0].latitude = self.info.lat;
// self.covers[0].longitude = self.info.lon;
self.showDetail = true;
if (!this.seeDeatil) {
self.getCollectStatus();
@@ -426,11 +426,19 @@
}
},
computed: {
...mapGetters(['auth', 'autograph']),
...mapGetters(['auth', 'autograph', 'area']),
skillNames() {
if (this.info.skillNames) {
return this.info.skillNames.split(',')
}
},
cityNamed() {
console.log('val', this.info, this.area.dic)
if (this.info && this.info.cityId !== -1 && this.area.dic) {
return this.area.dic[this.info.cityId].label
} else {
return '无'
}
}
}
}