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
d6e480f7
Commit
d6e480f7
authored
Jul 04, 2019
by
daqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add: bottom_bgc
parent
f6d37f1a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
bottom.js
src/component/bottom/bottom.js
+8
-2
bottom.wxml
src/component/bottom/bottom.wxml
+1
-1
No files found.
src/component/bottom/bottom.js
View file @
d6e480f7
...
@@ -16,14 +16,20 @@ Component({
...
@@ -16,14 +16,20 @@ Component({
value
:
{},
value
:
{},
},
},
},
},
attached
()
{
},
attached
()
{
this
.
setData
({
baseImgUrl
:
app
.
globalData
.
imageUrl
})
},
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
startX
:
0
,
startX
:
0
,
startY
:
0
,
startY
:
0
,
isAuthorization
:
false
isAuthorization
:
false
,
baseUrl
:
'#02bb70'
,
baseImgUrl
:
''
},
},
/**
/**
* 组件的方法列表
* 组件的方法列表
...
...
src/component/bottom/bottom.wxml
View file @
d6e480f7
<!--component/bottom/bottom.wxml-->
<!--component/bottom/bottom.wxml-->
<view class='footer-content' style="background:{{bottom.color}};color:{{bottom.color}}" data-link="{{bottom.link}}" data-appid="{{bottom.link.appid}}" data-item="{{bottom}}" data-path="{{bottom.link.url}}" catchtouchstart='touchStart' catchtouchend="touchEnd">
<view class='footer-content' style="background:{{bottom.color}};color:{{bottom.color}}
;{{bottom.bgImgUrl ? 'background-image: url('+ baseImgUrl +''+ bottom.bgImgUrl +');' : 'background-color: ' + baseUrl + ';'}}
" data-link="{{bottom.link}}" data-appid="{{bottom.link.appid}}" data-item="{{bottom}}" data-path="{{bottom.link.url}}" catchtouchstart='touchStart' catchtouchend="touchEnd">
<text class="footer-arrow" style="color:{{bottom.fontColor}}"><<</text>
<text class="footer-arrow" style="color:{{bottom.fontColor}}"><<</text>
<text class='footer-text' style="color:{{bottom.fontColor}}">{{bottom.title}}</text>
<text class='footer-text' style="color:{{bottom.fontColor}}">{{bottom.title}}</text>
</view>
</view>
...
...
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