|
@@ -1,7 +1,7 @@
|
|
|
import { Swiper, SwiperItem, View, Image, Video } from "@tarojs/components";
|
|
|
-import Taro, { FC, pxTransform, useDidShow } from "@tarojs/taro";
|
|
|
+import Taro, { FC, pxTransform } from "@tarojs/taro";
|
|
|
import classNames from "classnames";
|
|
|
-import { useEffect, useRef, useState } from "react";
|
|
|
+import { useRef, useState } from "react";
|
|
|
import TitleImg1 from "./images/tab2@2x-min.png";
|
|
|
import TitleImg2 from "./images/tab1@2x-min.png";
|
|
|
import TitleImg3 from "./images/tab3@2x-min.png";
|
|
@@ -68,14 +68,6 @@ const BannerPage: FC = () => {
|
|
|
const isFirstMove = useRef(true);
|
|
|
const [visitVisible, setVisitVisible] = useState(false);
|
|
|
|
|
|
- useEffect(() => {
|
|
|
- console.log("mount", Taro.getSystemInfoSync());
|
|
|
-
|
|
|
- return () => {
|
|
|
- console.log("unmount");
|
|
|
- };
|
|
|
- }, []);
|
|
|
-
|
|
|
const handleClick = (idx: number) => {
|
|
|
if (idx !== active) return;
|
|
|
|