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-21 14:44:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
05b1e537d1ec02420892e500ebcbf2c5d1334b6a
05b1e537
1 parent
8e4a713b
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
12 deletions
src/components/roomCard.vue
src/components/roomCard.vue
View file @
05b1e53
<!--
* @Date: 2023-12-13 13:42:23
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-12-21 14:
16:26
* @LastEditTime: 2023-12-21 14:
41:48
* @FilePath: /meihuaApp/src/components/roomCard.vue
* @Description: 房间详情组件
-->
...
...
@@ -73,11 +73,11 @@ const getTodayAndTomorrow = () => {
}
const props = defineProps({
data: {
data: {
// 房间详情
type: Object,
default: {},
},
calenderInfo: {
calenderInfo: {
// 日历信息
type: Object,
default: {
startDate: '',
...
...
@@ -105,6 +105,7 @@ watch(
const dates = getTodayAndTomorrow();
const handleTap = () => {
let id = 'abc';
if (!startDate.value) {
startDate.value = dates.today;
}
...
...
@@ -112,18 +113,12 @@ const handleTap = () => {
endDate.value = dates.tomorrow;
}
Taro.navigateTo({
url: `../detail/index?id=
abc
&start_date=${startDate.value}&end_date=${endDate.value}`,
})
url: `../detail/index?id=
${id}
&start_date=${startDate.value}&end_date=${endDate.value}`,
})
;
}
onMounted(() => {
if (props.calenderInfo) {
startDate.value = props.calenderInfo.startDate;
endDate.value = props.calenderInfo.endDate;
}
// console.warn('选择的日期', props.calenderInfo);
// console.warn('房间详情的属性', props.data);
})
});
</script>
...
...
Please
register
or
login
to post a comment