pay.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <template>
  2. <view class="page-wrap">
  3. <view class="header-panel">
  4. 企业钱包 - 充值
  5. <view class="money">5000.00</view>
  6. </view>
  7. <view class="title-row">线上支付</view>
  8. <view class="pay-row">
  9. <image class="icon" src="../../../static/icon_pay_ccb.png"></image>
  10. <view class="name">建行善付通</view>
  11. <image class="checkbox" src="../../../static/icon_checkbox.png"></image>
  12. </view>
  13. <view class="pay-row">
  14. <image class="icon" src="../../../static/icon_pay_wx.png"></image>
  15. <view class="name">微信</view>
  16. </view>
  17. <view class="title-row">线下支付</view>
  18. <view class="pay-row">
  19. <image class="icon" src="../../../static/svg/wallet_pay.svg"></image>
  20. <view class="name">公对公转账</view>
  21. </view>
  22. <view class="pay-row">
  23. <image class="icon" src="../../../static/icon_pay_other.png"></image>
  24. <view class="name">其他方式</view>
  25. </view>
  26. <button class="pay-btn" @click="handlePay">确认支付</button>
  27. </view>
  28. </template>
  29. <script>
  30. export default {
  31. data() {
  32. return {
  33. }
  34. },
  35. methods: {
  36. handlePay(){
  37. uni.redirectTo({
  38. url: 'success'
  39. })
  40. }
  41. }
  42. }
  43. </script>
  44. <style lang="scss" scoped>
  45. .header-panel{
  46. display: flex;
  47. align-items: center;
  48. justify-content: space-between;
  49. font-size: 32.97rpx;
  50. padding: 0 27.47rpx;
  51. background: #fff;
  52. height: 109.89rpx;
  53. border-top: 1rpx solid #e0e0e0;
  54. .money{
  55. font-size: 41.21rpx;
  56. color: #F97631;
  57. &:before{
  58. content: '¥';
  59. font-size: 24.73rpx;
  60. }
  61. }
  62. }
  63. .title-row{
  64. height: 82.42rpx;
  65. padding: 27.47rpx 27.47rpx 0;
  66. box-sizing: border-box;
  67. font-size: 27.47rpx;
  68. color: #666;
  69. }
  70. .pay-row{
  71. background: #fff;
  72. height: 96.15rpx;
  73. display: flex;
  74. align-items: center;
  75. padding: 0 27.47rpx;
  76. position: relative;
  77. &::after{
  78. content: '';
  79. position: absolute;
  80. right: 27.47rpx;
  81. top: 50%;
  82. transform: translateY(-50%);
  83. width: 30.22rpx;
  84. height: 30.22rpx;
  85. border-radius: 50%;
  86. border: 1rpx solid #d6d6d6;
  87. box-sizing: border-box;
  88. }
  89. &+.pay-row{
  90. border-top: 1rpx solid #d6d6d6;
  91. }
  92. .icon{
  93. width: 38.46rpx;
  94. height: 41.21rpx;
  95. margin-right: 24.73rpx;
  96. }
  97. .name{
  98. flex: 1;
  99. font-size: 27.47rpx;
  100. color: #333;
  101. }
  102. .checkbox{
  103. width: 32.97rpx;
  104. height: 32.97rpx;
  105. position: absolute;
  106. right: 27.47rpx;
  107. top: 50%;
  108. transform: translateY(-50%);
  109. z-index: 1;
  110. }
  111. }
  112. .pay-btn{
  113. width: 631.87rpx;
  114. height: 75.55rpx;
  115. line-height: 75.55rpx;
  116. background: #f97631;
  117. border-radius: 8.24rpx;
  118. font-size: 30.22rpx;
  119. color: #fff;
  120. margin: 82.42rpx auto 0;
  121. }
  122. </style>