Commit dae6f5b0 by 赵雅纹

Merge branch 'dev_7.1.0' into feature-zyw-sc

parents 25e4b96a ba2ae622
...@@ -9,21 +9,30 @@ Component({ ...@@ -9,21 +9,30 @@ Component({
* 组件的属性列表 * 组件的属性列表
*/ */
properties: { properties: {
focusWx: {
type: Object,
value: null
}
}, },
attached () { attached () {
this.setData({
baseImgUrl: app.globalData.imageUrl
})
}, },
/** /**
* 组件的初始数据 * 组件的初始数据
*/ */
data: { data: {
baseImgUrl: ''
}, },
/** /**
* 组件的方法列表 * 组件的方法列表
*/ */
methods: { methods: {
handelTo(e) {
const ev = e.currentTarget.dataset;
let redirectId = ev.redirectId
console.log('redirectid', redirectId)
}
} }
}) })
<!--component/attention/attention.wxml--> <!--component/attention/attention.wxml-->
<view class="attention"> <view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<view class="attention-left"> <view class="attention-left">
<view class="left-title">关注舞象公众号</view> <view class="left-title">关注舞象公众号</view>
<view class="left-tips">福利不错过!</view> <view class="left-tips">福利不错过!</view>
......
...@@ -21,6 +21,9 @@ ...@@ -21,6 +21,9 @@
padding: 0 60rpx; padding: 0 60rpx;
box-sizing: border-box; box-sizing: border-box;
color: #fff; color: #fff;
background-repeat: no-repeat;
background-position: center;
background-size: 100% 100%;
} }
.left-title { .left-title {
color: rgba(255, 255, 255, 1); color: rgba(255, 255, 255, 1);
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
<tab-sort categorys="{{pItem.categoryType.categorys}}"/> <tab-sort categorys="{{pItem.categoryType.categorys}}"/>
</view> </view>
<view class="" wx:if="{{pItem.type == 8}}"> <view class="" wx:if="{{pItem.type == 8}}">
<attention focusWx="{{pItem.focusWx}}"/> <attention focus-wx="{{pItem.focusWx}}"/>
</view> </view>
<view class="" wx:if="{{pItem.type == 9}}"> <view class="" wx:if="{{pItem.type == 9}}">
<attention/> <attention/>
......
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