agent.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <view>
  3. <view class="container">
  4. <view class="title" style="padding: 50upx 0 30upx 30upx;">代理方式</view>
  5. <view class="flex justify-around align-center padding-bottom">
  6. <view class="flex align-center" @click="current = 0">
  7. <view class="padding-right-xs" :class="current == 0 ? 'cuIcon-roundcheck theme-color' : 'cuIcon-round'" style="font-size: 36upx;"></view>
  8. <view>独家代理</view>
  9. </view>
  10. <view class="flex align-center" @click="current = 1">
  11. <view class="padding-right-xs" :class="current == 1 ? 'cuIcon-roundcheck theme-color' : 'cuIcon-round'" style="font-size: 36upx;"></view>
  12. <view>渠道合伙人</view>
  13. </view>
  14. </view>
  15. <view class="title padding-left padding-bottom">所在城市</view>
  16. <u-picker mode="region" v-model="regionShow" :params="params" @confirm="getRegion"></u-picker>
  17. <view class="flex align-center justify-between padding-bottom-sm" @click="regionShow = true">
  18. <view class=" padding-left" :class="region.startsWith('请') ? 'eg': ''">
  19. {{region}}
  20. </view>
  21. <view class="cuIcon-right padding-right"></view>
  22. </view>
  23. <view class="padding-lr"><u-line color="#eaeaea"></u-line></view>
  24. <view class="title padding">代理人姓名</view>
  25. <view class="padding-left">
  26. <u-input v-model="name" placeholder="请输入姓名" :clearable="false" />
  27. </view>
  28. <view class="padding-lr"><u-line color="#eaeaea"></u-line></view>
  29. <view class="title padding">联系方式</view>
  30. <view class="padding-left">
  31. <u-input v-model="phone" placeholder="请输入手机号码" :clearable="false" />
  32. </view>
  33. <view class="padding-lr"><u-line color="#eaeaea"></u-line></view>
  34. <view class="title padding">收款账户</view>
  35. <view class="padding-left">
  36. <u-input v-model="account" placeholder="请输入银行卡号" :clearable="false" />
  37. </view>
  38. <view class="padding-lr"><u-line color="#eaeaea"></u-line></view>
  39. <view class="title padding">开户行名称</view>
  40. <view class="padding-left">
  41. <u-input v-model="bank" placeholder="请输入开户行名称" :clearable="false" />
  42. </view>
  43. <view class="padding-lr padding-bottom"><u-line color="#eaeaea"></u-line></view>
  44. </view>
  45. <view class="footer-fixed padding-lg">
  46. <u-button class="custom-style" shape="circle" @click="confirm">确认并提交</u-button>
  47. </view>
  48. </view>
  49. </template>
  50. <script>
  51. import citySelect from '@/components/basic/u-city-select.vue';
  52. export default {
  53. components: {
  54. citySelect
  55. },
  56. data() {
  57. return {
  58. current: 0,
  59. name: '',
  60. phone: '',
  61. account: '',
  62. bank: '',
  63. regionShow: false,
  64. region: '请选择代理所在城市',
  65. params: {
  66. province: true,
  67. city: true,
  68. area: false
  69. }
  70. }
  71. },
  72. methods: {
  73. getRegion(data) {
  74. this.region = data.province.label + '-' + data.city.label;
  75. },
  76. confirm() {
  77. uni.redirectTo({
  78. url: '/pages/activityList/mine/agent/pay'
  79. })
  80. }
  81. }
  82. }
  83. </script>
  84. <style lang="scss" scoped>
  85. .container {
  86. background-color: #ffffff;
  87. border-radius: 16upx;
  88. margin: 30upx;
  89. .title {
  90. font-size: 32upx;
  91. font-weight: bold;
  92. }
  93. }
  94. .eg {
  95. color: #d1d1d1;
  96. }
  97. .custom-style {
  98. background-color: #5b3ee7;
  99. width: 400upx;
  100. color: #ffffff;
  101. }
  102. </style>