C端小程序
Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

135 rader
5.9 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?pickStartDate:validStartDate}}</text>
  30. <i>至</i>
  31. <text>{{data.type==10?pickEndDate: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 class="barnumImg" src="../../../assets/images/password.png" bindtap="showId"></image>
  61. </view>
  62. </view>
  63. </view>
  64. <!-- 适用门店 -->
  65. <store merchantVoList="{{data.merchantVoList}}"></store>
  66. <!-- <shop wx:if="{{mallList.length>0}}" mallList="{{mallList}}"></shop> -->
  67. <!-- <view class='applyshop'>适用门店</view>
  68. <view class='posi' style='overflow:{{hidden}};height:{{height}}'>
  69. <view class='posi_logo' wx:for="{{data.merchantVoList}}" wx:key="index">
  70. <view bindtap='gotoDetail' data-id='{{item.id}}'>
  71. <image src='{{item.merchantImgUrl}}'></image>
  72. </view>
  73. <view bindtap='gotoDetail' data-id='{{item.id}}'>
  74. <view class='name'>{{item.merchantName}}</view>
  75. <view class='shopVoList'>
  76. <view wx:for="{{item.shopVoList}}" wx:key="index" wx:for-item="itemName">
  77. <text>{{itemName.buildingName}}{{itemName.floorName}}--{{itemName.shopNumber}}</text>
  78. <text class='douhao' wx:if="{{item.shopVoList.length>1}}">,</text>
  79. </view>
  80. </view>
  81. </view>
  82. <image wx:if="{{item.linkLinePhone}}" bindtap='phone' data-merchantLinkPhone='{{item.linkLinePhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" />
  83. </view>
  84. </view>
  85. <view class='bottom' bindtap='more' wx:if="{{showMore}}">{{more}}</view> -->
  86. <image class='line' mode="widthFix" src="{{btomLine}}"></image>
  87. <view class='note'>
  88. <view style='height:60rpx;line-height:60rpx;'>
  89. <text class="shiji">实付金额:</text>
  90. <text class='moneys'>{{data.couponPrice/100}}</text>
  91. <text style='font-size:24rpx;text-align:right;color: #FF4949;'>元</text>
  92. </view>
  93. <view wx:if="{{data.couponOrderStatus==0}}">
  94. <text>下单时间:</text>
  95. <text>{{createDate}}</text>
  96. </view>
  97. <view wx:if="{{data.couponOrderStatus==1}}">
  98. <text>核销时间:</text>
  99. <text>{{updateDate}}</text>
  100. </view>
  101. <view wx:if="{{data.couponOrderStatus==2}}">
  102. <text>过期时间:</text>
  103. <text>{{updateDate}}</text>
  104. </view>
  105. <view wx:if="{{data.couponOrderStatus==3}}">
  106. <text>退款时间:</text>
  107. <text>{{updateDate}}</text>
  108. </view>
  109. <view>
  110. <text>订单编号:</text>
  111. <text>{{data.orderId}}</text>
  112. </view>
  113. <!-- <view><text>手机号</text><text>2018.05.25</text></view> -->
  114. </view>
  115. <view class='notes' style="border-bottom:0">
  116. <view>
  117. <text>购买须知</text>
  118. </view>
  119. <view wx:if="{{data.contentType==0}}">
  120. <text><text class='spot'></text>{{data.remark}}</text>
  121. </view>
  122. <view wx:if="{{data.contentType==1}}">
  123. <rich-text nodes="{{curHtml}}"></rich-text>
  124. </view>
  125. </view>
  126. </view>
  127. <view class='game' bindtap="gotogame" wx-if="{{showIf}}">
  128. <view class='game-entry'>
  129. <image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
  130. </view>
  131. </view>
  132. </view>