Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
meihua-island-book
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2023-12-28 10:02:57 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0e599085726911fb291db56e11fecf6c60a1e796
0e599085
1 parent
cc28a6cc
fix 暂时屏蔽加载中
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
15 deletions
src/pages/book/index.vue
src/pages/index/index.vue
src/pages/my/index.vue
src/pages/book/index.vue
View file @
0e59908
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-27 1
5:37:50
* @LastEditTime: 2023-12-27 1
9: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();
}
});
},
...
...
src/pages/index/index.vue
View file @
0e59908
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-2
6 16:11:45
* @LastEditTime: 2023-12-2
7 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 () { // 离开当前页面
...
...
src/pages/my/index.vue
View file @
0e59908
<!--
* @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();
...
...
Please
register
or
login
to post a comment