Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
严立
/
mini-shimao
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
879ba121
authored
Sep 23, 2020
by
严立
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
LL - 首页微信登录问题
parent
233f35af
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
10 deletions
app.js
pages/commodity/menu-food/menu-food.js
pages/home/home/home.js
pages/home/home/home.wxml
app.js
View file @
879ba121
...
...
@@ -286,6 +286,9 @@ App({
this
.
login
({
error
:
true
})
break
}
},
fail
:
()
=>
{
this
.
globalData
.
isRefreshToken
=
false
}
})
},
...
...
pages/commodity/menu-food/menu-food.js
View file @
879ba121
...
...
@@ -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
)
=>
{
...
...
pages/home/home/home.js
View file @
879ba121
...
...
@@ -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
})
...
...
pages/home/home/home.wxml
View file @
879ba121
...
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment