settleIn.vue 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. <template>
  2. <view class="page">
  3. <view class="content">
  4. <u--form
  5. labelPosition="left"
  6. :model="model1"
  7. ref="uForm"
  8. labelWidth="100"
  9. >
  10. <u-form-item label="姓名" prop="userInfo.name" borderBottom ref="item1">
  11. <u--input
  12. inputAlign="right"
  13. v-model="model1.name"
  14. placeholder="请输入真实姓名"
  15. border="none"
  16. ></u--input>
  17. </u-form-item>
  18. <u-form-item
  19. label="身份证号"
  20. prop="userInfo.name"
  21. borderBottom
  22. ref="item1"
  23. >
  24. <u--input
  25. inputAlign="right"
  26. v-model="model1.idcard"
  27. type="idcard"
  28. placeholder="请输入您的身份证"
  29. border="none"
  30. ></u--input>
  31. </u-form-item>
  32. <u-form-item
  33. label="银行卡号"
  34. prop="userInfo.name"
  35. borderBottom
  36. ref="item1"
  37. >
  38. <u--input
  39. inputAlign="right"
  40. v-model="model1.card_number"
  41. type="number"
  42. placeholder="请输入您的银行卡号"
  43. border="none"
  44. ></u--input>
  45. </u-form-item>
  46. <u-form-item
  47. label="手机号"
  48. prop="userInfo.name"
  49. borderBottom
  50. ref="item1"
  51. >
  52. <u--input
  53. inputAlign="right"
  54. v-model="model1.phone"
  55. type="number"
  56. placeholder="请输入手机号"
  57. border="none"
  58. ></u--input>
  59. </u-form-item>
  60. <u-form-item label="验证码" borderBottom ref="item1">
  61. <view style="display: flex; align-items: center">
  62. <u--input
  63. inputAlign="right"
  64. v-model="model1.code"
  65. placeholder="请输入短信验证码"
  66. border="none"
  67. ></u--input>
  68. <view style="color: #f83224; font-weight: 600; margin-left: 50rpx">
  69. 获取验证码
  70. </view>
  71. </view>
  72. </u-form-item>
  73. </u--form>
  74. </view>
  75. <view class="bottom-1">
  76. <u-radio-group
  77. v-model="radiovalue1"
  78. placement="column"
  79. @change="groupChange"
  80. >
  81. <u-radio name="name" @change="radioChange" activeColor="red"> </u-radio>
  82. </u-radio-group>
  83. 我已阅读并同意<text style="color: #f83224">《用户服务协议》</text>和
  84. <text style="color: #f83224">《隐私政策》</text>
  85. </view>
  86. <button class="btn" @click="submit">开始人脸识别验证</button>
  87. </view>
  88. </template>
  89. <script>
  90. export default {
  91. data() {
  92. return {
  93. model1: {
  94. name: "",
  95. idcard: "",
  96. phone: "",
  97. card_number: "",
  98. code: "",
  99. },
  100. radiovalue1: "",
  101. };
  102. },
  103. methods: {
  104. radioChange() {
  105. this.value = !this.value;
  106. },
  107. groupChange(e) {
  108. console.log(e);
  109. },
  110. submit() {
  111. delete this.model1.code;
  112. if (!this.model1.name) {
  113. uni.showToast({
  114. title: "请填写姓名",
  115. icon: "none",
  116. });
  117. return;
  118. } else if (!this.model1.idcard) {
  119. uni.showToast({
  120. title: "请填写身份证号",
  121. icon: "none",
  122. });
  123. return;
  124. } else if (!this.model1.phone) {
  125. uni.showToast({
  126. title: "请填写手机号",
  127. icon: "none",
  128. });
  129. return;
  130. } else if (!this.model1.card_number) {
  131. uni.showToast({
  132. title: "请填写银行卡号",
  133. icon: "none",
  134. });
  135. return;
  136. }
  137. uni.$u.http.post("/api/merchant/apply", this.model1).then((res) => {
  138. console.log(res);
  139. });
  140. },
  141. getTeamStatus() {},
  142. },
  143. mounted() {
  144. this.getTeamStatus();
  145. uni.setNavigationBarTitle({
  146. title: "团长入驻",
  147. });
  148. },
  149. };
  150. </script>
  151. <style lang="scss" scoped>
  152. .page {
  153. padding: 20rpx 24rpx;
  154. .content {
  155. padding: 0 20rpx;
  156. background-color: #fff;
  157. border-radius: 16rpx;
  158. }
  159. .bottom-1 {
  160. font-size: 20rpx;
  161. margin-top: 68rpx;
  162. color: #555;
  163. display: flex;
  164. justify-content: flex-start;
  165. align-items: center;
  166. width: 70%;
  167. .radio {
  168. width: 24rpx;
  169. height: 24rpx;
  170. }
  171. }
  172. .btn {
  173. color: #fff;
  174. background-color: #f83224;
  175. border-radius: 44rpx;
  176. margin-top: 28rpx;
  177. height: 88rpx;
  178. font-size: 32rpx;
  179. }
  180. }
  181. </style>