feat: 新增更多服务弹窗

This commit is contained in:
duanshuwen
2025-10-15 21:35:54 +08:00
parent e9dbb3d44f
commit afb124ee19
7 changed files with 159 additions and 6 deletions

View File

@@ -19,36 +19,41 @@
</template>
<script setup>
import { onMounted, ref } from "vue";
import { ref } from "vue";
import { currentClientType, ClientType } from "@/constant/base";
const itemList = ref([
{
icon: "",
title: "快速预定",
type: "Command.quickBooking",
type: "quickBooking",
},
{
icon: "",
title: "探索发现",
type: "Command.discovery",
type: "discovery",
},
{
icon: "",
title: "呼叫服务",
type: "Command.callService",
type: "callService",
},
{
icon: "https://oss.nianxx.cn/mp/static/version_101/home/more.png",
title: "更多",
type: "Command.more",
type: "more",
},
]);
const emits = defineEmits(["replySent"]);
const sendReply = (item) => {
emits("replySent", item); // 向父组件传递数据
if (item.type === "more") {
uni.$emit("SHOW_MORE_POPUP");
return;
}
emits("replySent", item);
};
// onMounted(() => {