rent.vue 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <template>
  2. <view class="content">
  3. <!-- 套餐 -->
  4. <view class="tc-wrap">
  5. <view class="top-wrap flex">
  6. <view class="top-left">
  7. 选择套餐
  8. </view>
  9. </view>
  10. <view class="contet-list flex">
  11. <view class="tc flex" v-for="(item,index) in 5" :class="{'action': selectTcIndex == index}" @click="choosTc(index,item)">
  12. <view class="tc-time">
  13. 7天
  14. </view>
  15. <view class="tc-price">
  16. 79
  17. </view>
  18. <view class="tc-time-price">
  19. <text>11</text>元/天
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="dy-wrap">
  25. <view class="top-wrap flex">
  26. <view class="top-left">
  27. 押金服务
  28. </view>
  29. <view class="top-right">
  30. <text>押金规则</text>
  31. <image src="../../static/icon/next1.png" mode="heightFix"></image>
  32. </view>
  33. </view>
  34. <view class="contet-list flex">
  35. <view class="tc flex dy">
  36. <view class="tc-time">
  37. <image src="../../static/icon/orderWx.png" mode="heightFix"></image>微信信用免押金
  38. </view>
  39. <view class="tc-time-price">
  40. 微信信用≥550分
  41. </view>
  42. <view class="tc-price">
  43. 77<text>¥88</text>
  44. </view>
  45. </view>
  46. <view class="tc flex dy">
  47. <view class="tc-time">
  48. 支付押金
  49. </view>
  50. <view class="tc-time-price">
  51. 元/天
  52. </view>
  53. <view class="tc-price">
  54. 77
  55. </view>
  56. </view>
  57. </view>
  58. </view>
  59. <view class="dy-wrap">
  60. <view class="top-wrap flex">
  61. <view class="top-left">
  62. 使用说明
  63. </view>
  64. </view>
  65. <view class="sysm">
  66. 1、套餐购买需在15分钟之内完成付款,超过15分系统自动取消订单
  67. 2、购买成功后,可至门店取货
  68. 3、商家超过30分钟未接单,自动退款
  69. 4、若未取车,可申请退款,套餐金额将全款退还至原支付账户,若已取车,暂不支持退款
  70. </view>
  71. </view>
  72. <view class="ts">
  73. </view>
  74. <view class="btm-btn flex">
  75. <view class="pay-price">
  76. 总计费用:<text>548</text>
  77. </view>
  78. <view class="pay-btn">
  79. 立即支付
  80. </view>
  81. </view>
  82. </view>
  83. </template>
  84. <script>
  85. export default {
  86. data() {
  87. return {
  88. tcList: [],
  89. selectTc: {},
  90. selectTcIndex: 0,
  91. }
  92. },
  93. onLoad() {
  94. },
  95. onShow() {
  96. },
  97. onReachBottom() {
  98. },
  99. onReady() {
  100. },
  101. methods: {
  102. choosTc(index,item) {
  103. this.selectTcIndex = index
  104. this.selectTc = item
  105. }
  106. }
  107. }
  108. </script>
  109. <style lang="scss">
  110. .content {
  111. padding-top: 1rpx;
  112. }
  113. .dy-wrap, .tc-wrap {
  114. width: 702rpx;
  115. background: #FFFFFF;
  116. border-radius: 15rpx;
  117. // padding: 25rpx 25rpx 45rpx;
  118. margin: 20rpx auto;
  119. }
  120. .contet-list {
  121. flex-wrap: wrap;
  122. justify-content: space-between;
  123. padding: 0 25rpx 45rpx;
  124. .tc {
  125. width: 315rpx;
  126. height: 212rpx;
  127. background: #FFFFFF;
  128. border: 2px solid #E9E9E9;
  129. border-radius: 10rpx;
  130. margin-bottom: 20rpx;
  131. flex-direction: column;
  132. justify-content: center;
  133. // align-items: center;
  134. .tc-time {
  135. font-size: 28rpx;
  136. font-weight: bold;
  137. color: #00001A;
  138. display: flex;
  139. align-items: center;
  140. image {
  141. height: 34rpx;
  142. margin-right: 10rpx;
  143. }
  144. }
  145. .tc-price {
  146. font-size: 55rpx;
  147. font-weight: bold;
  148. color: #52C696;
  149. padding: 4rpx 0;
  150. &::before {
  151. content: '¥';
  152. font-size: 20rpx;
  153. }
  154. text {
  155. font-size: 22rpx;
  156. font-weight: 500;
  157. text-decoration: line-through;
  158. color: #999999;
  159. }
  160. }
  161. .tc-time-price {
  162. font-size: 22rpx;
  163. font-weight: 500;
  164. color: #999999;
  165. text {
  166. font-weight: bold;
  167. }
  168. }
  169. }
  170. .dy {
  171. height: 187rpx;
  172. }
  173. .action {
  174. background: #F3FFFB;
  175. border: 2px solid #5FCCA7;
  176. }
  177. }
  178. .top-wrap {
  179. justify-content: space-between;
  180. padding: 0 25rpx;
  181. font-size: 32rpx;
  182. font-weight: bold;
  183. color: #00001A;
  184. height: 85rpx;
  185. .top-left {
  186. }
  187. .top-right {
  188. text {
  189. font-size: 25rpx;
  190. font-weight: 500;
  191. color: #999999;
  192. }
  193. image {
  194. height: 22rpx;
  195. margin-left: 10rpx;
  196. }
  197. }
  198. }
  199. .sysm {
  200. padding: 34rpx;
  201. font-size: 22rpx;
  202. font-weight: 500;
  203. color: #666666;
  204. }
  205. .ts {
  206. height: 130rpx;
  207. }
  208. .btm-btn {
  209. width: 750rpx;
  210. height: 100rpx;
  211. position: fixed;
  212. bottom: 0;
  213. background-color: #fff;
  214. .pay-price {
  215. padding-left: 33rpx;
  216. flex-grow: 1;
  217. font-size: 32rpx;
  218. font-weight: 500;
  219. color: #333333;
  220. text {
  221. font-size:48rpx;
  222. font-weight: 500;
  223. color: #FF6B2E;
  224. &::before {
  225. content: '¥';
  226. font-size: 28rpx;
  227. }
  228. }
  229. }
  230. .pay-btn {
  231. flex-shrink: 0;
  232. width: 287rpx;
  233. height: 98rpx;
  234. background: linear-gradient(-38deg, #6CDBC3, #6DD6B8);
  235. line-height: 100rpx;
  236. text-align: center;
  237. font-size: 34rpx;
  238. font-weight: 500;
  239. color: #FFFFFF;
  240. }
  241. }
  242. </style>