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
cd395c3b
Commit
cd395c3b
authored
Jul 04, 2019
by
daqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify: 首页背景色
parent
fd2186a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
userCenter.js
src/pages/userCenter/userCenter.js
+4
-0
userCenter.wxml
src/pages/userCenter/userCenter.wxml
+1
-1
No files found.
src/pages/userCenter/userCenter.js
View file @
cd395c3b
...
@@ -26,6 +26,7 @@ wxService.page({
...
@@ -26,6 +26,7 @@ wxService.page({
pageId
:
3
,
pageId
:
3
,
baseUserInfo
:
null
,
baseUserInfo
:
null
,
cardMember
:
null
,
cardMember
:
null
,
pageBackgroundColor
:
0
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
...
@@ -142,6 +143,9 @@ wxService.page({
...
@@ -142,6 +143,9 @@ wxService.page({
if
(
!
res
)
return
false
if
(
!
res
)
return
false
const
{
result
,
data
}
=
res
.
data
const
{
result
,
data
}
=
res
.
data
if
(
result
==
0
){
if
(
result
==
0
){
this
.
setData
({
pageBackgroundColor
:
data
.
page
.
backgroundColor
})
// 动态设置title
// 动态设置title
wx
.
setNavigationBarTitle
({
wx
.
setNavigationBarTitle
({
title
:
data
.
page
.
title
title
:
data
.
page
.
title
...
...
src/pages/userCenter/userCenter.wxml
View file @
cd395c3b
<!--pages/userCenter.wxml-->
<!--pages/userCenter.wxml-->
<view class='user-center'>
<view class='user-center'
style="background: {{pageBackgroundColor == 1? '#eee': '#fff'}};"
>
<!-- 1 轮播 2 个人中心 3 图片导航 4 底部-->
<!-- 1 轮播 2 个人中心 3 图片导航 4 底部-->
<block wx:for="{{pages}}" wx:key="{{index}}" wx:for-item="pItem">
<block wx:for="{{pages}}" wx:key="{{index}}" wx:for-item="pItem">
<!--{{pItem.type}}-->
<!--{{pItem.type}}-->
...
...
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