Ver Fonte

feat(config): 启用试用环境API配置并注释正式环境地址

- 启用 http://47.109.84.152:8081 试用环境API地址
- 注释 https://smqjh.api.zswlgz.com 正式环境API地址

fix(chargeOrderList): 修复充电订单列表渲染问题

- 使用 v-for 循环渲染订单列表组件
- 将单个 chargeList 组件替换为基于 orderList 数据的循环渲染
- 传递每个订单项作为单独的 order 属性给 chargeList 组件
zhangtao há 2 dias atrás
pai
commit
2a372322cd

+ 2 - 2
src/config/index.ts

@@ -17,9 +17,9 @@ const mapEnvVersion = {
    */
   // trial: "http://192.168.1.166:8080/jeecg-boot",
   // trial: 'http://192.168.0.157:8080',
-  // trial: 'http://47.109.84.152:8081',
+  trial: 'http://47.109.84.152:8081',
   // trial: 'http://192.168.1.166:8080',
-  trial: 'https://smqjh.api.zswlgz.com',
+  // trial: 'https://smqjh.api.zswlgz.com',
   /**
    * 正式版
    */

+ 3 - 1
src/subPack-charge/chargeOrderList/chargeOrderList.vue

@@ -74,7 +74,9 @@ function handleChangeTypeNav(value: number) {
       </view>
     </view>
     <view class="box-border px24rpx">
-      <chargeList :order-list="orderList" />
+      <template v-for="item in orderList" :key="item.orderNumber">
+        <chargeList :order="item" />
+      </template>
       <StatusTip v-if="!orderList.length" tip="暂无内容" />
     </view>
   </view>