【综合修复】改造拼团装修(仍需优化);处理无法发布到微信小程序的问题;

This commit is contained in:
卢越
2024-09-03 15:36:18 +08:00
parent 7268659193
commit 36289d526c
9 changed files with 366 additions and 194 deletions
+3 -3
View File
@@ -75,7 +75,6 @@
const jsWxSdk = sheep.$platform.useProvider('wechat').jsWxSdk;
if (jsWxSdk.isWechat()) {
jsWxSdk.getLocation((res) => {
console.log(res);
state.user_latitude = res.latitude;
state.user_longitude = res.longitude;
uni.setStorageSync(LATITUDE, res.latitude);
@@ -92,7 +91,8 @@
state.user_longitude = res.longitude;
uni.setStorageSync(LATITUDE, res.latitude);
uni.setStorageSync(LONGITUDE, res.longitude);
} catch {
} catch (e) {
console.error(e);
}
getList();
},
@@ -172,7 +172,7 @@
state.user_latitude = uni.getStorageSync(LATITUDE);
state.user_longitude = uni.getStorageSync(LONGITUDE);
} catch (e) {
// error
console.error(e)
}
});
</script>