fix: 上线前修改

This commit is contained in:
anonymous
2025-01-10 19:13:58 +08:00
parent 17eb27bfa6
commit 348d06eadb
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -123,7 +123,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { getRealNameAuthAPI, realNameAuthAPI } from '@/service' import { getRealNameAuthAPI, realNameAuthAPI } from '@/service'
import { useUserStore } from '@/store' import { useUserStore } from '@/store'
import { showModal } from '@/utils' import { mergeStep, showModal } from '@/utils'
import { ref } from 'vue' import { ref } from 'vue'
const userStore = useUserStore() const userStore = useUserStore()
@@ -137,7 +137,7 @@ const onBack = () => {
uni.navigateBack() uni.navigateBack()
} }
const onSubmit = async () => { const onSubmit = mergeStep(async () => {
if (!/^[\u4e00-\u9fa5·]{2,8}$/.test(form.value.realname)) { if (!/^[\u4e00-\u9fa5·]{2,8}$/.test(form.value.realname)) {
await showModal('姓名格式错误') await showModal('姓名格式错误')
return return
@@ -160,7 +160,7 @@ const onSubmit = async () => {
realnameInfo.value = await getRealNameAuthAPI().then((res) => { realnameInfo.value = await getRealNameAuthAPI().then((res) => {
return res.data return res.data
}) })
} })
const onGoHome = () => { const onGoHome = () => {
uni.reLaunch({ uni.reLaunch({
+1 -1
View File
@@ -49,7 +49,7 @@
circular circular
class="h-240 mt-10" class="h-240 mt-10"
> >
<swiper-item v-for="item in newsList" :key="item.id" @click="handleNewsDetail(item.id)"> <swiper-item v-for="item in newsList" :key="item.id">
<video class="w-full h-160" :src="item.image" mode="aspectFill" /> <video class="w-full h-160" :src="item.image" mode="aspectFill" />
</swiper-item> </swiper-item>
</swiper> </swiper>