|
@@ -11,7 +11,7 @@
|
|
|
<ui-icon type="preview" @click.stop="playTour"></ui-icon>
|
|
|
<div>導覽</div>
|
|
|
</li>
|
|
|
- <li v-for="(item, i) in menulist" :key="i">
|
|
|
+ <li @click.stop="onClickMenu(item)" v-for="(item, i) in menulist" :key="i">
|
|
|
<ui-icon :type="item.icon"></ui-icon>
|
|
|
<div>{{ item.name }}</div>
|
|
|
</li>
|
|
@@ -68,6 +68,7 @@ import { onMounted, watch, computed, reactive, ref, nextTick } from "vue";
|
|
|
import Panel from "@/views/Panel.vue";
|
|
|
import { useApp, getApp } from "@/app";
|
|
|
import * as apis from "@/apis/index.js";
|
|
|
+import browser from "@/utils/browser";
|
|
|
|
|
|
const store = useStore();
|
|
|
|
|
@@ -108,20 +109,29 @@ const player = computed(() => store.getters["player"]);
|
|
|
|
|
|
const tours = computed(() => store.getters["tour/tours"]);
|
|
|
|
|
|
-const menulist = ref([
|
|
|
- {
|
|
|
- icon: "customer_service",
|
|
|
- name: "客服",
|
|
|
- },
|
|
|
- // {
|
|
|
- // icon: "guided_shopping",
|
|
|
- // name: "导购",
|
|
|
- // },
|
|
|
- {
|
|
|
- icon: "shopping",
|
|
|
- name: "购物",
|
|
|
- },
|
|
|
-]);
|
|
|
+const menulist = computed(() => {
|
|
|
+ let fff = [
|
|
|
+ {
|
|
|
+ icon: "customer_service",
|
|
|
+ id: "kefu",
|
|
|
+ name: "客服",
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // icon: "guided_shopping",
|
|
|
+ // name: "导购",
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ icon: "shopping",
|
|
|
+ id: "shopping",
|
|
|
+ name: "购物",
|
|
|
+ },
|
|
|
+ ];
|
|
|
+
|
|
|
+ if (browser.detectWeixinMiniProgram()) {
|
|
|
+ fff.shift();
|
|
|
+ }
|
|
|
+ return fff;
|
|
|
+});
|
|
|
|
|
|
const categorylist = ref([]);
|
|
|
|
|
@@ -211,6 +221,14 @@ const brandScroll = () => {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
+const onClickMenu = (item) => {
|
|
|
+ if (item.id == "kefu") {
|
|
|
+ browser.openLink("", "https://wpa1.qq.com/Pi0jD8Ev?_type=wpa&qidian=true");
|
|
|
+ } else if (item.id == "shopping") {
|
|
|
+ browser.openLink("/subPackage/pages/shoppingcart/shoppingcart", "https://m.cdfmembers.com/shop/600667208/shoppingcart");
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
const getCategorylist = async () => {
|
|
|
let res = await apis.get_category_list({});
|
|
|
categorylist.value = res.data;
|
|
@@ -226,8 +244,6 @@ const onClickShop = (item) => {
|
|
|
window.location.href = "".concat(window.location.pathname, "?").concat(`m=${item.sceneUrl}&novideo=1&${item.inPosition}`);
|
|
|
};
|
|
|
|
|
|
-
|
|
|
-
|
|
|
watch(
|
|
|
() => currentCategory,
|
|
|
(val, old) => {
|