|
@@ -1,28 +1,28 @@
|
|
|
<template>
|
|
<template>
|
|
|
<app-view class="g-form register">
|
|
<app-view class="g-form register">
|
|
|
<template #header>
|
|
<template #header>
|
|
|
- <app-navbar title="用户注册" />
|
|
|
|
|
|
|
+ <app-navbar :title="$t('user.register.title')" />
|
|
|
</template>
|
|
</template>
|
|
|
<Form ref="formRef" class="g-form__container register__form" @submit="formSubmit">
|
|
<Form ref="formRef" class="g-form__container register__form" @submit="formSubmit">
|
|
|
<CellGroup inset>
|
|
<CellGroup inset>
|
|
|
- <Field v-model="formData.mobilephone" type="tel" name="mobilephone" label="手机号码" placeholder="必填"
|
|
|
|
|
|
|
+ <Field v-model="formData.mobilephone" type="tel" name="mobilephone" :label="$t('user.register.mobile')" :placeholder="$t('common.required')"
|
|
|
:rules="formRules.mobilephone" />
|
|
:rules="formRules.mobilephone" />
|
|
|
- <Field v-model="formData.vcode" type="digit" name="vcode" label="短信验证码" placeholder="必填"
|
|
|
|
|
|
|
+ <Field v-model="formData.vcode" type="digit" name="vcode" :label="$t('user.register.vcode')" :placeholder="$t('common.required')"
|
|
|
:rules="formRules.vcode">
|
|
:rules="formRules.vcode">
|
|
|
<template #button>
|
|
<template #button>
|
|
|
<Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
|
|
<Button size="small" type="danger" :disabled="isCountdown" @click="sendVerifyCode">
|
|
|
- <span v-if="isCountdown">重新发送({{ currentTime.seconds }})</span>
|
|
|
|
|
- <span v-else>获取验证码</span>
|
|
|
|
|
|
|
+ <span v-if="isCountdown">{{ $t('user.register.sendagain') }}({{ currentTime.seconds }})</span>
|
|
|
|
|
+ <span v-else>{{ $t('user.register.getsmscode') }}</span>
|
|
|
</Button>
|
|
</Button>
|
|
|
</template>
|
|
</template>
|
|
|
</Field>
|
|
</Field>
|
|
|
</CellGroup>
|
|
</CellGroup>
|
|
|
<CellGroup inset>
|
|
<CellGroup inset>
|
|
|
- <Field v-model="formData.loginpwd" name="loginpwd" type="password" label="登录密码" placeholder="必填"
|
|
|
|
|
|
|
+ <Field v-model="formData.loginpwd" name="loginpwd" type="password" :label="$t('user.register.logipwd')" :placeholder="$t('common.required')"
|
|
|
:rules="formRules.loginpwd" />
|
|
:rules="formRules.loginpwd" />
|
|
|
- <Field v-model="confirmpassword" name="confirmpassword" type="password" label="确认密码" placeholder="必填"
|
|
|
|
|
|
|
+ <Field v-model="confirmpassword" name="confirmpassword" type="password" :label="$t('user.register.confirmpwd')" :placeholder="$t('common.required')"
|
|
|
:rules="formRules.confirmpassword" />
|
|
:rules="formRules.confirmpassword" />
|
|
|
- <Field v-model="formData.refernum" name="refernum" label="注册编码" :placeholder="registrationCodeRule ? '必填' : '选填'"
|
|
|
|
|
|
|
+ <Field v-model="formData.refernum" name="refernum" :label="$t('user.register.registercode')" :placeholder="registrationCodeRule ? $t('common.required') : $t('common.optional')"
|
|
|
:rules="formRules.refernum" v-if="registrationCodeRule > -1">
|
|
:rules="formRules.refernum" v-if="registrationCodeRule > -1">
|
|
|
<!-- <template #button>
|
|
<!-- <template #button>
|
|
|
<app-qrcode-scan @success="onScanSuccess">
|
|
<app-qrcode-scan @success="onScanSuccess">
|
|
@@ -35,9 +35,9 @@
|
|
|
<Cell>
|
|
<Cell>
|
|
|
<template #title>
|
|
<template #title>
|
|
|
<div style="display: flex;align-items: center;font-size: 12px;">
|
|
<div style="display: flex;align-items: center;font-size: 12px;">
|
|
|
- <Checkbox shape="square" icon-size="16px" v-model="checked">我已阅读并同意</Checkbox>
|
|
|
|
|
- <span @click="routerTo('rules-zcxy')" style="color:#E92020">《用户注册协议》</span>
|
|
|
|
|
- <span @click="routerTo('rules-yhkhfxgzs')" style="color:#E92020">《风险告知书》</span>
|
|
|
|
|
|
|
+ <Checkbox shape="square" icon-size="16px" v-model="checked">{{ $t('user.register.checked') }}</Checkbox>
|
|
|
|
|
+ <span @click="routerTo('rules-zcxy')" style="color:#E92020">{{ $t('user.register.ruleszcxy') }}</span>
|
|
|
|
|
+ <span @click="routerTo('rules-yhkhfxgzs')" style="color:#E92020">{{ $t('user.register.rulesfxgzs') }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</Cell>
|
|
</Cell>
|
|
@@ -45,9 +45,9 @@
|
|
|
</Form>
|
|
</Form>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<div class="g-form__footer inset">
|
|
<div class="g-form__footer inset">
|
|
|
- <Button type="danger" @click="formRef?.submit" round block>免费注册</Button>
|
|
|
|
|
|
|
+ <Button type="danger" @click="formRef?.submit" round block>{{ $t('user.register.freeregister') }}</Button>
|
|
|
</div>
|
|
</div>
|
|
|
- <app-reward :show="showReward" :value="redEnvelope" title="注册成功!" @click="router.back()" />
|
|
|
|
|
|
|
+ <app-reward :show="showReward" :value="redEnvelope" :title="$t('user.register.registersuccess')" @click="router.back()" />
|
|
|
</template>
|
|
</template>
|
|
|
</app-view>
|
|
</app-view>
|
|
|
</template>
|
|
</template>
|