gxd-uni-library-editx 1.0.38 → 1.0.39
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.
package/package.json
CHANGED
|
@@ -114,6 +114,7 @@
|
|
|
114
114
|
import XdCityLocation from "@/components/XdCityLocation/XdCityLocation";
|
|
115
115
|
import XdFontIcon from "@/components/XdFontIcon/XdFontIcon";
|
|
116
116
|
import { mapState, mapMutations } from "vuex"
|
|
117
|
+
import {getCacheTime} from "@/common/common";
|
|
117
118
|
|
|
118
119
|
/**
|
|
119
120
|
* XdCity
|
|
@@ -182,6 +183,8 @@
|
|
|
182
183
|
locationSuccessKey: 'xd_three_map_success',
|
|
183
184
|
//定位成功保存数据(定位成功就保存等待有组件需要弹出时候转化 prevUserLocationCityKey)
|
|
184
185
|
prevUserlocationCitySuccessKey: 'xd_user_location_success_city',
|
|
186
|
+
//用户是否确认过操作逻辑
|
|
187
|
+
userActionKey: 'xd_user_succes_is_change_city' ,
|
|
185
188
|
cityCacheLocation: [], //最近访问列表记录
|
|
186
189
|
}
|
|
187
190
|
},
|
|
@@ -263,12 +266,12 @@
|
|
|
263
266
|
setTimeout(()=>{
|
|
264
267
|
if (item) {
|
|
265
268
|
storage.set(this.prevUserSelectCityKey,item)
|
|
269
|
+
let time = getCacheTime(this,0.5, 0.01, 2);
|
|
270
|
+
storage.set(this.userActionKey, 1, time);
|
|
266
271
|
storage.remove(this.locationSuccessKey)
|
|
267
272
|
storage.remove(this.prevUserlocationCitySuccessKey)
|
|
268
|
-
this.setLocationCity({
|
|
269
|
-
|
|
270
|
-
location: this.locationInfo,
|
|
271
|
-
})
|
|
273
|
+
this.setLocationCity({city:item, location: this.locationInfo,})
|
|
274
|
+
|
|
272
275
|
this.$xdRoot.$emit('selectCity', item);
|
|
273
276
|
}
|
|
274
277
|
if (this.callbackUrl) {
|