diff --git a/pages/purchase/detail/index.js b/pages/purchase/detail/index.js index 49ca3c4..51fcb32 100644 --- a/pages/purchase/detail/index.js +++ b/pages/purchase/detail/index.js @@ -86,6 +86,10 @@ Page({ } }, phoneShopInfo: function(){ + if(!app.globalData.userInfo){ + wx.navigateTo({ url: '/pages/login/index'}) + return + } if(this.check()){ wx.makePhoneCall({ phoneNumber: this.data.orderInfo.ownerPhone }) }