register_3.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <view>
  3. <u-form :model="form">
  4. <u-card :border="false" padding="30" box-shadow="0px 1px 10px rgba(0,0,0,0.2)" border-radius="20" :show-foot="false">
  5. <view slot="head">
  6. <view class="u-flex">
  7. <view style="width: 8rpx;height: 34rpx;background: #0292FD;margin-right:20rpx;"></view>
  8. 选择合作品牌
  9. </view>
  10. </view>
  11. <view slot="body">
  12. <u-form-item prop="cooperation">
  13. <view style="margin-right: 10rpx;">
  14. <u-icon name="order" size="36"></u-icon>
  15. </view>
  16. <u-input placeholder="点击选择合作品牌" :disabled="true" @click="show = true;" v-model="form.cooperation"></u-input>
  17. <view class="" slot="right">
  18. <u-icon name="arrow-right" color="#666666" size="36"></u-icon>
  19. </view>
  20. </u-form-item>
  21. </view>
  22. </u-card>
  23. <u-popup mode="bottom" v-model="show">
  24. <view class="u-flex u-row-between u-padding-left-40 u-padding-right-40" style="height: 90rpx;" @click="show = false;">
  25. <view style="padding: 16rpx;font-size:30rpx">
  26. 取消
  27. </view>
  28. <view style="padding: 16rpx;color:#0095FF;font-size:30rpx" @click="getCooperation">
  29. 确认
  30. </view>
  31. </view>
  32. <u-line color="#e4e7ed"></u-line>
  33. <view class="content">
  34. <scroll-view scroll-y="true" style="height: 300rpx;">
  35. <view class="u-flex u-row-center">
  36. <u-checkbox-group :wrap="true" @change="checkboxGroupChange">
  37. <u-checkbox v-model="item.checked" v-for="(item, index) in list" :key="index" :name="item.name" shape="circle">{{item.name}}</u-checkbox>
  38. </u-checkbox-group>
  39. </view>
  40. </scroll-view>
  41. </view>
  42. </u-popup>
  43. <u-card :border="false" padding="30" box-shadow="0px 1px 10px rgba(0,0,0,0.2)" border-radius="20" :show-foot="false">
  44. <view slot="head">
  45. <view class="u-flex">
  46. <view style="width: 8rpx;height: 34rpx;background: #0292FD;margin-right:20rpx;"></view>
  47. 已选合作品牌
  48. </view>
  49. </view>
  50. <view slot="body">
  51. <view class="u-flex u-flex-wrap u-row-around">
  52. <u-image width="40%" height="100rpx" src="../../static/sailun/anyu.png" style="margin:10rpx;"></u-image>
  53. <u-image width="40%" height="100rpx" src="../../static/sailun/anyu.png" style="margin:10rpx;"></u-image>
  54. <u-image width="40%" height="100rpx" src="../../static/sailun/anyu.png" style="margin:10rpx;"></u-image>
  55. <u-image width="40%" height="100rpx" src="../../static/sailun/anyu.png" style="margin:10rpx;"></u-image>
  56. </view>
  57. </view>
  58. </u-card>
  59. <u-card :border="false" padding="30" box-shadow="0px 1px 10px rgba(0,0,0,0.2)" border-radius="20" :show-foot="false">
  60. <view slot="head">
  61. <view class="u-flex">
  62. <view style="width: 8rpx;height: 34rpx;background: #0292FD;margin-right:20rpx;"></view>
  63. 赛轮合作品牌签约任务
  64. </view>
  65. </view>
  66. <view slot="body">
  67. <u-form-item>
  68. <view style="margin-right: 10rpx;">
  69. <u-icon name="account" size="36"></u-icon>
  70. </view>
  71. <view class="">
  72. 某某代理商
  73. </view>
  74. </u-form-item>
  75. <u-form-item prop="lists">
  76. <view style="margin-right: 10rpx;">
  77. <u-icon name="order" size="36"></u-icon>
  78. </view>
  79. <u-input placeholder="点击选择签约任务" :disabled="true" @click="show = true;"></u-input>
  80. <view class="" slot="right">
  81. <u-icon name="arrow-right" color="#666666" size="36"></u-icon>
  82. </view>
  83. </u-form-item>
  84. </view>
  85. </u-card>
  86. <u-form-item prop="protocol" :border-bottom="false">
  87. <view style="margin:0 30rpx;">
  88. <u-checkbox-group>
  89. <u-checkbox v-model="form.protocol">同意《用户协议》及《隐私政策》</u-checkbox>
  90. </u-checkbox-group>
  91. </view>
  92. </u-form-item>
  93. </u-form>
  94. <view style="margin:0 30rpx;">
  95. <u-button @click="nextStep" type="primary" @tap="$u.debounce(submit, 2000,immediate = true)" :loading="loading" :ripple="true" ripple-bg-color="#99d4ff">确认注册</u-button>
  96. </view>
  97. </view>
  98. </template>
  99. <script>
  100. export default {
  101. data() {
  102. return {
  103. show: false,
  104. loading: false,
  105. form: {
  106. cooperation: '',
  107. protocol: false
  108. },
  109. form2: {},
  110. list: [{
  111. name: '第一个选项',
  112. checked: false,
  113. disabled: false
  114. },
  115. {
  116. name: '第二个选项',
  117. checked: false,
  118. disabled: false
  119. },
  120. {
  121. name: '第三个选项',
  122. checked: false,
  123. disabled: false
  124. },
  125. {
  126. name: '第四个选项',
  127. checked: false,
  128. disabled: false
  129. },
  130. {
  131. name: '第五个选项',
  132. checked: false,
  133. disabled: false
  134. }
  135. ]
  136. }
  137. },
  138. methods: {
  139. checkboxGroupChange(e) {
  140. this.cooperations = e
  141. },
  142. getCooperation() {
  143. if (this.cooperations != null) {
  144. this.form.cooperation = this.cooperations.toString();
  145. this.show = false
  146. } else {
  147. console.log("至少选择一项")
  148. }
  149. },
  150. submit() {
  151. this.loading = true
  152. setTimeout(() => {
  153. this.$u.route({
  154. url: 'pages/login/index',
  155. type:"reLaunch"
  156. })
  157. this.loading = false
  158. }, 2000)
  159. },
  160. }
  161. }
  162. </script>
  163. <style lang="scss" scoped>
  164. .content {
  165. padding: 24rpx;
  166. text-align: center;
  167. .u-checkbox[data-v-54acf820] {
  168. display: flex;
  169. justify-content: center;
  170. }
  171. }
  172. </style>