paymentOrder.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. <template>
  2. <view class="page">
  3. <view class="_top">
  4. <view class="title">
  5. 待支付订单
  6. </view>
  7. <view class="price">
  8. <text class="_text-1">¥</text>
  9. 1235.2
  10. </view>
  11. <view class="_weight">
  12. <text>实际重量</text>
  13. <text>168kg</text>
  14. </view>
  15. <view class="type-num">
  16. <text>包裹类型</text>
  17. <text>日用品</text>
  18. </view>
  19. <view class="type-num">
  20. <text>包裹数量</text>
  21. <text>5</text>
  22. </view>
  23. </view>
  24. <view class="pay" @click="switchType('balance')">
  25. <view style="display: flex;">
  26. <image class="balance-icon" src="../../static/mine/341.png" mode=""></image>
  27. <view class="">
  28. <view style="font-size: 26rpx; color: #333333;">余额支付</view>
  29. <view style="color: #f83224;font-size: 24rpx;margin-top: 10rpx;">当前余额:2546.2</view>
  30. </view>
  31. </view>
  32. <image v-if="payType == 'balance'" class="select" src="../../static/mine/342.png" mode=""></image>
  33. <image v-else class="select" src="../../static/mine/345.png" mode=""></image>
  34. </view>
  35. <view class="pay" @click="switchType('wx')">
  36. <view style="display: flex;">
  37. <image class="balance-icon" src="../../static/mine/343.png" mode=""></image>
  38. <view class="">
  39. <view style="font-size: 26rpx; color: #333333;">微信支付</view>
  40. <view style="color: #797979;font-size: 24rpx;margin-top: 10rpx;">适用微信支付</view>
  41. </view>
  42. </view>
  43. <image v-if="payType == 'wx'" class="select" src="../../static/mine/342.png" mode=""></image>
  44. <image v-else class="select" src="../../static/mine/345.png" mode=""></image>
  45. </view>
  46. <view class="pay" @click="switchType('service')">
  47. <view style="display: flex;">
  48. <image class="balance-icon" src="../../static/mine/344.png" mode=""></image>
  49. <view class="">
  50. <view style="font-size: 26rpx; color: #333333;">客服支付</view>
  51. <view style="color: #797979;font-size: 24rpx;margin-top: 10rpx;">联系微信支付</view>
  52. </view>
  53. </view>
  54. <image v-if="payType == 'service'" class="select" src="../../static/mine/342.png" mode=""></image>
  55. <image v-else class="select" src="../../static/mine/345.png" mode=""></image>
  56. </view>
  57. <view class="footer">
  58. <view class="_view">
  59. <text class="_text-1">共一件</text>
  60. <text class="_text-2">{{"&nbsp;"+"合计"}}</text>
  61. <view class="price">
  62. <text style="font-size: 20rpx;">¥</text>
  63. <text>133</text>.
  64. <text style="font-size: 20rpx;">22</text>
  65. </view>
  66. </view>
  67. <button class="btn-2" @click="toPay">立即支付</button>
  68. </view>
  69. </view>
  70. </template>
  71. <script>
  72. export default {
  73. data() {
  74. return {
  75. payType: "balance"
  76. };
  77. },
  78. methods: {
  79. switchType(str) {
  80. this.payType = str
  81. }
  82. },
  83. created() {
  84. uni.setNavigationBarTitle({
  85. title: "支付订单"
  86. })
  87. }
  88. }
  89. </script>
  90. <style lang="scss" scoped>
  91. .page {
  92. padding: 20rpx 24rpx;
  93. position: relative;
  94. ._top {
  95. padding: 48rpx 24rpx 36rpx;
  96. background-color: #fff;
  97. border-radius: 16rpx;
  98. .title {
  99. text-align: center;
  100. color: rgba(34, 34, 34, .7);
  101. font-size: 28rpx;
  102. }
  103. .price {
  104. font-size: 64rpx;
  105. font-weight: 500;
  106. text-align: center;
  107. margin-top: 20rpx;
  108. ._text-1 {
  109. font-size: 28rpx;
  110. }
  111. }
  112. ._weight {
  113. display: flex;
  114. justify-content: space-between;
  115. margin-top: 46rpx;
  116. font-size: 28rpx;
  117. color: rgba(34, 34, 34, 1);
  118. }
  119. .type-num {
  120. display: flex;
  121. justify-content: space-between;
  122. font-size: 28rpx;
  123. color: rgba(34, 34, 34, .7);
  124. margin-top: 32rpx;
  125. }
  126. }
  127. .pay {
  128. display: flex;
  129. align-items: center;
  130. background-color: #fff;
  131. margin-top: 20rpx;
  132. height: 140rpx;
  133. border-radius: 16rpx;
  134. padding: 0 24rpx;
  135. justify-content: space-between;
  136. .balance-icon {
  137. width: 40rpx;
  138. height: 40rpx;
  139. margin-right: 20rpx;
  140. }
  141. .select {
  142. width: 36rpx;
  143. height: 36rpx;
  144. }
  145. }
  146. .footer {
  147. display: flex;
  148. justify-content: flex-end;
  149. background-color: #fff;
  150. position: fixed;
  151. bottom: 0;
  152. left: 0;
  153. width: 100%;
  154. height: 146rpx;
  155. padding-top: 20rpx;
  156. ._view{
  157. display: flex;
  158. align-items: flex-end;
  159. height: 76rpx;
  160. ._text-1{
  161. font-size: 24rpx;
  162. color: rgba(51, 51, 51, .8);
  163. display: inline-block;
  164. padding-bottom: 10rpx;
  165. }
  166. ._text-2{
  167. font-size: 24rpx;
  168. display: inline-block;
  169. padding-bottom: 10rpx;
  170. }
  171. .price{
  172. color: #f83224;
  173. font-weight: 600;
  174. font-size: 48rpx;
  175. }
  176. }
  177. .btn-2 {
  178. height: 76rpx;
  179. padding: 0;
  180. margin: 0;
  181. font-size: 28rpx;
  182. color: #fff;
  183. min-width: 188rpx;
  184. background-color: #f83224;
  185. border-radius: 38rpx;
  186. margin-right: 20rpx;
  187. margin-left: 20rpx;
  188. }
  189. }
  190. }
  191. </style>