fix: 上线前修改
This commit is contained in:
@@ -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({
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user