diff --git a/packages/shop/goods/index.css b/packages/shop/goods/index.css index 25895368..13f291c2 100644 --- a/packages/shop/goods/index.css +++ b/packages/shop/goods/index.css @@ -24,15 +24,15 @@ image { } .isDay { - background-color: orangered; - height: 35rpx; - border-radius: 5rpx; - color: white; - font-size: 22rpx; - text-align: center; - justify-content: center; - padding: 5rpx 10rpx; - display: flex; + background-color: orangered; + height: 35rpx; + border-radius: 5rpx; + color: white; + font-size: 22rpx; + text-align: center; + justify-content: center; + padding: 5rpx 10rpx; + display: flex; } .tag { @@ -188,7 +188,7 @@ image { margin: 0 20rpx; margin-top: 20rpx; font-weight: 700; - display: flex; + display: flex; } .Msg { @@ -598,15 +598,17 @@ image { margin: 5rpx 5rpx 0 5rpx; } +.itemSizeBox { + margin: 30rpx; +} + .itemSize { - width: 30%; font-size: 26rpx; color: #333; background: #F6F7FB; border-radius: 40rpx; padding: 10rpx 15rpx; white-space: nowrap; - margin:20rpx 30rpx; } .itemSize_active { @@ -614,15 +616,14 @@ image { color: #fff; } -.itemSize-img{ +.itemSize-img { width: 100rpx; height: 100rpx; margin-right: 30rpx; border-radius: 20rpx; - border:1rpx solid red; } -.itemSize_top{ +.itemSize_top { display: flex; margin-left: 30rpx; } diff --git a/packages/shop/goods/index.vue b/packages/shop/goods/index.vue index 487a803c..da5955ee 100644 --- a/packages/shop/goods/index.vue +++ b/packages/shop/goods/index.vue @@ -39,7 +39,7 @@ {{ item.goods_spec }} / {{ item.goods_unit }} - + 共{{ info.commodity_goods_info_list.length }}款 @@ -297,9 +297,9 @@ ¥{{ changePrice }}/袋 - - {{ item.goods_name }} {{ item.goods_spec }} / {{ item.goods_unit }} + + {{ item.goods_name }} {{ item.goods_spec }} / {{ item.goods_unit }} @@ -459,7 +459,7 @@ export default { console.log("this.currentGG", this.currentGG); this.currentGGIndex = 0; - this.changeImg = this.currentGG.commodity_pic[0] + this.changeImg = picUrl + this.currentGG.commodity_pic[0] this.changeName = this.currentGG.goods_alias this.changePrice = this.currentGG.sales_price }); @@ -490,7 +490,7 @@ export default { count: 0 }; } - this.changeImg = item.commodity_pic[0] + this.changeImg = picUrl + item.commodity_pic[0] this.changeName = item.goods_alias this.changePrice = item.sales_price this.getComment(item.goods_id)