feat: 同步diamante
This commit is contained in:
parent
109f121f05
commit
959685db8c
|
@ -48,7 +48,7 @@ export function logout () {
|
||||||
}
|
}
|
||||||
export function getSmsCaptcha (parameter) {
|
export function getSmsCaptcha (parameter) {
|
||||||
return request({
|
return request({
|
||||||
url: '/getSmsCaptcha',
|
url: '/sys/sms/getCode',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: parameter
|
params: parameter
|
||||||
})
|
})
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
:wrapperCol="wrapperCol"
|
:wrapperCol="wrapperCol"
|
||||||
has-feedback
|
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-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
</a-col>
|
</a-col>
|
||||||
|
|
|
@ -344,7 +344,7 @@ export default {
|
||||||
|
|
||||||
const hide = $message.loading('验证码发送中..', 0)
|
const hide = $message.loading('验证码发送中..', 0)
|
||||||
|
|
||||||
getSmsCaptcha({ mobile: values.mobile })
|
getSmsCaptcha({ phone: values.mobile, type: 'register' })
|
||||||
.then(res => {
|
.then(res => {
|
||||||
setTimeout(hide, 2500)
|
setTimeout(hide, 2500)
|
||||||
$notification['success']({
|
$notification['success']({
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
<a-button size="large" type="primary" style="margin-right: 8px" @click="goUserInfo">
|
<a-button size="large" type="primary" style="margin-right: 8px" @click="goUserInfo">
|
||||||
完善信息
|
完善信息
|
||||||
</a-button>
|
</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>
|
</template>
|
||||||
</a-result>
|
</a-result>
|
||||||
<PersonForm ref="personForm"></PersonForm>
|
<PersonForm ref="personForm"></PersonForm>
|
||||||
|
@ -13,6 +13,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import storage from 'store'
|
||||||
import PersonForm from '@/views/person/PersonForm.vue'
|
import PersonForm from '@/views/person/PersonForm.vue'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
@ -20,7 +21,8 @@ export default {
|
||||||
components: { PersonForm },
|
components: { PersonForm },
|
||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
description: '您的账号已经注册成功,但是还有很多信息未完善,您可以继续完善您的个人信息~',
|
description:
|
||||||
|
'您的账号已经注册成功,但是还需要管理员审核才能登录,请点击下面的"完善信息"按钮完善个人信息方便管理员审核~',
|
||||||
form: {}
|
form: {}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -33,9 +35,18 @@ export default {
|
||||||
created () {
|
created () {
|
||||||
this.form = this.$route.query
|
this.form = this.$route.query
|
||||||
},
|
},
|
||||||
|
beforeRouteLeave (to, from, next) {
|
||||||
|
this.$store.dispatch('Logout').then(() => {
|
||||||
|
this.$router.push({ name: 'login' })
|
||||||
|
next()
|
||||||
|
})
|
||||||
|
next()
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
goHomeHandle () {
|
goHomeHandle () {
|
||||||
|
this.$store.dispatch('Logout').then(() => {
|
||||||
this.$router.push({ name: 'login' })
|
this.$router.push({ name: 'login' })
|
||||||
|
})
|
||||||
},
|
},
|
||||||
goUserInfo () {
|
goUserInfo () {
|
||||||
// 打开编辑弹出框
|
// 打开编辑弹出框
|
||||||
|
|
Loading…
Reference in New Issue