hookehuyr

fix 暂时屏蔽加载中

<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-27 15:37:50
* @LastEditTime: 2023-12-27 19:44:33
* @FilePath: /meihuaApp/src/pages/book/index.vue
* @Description: 订房页面
-->
......@@ -129,14 +129,14 @@ export default {
name: "bookPage",
mixins: [mixin.init],
async onShow () {
Taro.showLoading({ mask: true, title: "加载中..." });
// Taro.showLoading({ mask: true, title: "加载中..." });
// 获取活动和轮播信息
const { code, data } = await getListAPI({ page: this.page, limit: this.limit });
if (code) {
this.bookList = data;
this.page = this.page + 1;
Taro.hideLoading();
console.warn('onShow');
// Taro.hideLoading();
// console.warn('onShow');
}
},
onHide () { // 离开当前页面
......@@ -153,9 +153,9 @@ export default {
},
},
mounted () {
Taro.showLoading({
title: '加载中',
});
// Taro.showLoading({
// title: '加载中',
// });
// 设置首页封面高度
const windowHeight = wx.getSystemInfoSync().windowHeight;
// 处理切换显示白屏问题
......@@ -167,8 +167,7 @@ export default {
const calHeight = await $('#book-cal').height();
this.indexCoverHeight = windowHeight - navHeight - calHeight;
if (this.$refs.refScrollView) {
Taro.hideLoading();
console.warn('加载完成');
// Taro.hideLoading();
}
});
},
......
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-26 16:11:45
* @LastEditTime: 2023-12-27 19:44:09
* @FilePath: /meihuaApp/src/pages/index/index.vue
* @Description: 首页
-->
......@@ -96,13 +96,13 @@ export default {
});
},
async onShow () {
Taro.showLoading({ mask: true, title: "加载中..." })
// Taro.showLoading({ mask: true, title: "加载中..." })
// 获取活动和轮播信息
const { code, data } = await getListAPI({ page: this.page, limit: this.limit });
if (code) {
this.room_list = data;
this.page = this.page + 1;
Taro.hideLoading()
// Taro.hideLoading()
}
},
onHide () { // 离开当前页面
......
<!--
* @Date: 2023-12-13 11:13:13
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-27 19:30:49
* @LastEditTime: 2023-12-27 19:45:07
* @FilePath: /meihuaApp/src/pages/my/index.vue
* @Description: 我的页面
-->
......@@ -118,13 +118,13 @@ export default {
},
},
async onShow () {
Taro.showLoading({ mask: true, title: "加载中..." })
// Taro.showLoading({ mask: true, title: "加载中..." })
// 获取活动和轮播信息
const { code, data } = await myOrderAPI({ page: this.page, limit: this.limit, pay_type: this.tab_index });
if (code) {
this.order_list = data;
this.page = this.page + 1;
Taro.hideLoading()
// Taro.hideLoading()
}
// 获取系统参数
const sysData = await sysParamAPI();
......