C端小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 line
5.0 KiB

  1. <navbar home back text="使用优惠券"></navbar>
  2. <view class='box' style="padding-top:{{navigationBarHeight}};margin-top:40rpx;">
  3. <view class="container page" wx:if="{{data.merchantVoList}}">
  4. <view class="coupon_detail clearfix">
  5. <view class="fl wmfl">
  6. <image src="{{data.coverImg}}" mode='aspectFill' />
  7. </view>
  8. <view class="fr">
  9. <text class="title">{{data.title}}</text>
  10. <view class="time">{{data.subTitle}}</view>
  11. <view class="money">
  12. <text wx:if="{{data.type == 8&&data.price == data.couponPrice}}">¥{{data.couponPrice/100}}</text>
  13. <text wx:if="{{data.type == 8&&data.price != data.couponPrice}}">¥{{data.salePrice/100}}</text>
  14. <text wx:if="{{data.type != 8}}">¥{{data.salePrice/100}}</text>
  15. <del>¥{{data.price/100}}</del>
  16. <text class="refund" wx:if="{{data.autoRefund == 1}}">
  17. <text>过期不退款</text>
  18. </text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="timevalidity" wx:if="{{data.validStatus != 0}}">
  23. <text>有效期至:</text>
  24. <text>{{expiredTime}}</text>
  25. </view>
  26. <view class="timevalidity" wx:if="{{data.validStatus == 0}}">
  27. <text>有效期:</text>
  28. <text>{{validStartDate}}</text>
  29. <i>至</i>
  30. <text>{{validEndDate}}</text>
  31. </view>
  32. <view wx:if="{{data.usePrice!=undefined}}" class="manjian">满{{data.usePrice/100}}元可用</view>
  33. <view wx:if="{{data.usePrice==undefined}}" class="manjian">仅限本店使用</view>
  34. <image class='line' mode="widthFix" src="{{topLine}}"></image>
  35. <view class="zhuangtai">
  36. <image wx:if="{{data.couponOrderStatus==1}}" src="{{wm01Url}}" mode='widthFix'></image>
  37. <image wx:if="{{data.couponOrderStatus==2}}" src="{{wm02Url}}" mode='widthFix'></image>
  38. <image wx:if="{{data.couponOrderStatus==3}}" src="{{wm03Url}}" mode='widthFix'></image>
  39. <image wx:if="{{data.couponOrderStatus==0&&data.validStatus==0}}" src="{{wm04Url}}" mode='widthFix'></image>
  40. <view class="panel" wx:if="{{data.couponOrderStatus==0&&data.validStatus!=0}}">
  41. <!-- <view class="qrcode">
  42. <canvas canvas-id="qrcode" />
  43. </view> -->
  44. <view class="canWrap">
  45. <canvas canvas-id="qrcode" style="width: 1200rpx; height: 800rpx;" />
  46. </view>
  47. <image src="{{tempFilePath}}" mode="aspectFit" />
  48. <view class="barnum buy">
  49. <text>优惠券码:</text>{{code}}</view>
  50. </view>
  51. </view>
  52. <!-- 适用门店 -->
  53. <store merchantVoList="{{data.merchantVoList}}"></store>
  54. <!-- <view class='applyshop'>适用门店</view>
  55. <view class='posi' style='overflow:{{hidden}};height:{{height}}'>
  56. <view class='posi_logo' wx:for="{{data.merchantVoList}}" wx:key="index">
  57. <view bindtap='gotoDetail' data-id='{{item.id}}'>
  58. <image src='{{item.merchantImgUrl}}'></image>
  59. </view>
  60. <view bindtap='gotoDetail' data-id='{{item.id}}'>
  61. <view class='name'>{{item.merchantName}}</view>
  62. <view class='shopVoList'>
  63. <view wx:for="{{item.shopVoList}}" wx:key="{{index}}" wx:for-item="itemName">
  64. <text>{{itemName.buildingName}}{{itemName.floorName}}--{{itemName.shopNumber}}</text>
  65. <text class='douhao' wx:if="{{item.shopVoList.length>1}}">,</text>
  66. </view>
  67. </view>
  68. </view>
  69. <image wx:if="{{item.linkLinePhone}}" bindtap='phone' data-merchantLinkPhone='{{item.linkLinePhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" />
  70. </view>
  71. </view>
  72. <view class='bottom' bindtap='more' wx:if="{{showMore}}">{{more}}</view> -->
  73. <image class='line' mode="widthFix" src="{{btomLine}}"></image>
  74. <view class='note'>
  75. <view style='height:60rpx;line-height:60rpx;'>
  76. <text class="shiji">实付金额:</text>
  77. <text class='moneys'>{{data.couponPrice/100}}</text>
  78. <text style='font-size:24rpx;text-align:right;color: #FF4949;'>元</text>
  79. </view>
  80. <view wx:if="{{data.couponOrderStatus==0}}">
  81. <text>下单时间:</text>
  82. <text>{{createDate}}</text>
  83. </view>
  84. <view wx:if="{{data.couponOrderStatus==1}}">
  85. <text>核销时间:</text>
  86. <text>{{updateDate}}</text>
  87. </view>
  88. <view wx:if="{{data.couponOrderStatus==2}}">
  89. <text>过期时间:</text>
  90. <text>{{updateDate}}</text>
  91. </view>
  92. <view wx:if="{{data.couponOrderStatus==3}}">
  93. <text>退款时间:</text>
  94. <text>{{updateDate}}</text>
  95. </view>
  96. <view>
  97. <text>订单编号:</text>
  98. <text>{{data.orderId}}</text>
  99. </view>
  100. <!-- <view><text>手机号</text><text>2018.05.25</text></view> -->
  101. </view>
  102. <view class='notes' style="border-bottom:0">
  103. <view>
  104. <text>购买须知</text>
  105. </view>
  106. <view>
  107. <text><text class='spot'></text>{{data.remark}}</text>
  108. </view>
  109. </view>
  110. </view>
  111. <view class='game' bindtap="gotogame" wx-if="{{showIf}}">
  112. <view class='game-entry'>
  113. <image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
  114. </view>
  115. </view>
  116. </view>