diff --git a/manifest.json b/manifest.json index 0c72fd1..25de0c1 100644 --- a/manifest.json +++ b/manifest.json @@ -184,6 +184,7 @@ "postcss" : true, "es6" : true }, + "__usePrivacyCheck__" : true, "permission" : { "scope.userLocation" : { "desc" : "你的位置信息将用于和门店的距离长度" diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index b06d9a9..baed341 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -932,7 +932,10 @@ this.storeList = this.storeLists; this.storeLists = null; } - this.getUserInfo() + if (this.isLogin) { + this.getUserInfo() + } + this.store_id=uni.getStorageSync('mendianstore_id') }, mounted(){ diff --git a/pages/user/components/member/template1.vue b/pages/user/components/member/template1.vue index 82bb3d4..2a030f2 100644 --- a/pages/user/components/member/template1.vue +++ b/pages/user/components/member/template1.vue @@ -15,7 +15,7 @@ export default { default: 0 } }, - inject: ['intoPage', 'tapQrCode', 'goMenuPage', 'goEdit', 'bindPhone'], + inject: ['intoPage', 'tapQrCode', 'goMenuPage', 'goEdit', 'bindPhone','openAuto'], methods: {} }; @@ -23,17 +23,19 @@ export default { - + + + - 请点击授权 + 请点击登录 {{ userInfo.nickname }} - 普通用户 + 普通用户 - 会员码 + 会员码 店员推广码 @@ -107,7 +129,8 @@ export default { intoPage: this.intoPage, goMenuPage: this.goMenuPage, getMenuData: this.getMenuData, - goEdit: this.goEdit + goEdit: this.goEdit, + openAuto:this.openAuto }; }, data() { @@ -217,6 +240,8 @@ export default { // #endif }, async onLoad(option) { + + if (this.isLogin) { // this.getNewcomerGift(); } @@ -238,7 +263,7 @@ export default { onShow() { if (!this.isLogin) { this.userInfo = ''; - return; + // return; } if (this.cartNum > 0) { // uni.setTabBarBadge({ @@ -269,10 +294,11 @@ export default { // #endif if (that.isLogin) { this.getUserInfo(); - this.getMyMenus(); this.setVisit(); this.getMenuData(); } + this.getMyMenus(); + }, // #ifdef MP || APP-PLUS onPageScroll(e) { @@ -536,7 +562,7 @@ export default { return } console.log(url); - if (this.isLogin) { + // if (this.isLogin) { let arr = url.split('@APPID='); if (arr.length > 1) { //#ifdef MP @@ -612,7 +638,7 @@ export default { } } } - } + // } } } };