feat(order): add order detail and list pages with components for order management

- Implemented order detail page with components for displaying order status, user info, and refund options.
- Created order list page with pagination and order cards for displaying all orders.
- Added styles for order detail and list pages.
- Developed a prompt document outlining component requirements for the order management system.
- Introduced a new Card component for quick booking with a responsive design.
- Enhanced Tabs component for better navigation between different categories.
- Integrated z-paging for efficient data loading and management in order and quick booking lists.
- Added service order card component for displaying service requests with call functionality.
- Updated main CSS for improved viewport handling.
This commit is contained in:
duanshuwen
2026-05-26 15:38:33 +08:00
parent fa76435e38
commit ad93ca5e8e
194 changed files with 17069 additions and 2 deletions

View File

@@ -0,0 +1,80 @@
<template>
<div class="ai-tab-wrapper">
<div class="tab-container">
<div
class="tab-item is-left"
:class="{ active: modelValue === 0 }"
@tap="handleSwitch(0)"
>
<div class="tab-content">
<img
v-if="leftSelected || leftUnselected"
:src="
modelValue === 0
? leftSelected || leftUnselected
: leftUnselected || leftSelected
"
class="tab-image"
mode="scaleToFill"
/>
<div class="tab-label">
<spanclass="tab-text">探索发现</text>
</div>
</div>
</div>
<div
class="tab-item is-right"
:class="{ active: modelValue === 1 }"
@tap="handleSwitch(1)"
>
<div class="tab-content">
<img
v-if="rightSelected || rightUnselected"
:src="
modelValue === 1
? rightSelected || rightUnselected
: rightUnselected || rightSelected
"
class="tab-image"
mode="scaleToFill"
/>
<div class="tab-label">
<spanclass="tab-text">AI伴游</text>
<div
v-if="showDot"
:class="[
'status-dot',
modelValue === 1
? 'status-dot--active'
: 'status-dot--inactive',
]"
></div>
</div>
</div>
</div>
</div>
</div>
</template>
<script setup>
import leftSelected from "./images/L_02.png";
import leftUnselected from "./images/L_01.png";
import rightSelected from "./images/R_02.png";
import rightUnselected from "./images/R_01.png";
const props = defineProps({
modelValue: { type: Number, default: 0 },
showDot: { type: Boolean, default: true },
});
const emit = defineEmits(["update:modelValue", "change"]);
const handleSwitch = (i) => {
emit("update:modelValue", i);
emit("change", i);
};
</script>
<style lang="scss" scoped>
@import "./styles/index.scss";
</style>