Commit 5cf16d196c3092275bfc5448f8461d67f7762f3a
1 parent
cad27e3c
转盘分享控制
Showing
2 changed files
with
8 additions
and
4 deletions
packageB/pages/luckactivity/luckinfo/luckinfo.js
... | ... | @@ -351,6 +351,12 @@ Page({ |
351 | 351 | luckInfo: res.data.data, |
352 | 352 | }); |
353 | 353 | WxParse.wxParse('content', 'html', self.data.luckInfo.remark, self); |
354 | + | |
355 | + // 如果is_share为1,隐藏发送给朋友和分享到朋友圈功能 | |
356 | + if(!self.data.luckInfo.is_share) { | |
357 | + wx.hideShareMenu(); | |
358 | + }; | |
359 | + | |
354 | 360 | } else { |
355 | 361 | wx.showToast({ |
356 | 362 | title: res.data.msg, | ... | ... |
packageB/pages/luckactivity/luckinfo/luckinfo.wxml
... | ... | @@ -124,7 +124,7 @@ |
124 | 124 | </view> |
125 | 125 | |
126 | 126 | <!-- 分享按钮 --> |
127 | -<view class="circle-container zhuanfa" bindtap="showPoster"><text class="iconfont icon-zhuanfa1"></text></view> | |
127 | +<view class="circle-container zhuanfa" bindtap="showPoster" wx:if="{{!luckInfo.is_share}}"><text class="iconfont icon-zhuanfa1"></text></view> | |
128 | 128 | |
129 | 129 | <!-- 悬浮按钮 --> |
130 | 130 | <view class="circle-container gift {{((record && record.length != 0) || isActive) ? 'active':''}}" bindtap="showPopup"><text class="iconfont icon-liwu"></text></view> |
... | ... | @@ -199,10 +199,8 @@ |
199 | 199 | <!-- 遮罩层 --> |
200 | 200 | <view class="mask" wx:if="{{showMask}}"></view> |
201 | 201 | |
202 | -<!-- 遮罩层2 --> | |
203 | -<!-- <cover-view class="mask2"></cover-view> --> | |
204 | 202 | |
205 | 203 | <qrcode id="qrcode" bind:close="closeQr"></qrcode> |
206 | 204 | |
207 | 205 | |
208 | -<painter style="position: absolute;" palette="{{imgDraw}}" bind:imgOK="onImgOK"/> | |
209 | 206 | \ No newline at end of file |
207 | +<painter style="position: absolute;left: -9999rpx;" palette="{{imgDraw}}" bind:imgOK="onImgOK"/> | |
210 | 208 | \ No newline at end of file | ... | ... |