USER-20230908AJ\Administrator 2 年 前
親
コミット
48776ea138
2 ファイル変更、9 行追加、2 行削除
  1. 3 0
      pages-takeout/shop-mod/menu.vue
  2. 6 2
      pages-takeout/shop.vue

+ 3 - 0
pages-takeout/shop-mod/menu.vue

@@ -303,6 +303,9 @@
 							})
 						})
 						// console.log(res)
+            setTimeout(()=>{
+              this.setGoodsNum()
+            },1000)
 					}
 				})
 			},

+ 6 - 2
pages-takeout/shop.vue

@@ -1,5 +1,5 @@
 <template>
-	<view class="shop-index iPhone-bottom flex-common-css box-border-box">
+	<view class="shop-index iPhone-bottom flex-common-css box-border-box ">
 		<image class="bg-img" :src="shopsInfo.shop_logo" mode="aspectFill"></image>
 		<view class="mb-box"></view>
 		<view class="nav-box">
@@ -309,7 +309,11 @@
 					if (res.code === 1) {
 						this.cartData = res.data
 						if (this.shopType === 1) {
-							this.$refs.goodsMenu.setShopIngList(this.cartData)
+              setTimeout(()=>{
+                console.log('我的数据执行了')
+                this.$refs.goodsMenu.setShopIngList(this.cartData)
+              },1000)
+
 						}
 					}
 				})