diff --git a/pages/API/loading/loading.uvue b/pages/API/loading/loading.uvue index 47639cd8acd4c79666f466367e62fb0721d036cf..6e6d0753c14d15b832ebd2da2d908d0b18d43668 100644 --- a/pages/API/loading/loading.uvue +++ b/pages/API/loading/loading.uvue @@ -24,9 +24,8 @@ - - + 为方便演示,loading弹出3秒后自动关闭 @@ -86,28 +85,13 @@ mask: this.maskSelect }); } - // #ifdef MP-ALIPAY - this._showTimer && clearTimeout(this._showTimer); - this._showTimer = setTimeout(() => { - this.hideLoading(); - }, 3000) - // #endif - // #ifdef APP-PLUS setTimeout(function () { this.hideLoading(); }, 3000); - // #endif }, hideLoading: function () { uni.hideLoading(); } } - // #ifdef MP-ALIPAY - , - onUnload() { - // 页面卸载的时候,手动关闭loading - this._showTimer && clearTimeout(this._showTimer); - } - // #endif } \ No newline at end of file