buy-card.axml 4.3 KB

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