邀请页面
This commit is contained in:
@@ -12,6 +12,9 @@
|
||||
<view class="auth-input auth-code">
|
||||
<input v-model="code" type="number" maxlength="4" placeholder="输入验证码">
|
||||
<button :disabled="getSms" size="mini" @click="getPhoneCode()">{{sendCode}}</button>
|
||||
</view>
|
||||
<view class="auth-input">
|
||||
<input v-model="parentId" type="number" placeholder="输入邀请码">
|
||||
</view>
|
||||
<view class="auth-button">
|
||||
<button @click="login('code')">登录</button>
|
||||
@@ -35,7 +38,8 @@
|
||||
data() {
|
||||
return {
|
||||
phone : '18245180131',
|
||||
code : '',
|
||||
code : '',
|
||||
parentId: '',
|
||||
getSms : false,
|
||||
sendCode: '获取验证码'
|
||||
};
|
||||
@@ -81,8 +85,9 @@
|
||||
title: '登录中'
|
||||
})
|
||||
smsAuth({
|
||||
mobileNo: this.phone,
|
||||
code : this.code,
|
||||
mobileNo : this.phone,
|
||||
code : this.code,
|
||||
parent_id : this.parentId
|
||||
}).then((res) => {
|
||||
this.$store.commit('setToken', res.token_type + ' ' + res.access_token);
|
||||
if(res.is_new){
|
||||
|
||||
Reference in New Issue
Block a user