bill.wxml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <view style="padding-bottom: 110rpx;">
  2. <!-- <button class='button button-white button-big button-radius' bindtap='cetaInvite' hover-class='none'>保存到相册</button> -->
  3. <view class="borderNone card">
  4. <view class="card-label"><text>{{showConent?'分享海报':'邀请海报'}}</text></view>
  5. <view class="tip subtitleColor m-top20" wx:if="{{userInfo.roleType == 'sharer'&& shareStatus==1}}">保存海报,发送好友或朋友圈,好友下单赚取奖励~</view>
  6. <view class="card-content">
  7. <view class="swiper" wx:if="{{info.posters.length > 0}}">
  8. <swiper indicator-dots="{{true}}" bindchange="swiperChange">
  9. <block wx:for="{{info.posters}}" wx:for-index="index" wx:key="*this">
  10. <swiper-item>
  11. <view class="shareImage">
  12. <image class="swiper-item-bg" src='{{item.posterPic}}' mode="widthFix"></image>
  13. <image class="swiper-item-logo" src='{{info.qrcode}}' style="{{'top:'+(item.posterHeight - item.qrcodeY - item.qrcodeHeight)*(500/item.posterWidth)+'rpx;'+'left:'+item.qrcodeX*(500/item.posterWidth)+'rpx;'+'width:'+item.qrcodeWidth*(500/item.posterWidth)+'rpx;'+'height:'+item.qrcodeHeight*(500/item.posterWidth)+'rpx;'}}"></image>
  14. </view>
  15. </swiper-item>
  16. </block>
  17. <!-- 隐藏默认海报 -->
  18. <swiper-item wx:if="{{false}}">
  19. <view class="shareImage {{orderid.length > 0 ? 'group':'actvity'}}">
  20. <text class='nickname'>{{info.nickname}}</text>
  21. <text class='discountPrice' wx:if="{{orderid.length > 0}}">{{info.discountPrice}}</text>
  22. <text class='text' wx:else>{{userInfo.roleType == 'normal' || userInfo.roleTypeDisable == 1 ? '让宝贝探索属于自己的世界':'邀你参加活动,送你'+info.invitePrice+'元新人现金券'}}</text>
  23. <text class='tag'>{{info.tags}}</text>
  24. <text class='text-price'>活动费</text>
  25. <text class='price'><text class='price-text'>¥</text>{{info.price}}</text>
  26. <text class='psAttendCount' wx:if="{{info.psAttendCount > 10}}">已售{{info.psAttendCount}}人</text>
  27. <text class="act-text" wx:if="{{orderid.length <= 0}}">{{info.commentContent}}</text>
  28. <image class='logo' src='{{info.logo}}'></image>
  29. <image class='avatar' src='{{info.avatar}}'></image>
  30. <image class='qrcode' src='{{info.qrcode}}'></image>
  31. <!-- ../images/{{orderid.length > 0 ? 'group_bg':'activity_bg'}}.jpg -->
  32. <image wx:if="{{orderid.length > 0}}" class='bg' src="../images/group_bg.jpg"></image>
  33. <image wx:else class='bg' src="https://img.bbztx.com/images/upload/thumbs/20221110/logo/1668071284848082519.jpg"></image>
  34. </view>
  35. </swiper-item>
  36. </swiper>
  37. </view>
  38. <!-- 隐藏默认海报 -->
  39. <view wx:if="{{false}}" class="shareImage {{orderid.length > 0 ? 'group':'actvity'}}">
  40. <text class='nickname'>{{info.nickname}}</text>
  41. <text class='discountPrice' wx:if="{{orderid.length > 0}}">{{info.discountPrice}}</text>
  42. <text class='text' wx:else>{{userInfo.roleType == 'normal' || userInfo.roleTypeDisable == 1 ? '让宝贝探索属于自己的世界':'邀你参加活动,送你'+info.invitePrice+'元新人现金券'}}</text>
  43. <text class='tag'>{{info.tags}}</text>
  44. <text class='text-price'>活动费</text>
  45. <text class='price'><text class='price-text'>¥</text>{{info.price}}</text>
  46. <text class='psAttendCount' wx:if="{{info.psAttendCount > 10}}">已售{{info.psAttendCount}}人</text>
  47. <text class="act-text" wx:if="{{orderid.length <= 0}}">{{info.commentContent}}</text>
  48. <image class='logo' src='{{info.logo}}'></image>
  49. <image class='avatar' src='{{info.avatar}}'></image>
  50. <image class='qrcode' src='{{info.qrcode}}'></image>
  51. <image wx:if="{{orderid.length > 0}}" class='bg' src="../images/group_bg.jpg"></image>
  52. <image wx:else class='bg' src="https://img.bbztx.com/images/upload/thumbs/20221110/logo/1668071284848082519.jpg"></image>
  53. </view>
  54. </view>
  55. </view>
  56. <view class="card m-top20" wx:if="{{showConent}}">
  57. <view class="card-label"><text>文案</text></view>
  58. <view class="card-content">{{info.posterContent}}</view>
  59. </view>
  60. </view>
  61. <view class="buttom-btn">
  62. <view class="btn-left" wx:if="{{showConent}}">
  63. <view class="button" data-data="{{info.posterContent}}" bindtap="copyContent">复制文案</view>
  64. </view>
  65. <view class="btn-right">
  66. <view class="button" bindtap='cetaInvite'>保存图片</view>
  67. </view>
  68. </view>
  69. <canvasdrawer painting="{{painting}}" class="canvasdrawer" bind:getImage="eventGetImage" />
  70. <view wx:for="{{img}}" wx:for-index="index" wx:key="*this">
  71. <image src="{{item}}" style="width:500rpx;height:900rpx;"></image>
  72. </view>