优化禁用弹窗
This commit is contained in:
@@ -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
@@ -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函数
|
||||
}
|
||||
|
||||
@@ -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')) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user