This commit is contained in:
GaoHao
2025-01-07 10:42:53 +08:00
parent f7037c0643
commit 0041cc0e15
7 changed files with 192 additions and 45 deletions

View File

@@ -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: '请输入账号',