feat: 对接部分接口

This commit is contained in:
anonymous
2025-01-09 10:45:10 +08:00
parent 21d8f75f6a
commit e70ca852d8
17 changed files with 165 additions and 62 deletions
+16 -19
View File
@@ -22,8 +22,8 @@ const form = ref({
password: '',
retpassword: '',
invitecode: '',
tpassword: '',
rettpassword: '',
// tpassword: '',
// rettpassword: '',
})
let redirect = '/'
@@ -54,27 +54,14 @@ const handleRegister = mergeStep(async () => {
})
return
}
if (!form.value.tpassword) {
if (!form.value.invitecode) {
uni.showToast({
title: '请输入支付密码',
title: '请输入邀请码',
icon: 'none',
})
return
}
if (form.value.tpassword !== form.value.rettpassword) {
uni.showToast({
title: '两次输入的支付密码不一致',
icon: 'none',
})
return
}
// if (!form.value.invitecode) {
// uni.showToast({
// title: '请输入邀请码',
// icon: 'none',
// })
// return
// }
const {
data: {
userinfo: { token },
@@ -121,6 +108,16 @@ onLoad(async (options) => {
/>
</view>
<view class="flex items-center py-15">
<view class="text-gradient">确认登录密码</view>
<input
v-model="form.retpassword"
placeholder-class="text-#889BC6"
type="password"
class="text-right flex-1 text-14"
placeholder="请再次输入登录密码"
/>
</view>
<!-- <view class="flex items-center py-15">
<view class="text-gradient">验证码</view>
<input
v-model="form.invitecode"
@@ -130,7 +127,7 @@ onLoad(async (options) => {
placeholder="请输入验证码"
/>
<image class="w-60 h-24 ml-15 bg-gray-400" mode="aspectFit" />
</view>
</view> -->
<view class="flex items-center py-15">
<view class="text-gradient">邀请码</view>
<input