Commit d6e480f7 by daqian

add: bottom_bgc

parent f6d37f1a
...@@ -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: ''
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
......
<!--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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment