C端小程序
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

149 行
6.7 KiB

  1. <navbar home back text="使用消费卡" color="#000" background="#ffff"></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}}">余额:<text style="color: red;">{{data.remainingAmount/100}}</text>元</text>
  14. <text wx:if="{{data.type == 8&&data.price != data.remainingAmount/100}}">余额:<text style="color: red;">{{data.salePrice/100}}</text>元</text>
  15. <text wx:if="{{data.type != 8}}">余额:<text style="color: red;">{{data.remainingAmount/100}}</text>元</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}}">
  24. <text>有效期至:</text>
  25. <text>{{data.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="{{true}}">
  43. <!-- <view class="qrcode">
  44. <canvas canvas-id="qrcode" />
  45. </view> -->
  46. <view class="canWrap" wx:if="{{isShowQR}}">
  47. <canvas canvas-id="qrcode" style="width: 1200rpx; height: 800rpx;" />
  48. </view>
  49. <image wx:if="{{isShowQR}}" src="{{tempFilePath}}" mode="aspectFit" />
  50. <view class="canWrap" wx:if="{{!isShowQR}}">
  51. <canvas canvas-id="qrcode" style="width: 1200rpx; height: 800rpx;" />
  52. </view>
  53. <image wx:if="{{!isShowQR}}" src="https://formall.oss-accelerate.aliyuncs.com/cimg/stoped.png" mode="aspectFit" />
  54. <view class="closeRq" wx:if="{{showhieRq}}" bindtap="reQR">
  55. <image class="updataRqCode" mode='widthFix' src="{{upDataRqUrlF}}"></image>
  56. <view class="upDataRq">点一点刷新二维码</view>
  57. </view>
  58. <view class="coedTiem" wx:if="{{!showhieRq&&expiredSeconds>0}}">二维码在
  59. <text style="color:red">{{expiredSeconds}}s</text>
  60. 后失效
  61. </view>
  62. <view class="barnum">
  63. <view class="barnumtext">{{showIdFalg?code:codeS}}</view>
  64. <image class="barnumImg" src="../../../assets/images/password.png" bindtap="showId"></image>
  65. </view>
  66. </view>
  67. </view>
  68. <!-- 适用门店 -->
  69. <store merchantVoList="{{data.merchantVoList}}"></store>
  70. <!-- <shop wx:if="{{mallList.length>0}}" mallList="{{mallList}}"></shop> -->
  71. <!-- <view class='applyshop'>适用门店</view>
  72. <view class='posi' style='overflow:{{hidden}};height:{{height}}'>
  73. <view class='posi_logo' wx:for="{{data.merchantVoList}}" wx:key="index">
  74. <view bindtap='gotoDetail' data-id='{{item.id}}'>
  75. <image src='{{item.merchantImgUrl}}'></image>
  76. </view>
  77. <view bindtap='gotoDetail' data-id='{{item.id}}'>
  78. <view class='name'>{{item.merchantName}}</view>
  79. <view class='shopVoList'>
  80. <view wx:for="{{item.shopVoList}}" wx:key="index" wx:for-item="itemName">
  81. <text>{{itemName.buildingName}}{{itemName.floorName}}--{{itemName.shopNumber}}</text>
  82. <text class='douhao' wx:if="{{item.shopVoList.length>1}}">,</text>
  83. </view>
  84. </view>
  85. </view>
  86. <image wx:if="{{item.linkLinePhone}}" bindtap='phone' data-merchantLinkPhone='{{item.linkLinePhone}}' class="tel" src="{{teljpgUrl}}" mode="widthFix" />
  87. </view>
  88. </view>
  89. <view class='bottom' bindtap='more' wx:if="{{showMore}}">{{more}}</view> -->
  90. <image class='line' mode="widthFix" src="{{btomLine}}"></image>
  91. <!-- <view class='note'>
  92. <view style='height:60rpx;line-height:60rpx;'>
  93. <text class="shiji">实付金额:</text>
  94. <text class='moneys'>{{data.couponPrice/100}}</text>
  95. <text style='font-size:24rpx;text-align:right;color: #FF4949;'>元</text>
  96. </view>
  97. <view wx:if="{{data.couponOrderStatus==0}}">
  98. <text>下单时间:</text>
  99. <text>{{createDate}}</text>
  100. </view>
  101. <view wx:if="{{data.couponOrderStatus==1}}">
  102. <text>核销时间:</text>
  103. <text>{{updateDate}}</text>
  104. </view>
  105. <view wx:if="{{data.couponOrderStatus==2}}">
  106. <text>过期时间:</text>
  107. <text>{{updateDate}}</text>
  108. </view>
  109. <view wx:if="{{data.couponOrderStatus==3}}">
  110. <text>退款时间:</text>
  111. <text>{{updateDate}}</text>
  112. </view>
  113. <view>
  114. <text>订单编号:</text>
  115. <text>{{data.orderId}}</text>
  116. </view>
  117. <view><text>手机号</text><text>2018.05.25</text></view>
  118. </view> -->
  119. <!-- <view class='notes' style="border-bottom:0">
  120. <view>
  121. <text>购买须知</text>
  122. </view>
  123. <view wx:if="{{data.contentType==0}}">
  124. <text><text class='spot'></text>{{data.remark}}</text>
  125. </view>
  126. <view wx:if="{{data.contentType==1}}">
  127. <rich-text nodes="{{curHtml}}"></rich-text>
  128. </view>
  129. </view> -->
  130. <view class="bottomBtn">
  131. <button wx:if="{{isShowQR}}" class="btn" bindtap='gotoPay'>扫一扫付款</button>
  132. <button wx:if="{{data.supportTransfer==1}}" class="btn" bindtap="goGive">转送给微信好友</button>
  133. <!-- <button wx:else class="btnGrey" bindtap="goGiveNone">转送给微信好友</button> -->
  134. </view>
  135. </view>
  136. </view>
  137. <view class='game' bindtap="gotogame" wx-if="{{showIf}}">
  138. <view class='game-entry'>
  139. <image src="{{newUrl}}" class='gameimg' mode='widthFix'></image>
  140. </view>
  141. </view>