share.wxml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <view class="share" bindtap="close" wx:if="{{shareFlag}}" catchtouchmove="touchMove">
  2. <!--暂时使用传参方式判断不同海报保存类型 以后有时间可以重写这个组件,让组件成为公用全局组件-->
  3. <view class="read-activity-btn" wx:if="{{shareType === 'readActivity'}}">
  4. <button class="share-activity-friend" open-type="share" catchtap="shareFriend">
  5. <image src="http://reader-wx.ai160.com/images/reader/pay/weixin.png"></image>
  6. <text>分享给好友/群聊 </text>
  7. </button>
  8. <view class="share-activity-circle" catchtap="PreservationImg">
  9. <image src="http://reader-wx.ai160.com/images/reader/pay/pengyouquan.png"></image>
  10. <text>保存海报</text>
  11. </view>
  12. </view>
  13. <view wx:else class="btn" animation="{{animationData}}" id="btnArea" catchtap="nothing">
  14. <!-- <image class="bg" src="../../static/groupImg/share.png"></image> -->
  15. <!-- <view class="corss-line"></view> -->
  16. <view class="invite-text" wx-if="{{shareStep==='firend' && !activity}}">分享该作品,获得3朵<image class="cover-flower" src="../../static/image/flower_small.png"></image></view>
  17. <view class="invite-text" wx-if="{{activity}}">分享该作品,获得活力值<image class="cover-flower" src="../../static/activity/popularity1.png"></image></view>
  18. <view class="share-btn">
  19. <button class="share-friend" wx-if="{{shareStep==='firend'}}" open-type="share" catchtap="shareFriend">
  20. <image src="../../static/image/wx_icon.png"></image>
  21. <text>分享给好友/群聊 </text>
  22. </button>
  23. <view class="share-circle" wx-if="{{shareStep==='circle'}}" catchtap="PreservationImg">
  24. <image src="../../static/image/wx_firend.png"></image>
  25. <text>保存海报</text>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- <cover-view class="share-img" wx:if="{{imgUrls}}" id="imgArea">
  30. <cover-image class="img" src="{{imgUrls}}" catchtap="nothing"></cover-image>
  31. <cover-view class="cover-text">再接再厉~</cover-view>
  32. <cover-view class="cover-text">现在将海报分享到朋友圈</cover-view>
  33. <cover-view class="cover-text">还可以额外获得10朵 <cover-image class="cover-flower" src="../../static/image/flower_small.png"></cover-image></cover-view>
  34. </cover-view> -->
  35. <view class="share-img" wx:if="{{imgUrls}}" id="imgArea">
  36. <image class="img" src="{{imgUrls}}" catchtap="nothing" style="{{shareType === 'readActivity' && ' position: absolute;left: 50%;top: 50%;transform: translate(-50%, -60%);'}}"></image>
  37. <view class="cover-text" hidden="{{shareType === 'readActivity'}}">将海报分享到朋友圈</view>
  38. <view class="cover-text" hidden="{{shareType === 'readActivity'}}">{{activity ? '获取更多人气值' : '额外获得10朵'}}<image class="cover-flower" hidden="{{activity}}" src="../../static/image/flower_small.png"></image></view>
  39. <!-- <view class="cover-text">还可以额外获得10朵 <image class="cover-flower" src="../../static/image/flower_small.png"></image>!</view> -->
  40. </view>
  41. </view>
  42. <flowerBox id="flower-toast" flowerNum="{{flowerNum}}" />