邀请页面

This commit is contained in:
唐明明
2022-06-10 15:32:48 +08:00
parent d7cd566e57
commit b4e55f90ec
14 changed files with 4515 additions and 3810 deletions

View File

@@ -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){