mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-30 22:40:48 +00:00
improve: 门店调用接口优化
This commit is contained in:
parent
c11006332d
commit
31e2dbd8df
@ -616,8 +616,8 @@
|
||||
* 获取门店列表数据
|
||||
*/
|
||||
getList: function() {
|
||||
let longitude = uni.getStorageSync("user_longitude"); //经度
|
||||
let latitude = uni.getStorageSync("user_latitude"); //纬度
|
||||
let longitude = uni.getStorageSync("user_longitude") || ''; //经度
|
||||
let latitude = uni.getStorageSync("user_latitude") || ''; //纬度
|
||||
let data = {
|
||||
latitude: latitude, //纬度
|
||||
longitude: longitude, //经度
|
||||
@ -692,12 +692,11 @@
|
||||
success: (res) => {
|
||||
uni.setStorageSync('user_latitude', res.latitude);
|
||||
uni.setStorageSync('user_longitude', res.longitude);
|
||||
this.getList()
|
||||
},
|
||||
complete: () => {
|
||||
this.getList()
|
||||
}
|
||||
});
|
||||
})
|
||||
// #ifdef H5
|
||||
}
|
||||
// #endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user