فهرست منبع

🔧 chore(env): 更新开发环境API基础URL

- 将TARO_APP_API_BASE_URL从template-6-group更新为template-22-group

💄 style(index): 添加高度样式类

- 新增.height80类(80rpx高度)
- 新增.height130类(130rpx高度)

✨ feat(index): 添加底部占位视图和TabBar组件

- 导入TabBar组件
- 在页面底部添加height130高度的占位视图
yourname 1 ماه پیش
والد
کامیت
ee12baa76f
3فایلهای تغییر یافته به همراه11 افزوده شده و 1 حذف شده
  1. 1 1
      mini/.env.development
  2. 7 0
      mini/src/pages/index/index.css
  3. 3 0
      mini/src/pages/index/index.tsx

+ 1 - 1
mini/.env.development

@@ -3,7 +3,7 @@
 
 # API配置
 # 需换成当前项目的
-TARO_APP_API_BASE_URL=https://d8d-ai-vscode-8080-186-175-template-6-group.r.d8d.fun
+TARO_APP_API_BASE_URL=https://d8d-ai-vscode-8080-186-175-template-22-group.r.d8d.fun
 TARO_APP_API_VERSION=v1
 
 # 租户ID

+ 7 - 0
mini/src/pages/index/index.css

@@ -99,4 +99,11 @@
 .no-more-text {
   color: #999;
   font-size: 24rpx;
+}
+
+.height80{
+  height: 80rpx;
+}
+.height130{
+  height: 130rpx;
 }

+ 3 - 0
mini/src/pages/index/index.tsx

@@ -13,6 +13,7 @@ import { useCart } from '@/contexts/CartContext'
 import { Navbar } from '@/components/ui/navbar'
 import { Carousel } from '@/components/ui/carousel'
 import Taro, { usePullDownRefresh, useReachBottom } from '@tarojs/taro'
+import { TabBar } from '@/components/ui/tab-bar'
 
 type GoodsResponse = InferResponseType<typeof goodsClient.$get, 200>
 type Goods = GoodsResponse['data'][0]
@@ -255,7 +256,9 @@ const HomePage: React.FC = () => {
               )}
             </>
           )}
+          <View className="height130"></View>
         </View>
+        
       </ScrollView>
     </TabBarLayout>
   )