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.

136 lines
6.0 KiB

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