|
@@ -0,0 +1,75 @@
|
|
|
+<script lang="ts" setup>
|
|
|
+import CountDown from '@/components/count-down.vue'
|
|
|
+import PhoneFront from '@/components/phone-front.vue'
|
|
|
+const formRef = ref<any>()
|
|
|
+const account = reactive({
|
|
|
+ name: '',
|
|
|
+ code: '',
|
|
|
+ password: '',
|
|
|
+ rePassword: '',
|
|
|
+})
|
|
|
+const accountRules = {
|
|
|
+ name: [
|
|
|
+ { required: true, type: 'string', message: '请输入正确手机号', trigger: ['blur', 'change'] },
|
|
|
+ ],
|
|
|
+ code: [{ required: true, type: 'string', message: '请输入验证码', trigger: ['blur', 'change'] }],
|
|
|
+ password: [
|
|
|
+ { required: true, type: 'string', message: '请输入密码', trigger: ['blur', 'change'] },
|
|
|
+ ],
|
|
|
+ rePassword: [
|
|
|
+ { required: true, type: 'string', message: '请输入确定密码', trigger: ['blur', 'change'] },
|
|
|
+ ],
|
|
|
+}
|
|
|
+function toLoginPage() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages/login/index',
|
|
|
+ })
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div class="register-panel">
|
|
|
+ <wd-tabs>
|
|
|
+ <wd-tab title="注册" name="register">
|
|
|
+ <uv-form
|
|
|
+ ref="formRef"
|
|
|
+ labelPosition="left"
|
|
|
+ labelWidth="0"
|
|
|
+ :model="account"
|
|
|
+ :rules="accountRules"
|
|
|
+ >
|
|
|
+ <uv-form-item prop="name">
|
|
|
+ <PhoneFront />
|
|
|
+ <uv-input v-model="account.name" placeholder="11位手机号" size="large"></uv-input>
|
|
|
+ </uv-form-item>
|
|
|
+ <uv-form-item prop="code">
|
|
|
+ <uv-input v-model="account.code" placeholder="输入验证码" size="large"></uv-input>
|
|
|
+ <count-down />
|
|
|
+ </uv-form-item>
|
|
|
+ <uv-form-item prop="password">
|
|
|
+ <uv-input
|
|
|
+ placeholder="请输入密码"
|
|
|
+ prefixIcon="lock"
|
|
|
+ size="large"
|
|
|
+ prefixIconStyle="font-size: 22px;color: #909399"
|
|
|
+ ></uv-input>
|
|
|
+ </uv-form-item>
|
|
|
+ <uv-form-item prop="rePassword">
|
|
|
+ <uv-input
|
|
|
+ placeholder="请输入确定密码"
|
|
|
+ prefixIcon="lock"
|
|
|
+ size="large"
|
|
|
+ prefixIconStyle="font-size: 22px;color: #909399"
|
|
|
+ ></uv-input>
|
|
|
+ </uv-form-item>
|
|
|
+ </uv-form>
|
|
|
+ </wd-tab>
|
|
|
+ </wd-tabs>
|
|
|
+ <uv-button mt3 type="primary" text="注 册" w-full></uv-button>
|
|
|
+ <view class="text-area mt-10 text-center">
|
|
|
+ <uv-text type="primary" text="使用已有账户登录" align="center" @click="toLoginPage"></uv-text>
|
|
|
+ </view>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style lang="scss" scoped></style>
|