Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
7
7-Eleven
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
高淑倩
7-Eleven
Commits
5716956e
Commit
5716956e
authored
Jul 05, 2019
by
高淑倩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: 首页高度跟随屏幕自适应
parent
8eb3d385
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
9 deletions
+10
-9
userCenter.js
src/pages/userCenter/userCenter.js
+8
-2
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+1
-1
userCenter.wxss
src/pages/userCenter/userCenter.wxss
+1
-6
No files found.
src/pages/userCenter/userCenter.js
View file @
5716956e
...
...
@@ -40,7 +40,8 @@ wxService.page({
render
:
null
,
// 渲染页面数据对象(安全渲染)
isLastPage
:
false
,
// 页面段落加载完成
renderPageOver
:
false
,
// 渲染页面结束
// isAuthorization: true
// isAuthorization: true,
outoHeigth
:
500
,
},
()
=>
{
// this.loadMore()
...
...
@@ -56,7 +57,6 @@ wxService.page({
* */
updatePage
(
ev
)
{
const
{
pageId
}
=
ev
.
detail
console
.
log
(
'pageId'
,
pageId
)
// this.setData({
// pages: [],
// pageId
...
...
@@ -90,6 +90,12 @@ wxService.page({
isAuthorization
:
true
})
}
// 获取手机信息
wxService
.
getSystemInfo
().
then
(
res
=>
{
this
.
setData
({
outoHeigth
:
res
.
windowHeight
})
})
},
// 查询积分信息
getMemberPointInfo
(){
...
...
src/pages/userCenter/userCenter.wxml
View file @
5716956e
<!--pages/userCenter.wxml-->
<view class='user-center' style="background: {{pageBackgroundColor == 1? '#eee': '#fff'}};">
<view class='user-center' style="background: {{pageBackgroundColor == 1? '#eee': '#fff'}};
min-height: {{outoHeigth}}px
">
<!-- 1 轮播 2 个人中心 3 图片导航 4 底部-->
<block wx:for="{{pages}}" wx:key="{{index}}" wx:for-item="pItem">
<!--{{pItem.type}}-->
...
...
src/pages/userCenter/userCenter.wxss
View file @
5716956e
/* pages/userCenter.wxss */
@import './../../base/base.wxss';
page {
/* background: #fff!important; */
}
.user-center{
/* margin-bottom: 120rpx; */
/* background: #fff; */
box-sizing:border-box;
box-sizing: border-box;
padding-bottom: 120rpx;
height: 100%;
}
...
...
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