fix: bugs

This commit is contained in:
汪少伟
2025-03-20 20:19:20 +08:00
parent 25f7823cd4
commit 4690879e2c
5 changed files with 98 additions and 54 deletions

View File

@@ -60,7 +60,7 @@
<d-button color="primary" variant="solid" @click="search">搜索</d-button>
</div>
<d-button v-if="isLogin" @click="check" ref="origin" icon="share" class="batch-btn">批量校验</d-button>
<div class="home-information">
<div class="home-information" v-if="infoList.length > 0">
<div class="info-title">
<div class="sub-title">
<img src="@/assets/imgs/home/informIcon@2x.png" />
@@ -140,7 +140,7 @@ const infoList = ref([]);
const warningModalVisable = ref(false);
const currentWarning = ref();
const { isLogin } = useDiscussGetUserInfo()
const { isLogin } = useDiscussGetUserInfo();
const homeSearch = ref(null);
const dropdownWidth = ref(0);
const selectedCate = ref('软件');
@@ -285,7 +285,7 @@ getNoticeList();
.home-content {
font-size: 14px;
height: 80%;
height: 50%;
width: 50%;
display: flex;
flex-direction: column;

View File

@@ -16,20 +16,12 @@
</d-form-item>
</d-col>
<d-col span="8">
<d-form-item
field="email"
label="邮件"
:rules="[{ required: true, message: '请填写邮件', trigger: 'blur' }]"
>
<d-form-item field="email" label="邮件" :rules="[{ validator: checkEmailValidator, trigger: 'blur' }]">
<d-input v-model="forms.email" />
</d-form-item>
</d-col>
<d-col span="8">
<d-form-item
field="mobile"
label="电话"
:rules="[{ required: true, message: '请填写电话', trigger: 'blur' }]"
>
<d-form-item field="mobile" label="电话" :rules="[{ validator: checkPhoneValidator, trigger: 'blur' }]">
<d-input v-model="forms.mobile" />
</d-form-item>
</d-col>
@@ -62,6 +54,7 @@ import { getUserInfo } from '@/api/user';
import { onMounted, reactive, ref, shallowRef } from 'vue';
import { Message } from 'vue-devui';
import { useAccountStore } from '@/stores/user';
import { checkEmailValidator, checkPhoneValidator } from '@/utils/validator';
const loading = ref(false);