payorder.vue 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. <template>
  2. <view class="back">
  3. <view class="topbox">
  4. <view class="" style="position: absolute;top: -30rpx;right: 0;">
  5. <view class="state u-flex u-row-between" @click="stateshow = !stateshow">
  6. <text>{{state}}</text>
  7. <image src="static/images/pull_down.png" style="width: 24rpx;height: 24rpx;" mode=""></image>
  8. </view>
  9. <view class="state" v-if="stateshow">
  10. <view @click="statechange(item,idx)" :class="state_id==idx?'stateac':'unstate'"
  11. style="margin-bottom: 20rpx;" v-for="(item,idx) in array">{{item.name}}</view>
  12. </view>
  13. </view>
  14. <view class="u-row-center"
  15. style="display: flex;flex-direction: column;align-items: center;margin-top: 56rpx;">
  16. <view class="paysum">{{i18n.Actual}}</view>
  17. <view class="numbe" style="margin-top: 40rpx;">
  18. <text>¥</text>
  19. <text style="font-size: 60rpx;font-weight: 500;">2792.5</text>
  20. </view>
  21. <!-- <view class="">
  22. <text>支付剩余时间 13:50</text>
  23. </view> -->
  24. </view>
  25. <!-- 余额支付 -->
  26. <view class="payitem" style="margin-top: 100rpx;display: flex;" @click="change(0)">
  27. <image src="static/images/yuer.png" mode="" style="width: 40rpx;height: 40rpx;"></image>
  28. <view class="u-flex u-row-between " style="margin-left: 20rpx;flex: 1;">
  29. <view class="">
  30. <view class="">{{i18n.Balancepayment}}</view>
  31. <view class="" style="margin-top: 10rpx;color: rgba(248, 50, 36, 1);">
  32. {{i18n.Currentbalance}}:2387.5
  33. </view>
  34. </view>
  35. <image v-if="mode==0" src="static/images/active.png" mode="" style="width: 36rpx;height: 36rpx;">
  36. </image>
  37. <image v-else src="static/images/unactive.png" mode="" style="width: 36rpx;height: 36rpx;"></image>
  38. </view>
  39. </view>
  40. <!-- 微信支付 -->
  41. <view v-if="state_id==0" class="payitem" style="margin-top: 20rpx;display: flex;" @click="change(1)">
  42. <image src="static/images/wx.png" mode="" style="width: 40rpx;height: 40rpx;"></image>
  43. <view class="u-flex u-row-between " style="margin-left: 20rpx;flex: 1;">
  44. <view class="">
  45. <view class="">{{i18n.WechatPay}}</view>
  46. <view class="" style="margin-top: 10rpx;color: rgba(121, 121, 121, 1)">
  47. {{i18n.applicable}}
  48. </view>
  49. </view>
  50. <image v-if='mode==1' src="static/images/active.png" mode="" style="width: 36rpx;height: 36rpx;">
  51. </image>
  52. <image v-else src="static/images/unactive.png" mode="" style="width: 36rpx;height: 36rpx;"></image>
  53. </view>
  54. </view>
  55. <!-- 客服支付 -->
  56. <view class="payitem" style="margin-top: 20rpx;display: flex;" @click="change(2)">
  57. <image src="static/images/kefu2.png" mode="" style="width: 40rpx;height: 40rpx;"></image>
  58. <view class="u-flex u-row-between " style="margin-left: 20rpx;flex: 1;">
  59. <view class="">
  60. <view class="">{{i18n.Customerservicepayment}}</view>
  61. <view class="" style="margin-top: 10rpx;color: rgba(121, 121, 121, 1)">
  62. {{i18n.Contactpayment}}
  63. </view>
  64. </view>
  65. <image v-if='mode==2' src="static/images/active.png" mode="" style="width: 36rpx;height: 36rpx;">
  66. </image>
  67. <image v-else src="static/images/unactive.png" mode="" style="width: 36rpx;height: 36rpx;"></image>
  68. </view>
  69. </view>
  70. </view>
  71. <!-- 付款须知 -->
  72. <view class="">
  73. <view class="payment" style="margin-top: 24rpx;">{{i18n.Paymentinstructions}}</view>
  74. <view class="content" style="margin-top: 18rpx;">1.联系客服付款需走线下支付通道,付款成</view>
  75. </view>
  76. <view class="confirm" @click="confirm">
  77. {{i18n.Confirmpayment}}
  78. </view>
  79. </view>
  80. </template>
  81. <script>
  82. export default {
  83. data() {
  84. return {
  85. mode: 0,
  86. stateshow: false,
  87. state: '人民币',
  88. state_id: 0,
  89. array: [{
  90. name: '人民币'
  91. }, {
  92. name: '欧元'
  93. }, {
  94. name: '美元'
  95. }]
  96. };
  97. },
  98. computed: {
  99. i18n() {
  100. return this.$t('index')
  101. }
  102. },
  103. methods: {
  104. change(idx) {
  105. this.mode = idx
  106. },
  107. statechange(item, idx) {
  108. this.state = item.name
  109. this.state_id = idx
  110. this.stateshow = !this.stateshow
  111. },
  112. confirm(){
  113. uni.navigateTo({
  114. url:'confirm'
  115. })
  116. }
  117. }
  118. }
  119. </script>
  120. <style lang="scss" scoped>
  121. .payment {
  122. font-family: PingFangSC, PingFang SC;
  123. font-weight: 500;
  124. font-size: 24rpx;
  125. color: #222222;
  126. line-height: 34rpx;
  127. text-align: left;
  128. font-style: normal;
  129. }
  130. .content {
  131. font-family: PingFangSC, PingFang SC;
  132. font-weight: 400;
  133. font-size: 20rpx;
  134. color: #777777;
  135. line-height: 28rpx;
  136. text-align: left;
  137. font-style: normal;
  138. }
  139. .stateac {
  140. font-family: PingFangSC, PingFang SC;
  141. font-weight: 400;
  142. font-size: 24rpx;
  143. color: #FF1515;
  144. line-height: 34rpx;
  145. text-align: left;
  146. font-style: normal;
  147. }
  148. .unstate {
  149. font-family: PingFangSC, PingFang SC;
  150. font-weight: 400;
  151. font-size: 24rpx;
  152. color: #222222;
  153. line-height: 34rpx;
  154. text-align: left;
  155. font-style: normal;
  156. }
  157. .confirm {
  158. position: fixed;
  159. bottom: 66rpx;
  160. width: 702rpx;
  161. height: 84rpx;
  162. background: #F83224;
  163. border-radius: 44rpx;
  164. font-family: PingFangSC, PingFang SC;
  165. font-weight: 500;
  166. font-size: 32rpx;
  167. color: #FFFFFF;
  168. line-height: 84rpx;
  169. text-align: center;
  170. font-style: normal;
  171. }
  172. .payitem {
  173. width: 702rpx;
  174. height: 140rpx;
  175. background: #FFFFFF;
  176. border-radius: 12rpx;
  177. padding: 34rpx 24rpx;
  178. box-sizing: border-box;
  179. }
  180. .back {
  181. padding: 20rpx 24rpx;
  182. box-sizing: border-box;
  183. .topbox {
  184. position: relative;
  185. .state {
  186. width: 128rpx;
  187. // height: 56rpx;
  188. background: #FFFFFF;
  189. border-radius: 6rpx;
  190. padding: 12rpx;
  191. box-sizing: border-box;
  192. }
  193. .paysum {
  194. font-family: PingFangSC, PingFang SC;
  195. font-weight: 400;
  196. font-size: 28rpx;
  197. color: #222222;
  198. line-height: 40rpx;
  199. text-align: left;
  200. font-style: normal;
  201. }
  202. .numbe {
  203. font-family: HarmonyOS_Sans_Medium;
  204. font-size: 28rpx;
  205. color: #000000;
  206. line-height: 38rpx;
  207. text-align: left;
  208. font-style: normal;
  209. margin-top: 20rpx;
  210. }
  211. }
  212. }
  213. </style>