Commit 879ba121 by 严立

LL - 首页微信登录问题

parent 233f35af
...@@ -286,6 +286,9 @@ App({ ...@@ -286,6 +286,9 @@ App({
this.login({ error: true }) this.login({ error: true })
break break
} }
},
fail: () => {
this.globalData.isRefreshToken = false
} }
}) })
}, },
......
...@@ -34,7 +34,6 @@ Page({ ...@@ -34,7 +34,6 @@ Page({
}, },
onLoad: function (option) { onLoad: function (option) {
console.log(option)
this.setData({ this.setData({
option: option option: option
}) })
...@@ -209,7 +208,7 @@ Page({ ...@@ -209,7 +208,7 @@ Page({
url: '/api/v1/commodity/getCommoditys', url: '/api/v1/commodity/getCommoditys',
data: { data: {
'officeId': this.data.shopInfo.id, 'officeId': this.data.shopInfo.id,
'classifyId': this.data.sideBar[this.data.currentIndex].id, // 'classifyId': this.data.sideBar[this.data.currentIndex].id,
'genre': this.data.shopInfo.shopType, 'genre': this.data.shopInfo.shopType,
}, },
success: (response) => { success: (response) => {
......
...@@ -78,12 +78,7 @@ Page({ ...@@ -78,12 +78,7 @@ Page({
}, },
setLogin: function () { setLogin: function () {
let funcUserInfo = wx.getStorageSync('userInfo') let funcUserInfo = wx.getStorageSync('userInfo')
// if (funcUserInfo.phone && funcUserInfo.name && funcUserInfo.avatar) { if (!funcUserInfo.isSignIn) {
// this.setData({
// isLogin: true,
// })
// }
if (funcUserInfo.isSignIn) {
this.setData({ this.setData({
isLogin: true isLogin: true
}) })
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<image src="/image/ornament-0.png" mode="widthFix"></image> <image src="/image/ornament-0.png" mode="widthFix"></image>
</view> </view>
<view class="banner-notice login-notice row align-c" bindtap="onLogin" wx:if="{{!isLogin}}"> <view class="banner-notice login-notice row align-c" bindtap="onLogin" wx:if="{{isLogin}}">
<view class="row align-c"> <view class="row align-c">
<image src="/image/wechat.png"></image> <image src="/image/wechat.png"></image>
<text>微信登陆</text> <text>微信登陆</text>
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</view> </view>
</view> </view>
<view class="detail {{!isLogin ? 'login-detail' : ''}}"> <view class="detail {{isLogin ? 'login-detail' : ''}}">
<!-- 预约公告 --> <!-- 预约公告 -->
<view class="night row con-b" bindtap="onAppointmentInto"> <view class="night row con-b" bindtap="onAppointmentInto">
<image src="./image/into.png" mode="aspectFit"></image> <image src="./image/into.png" mode="aspectFit"></image>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment