pay.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. <template>
  2. <view class="container">
  3. <view class="countDown">交易剩余时间15:00</view>
  4. <view class="price">
  5. <text>¥</text>
  6. {{ info.price }}
  7. </view>
  8. <view class="title">住房信息</view>
  9. <view class="info">
  10. <view class="info_time">
  11. {{ info.startTimeMonth }}月{{ info.startTimeDay }}日
  12. <text class="gap">星期{{ info.startTimeWeek }}</text>
  13. <view class="time_line"></view>
  14. <view class="time_num">{{ info.nightNum }}晚</view>
  15. <view class="time_line"></view>
  16. <view class="gap">{{ info.endTimeMonth }}月{{ info.endTimeDay }}日</view>
  17. <text>星期{{ info.endTimeWeek }}</text>
  18. </view>
  19. <view class="info_msg">大床房</view>
  20. <view class="info_type">
  21. <view class="type_item">包吃住型</view>
  22. <view class="type_item">包吃住型</view>
  23. <view class="type_item">包吃住型</view>
  24. </view>
  25. <view class="info_tag">
  26. <view class="tag_item">16-20㎡</view>
  27. <view class="tag_item">双人床</view>
  28. <view class="tag_item">窗户位于走廊/窗户较小</view>
  29. </view>
  30. </view>
  31. <view class="title">支付方式</view>
  32. <view class="way">
  33. <view class="way_item" @click="handleChange">
  34. <img src="../../static/index/wxPay.png" />
  35. <view class="way_text">微信支付</view>
  36. <radio class="way_radio" :checked="isChecked" />
  37. </view>
  38. </view>
  39. <!-- 提交订单区域 -->
  40. <view class="btn">提交订单</view>
  41. </view>
  42. </template>
  43. <script>
  44. export default {
  45. data() {
  46. return {
  47. isChecked: true,
  48. info: {}
  49. }
  50. },
  51. onLoad(options) {
  52. this.info = JSON.parse(options.info)
  53. console.log(this.info)
  54. },
  55. methods: {
  56. // 点击支付方式回调
  57. handleChange() {
  58. this.isChecked = !this.isChecked
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss" scoped>
  64. .container {
  65. position: relative;
  66. box-sizing: border-box;
  67. padding: 0 20rpx 160rpx;
  68. min-height: 100vh;
  69. background-color: #f2f3f5;
  70. .countDown {
  71. display: flex;
  72. justify-content: center;
  73. align-items: center;
  74. height: 70rpx;
  75. color: #808080;
  76. font-size: 24rpx;
  77. }
  78. .price {
  79. display: flex;
  80. justify-content: center;
  81. align-items: center;
  82. height: 65rpx;
  83. font-size: 50rpx;
  84. font-weight: bold;
  85. text {
  86. font-size: 28rpx;
  87. }
  88. }
  89. .title {
  90. margin-top: 14rpx;
  91. color: #808080;
  92. font-size: 24rpx;
  93. }
  94. .info {
  95. display: flex;
  96. flex-direction: column;
  97. box-sizing: border-box;
  98. padding: 0 30rpx;
  99. margin-top: 18rpx;
  100. width: 100%;
  101. border-radius: 15rpx;
  102. background-color: #fff;
  103. .info_time {
  104. display: flex;
  105. align-items: center;
  106. margin-top: 20rpx;
  107. font-size: 32rpx;
  108. font-weight: bold;
  109. .time_line {
  110. width: 17rpx;
  111. height: 1rpx;
  112. background-color: #096562;
  113. }
  114. .time_num {
  115. box-sizing: border-box;
  116. padding: 0 15rpx;
  117. height: 46rpx;
  118. line-height: 46rpx;
  119. font-size: 24rpx;
  120. font-weight: 400;
  121. border-radius: 66rpx;
  122. border: 1rpx solid #096562;
  123. background-color: #f0f2f5;
  124. }
  125. .gap {
  126. margin: 0 10rpx;
  127. }
  128. text {
  129. font-size: 24rpx;
  130. font-weight: 400;
  131. }
  132. }
  133. .info_msg {
  134. margin-top: 15rpx;
  135. font-size: 28rpx;
  136. font-weight: bold;
  137. }
  138. .info_type {
  139. display: flex;
  140. flex-wrap: wrap;
  141. margin-top: 15rpx;
  142. .type_item {
  143. box-sizing: border-box;
  144. padding: 0 15rpx;
  145. margin-right: 20rpx;
  146. height: 41rpx;
  147. line-height: 41rpx;
  148. font-size: 24rpx;
  149. color: #fff;
  150. border-radius: 34rpx;
  151. background-color: #096562;
  152. }
  153. }
  154. .info_tag {
  155. display: flex;
  156. flex-wrap: wrap;
  157. margin: 18rpx 0 30rpx;
  158. color: #808080;
  159. font-size: 24rpx;
  160. .tag_item {
  161. margin-right: 20rpx;
  162. }
  163. }
  164. }
  165. .way {
  166. .way_item {
  167. display: flex;
  168. align-items: center;
  169. box-sizing: border-box;
  170. padding: 0 30rpx;
  171. margin-top: 18rpx;
  172. height: 100rpx;
  173. font-size: 28rpx;
  174. border-radius: 15rpx;
  175. background-color: #fff;
  176. img {
  177. width: 40rpx;
  178. height: 40rpx;
  179. }
  180. .way_text {
  181. margin-left: 18rpx;
  182. }
  183. .way_radio {
  184. margin-left: auto;
  185. transform: scale(0.9);
  186. }
  187. }
  188. }
  189. .btn {
  190. position: fixed;
  191. bottom: 40rpx;
  192. display: flex;
  193. justify-content: center;
  194. align-items: center;
  195. width: 710rpx;
  196. height: 96rpx;
  197. color: #fff;
  198. font-size: 32rpx;
  199. border-radius: 64rpx;
  200. background-color: #096562;
  201. }
  202. }
  203. </style>