1
admin
2026-01-14 3b4f810acdcf7db659497d8085eacb21832dbba4
src/components/tabHead.vue
@@ -1,7 +1,7 @@
<template>
  <div class="tab_head">
    <div class="head_left">
      <div class="icon" @click="searchShow = true" v-if="leftShow">
    <div class="head_left flex-center">
      <div class="icon" @click="searchShow = true" v-if="leftShow" style="margin-right:.2666rem;">
        <van-icon name="search" size=".5em" />
      </div>
      <slot name="left"></slot>
@@ -57,6 +57,7 @@
<script>
import * as api from "@/axios/api";
import handleDt from "@/utils/deTh";
import { Toast } from "vant";
export default {
  name: "tabHead",
  data() {
@@ -67,7 +68,8 @@
      loading: false, // 是否加载
      finished: true, // 是否加载完成
      pageNum: 1,
      pageSize: 20
      pageSize: 20,
      onlineService: 'https://line.me/ti/p/my2nFFp9TB'
    };
  },
  props: {
@@ -90,12 +92,13 @@
  },
  async mounted() {
    this.init();
    this.getInfoSite();
    // this.getInfoSite();
  },
  methods: {
    // 跳转客服页面
    aRouter1() {
      window.open(this.onlineService);
      // Toast(this.$t("kf1"));
    },
    // 获取客服地址
    async getInfoSite() {
@@ -168,7 +171,7 @@
          type: item.stock_type
        }
      });
    },
    }
  }
};
</script>