|
|
@@ -81,6 +81,7 @@
|
|
|
title: 'Hello',
|
|
|
pageInfo:{},
|
|
|
isAuth:getApp().globalData.isAuth,
|
|
|
+ isAuthPhone:getApp().globalData.user_phone,
|
|
|
productList:[
|
|
|
// {
|
|
|
// id:'1',
|
|
|
@@ -117,6 +118,7 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
this.isAuth =getApp().globalData.isAuth;
|
|
|
+ this.isAuthPhone = getApp().globalData.user_phone;
|
|
|
},
|
|
|
onShareAppMessage() {
|
|
|
return {
|
|
|
@@ -252,7 +254,7 @@
|
|
|
},
|
|
|
showShareModal(){
|
|
|
// 需要在 popup 组件,指定 ref 为 popup
|
|
|
- if(getApp().globalData.user_phone){
|
|
|
+ if(this.isAuthPhone){
|
|
|
this.$refs.popup.open();
|
|
|
}else {
|
|
|
uni.navigateTo({
|