Sfoglia il codice sorgente

```
feat(config): 更新开发环境API地址

将开发环境的API地址从测试服务器切换到正式域名
- 注释掉旧的IP地址配置 http://47.109.84.152:8081
- 启用新的HTTPS域名配置 https://smqjh.api.zswlgz.com

feat(router): 添加充电功能子包路由配置

新增充电功能的分包配置,包括页面路径、导航样式等设置,
并在主包中注册该子包,同时更新类型定义文件

refactor(index): 调整首页充电模块跳转逻辑

修改首页底部导航栏中充电图标的跳转逻辑,
移除在线审核状态限制,并修复敬请期待遮罩层显示条件
```

zouzexu 1 giorno fa
parent
commit
40035e8664

+ 2 - 2
src/config/index.ts

@@ -7,8 +7,8 @@ const mapEnvVersion = {
   // develop: 'http://192.168.0.157:8080',
   // develop: 'http://192.168.1.253:8080',
   // develop: 'http://192.168.1.89:8080', // 田
-  develop: 'http://47.109.84.152:8081',
-  // develop: 'https://smqjh.api.zswlgz.com',
+  // develop: 'http://47.109.84.152:8081',
+  develop: 'https://smqjh.api.zswlgz.com',
   /**
    * 体验版
    */

+ 16 - 0
src/pages.json

@@ -306,6 +306,22 @@
           }
         }
       ]
+    },
+    {
+      "root": "subPack-charge",
+      "pages": [
+        {
+          "path": "index/index",
+          "type": "page",
+          "name": "charge-index",
+          "islogin": false,
+          "style": {
+            "navigationStyle": "custom",
+            "navigationBarTitleText": "",
+            "backgroundColorBottom": "#fff"
+          }
+        }
+      ]
     }
   ]
 }

+ 2 - 2
src/pages/index/index.vue

@@ -55,7 +55,7 @@ onReachBottom(() => {
 const navList = computed(() => {
   const list = [
     { icon: `${StaticUrl}/xsb.png`, title: '星闪豹', name: 'xsb-homeTabbar', show: true },
-    { icon: `${StaticUrl}/smqjh-index-cd.png`, title: '充电', name: '', show: !isOnlineAudit.value },
+    { icon: `${StaticUrl}/smqjh-index-cd.png`, title: '充电', name: 'charge-index', show: true }, // !isOnlineAudit.value
     { icon: `${StaticUrl}/smqjh-sp.png`, title: '电影演出', name: '', show: !isOnlineAudit.value },
     { icon: `${StaticUrl}/smqjh-vip.png`, title: '视频权益', name: '', show: !isOnlineAudit.value },
     { icon: `${StaticUrl}/smqjh-diancan.png`, title: '大牌点餐', name: '', show: !isOnlineAudit.value },
@@ -159,7 +159,7 @@ function handleGo() {
                 <view class="relative h120rpx w120rpx">
                   <image :src="item.icon" class="h120rpx w120rpx" />
                   <view
-                    v-if="item.title != '星闪豹'"
+                    v-if="item.name == ''"
                     class="linebg absolute left-0 top-0 h-full w-full flex items-center justify-center rounded-32rpx text-24rpx text-white font-semibold"
                   >
                     敬请期待

+ 29 - 0
src/subPack-charge/index/index.vue

@@ -0,0 +1,29 @@
+<script setup lang="ts">
+import router from '@/router'
+
+definePage({
+  name: 'charge-index',
+  islogin: false,
+  style: {
+    navigationStyle: 'custom',
+    navigationBarTitleText: '',
+    backgroundColorBottom: '#fff',
+  },
+})
+</script>
+
+<template>
+  <view class="180deg, #E2FF91 0%, rgba(158,214,5,0) 100%) bg-linear-gradient(">
+    <wd-navbar
+      title="" custom-style="background-color: rgba(158,214,5,1);" :bordered="false" :z-index="99"
+      safe-area-inset-top left-arrow fixed @click-left="router.back()"
+    />
+  </view>
+
+  <view>
+    充电列表
+  </view>
+</template>
+
+<style scoped lang="scss">
+</style>

+ 2 - 1
src/uni-pages.d.ts

@@ -28,7 +28,8 @@ type _LocationUrl =
   "/subPack-common/revalue/index" |
   "/subPack-common/revalueSuccess/index" |
   "/subPack-common/user-center/index" |
-  "/subPack-smqjh/order/index";
+  "/subPack-smqjh/order/index" |
+  "/subPack-charge/index/index";
 
 interface NavigateToOptions {
   url: _LocationUrl;

+ 1 - 0
vite.config.ts

@@ -27,6 +27,7 @@ export default async () => {
           'src/subPack-xsb',
           'src/subPack-common',
           'src/subPack-smqjh',
+          'src/subPack-charge',
         ],
         /**
          * 排除的页面,相对于 dir 和 subPackages