feat: 同步diamante

This commit is contained in:
cgd_mac 2022-02-25 08:55:23 +08:00
parent 109f121f05
commit 959685db8c
4 changed files with 18 additions and 7 deletions

View File

@ -48,7 +48,7 @@ export function logout () {
}
export function getSmsCaptcha (parameter) {
return request({
url: '/getSmsCaptcha',
url: '/sys/sms/getCode',
method: 'get',
params: parameter
})

View File

@ -26,7 +26,7 @@
:wrapperCol="wrapperCol"
has-feedback
>
<a-input placeholder="请输入用户名" :disabled="registerDisabled" v-decorator="['userName', {rules: [{required: true, min: 5, message: '请输入至少五个字符的账号'}]}]" />
<a-input placeholder="请输入用户名" :disabled="registerDisabled" v-decorator="['userName', {rules: [{required: true, message: '请输入用户名!'}]}]" />
</a-form-item>
</a-form>
</a-col>

View File

@ -344,7 +344,7 @@ export default {
const hide = $message.loading('验证码发送中..', 0)
getSmsCaptcha({ mobile: values.mobile })
getSmsCaptcha({ phone: values.mobile, type: 'register' })
.then(res => {
setTimeout(hide, 2500)
$notification['success']({

View File

@ -5,7 +5,7 @@
<a-button size="large" type="primary" style="margin-right: 8px" @click="goUserInfo">
完善信息
</a-button>
<a-button size="large" style="margin-left: 8px" @click="goHomeHandle">返回</a-button>
<a-button size="large" style="margin-left: 8px" @click="goHomeHandle">返回登录</a-button>
</template>
</a-result>
<PersonForm ref="personForm"></PersonForm>
@ -13,6 +13,7 @@
</template>
<script>
import storage from 'store'
import PersonForm from '@/views/person/PersonForm.vue'
export default {
@ -20,7 +21,8 @@ export default {
components: { PersonForm },
data () {
return {
description: '您的账号已经注册成功,但是还有很多信息未完善,您可以继续完善您的个人信息~',
description:
'您的账号已经注册成功,但是还需要管理员审核才能登录,请点击下面的"完善信息"按钮完善个人信息方便管理员审核~',
form: {}
}
},
@ -33,13 +35,22 @@ export default {
created () {
this.form = this.$route.query
},
beforeRouteLeave (to, from, next) {
this.$store.dispatch('Logout').then(() => {
this.$router.push({ name: 'login' })
next()
})
next()
},
methods: {
goHomeHandle () {
this.$router.push({ name: 'login' })
this.$store.dispatch('Logout').then(() => {
this.$router.push({ name: 'login' })
})
},
goUserInfo () {
//
this.$refs.personForm.edit({id: this.form.personId})
this.$refs.personForm.edit({ id: this.form.personId })
}
}
}