优化禁用弹窗
This commit is contained in:
@@ -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