ZZJ
2022-07-14 2b99047683332624832c1dfcae596e957a710b7d
src/components/Connect.vue
@@ -13,14 +13,11 @@
        </div>
        <div class="teleNum">010-84155885</div>
      </div>
      <router-link to="/connectUs">
        <div class="advice">
          <div class="title">
            <span class="iconfont">&#xe612;</span>建议反馈
          </div>
          <div class="des">您的每一条建议声音,我们都认真对待</div>
        </div>
      </router-link>
      <div class="advice" @click="jump1()">
        <div class="title"><span class="iconfont">&#xe612;</span>建议反馈</div>
        <div class="des">您的每一条建议声音,我们都认真对待</div>
      </div>
    </div>
    <div
@@ -30,7 +27,9 @@
    >
      <span class="iconfont">&#xe611;</span>联系我们
    </div>
    <div class="backToTop iconfont" v-if="showConnect" @click="backToTop">&#xe610;</div>
    <div class="backToTop iconfont" v-if="showConnect" @click="backToTop">
      &#xe610;
    </div>
  </div>
</template>
@@ -45,7 +44,7 @@
  created() {
    window.addEventListener("scroll", this.scrollListener);
  },
   destroyed() {
  destroyed() {
    window.removeEventListener("scroll", this.scrollListener);
  },
  methods: {
@@ -79,7 +78,7 @@
        _this.isShowConnectBox = false;
      }, 100);
    },
     //添加滚动监听
    //添加滚动监听
    scrollListener() {
      //页面滑动触发事件 (滚动条移动则调用是否显示返回顶部按钮事件)
      var a = document.documentElement.clientHeight; // 滚动容器的可视高
@@ -95,6 +94,9 @@
      //检查滚动条是否在顶部,控制返回顶部按钮的隐藏和显示
    },
    jump1() {
      window.open("http://smartai.com/contact");
    },
  },
};
</script>