jufubao-admin-library 1.1.58 → 1.1.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
:item="item.model"
|
|
77
77
|
:default-value="item.model.point_position"
|
|
78
78
|
:scale="scale"
|
|
79
|
-
:key="item.
|
|
79
|
+
:key="item.model['key']"
|
|
80
80
|
:step="myStep"
|
|
81
81
|
:radius-num="radius"
|
|
82
82
|
:circle-color="color"
|
|
@@ -176,6 +176,17 @@ export default {
|
|
|
176
176
|
this.$bus.$on('toggleSideBar',()=>{
|
|
177
177
|
this.init();
|
|
178
178
|
})
|
|
179
|
+
let timer = null;
|
|
180
|
+
window.addEventListener('scroll', (event) =>{
|
|
181
|
+
// 处理滚动事件的代码
|
|
182
|
+
if(timer){
|
|
183
|
+
clearTimeout(timer);
|
|
184
|
+
timer = null
|
|
185
|
+
}
|
|
186
|
+
timer = setTimeout(()=>{
|
|
187
|
+
this.init();
|
|
188
|
+
},200)
|
|
189
|
+
});
|
|
179
190
|
},
|
|
180
191
|
methods: {
|
|
181
192
|
...mapActions('walking', [
|
|
@@ -190,12 +201,21 @@ export default {
|
|
|
190
201
|
]),
|
|
191
202
|
getInfo(){
|
|
192
203
|
let loading = Loading.service({});
|
|
204
|
+
this.containerDone = false;
|
|
193
205
|
Promise.all([this.getDetail(),this.getPointList()])
|
|
194
206
|
.then(([info, list])=>{
|
|
195
207
|
let backgroundImage = this.getImageFullPath(info['map_image_url'])
|
|
196
208
|
let pointList = []
|
|
197
209
|
list.map(item=>{
|
|
198
|
-
|
|
210
|
+
try{
|
|
211
|
+
item.point_position = JSON.parse(item.point_position)
|
|
212
|
+
}catch(e){
|
|
213
|
+
item.point_position = {
|
|
214
|
+
x: 15,
|
|
215
|
+
y: 15,
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
item['key'] = this.$xdHelper.randomChar(20)
|
|
199
219
|
item.point_total_mileage = this.$xdHelper.divisionFloatNumber(item.point_total_mileage, 100)
|
|
200
220
|
pointList.push({model:item})
|
|
201
221
|
})
|
|
@@ -318,7 +338,7 @@ export default {
|
|
|
318
338
|
this.dataList = this.dataList.filter(item =>{
|
|
319
339
|
return item.model.id !== data.id
|
|
320
340
|
});
|
|
321
|
-
this.
|
|
341
|
+
this.getInfo()
|
|
322
342
|
loading.close()
|
|
323
343
|
})
|
|
324
344
|
.catch(err=>{
|