Commit 879ba121 by 严立

LL - 首页微信登录问题

parent 233f35af
......@@ -286,6 +286,9 @@ App({
this.login({ error: true })
break
}
},
fail: () => {
this.globalData.isRefreshToken = false
}
})
},
......
......@@ -34,7 +34,6 @@ Page({
},
onLoad: function (option) {
console.log(option)
this.setData({
option: option
})
......@@ -209,7 +208,7 @@ Page({
url: '/api/v1/commodity/getCommoditys',
data: {
'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,
},
success: (response) => {
......
......@@ -78,12 +78,7 @@ Page({
},
setLogin: function () {
let funcUserInfo = wx.getStorageSync('userInfo')
// if (funcUserInfo.phone && funcUserInfo.name && funcUserInfo.avatar) {
// this.setData({
// isLogin: true,
// })
// }
if (funcUserInfo.isSignIn) {
if (!funcUserInfo.isSignIn) {
this.setData({
isLogin: true
})
......
......@@ -21,7 +21,7 @@
<image src="/image/ornament-0.png" mode="widthFix"></image>
</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">
<image src="/image/wechat.png"></image>
<text>微信登陆</text>
......@@ -47,7 +47,7 @@
</view>
</view>
<view class="detail {{!isLogin ? 'login-detail' : ''}}">
<view class="detail {{isLogin ? 'login-detail' : ''}}">
<!-- 预约公告 -->
<view class="night row con-b" bindtap="onAppointmentInto">
<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