自营商家和合作商家入口分开,添加智能柜角色切换

This commit is contained in:
weiwei committed 2025-04-22 18:31:18 +08:00
1 parent e34cc2736c
commit 1a74921af9
5 files changed
+119 -96

No files matched your search

+6 -3
View File
@@ -3,11 +3,12 @@ import { ref, reactive } from "vue"
import { onLoad, onShow } from "@dcloudio/uni-app"
import { hooks, router } from "@@/index"
import { orderApi, payApi } from "@@/api"
import { orderApi } from "@@/api"
import { filePath } from "@@/utils/file"
import zTabs from "@@/components/other/z-tabs/z-tabs.vue"
import getLaunchParam from "@/sheep/utils/getLaunchParam"
const data = {
tabs: [
@@ -44,9 +45,11 @@ const doTab = (e: any) => {
const pageRef = ref<any>(null)
const pageHook = hooks.usePage(
pageRef,
new URL(window.location.href).searchParams.get("launchParam") == "canteen"
getLaunchParam() == "canteen"
? orderApi.caneenPage
: new URL(window.location.href).searchParams.get("launchParam") == "selfMerchant"
: getLaunchParam() == "selfMerchant"
? orderApi.supPage
: getLaunchParam() == "coopMerchant"
? orderApi.supPage
: async () => [],
null,