优化
This commit is contained in:
@@ -46,9 +46,8 @@
|
||||
<script setup>
|
||||
import { reactive } from 'vue';
|
||||
import { onLoad} from '@dcloudio/uni-app'
|
||||
import http from '@/http/http.js';
|
||||
import {setSendMsg,registerCode} from '@/api/login/login.js';
|
||||
import {commonType} from '@/api/login/login.js';
|
||||
import {commonType} from '@/api/init.js';
|
||||
|
||||
|
||||
let data = reactive({
|
||||
@@ -65,18 +64,15 @@
|
||||
checked: false,
|
||||
})
|
||||
|
||||
onLoad(( options ) => {
|
||||
onLoad(async ( options ) => {
|
||||
if (uni.getStorageSync('qdCodeion')) { data.qdCodeion = uni.getStorageSync('qdCodeion') }
|
||||
if (options.qdCode) { data.qdCodeion = options.qdCode }
|
||||
if (options.invitation ) { data.invitation = options.invitation }
|
||||
|
||||
http.request({
|
||||
url:'app/common/type/3',
|
||||
}).then(res => {
|
||||
if (res.code == 0) {
|
||||
data.registerCode = res.data.value
|
||||
}
|
||||
});
|
||||
let res = await commonType(3)
|
||||
if (res.code == 0) {
|
||||
data.registerCode = res.data.value
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
@@ -179,7 +175,7 @@
|
||||
invitation,
|
||||
registerCode,
|
||||
qdCodeion
|
||||
} = this;
|
||||
} = data;
|
||||
if (!mobile) {
|
||||
uni.showToast({
|
||||
title: '请输入账号',
|
||||
|
||||
Reference in New Issue
Block a user