pay.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view>
  3. <view class="text-center" style="margin-top: 120upx;">
  4. <view class="text-gray text-sm padding">待支付</view>
  5. <view class="theme-color">
  6. <text style="font-size: 48upx;">¥</text>
  7. <text style="font-size: 72upx;">8000</text>
  8. </view>
  9. <view class="text-black text-lg margin-top">一线城市渠道合伙人-保证金</view>
  10. </view>
  11. <view class="container">
  12. <view style="padding: 40upx 0 30upx 30upx;font-size: 30upx;font-weight: bold;">支付方式</view>
  13. <block v-for="(item, index) in ways" :key="index">
  14. <view class="flex align-center justify-between padding" @click="change(index)">
  15. <view class="flex align-center">
  16. <image class="margin-right" :src="item.icon" style="width: 50upx;height: 50upx;"></image>
  17. <view>{{item.name}}</view>
  18. </view>
  19. <view :class="current == index ? 'theme-color cuIcon-roundcheckfill' : 'cuIcon-round'" style="font-size: 40upx;"></view>
  20. </view>
  21. </block>
  22. </view>
  23. <view class="footer-fixed padding-lg">
  24. <u-button class="custom-style" shape="circle" @click="pay">确认支付</u-button>
  25. </view>
  26. <u-popup v-model="successShow" mode="center" :mask-close-able="false" width="550" height="500" border-radius="30">
  27. <view class="text-center padding">
  28. <image src="/static/agent/pic_agent.png" style="width: 109upx;height: 122upx;"></image>
  29. <view style="font-size: 34upx;color: #563ae5;font-weight: bold;padding: 30upx 0 10upx 0;">恭喜您成为代理</view>
  30. <view style="font-size: 28upx;color: #999999;padding-bottom: 60upx;">专享代理专属权益</view>
  31. <u-button class="custom-style" shape="circle" @click="confirm">确定</u-button>
  32. </view>
  33. </u-popup>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. successShow: false,
  41. ways: [
  42. {name: '微信支付', icon: '/static/agent/icon_weixin.png'},
  43. {name: '支付宝支付', icon: '/static/agent/icon_zfb.png'},
  44. {name: '银行卡支付', icon: '/static/agent/icon_yhk.png'},
  45. ],
  46. current: 0,
  47. }
  48. },
  49. methods: {
  50. change(index) {
  51. this.current = index;
  52. },
  53. pay() {
  54. console.log("支付")
  55. this.successShow = true;
  56. },
  57. confirm() {
  58. uni.navigateBack({
  59. delta: 1
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style>
  66. .container {
  67. background-color: #ffffff;
  68. margin: 30upx;
  69. border-radius: 20upx;
  70. }
  71. .custom-style {
  72. background-color: #5b3ee7;
  73. width: 350upx;
  74. color: #ffffff;
  75. }
  76. </style>