فهرست منبع

fix(config): 更新开发环境API配置

- 将开发环境API地址从线上地址切换回测试地址
- 启用 http://47.109.84.152:8081 作为开发环境API
- 注释掉 https://smqjh.api.zswlgz.com 线上地址

fix(order): 修复订单列表渲染key问题

- 将订单列表v-for的key从item.shopId改为item.orderNumber
- 避免因shopId重复导致的列表渲染问题
zhangtao 3 روز پیش
والد
کامیت
54f5a1e8c1
2فایلهای تغییر یافته به همراه3 افزوده شده و 3 حذف شده
  1. 2 2
      src/config/index.ts
  2. 1 1
      src/subPack-xsb/order/index.vue

+ 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',
   /**
    * 体验版
    */

+ 1 - 1
src/subPack-xsb/order/index.vue

@@ -112,7 +112,7 @@ async function handleAfterSale(item: Api.xsbOrderList) {
       </view>
     </view>
     <view class="px24rpx">
-      <view v-for="item in orderList" :key="item.shopId" class="mt20rpx rounded-16rpx bg-white p24rpx">
+      <view v-for="item in orderList" :key="item.orderNumber" class="mt20rpx rounded-16rpx bg-white p24rpx">
         <view class="w-full flex items-center justify-between">
           <view class="flex items-center">
             <image :src="`${StaticUrl}/order-icon.png`" class="h36rpx w36rpx" />