Browse Source

no message

xiaoxin 9 months ago
parent
commit
be810e6ad2
1 changed files with 3 additions and 3 deletions
  1. 3 3
      pages/index/shop/index.vue

+ 3 - 3
pages/index/shop/index.vue

@@ -147,7 +147,7 @@
 								class="cu-item text-lg"
 								:class="index == tabCur ? 'cur' : 'text-gray'"
 								v-for="(item, index) in dataList"
-								:key="index"
+								:key="item.id"
 								@tap="TabSelect"
 								:data-id="index"
 							>
@@ -162,8 +162,8 @@
 							@scroll="VerticalMainFun"
 							@scrolltolower="scrolltolower_right"
 						>
-							<view class="bg-white padding-sm margin-bottom-sm" v-for="(item, index) in dataList" v-if="item.goodsList.length" :key="index" :id="'main-' + index">
-								<view class="flex justify-between padding-bottom-sm" @click="goDet(ite.goodsId)" v-for="(ite, ind) in item.goodsList" :key="ind">
+							<view class="bg-white padding-sm margin-bottom-sm" v-for="(item, index) in dataList" v-if="item.goodsList.length" :key="item.id" :id="'main-' + index">
+								<view class="flex justify-between padding-bottom-sm" @click="goDet(ite.goodsId)" v-for="(ite, ind) in item.goodsList" :key="ite.goodsId">
 									<image :src="ite.goodsCover" mode="aspectFill" style="width: 184rpx; height: 184rpx; border-radius: 10rpx"></image>
 									<view class="flex-sub margin-left-sm padding-tb-xs flex flex-direction justify-between">
 										<view class="text-black text-lg text-bold" style="font-size: 30upx">