消费者分销链接参数undefined问题修复

This commit is contained in:
donqi 2022-07-21 14:46:14 +08:00
parent c68e810350
commit c1f0cf198a
2 changed files with 3 additions and 4 deletions

View File

@ -67,7 +67,6 @@ export default {
} }
}, },
async wxGetLocation() { async wxGetLocation() {
console.log("获取定位")
let res = await wx.getLocation({ let res = await wx.getLocation({
type: 'gcj02' type: 'gcj02'
}) })

View File

@ -105,13 +105,13 @@
this.inParam = option; this.inParam = option;
this.loadData(option); this.loadData(option);
}, },
onShareAppMessage(e) { async onShareAppMessage(e) {
let shareInfo = null; let shareInfo = null;
if (e && e.target && e.target.dataset) { if (e && e.target && e.target.dataset) {
shareInfo = e.target.dataset.shareInfo; shareInfo = e.target.dataset.shareInfo;
} }
if (!this.curUserInfo) { if (!this.curUserInfo) {
this.curUserInfo = this.$request.getCurUserNoCache(); this.curUserInfo = await this.$request.getCurUserNoCache();
if (!this.curUserInfo) { if (!this.curUserInfo) {
uni.showToast({ uni.showToast({
title: '请前往“我的”完成登录', title: '请前往“我的”完成登录',