shaogen1995 2 лет назад
Родитель
Сommit
3a4860d16f

+ 4 - 0
后台/src/pages/A3Book/index.module.scss

@@ -3,6 +3,10 @@
 
   :global {
     .searchBox {
+      // 隐藏时间选择器
+      opacity: 0;
+      pointer-events: none;
+      
       display: flex;
       justify-content: space-between;
     }

+ 6 - 1
后台/src/pages/A3Book/index.tsx

@@ -20,7 +20,9 @@ function A3Book() {
 
   const getListFu = useCallback(() => {
     // console.log("发送请求", formData);
-    dispatch(A3API_getList(formData));
+    // dispatch(A3API_getList(formData));
+    // 隐藏时间选择器
+    dispatch(A3API_getList({ ...formData, startTime: "", endTime: "" }));
   }, [dispatch, formData]);
 
   useEffect(() => {
@@ -75,6 +77,9 @@ function A3Book() {
       ...formData,
       pageNum: 1,
       pageSize: 99999,
+      // 隐藏时间选择器
+      startTime: "",
+      endTime: "",
     });
 
     if (res.code === 0) {

+ 4 - 6
后台/src/pages/Z1Gather/index.tsx

@@ -88,12 +88,10 @@ function Z1Gather() {
             }
           } else {
             // 直接打开这个页面
-            window.opener = null;
-            window.open("", "_self");
-            window.close();
-            window.open(
-              `${baseURL}/webHot/index.html#/?m=e3bv6739474&time=1681093455388&id=1172_1&q=1`
-            );
+            window.location.href = `${baseURL}/webHot/index.html#/?m=e3bv6739474&time=1681093455388&id=1172_1&q=1&t=1`;
+            setTimeout(() => {
+              window.location.reload();
+            }, 200);
           }
         }, 500);
       }

+ 5 - 1
定制化热点/src/views/Home.vue

@@ -9,7 +9,7 @@
       </div>
       <!-- 中文版打开新窗口 -->
       <div class="xiazai" v-else @click="openNewUrl">
-        <img src="../assets/images/xiazai.png" alt="" />下载速霸CX 104产品手册
+        <img src="../assets/images/xiazai.png" alt="" />下载手册
       </div>
       <!-- 内容简介 -->
       <div class="content" v-html="content"></div>
@@ -118,6 +118,8 @@ export default {
   components: { Swiper, SwiperSlide, Device },
   data() {
     return {
+      // 从微信直接扫码进来
+      isT: this.$route.query.t,
       // 直接进来还是通过热点进来
       isQ: this.$route.query.q,
 
@@ -311,6 +313,8 @@ export default {
   },
   mounted() {
     this.getData();
+    // 从微信直接打开
+    if (this.isT) this.devieShow = true;
   },
   beforeCreate() {}, //生命周期 - 创建之前
   beforeMount() {}, //生命周期 - 挂载之前