Browse Source

fix: 购物车页在登录后onshow时不能自动刷新购物车问题修复

ext.zhangbin71 1 ngày trước cách đây
mục cha
commit
09ee2e3eda
2 tập tin đã thay đổi với 3 bổ sung8 xóa
  1. 2 2
      config/app.js
  2. 1 6
      pages/order_addcart/order_addcart.vue

+ 2 - 2
config/app.js

@@ -1,6 +1,6 @@
 // let domain = "https://www.shuibeibyg.com/front-api"; // 正式环境IP
-// let domain = "https://test.shuibeibyg.com/front-api"; // 测试环境IP
-let domain = 'http://192.168.100.199:8081' // 晋守桦IP
+let domain = "https://test.shuibeibyg.com/front-api"; // 测试环境IP
+// let domain = 'http://192.168.100.199:8081' // 晋守桦IP
 // let domain = 'http://192.168.100.246:8081' // 韩朝龙IP
 let share = "https://www.shuibeibyg.com";
 

+ 1 - 6
pages/order_addcart/order_addcart.vue

@@ -218,11 +218,6 @@
           <view
             v-if="cartList.invalid.length > 0"
             class="invalidGoods borRadius14"
-            :style="
-              cartList.valid.length === 0 && cartList.invalid.length > 0
-                ? 'position: relative;z-index: 111;top: -120rpx;'
-                : 'position: static;'
-            "
           >
             <view class="goodsNav acea-row row-between-wrapper">
               <view
@@ -413,7 +408,7 @@ const canShow = ref(false);
 const shopCheckbox = ref([]);
 const showProductPopup = ref(false);
 
-const isLogin = appStore.isLogin;
+const isLogin = computed(()=>appStore.isLogin);
 
 // 添加全选的值控制
 const allCheckboxValue = ref([]);