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
cbe43c25
authored
Sep 28, 2020
by
wjw
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
ww--我的页面修改
parent
4034dfe5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
11 deletions
app.js
pages/mine/home/home.js
pages/mine/home/home.wxml
pages/mine/home/home.wxss
app.js
View file @
cbe43c25
...
...
@@ -241,7 +241,6 @@ App({
break
}
funcUserInfo
.
userType
=
0
wx
.
setStorageSync
(
'userInfo'
,
funcUserInfo
)
// 如果用户身份有更新,则自动跳转到首页
...
...
pages/mine/home/home.js
View file @
cbe43c25
...
...
@@ -20,7 +20,6 @@ Page({
scroll
:
'400rpx'
,
},
navigationScroll
:
0
,
isCheckPermission
:
false
,
imageBase
:
App
.
globalData
.
appImageBase
,
imageResourcesBase
:
App
.
globalData
.
appResourcesBase
,
...
...
@@ -331,11 +330,16 @@ Page({
funcStatusText
=
'审核失败'
break
}
let
navigationColor
=
'#ffffff'
if
(
funcUserInfo
.
userType
===
0
)
{
navigationColor
=
'#000000'
}
this
.
setData
({
type
:
funcUserInfo
.
userType
,
statusText
:
funcStatusText
,
isRegister
:
true
,
userInfo
:
funcUserInfo
userInfo
:
funcUserInfo
,
'navigationStyle.normal.color'
:
navigationColor
})
App
.
login
({
timeout
:
0
,
...
...
@@ -579,7 +583,7 @@ Page({
},
onPageScroll
:
function
(
event
)
{
console
.
log
(
this
.
scrollLock
)
//
console.log(this.scrollLock)
// 优化滚动事件触发频率
if
(
this
.
scrollLock
)
return
...
...
@@ -589,7 +593,7 @@ Page({
navigationScroll
:
event
.
scrollTop
})
console
.
log
(
this
.
data
.
navigationScroll
)
//
console.log(this.data.navigationScroll)
// 恢复滚动事件
this
.
scrollTimer
=
setTimeout
(()
=>
{
...
...
pages/mine/home/home.wxml
View file @
cbe43c25
This diff is collapsed.
Click to expand it.
pages/mine/home/home.wxss
View file @
cbe43c25
.container {
background: linear-gradient(180deg, #fff 10%, #F3F4F6 20%);
min-height: 100vh;
/* background: #F3F4F6 */
background: #F3F4F6
}
.navigation {
...
...
@@ -324,10 +323,6 @@
height: 30rpx;
}
.approve {
padding-top: 100rpx;
}
.approve-icon {
width: 168rpx;
height: 103rpx;
...
...
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