ll
liukangdong
2024-08-27 f3bd5baa8eb4eb7a896f7312a2e9a7c89a46cef5
h5/pages/driver/register.vue
@@ -49,12 +49,11 @@
</template>
<script>
import { resetPassword, sendSms } from '@/api'
import { driverRegister, sendSms } from '@/api'
export default {
  data() {
    return {
      form: {
      },
      form: {},
      isShowProtocol: false,
      countDown: 0
    }
@@ -84,7 +83,7 @@
    onLogin() {
      const { form } = this
         if (!form.name) return uni.showToast({
           title: '手机号姓名',
           title: '姓名不能为空',
           icon: 'none'
         })
      if (!form.phone) return uni.showToast({
@@ -99,14 +98,14 @@
        title: '密码不能为空',
        icon: 'none'
      })
      resetPassword({
      driverRegister({
        ...form
      }).then(res => {
        if (res && res.code == 200) {
          setTimeout(() => {
            uni.showToast({
              title: '注册成功,请前往登录',
              icon: 'success',
              icon: 'none',
              duration: 2000
            })
          })