Commit 35f54e98 by 高淑倩

add: 关注公众号

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