From 7420ab585250d752c06fe00b4eb3fd577500b69f Mon Sep 17 00:00:00 2001 From: jiannibang <271381693@qq.com> Date: Fri, 21 Jul 2023 13:40:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=94=AF=E6=8C=81=E5=BA=97=E9=93=BA?= =?UTF-8?q?=E6=8C=89=E5=9C=B0=E5=9B=BE=E9=85=8D=E8=89=B2=E3=80=81=E4=B8=8D?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=BA=97=E9=93=BA=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 4 ++-- package.json | 2 +- src/components/Floors/Floors.js | 2 +- src/components/ShopList/ShopList.js | 37 ++++++++++------------------- src/components/SideBar/SideBar.scss | 1 + src/js/helpers/data-helper.js | 8 +++---- src/pages/Index/Index.js | 2 ++ src/qmmap | 2 +- 8 files changed, 25 insertions(+), 33 deletions(-) diff --git a/package-lock.json b/package-lock.json index ccd105b..d4e8608 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "iot-qmplaza", + "name": "syk11-ar-react", "version": "0.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "iot-qmplaza", + "name": "syk11-ar-react", "version": "0.1.0", "dependencies": { "antd-mobile": "^2.3.4", diff --git a/package.json b/package.json index f2e6985..dcea312 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "syk11-ar-react", + "name": "chengduskp-ar-react", "version": "0.1.0", "private": true, "homepage": "./", diff --git a/src/components/Floors/Floors.js b/src/components/Floors/Floors.js index 4a8a77e..637787c 100644 --- a/src/components/Floors/Floors.js +++ b/src/components/Floors/Floors.js @@ -60,7 +60,7 @@ const Floors = ({ onClickFloor(index); }} > - {name} + {name === "景观层" ? "景观" : name} ))} diff --git a/src/components/ShopList/ShopList.js b/src/components/ShopList/ShopList.js index 85a81c8..b602b67 100644 --- a/src/components/ShopList/ShopList.js +++ b/src/components/ShopList/ShopList.js @@ -1,8 +1,6 @@ -import React, { useState, useRef } from "react"; +import React, { useRef } from "react"; import Shop from "../Shop/Shop"; import "./ShopList.scss"; -import InfiniteScroll from "react-infinite-scroller"; - const ShopList = ({ mall, q, @@ -12,7 +10,6 @@ const ShopList = ({ format = null, floorOrder = null, }) => { - const [index, setIndex] = useState(0); const shops = mall.shopInfo.reduce( (acc, { shopList }) => acc.concat(shopList), [] @@ -55,26 +52,18 @@ const ShopList = ({ const listRef = useRef(null); return (