Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3f803b662a | |||
| 84b77b3fe6 | |||
| 92f981769f | |||
| f69225dbff |
@@ -57,7 +57,6 @@ const count = computed({
|
|||||||
const totalAmt = computed(() => {
|
const totalAmt = computed(() => {
|
||||||
const { totalDays } = props.selectedDate;
|
const { totalDays } = props.selectedDate;
|
||||||
const { specificationPrice } = props.orderData;
|
const { specificationPrice } = props.orderData;
|
||||||
|
|
||||||
return count.value * Number(specificationPrice) * totalDays;
|
return count.value * Number(specificationPrice) * totalDays;
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -128,11 +128,6 @@ const isDeleting = ref(false); // 标志位,防止删除时watch冲突
|
|||||||
watch(
|
watch(
|
||||||
quantity,
|
quantity,
|
||||||
async (newQuantity) => {
|
async (newQuantity) => {
|
||||||
// 非酒店类型,不处理
|
|
||||||
if (orderData.value.commodityTypeCode !== "0") {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// 如果正在执行删除操作,跳过watch逻辑
|
// 如果正在执行删除操作,跳过watch逻辑
|
||||||
if (isDeleting.value) {
|
if (isDeleting.value) {
|
||||||
isDeleting.value = false;
|
isDeleting.value = false;
|
||||||
|
|||||||
@@ -3,11 +3,21 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.ip {
|
.ip {
|
||||||
|
position: relative;
|
||||||
flex: 0 0 158px;
|
flex: 0 0 158px;
|
||||||
width: 158px;
|
width: 158px;
|
||||||
height: 134px;
|
height: 134px;
|
||||||
animation: sprite-play calc(var(--ipLargeTime) * 1s)
|
animation: sprite-play calc(var(--ipLargeTime) * 1s)
|
||||||
steps(var(--ipLargeImageStep)) infinite;
|
steps(var(--ipLargeImageStep)) infinite;
|
||||||
|
&::before {
|
||||||
|
content: "";
|
||||||
|
position: absolute;
|
||||||
|
background-color: #f9fcfd;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
height: 3px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@keyframes sprite-play {
|
@keyframes sprite-play {
|
||||||
|
|||||||
@@ -3,7 +3,11 @@ import { defineStore } from "pinia";
|
|||||||
export const useSelectedDateStore = defineStore("selectedDate", {
|
export const useSelectedDateStore = defineStore("selectedDate", {
|
||||||
state() {
|
state() {
|
||||||
return {
|
return {
|
||||||
selectedDate: {},
|
selectedDate: {
|
||||||
|
startDate: "",
|
||||||
|
endDate: "",
|
||||||
|
totalDays: 1,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user