Bladeren bron

no message

xiaoxin 11 maanden geleden
bovenliggende
commit
d82a829cc6
2 gewijzigde bestanden met toevoegingen van 5 en 4 verwijderingen
  1. 1 1
      pages/index/index.vue
  2. 4 3
      pages/index/shop/index.vue

+ 1 - 1
pages/index/index.vue

@@ -170,7 +170,7 @@
 				<view class="margin-tb-sm flex justify-between bg-white padding-sm radius"
 					v-for="(item,index) in shopList" :key='index'
 					@click="goShopDet(item.shopId,item,item.shopActivityList)">
-					<image :src="item.shopCover[0]" class="radius" style="width: 160rpx;height: 160rpx;"></image>
+					<image :src="item.shopCover[0]" class="radius" style="width: 160rpx;height: 160rpx;" mode="aspectFill"></image>
 					<view class=" margin-left-sm" style="width: 450rpx;">
 						<view class=" flex flex-direction justify-between">
 							<view class="text-lg text-bold text-black">{{item.shopName}}</view>

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

@@ -917,6 +917,7 @@ export default {
 			let data = {
 				goodsId: item.goodsId
 			}
+			console.log(data)
 			this.$Request.get('/app/goods/selectGoodsById', data).then((res) => {
 				uni.hideLoading()
 				if (res.code == 0) {
@@ -983,9 +984,11 @@ export default {
 					}
 				}
 			})
+			console.log(this.checkString)
+			console.log(this.skuList)
 			for (var i = 0; i < this.skuList.length; i++) {
 				let d = this.skuList[i]
-				console.log(this.skuList[i], 'l')
+				// console.log(this.skuList[i], 'l')
 				if (d.detailJson == this.checkString) {
 					console.log(d.detailJson, this.checkString)
 					// if (d.stock > 0) {
@@ -1017,9 +1020,7 @@ export default {
 			}
 
 			if (this.attrList.length) {
-				console.log(this.checkString, this.CheckattrValue, '规格')
 				if (this.checkString == '' || !this.CheckattrValue) {
-					console.log(this.checkString, this.CheckattrValue, '规格')
 					this.$queue.showToast('请选择正确的商品规格')
 					return
 				}