新增禁用弹窗

This commit is contained in:
gyq
2025-05-24 18:16:56 +08:00
parent 64f8618802
commit 85d0f092c0
10 changed files with 1615 additions and 1484 deletions

View File

@@ -52,14 +52,17 @@
<emprty-card v-if="!data.list2.length" />
</view>
</view>
<disable-mask v-if="disableShow"></disable-mask>
</template>
<script setup>
import { reactive } from 'vue';
import { reactive, ref } from 'vue';
import { selectByUserId } from '@/api/me/me.js';
import { onLoad, onPullDownRefresh, onReachBottom } from '@dcloudio/uni-app';
import { linkTo } from '@/utils/app.js';
const disableShow = ref(false);
// 获取数据
async function selectByUserIdAjax() {
try {
@@ -69,6 +72,11 @@ async function selectByUserIdAjax() {
data.list2 = res2.records;
} catch (error) {
console.log(error);
if (error.code == 702) {
disableShow.value = true;
} else {
disableShow.value = false;
}
}
setTimeout(() => {
uni.stopPullDownRefresh();