share.wxml 4.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <image src="{{topImg?topImg:'../images/invite.png'}}" mode="widthFix" style="width: 100%;"></image>
  2. <view class="rules">
  3. <text class="iconfont icon-rules" style="font-size:36rpx;color:#e64340;" bindtap="handleRuleModal"></text>
  4. </view>
  5. <!-- 领取 -->
  6. <view class="box u-m-t-35 u-p-35" wx:if="{{isCollect==0}}">
  7. <button type="primary" bindtap="getGift" wx:if="{{can_collect_gift==1||!token}}">立即领取</button>
  8. <view class="text-center" wx:else>
  9. <view class="u-font-32">抱歉!您已是我们的老朋友啦</view>
  10. <view class="u-font-26 u-m-t-20 u-m-b-30 text-gray">该礼包仅限新加入的用户领取,您也可以通过邀请其他新用户进行参与,获得奖励!</view>
  11. <button type="warn" bindtap="goLink" data-link="/lionfish_comshop/moduleB/invite/index">立即邀请</button>
  12. </view>
  13. </view>
  14. <view class="box u-m-t-35 u-p-35" wx:else>
  15. <view class="text-center">
  16. <view class="u-font-32 u-m-b-30">恭喜,已成功领取新人礼包!</view>
  17. <view wx:if="{{coupon_info}}" class="u-m-b-30">
  18. <view class="u-font-32 actColor medium u-m-b-38">优惠券</view>
  19. <view class="coupon {{coupon_info.is_over==1?'expired':''}} {{coupon_info.is_use==1?'used':''}}">
  20. <view class='header'>
  21. <view class='price'>
  22. <view class='reduce-price'>
  23. {{coupon_info.credit}}<text>元</text>
  24. </view>
  25. <view class='reduce-desc'>{{coupon_info.limit_money >0.01 ?'满'+coupon_info.limit_money+'元可用':'不限制'}}</view>
  26. </view>
  27. <view class='info'>
  28. <view class='reduce-title'><text class='reduce-type' wx:if="{{coupon_info.tag}}">{{coupon_info.tag}}</text>
  29. {{coupon_info.voucher_title}}</view>
  30. <view class='reduce-area' wx:if="{{coupon_info.is_limit_goods_buy==0}}">使用范围:所有商品</view>
  31. <view class='reduce-area' wx:elif="{{coupon_info.is_limit_goods_buy==1}}">使用范围:指定商品</view>
  32. <view class='reduce-area' wx:elif="{{coupon_info.is_limit_goods_buy==2}}">使用范围:指定分类</view>
  33. </view>
  34. <view class='status' wx:if="{{coupon_info.is_collect==1}}">
  35. <view class='go-shop' wx:if="{{coupon_info.is_over==0&&item.is_use==0}}" bindtap='goUse' data-idx='{{index}}'>去使用
  36. </view>
  37. <image src="../../images/expired.png" wx:if="{{coupon_info.is_over==1&&item.is_use==0}}"></image>
  38. <image src="../../images/used.png" wx:if="{{coupon_info.is_use==1}}"></image>
  39. </view>
  40. <view class='status' wx:else>
  41. <view class='go-shop' wx:if="{{coupon_info.is_use==2&&(coupon_info.total_count-item.send_count)>0}}"
  42. bindtap='receiveCoupon' data-idx='{{index}}'>领取</view>
  43. <image src="../../images/expired.png" wx:elif="{{coupon_info.is_over==1}}"></image>
  44. <image src="../../images/qiangguang.png"
  45. wx:elif="{{item.is_nomore==1||(coupon_info.total_count-item.send_count)==0}}"></image>
  46. </view>
  47. </view>
  48. <view class='footer'>有效期:{{coupon_info.begin_time}}~{{coupon_info.end_time}}</view>
  49. </view>
  50. </view>
  51. <view wx:if="{{point}}" class="u-m-b-30 point-box">
  52. <view class="u-font-32 medium u-m-b-30 text-white">恭喜您获得</view>
  53. <view class="i-flex jcontent-c line-h" style="align-items: flex-end;">
  54. <text class="point weight">{{point}}</text>积分
  55. </view>
  56. </view>
  57. <button type="warn" bindtap="goIndex">去使用</button>
  58. </view>
  59. </view>
  60. <!-- 规则 -->
  61. <view class="box u-m-t-35 u-p-35 u-m-b-35">
  62. <view class="text-center u-font-38 u-m-b-40 actColor">领券规则</view>
  63. <parser html="{{getRules}}" />
  64. </view>
  65. <!-- 推荐商品 -->
  66. <guess-like bind:openSku="openSku" updateCart="{{updateCart}}" likeTitle="精选商品" bind:vipModal="vipModal"></guess-like>
  67. <view style="height: 100rpx;"></view>
  68. <!-- 规则弹窗 -->
  69. <i-modal scrollUp="{{true}}" visible="{{showRulesPopup}}" bind:cancel="handleRuleModal">
  70. <view class="i-flex-col">
  71. <view class="u-p-30 u-font-32 text-center u-border-bottom">活动规则</view>
  72. <scroll-view scroll-y style="height:50vh;box-sizing: border-box;" class="u-p-30">
  73. <parser html="{{rules}}" />
  74. </scroll-view>
  75. </view>
  76. </i-modal>
  77. <sku visible="{{visible}}" skuList="{{skuList}}" cur_sku_arr="{{cur_sku_arr}}" bind:cancel="closeSku" sku_val="{{sku_val}}" sku="{{sku}}" goodsid="{{addCar_goodsid}}" bind:changeCartNum="changeCartNum" bind:vipModal="vipModal"></sku>
  78. <i-vip-modal visible="{{showVipModal}}" imgUrl="{{pop_vipmember_buyimage}}" />
  79. <i-new-auth needAuth="{{needAuth&&showAuthModal}}" bind:authSuccess="authSuccess" bind:cancel="authModal"
  80. needPosition="{{false}}"></i-new-auth>