优化禁用弹窗

This commit is contained in:
gyq
2025-05-26 14:16:19 +08:00
parent 85d0f092c0
commit a43b7ad2f8
6 changed files with 1237 additions and 1211 deletions

View File

@@ -1,5 +1,5 @@
//打包时修改env的值即可
const env = 'test' //test,production,local
const env = 'production' //test,production,local
export const encryptKey = '1234567890123456' // http数据加解密的key

File diff suppressed because it is too large Load Diff

View File

@@ -83,6 +83,13 @@ function commonsProcess(showLoading, httpReqCallback, isreturm) {
isShowErrorToast = true;
return Promise.reject(bodyData); // 跳转到catch函数
}
if (bodyData.code == 701) {
uni.clearStorageSync()
uni.reLaunch({
url: '/pages/login/login'
})
return Promise.reject(bodyData); // 跳转到catch函数
}
if (bodyData.code == 702) {
return Promise.reject(bodyData); // 跳转到catch函数
}

View File

@@ -107,6 +107,7 @@ onShow(() => {
// datas.setindexdata = $common.setversion
// console.log(datas.setindexdata,'seaeasdas')
// }
getrecomVideo();
});
const disableMaskVisable = ref(false);
@@ -139,7 +140,6 @@ let datas = reactive({
onLoad(() => {
versionUpdate();
getMsg();
getrecomVideo();
});
onReady(() => {
if (!uni.getStorageSync('ruleShow')) {

View File

@@ -1,7 +1,16 @@
<template>
<view class="min-page">
<!-- <up-button @click="toDetail">toDetail</up-button> -->
<my-video-list isCommand isTabbar v-if="state.list.length" @swiperChange="swiperChange" :list="state.list" @update="update" :info="state"></my-video-list>
<my-video-list
isCommand
isTabbar
v-if="state.list.length"
@swiperChange="swiperChange"
:list="state.list"
@update="update"
:info="state"
@errorHandle="errorHandle"
></my-video-list>
</view>
<view class="mask" v-if="maskShow">
<view class="content">
@@ -45,6 +54,17 @@ const state = reactive({
price: 0,
title: ''
});
// 接收错误信息
const errorHandle = (error) => {
console.log('errorHandle.60===', error);
if (error.code == 702) {
maskShow.value = true;
} else {
maskShow.value = false;
}
};
async function init() {
try {
const res = await Api.tuijianVideo(options);