Commit 35f54e98 by 高淑倩

add: 关注公众号

parent 3ac7cdca
......@@ -13,11 +13,11 @@ Component({
type: Object,
value: null
}
},
attached () {
},
attached() {
this.setData({
baseImgUrl: app.globalData.imageUrl
})
baseImgUrl: app.globalData.imageUrl
})
},
/**
* 组件的初始数据
......@@ -29,10 +29,18 @@ Component({
* 组件的方法列表
*/
methods: {
// 组件加载成功时触发
handelLoad(e) {
console.log('成功', e)
},
// 组件加载失败时触发
handelErr(e) {
console.log('失败', e)
},
handelTo(e) {
const ev = e.currentTarget.dataset;
let redirectId = ev.redirectId
console.log('redirectid', redirectId)
}
}
}
})
<!--component/attention/attention.wxml-->
<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<!--<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<view class="attention-left">
<view class="left-title">关注舞象公众号</view>
<view class="left-tips">福利不错过!</view>
</view>
<view class="attention-right">关注</view>
</view>
</view>-->
<view class="attention" style="background-image:url({{baseImgUrl}}{{focusWx.imageUrl}})" data-redirectId="{{focusWx.redirectId}}" bindtap="handelTo">
<official-account style="width:100%;height:168rpx;" bindload="handelLoad" binderror="handelErr">
</official-account>
</view>
\ No newline at end of file
/* component/attention/attention.wxss */
/* .banner-ad {
margin: 0 auto;
width: 710rpx;
height: 155rpx;
border-radius: 10rpx;
background-color: rgba(246, 243, 242, 1);
box-shadow: 0px 0px 10rpx 0px rgba(0, 0, 0, 0.05);
} */
.attention {
margin: 0 auto;
width: 710rpx;
......@@ -18,7 +10,6 @@
display: flex;
align-items: center;
justify-content: space-between;
padding: 0 60rpx;
box-sizing: border-box;
color: #fff;
background-repeat: no-repeat;
......
......@@ -86,9 +86,9 @@ wxService.page({
isAuthorization: false
},()=>{
// 积分数量
this.getMemberPointInfo()
// this.getMemberPointInfo()
// 优惠券数量
this.getMemberCouponInfo()
// this.getMemberCouponInfo()
})
}
else if(!baseUserInfo && reLoginErrFlag){
......
......@@ -12,7 +12,7 @@
"autoAudits": false
},
"compileType": "miniprogram",
"libVersion": "2.6.6",
"libVersion": "2.8.1",
"appid": "wxc3b64b09b1d3dfc2",
"projectname": "%E5%BE%AE%E5%95%86%E5%9F%8E",
"debugOptions": {
......
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