refactor(shop): 更新 API调用和页面逻辑

- 修改了多个文件中的 API调用路径
- 优化了部分组件的显示逻辑
- 添加了优惠券相关功能
-调整了环境变量配置
This commit is contained in:
2025-08-14 01:06:44 +08:00
parent 89cadc3886
commit 2c864ce770
12 changed files with 138 additions and 89 deletions

View File

@@ -3,7 +3,7 @@ import BestSellers from './BestSellers';
import Taro from '@tarojs/taro';
import {useShareAppMessage, useShareTimeline} from "@tarojs/taro"
import {useEffect, useState} from "react";
import {getSiteInfo} from "@/api/layout";
import {getShopInfo} from "@/api/layout";
import {Sticky} from '@nutui/nutui-react-taro'
import Menu from "./Menu";
import Banner from "./Banner";
@@ -84,7 +84,7 @@ function Home() {
useEffect(() => {
// 获取站点信息
getSiteInfo().then(() => {
getShopInfo().then(() => {
})
// Taro.getSetting获取用户的当前设置。返回值中只会出现小程序已经向用户请求过的权限。