buy-card.axml 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <view class="box">
  2. <view class="top" a:if="{{arr!=''}}">
  3. <text>电单车骑行卡</text>
  4. <text>购卡骑行更划算</text>
  5. </view>
  6. <view a:if="{{arr!=''}}" class="card">
  7. <view class="{{currentCard==hotInfo.id ? 'active' : 'card-list1'}}" onTap="changeCard" data-id="{{hotInfo}}">
  8. <view class="right-tips" a:if="{{hotInfo.is_discount==1}}" >限时{{item.discount}}折</view>
  9. <!-- -->
  10. <view class="card-title">
  11. <text a:if="{{hotInfo.is_limit_times==1}}">{{hotInfo.times}}次/{{hotInfo.effective_days}}天</text>
  12. <text a:if="{{hotInfo.is_limit_times==0}}">{{hotInfo.effective_days}}天不限次</text>
  13. </view>
  14. <view class="card-tips">单次最高抵扣{{hotInfo.deduction_money}}元</view>
  15. <view class="card-money">
  16. <text class="money-num">{{hotInfo.now_price}}</text>元
  17. <text class="yuanjia" a:if="{{hotInfo.is_discount==1}}">{{hotInfo.price}}元</text>
  18. </view>
  19. </view>
  20. <view class="card-list" a:for="{{arr}}" a:key="key">
  21. <view class="card-list-item" class="{{currentCard==item.id ? 'active1' : 'card-list-item'}}" onTap="changeCard" data-id="{{item}}">
  22. <view class="right-tips" a:if="{{item.is_discount==1}}">限时{{item.discount}}折</view>
  23. <view class="card-content">
  24. <view class="card-title">
  25. <text a:if="{{item.is_limit_times==1}}">{{item.times}}次/{{item.effective_days}}天</text>
  26. <text a:if="{{item.is_limit_times==0}}">{{item.effective_days}}天不限次</text>
  27. </view>
  28. <view class="item-money">
  29. <text class="money-num">{{item.now_price}}</text>元
  30. <text class="yuanjia" a:if="{{item.is_discount==1}}">{{hotInfo.price}}元</text>
  31. </view>
  32. <view class="card-tips" style="font-size:22rpx">单次最高抵扣{{item.deduction_money}}元</view>
  33. </view>
  34. </view>
  35. </view>
  36. </view>
  37. <view class="buy-buttom" a:if="{{arr!=''}}" onTap="buyButtom">购买</view>
  38. <view class="background" a:if="{{info}}" onTap="background"></view>
  39. <view class="model" a:if="{{info}}">
  40. <view class="view">
  41. <text class="title">购买骑行卡</text>
  42. <view class="content">
  43. <view class="count">
  44. <view class="count_a">
  45. <text class="text" a:if="{{infoDetail.is_limit_times==1}}">{{infoDetail.times}}次</text>
  46. <text class="text" a:if="{{infoDetail.is_limit_times==0}}">不限次</text>
  47. <text>(有效期{{infoDetail.effective_days}}天)</text>
  48. </view>
  49. <view class="count_b">
  50. <text>¥{{infoDetail.now_price}}</text>
  51. <text a:if="{{infoDetail.is_discount==1}}">{{infoDetail.price}}</text>
  52. </view>
  53. </view>
  54. <text class="title1">使用规则</text>
  55. <text>1.用户购买电单车骑行卡后,对应<text style="color:red;">骑行卡的优惠权益立即生效</text>。</text>
  56. <text>2.骑行卡<text style="color:red;">无法抵扣订单调度费</text>。</text>
  57. <text>3.请在有效期内使用,骑行卡<text style="color:red;">使用完毕或超出有效期</text>即视为无效。</text>
  58. <text>4.电单车骑行卡生效期间,每次骑行最多可抵扣<text
  59. style="color:red;">{{infoDetail.deduction_money}}</text>元骑行费用,超出部分依据计费规则计费。</text>
  60. <text>5.骑行卡<text style="color:red;">一旦购买,不能退还,不能转赠</text>。</text>
  61. <text style="padding-bottom:20rpx;">6.骑行卡只适用于<text style="color:red;">分时租赁</text>,不支持日租用车使用。</text>
  62. </view>
  63. <view class="btn1" onTap="form">
  64. <text>{{infoDetail.now_price}}元购买</text>
  65. </view>
  66. </view>
  67. <image src="{{img}}weapp/guanbi.png" style="width:48rpx;height:48rpx;" class="over1" onTap="background"></image>
  68. </view>
  69. </view>
  70. <view class="none" a:if="{{arr=='' && hotInfo==''}}">
  71. <image src="../../img/nocard.png" ></image>
  72. <text>暂无骑行卡</text>
  73. </view>