优化禁用弹窗
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//打包时修改env的值即可
|
//打包时修改env的值即可
|
||||||
const env = 'test' //test,production,local
|
const env = 'production' //test,production,local
|
||||||
|
|
||||||
export const encryptKey = '1234567890123456' // http数据加解密的key
|
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;
|
isShowErrorToast = true;
|
||||||
return Promise.reject(bodyData); // 跳转到catch函数
|
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) {
|
if (bodyData.code == 702) {
|
||||||
return Promise.reject(bodyData); // 跳转到catch函数
|
return Promise.reject(bodyData); // 跳转到catch函数
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -107,6 +107,7 @@ onShow(() => {
|
|||||||
// datas.setindexdata = $common.setversion
|
// datas.setindexdata = $common.setversion
|
||||||
// console.log(datas.setindexdata,'seaeasdas')
|
// console.log(datas.setindexdata,'seaeasdas')
|
||||||
// }
|
// }
|
||||||
|
getrecomVideo();
|
||||||
});
|
});
|
||||||
|
|
||||||
const disableMaskVisable = ref(false);
|
const disableMaskVisable = ref(false);
|
||||||
@@ -139,7 +140,6 @@ let datas = reactive({
|
|||||||
onLoad(() => {
|
onLoad(() => {
|
||||||
versionUpdate();
|
versionUpdate();
|
||||||
getMsg();
|
getMsg();
|
||||||
getrecomVideo();
|
|
||||||
});
|
});
|
||||||
onReady(() => {
|
onReady(() => {
|
||||||
if (!uni.getStorageSync('ruleShow')) {
|
if (!uni.getStorageSync('ruleShow')) {
|
||||||
|
|||||||
@@ -1,7 +1,16 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="min-page">
|
<view class="min-page">
|
||||||
<!-- <up-button @click="toDetail">toDetail</up-button> -->
|
<!-- <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>
|
||||||
<view class="mask" v-if="maskShow">
|
<view class="mask" v-if="maskShow">
|
||||||
<view class="content">
|
<view class="content">
|
||||||
@@ -45,6 +54,17 @@ const state = reactive({
|
|||||||
price: 0,
|
price: 0,
|
||||||
title: ''
|
title: ''
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 接收错误信息
|
||||||
|
const errorHandle = (error) => {
|
||||||
|
console.log('errorHandle.60===', error);
|
||||||
|
if (error.code == 702) {
|
||||||
|
maskShow.value = true;
|
||||||
|
} else {
|
||||||
|
maskShow.value = false;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
async function init() {
|
async function init() {
|
||||||
try {
|
try {
|
||||||
const res = await Api.tuijianVideo(options);
|
const res = await Api.tuijianVideo(options);
|
||||||
|
|||||||
Reference in New Issue
Block a user