confirmOrder.vue 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <template>
  2. <view>
  3. <ujp-navbar title="确认订单"></ujp-navbar>
  4. <!-- 商品信息 -->
  5. <view class="product-infos">
  6. <view class="picture">
  7. <img src="../../assets/img/productPic.png" alt="">
  8. </view>
  9. <view class="infos">
  10. <view class="name">
  11. 自营站充电服务费6折卡
  12. </view>
  13. <view class="specification">
  14. <view class="title">
  15. 可用338度(有效期30天)
  16. </view>
  17. <view class="value">
  18. x1
  19. </view>
  20. </view>
  21. <view class="price">
  22. 12.9元
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 订单金额 -->
  27. <view class="order-price">
  28. <view class="title">
  29. 订单金额
  30. </view>
  31. <view class="price-group">
  32. <view class="item">
  33. <view class="item-title">
  34. 商品金额
  35. </view>
  36. <view class="item-value">
  37. 12.9元
  38. </view>
  39. </view>
  40. <view class="item">
  41. <view class="item-title">
  42. 优惠金额
  43. </view>
  44. <view class="item-value">
  45. 0元
  46. </view>
  47. </view>
  48. <view class="item">
  49. <view class="item-title">
  50. 合计
  51. </view>
  52. <view class="item-value">
  53. 12.9元
  54. </view>
  55. </view>
  56. </view>
  57. </view>
  58. <!-- 支付方式 -->
  59. <view class="payment-mode">
  60. <view class="title">
  61. 支付方式
  62. </view>
  63. <view class="mode">
  64. <view class="item">
  65. <view class="mode-name">
  66. <view class="img"><img src="../../assets/img/wechat-pay-fill.svg" alt=""></view>微信支付
  67. </view>
  68. <view class="mode-radio">
  69. <label class="radio">
  70. <radio value="" /><text></text>
  71. </label>
  72. </view>
  73. </view>
  74. <view class="item">
  75. <view class="mode-name">
  76. <view class="img"><img src="../../assets/img/alipay-fill.svg" alt=""></view>微信支付
  77. </view>
  78. <view class="mode-radio">
  79. <label class="radio">
  80. <radio value="" /><text></text>
  81. </label>
  82. </view>
  83. </view>
  84. </view>
  85. </view>
  86. <!-- 底部 -->
  87. <view class="bottom">
  88. <view class="to-be-pay">
  89. 待支付: 12.9元
  90. </view>
  91. <view class="btn">
  92. <button class="submit">提交订单</button>
  93. </view>
  94. </view>
  95. </view>
  96. </template>
  97. <script>
  98. export default {
  99. data() {
  100. return {
  101. }
  102. },
  103. methods: {
  104. }
  105. }
  106. </script>
  107. <style>
  108. page {
  109. padding-bottom: 100px;
  110. }
  111. </style>
  112. <style scoped lang="scss">
  113. .product-infos {
  114. display: flex;
  115. align-items: center;
  116. margin: 24rpx;
  117. background-color: #fff;
  118. padding: 32rpx 24rpx;
  119. .picture {
  120. width: 152rpx;
  121. height: 152rpx;
  122. border-radius: 4px;
  123. overflow: hidden;
  124. margin-right: 16rpx;
  125. img {
  126. width: 100%;
  127. }
  128. }
  129. .infos {
  130. flex: 1;
  131. .name {
  132. color: rgba(51, 51, 51, 1);
  133. font-size: 32rpx;
  134. font-weight: bold;
  135. }
  136. .specification {
  137. display: flex;
  138. justify-content: space-between;
  139. align-items: center;
  140. margin-top: 8rpx;
  141. .title {
  142. color: rgba(119, 119, 119, 1);
  143. font-size: 24rpx;
  144. }
  145. .value {
  146. color: rgba(51, 51, 51, 1);
  147. font-size: 32rpx;
  148. }
  149. }
  150. .price {
  151. color: rgba(16, 16, 16, 1);
  152. font-size: 32rpx;
  153. margin-top: 24rpx;
  154. }
  155. }
  156. }
  157. // 订单金额
  158. .order-price {
  159. margin: 40rpx;
  160. padding: 32rpx 24rpx;
  161. background-color: #fff;
  162. border-radius: 8px;
  163. .title {
  164. color: rgba(51, 51, 51, 1);
  165. font-size: 32rpx;
  166. font-weight: bold;
  167. }
  168. .price-group {
  169. margin-top: 32rpx;
  170. .item {
  171. display: flex;
  172. align-items: center;
  173. justify-content: space-between;
  174. margin-top: 24rpx;
  175. .item-title {
  176. color: rgba(51, 51, 51, 1);
  177. }
  178. .item-value {
  179. color: rgba(51, 51, 51, 1);
  180. font-size: 32rpx
  181. }
  182. }
  183. }
  184. }
  185. // 支付方式
  186. .payment-mode{
  187. margin: 40rpx;
  188. padding: 32rpx 24rpx;
  189. background-color: #fff;
  190. border-radius: 8px;
  191. .title {
  192. color: rgba(51, 51, 51, 1);
  193. font-size: 32rpx;
  194. font-weight: bold;
  195. }
  196. .mode{
  197. margin-top: 24rpx;
  198. .item{
  199. margin-bottom: 24rpx;
  200. display: flex;
  201. justify-content: space-between;
  202. align-items: center;
  203. .mode-name{
  204. display: flex;
  205. align-items: center;
  206. .img{
  207. width: 48rpx;
  208. height: 48rpx;
  209. margin-right: 8rpx;
  210. img{
  211. width: 100%;
  212. }
  213. }
  214. }
  215. /deep/.uni-radio-input{
  216. width: 40rpx;
  217. height: 40rpx;
  218. }
  219. /deep/.uni-radio-input-checked{
  220. background-color: #00B962 !important;
  221. border-color: #00B962 !important;
  222. }
  223. }
  224. }
  225. }
  226. // 底部
  227. .bottom{
  228. position: fixed;
  229. left: 0;
  230. right: 0;
  231. bottom: 0;
  232. background-color: #fff;
  233. padding: 24rpx 32rpx;
  234. display: flex;
  235. align-items: center;
  236. justify-content: space-between;
  237. .to-be-pay{
  238. color: rgba(16, 16, 16, 1);
  239. font-size: 40rpx;
  240. font-weight: bold;
  241. }
  242. .submit{
  243. width: 318rpx;
  244. height: 96rpx;
  245. line-height: 96rpx;
  246. background-color: rgba(0, 185, 98, 1);
  247. color: rgba(255, 255, 255, 1);
  248. font-size: 36rpx;
  249. border-radius: 50px;
  250. }
  251. }
  252. </style>