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-26 18:09:11 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
750c39592566a92ba57cac762defc2105243d7aa
750c3959
1 parent
83194dc5
修复订房获取列表日历查询问题
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
src/components/calendarSelect.vue
src/pages/book/index.vue
src/pages/payInfo/index.vue
src/components/calendarSelect.vue
View file @
750c395
...
...
@@ -143,7 +143,7 @@ const getDayDifference = (startDate, endDate) => {
// 调用方法获取今天和明天的日期
const dates = getTodayAndTomorrow();
const emit = defineEmits(['on-dates-change']);
const emit = defineEmits(['on-dates-change'
, 'on-dates-close'
]);
const props = defineProps({
startDate: {
...
...
@@ -202,6 +202,7 @@ const openSwitch = (param) => {
};
const closeSwitch = (param) => {
state[`${param}`] = false;
emit('on-dates-close');
};
/**
...
...
src/pages/book/index.vue
View file @
750c395
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-26 1
1:15:09
* @LastEditTime: 2023-12-26 1
8:08:01
* @FilePath: /meihuaApp/src/pages/book/index.vue
* @Description: 订房页面
-->
...
...
@@ -9,7 +9,7 @@
<view class="book-page">
<view id="book-content" class="book-content">
<view id="book-cal" class="book-cal">
<calendar-select @on-dates-change="onDatesChange"></calendar-select>
<calendar-select @on-dates-change="onDatesChange"
@on-dates-close="onDatesClose"
></calendar-select>
</view>
<view class="book-type">
<!-- <nut-tabs v-model="value" @click="onTabClick" title-scroll title-gutter="10" name="tabName" background="#FFF" color="#4C2E08" animated-time="0">
...
...
@@ -80,13 +80,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()
Taro.hideLoading();
console.warn('onShow');
}
},
onHide () { // 离开当前页面
...
...
@@ -139,6 +140,8 @@ export default {
startDate,
endDate
}
},
onDatesClose () {
// 重置列表
this.flag = true;
this.page = 1;
...
...
src/pages/payInfo/index.vue
View file @
750c395
<!--
* @Date: 2023-12-15 14:03:40
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-
18 16:54:46
* @LastEditTime: 2023-12-
26 17:58:58
* @FilePath: /meihuaApp/src/pages/payInfo/index.vue
* @Description: 文件描述
-->
...
...
@@ -23,7 +23,7 @@ import { ref, onMounted } from "vue";
onMounted(() => {
setTimeout(() => {
Taro.re
directTo
({
Taro.re
Launch
({
url: '/pages/my/index',
})
}, 2000);
...
...
Please
register
or
login
to post a comment