修改商品默认sku编码获取

pifa
wangdong 3 months ago
parent 8c70aa238f
commit 7f92a1cefb
  1. 5
      pages/goods/detail.vue
  2. 5
      pages/goods/seckillDetail.vue

@ -1088,7 +1088,10 @@
that.isTodo = true; that.isTodo = true;
that.goods_sku_no = "" that.goods_sku_no = ""
if (info.skuList && info.skuList.length > 0) { if (info.skuList && info.skuList.length > 0) {
that.goods_sku_no = info.skuList[0].goods_sku_no if (info.goods_id) {
that.goods_sku_no = info.skuList.filter(item => item.goods_id === info.goods_id)[0].goods_sku_no;
}
// that.goods_sku_no = info.skuList[0].goods_sku_no
} }
that.allPicture = info.goods_images.length; that.allPicture = info.goods_images.length;
if (type == 1) { if (type == 1) {

@ -979,7 +979,10 @@
that.isTodo = true; that.isTodo = true;
that.goods_sku_no = "" that.goods_sku_no = ""
if (info.skuList && info.skuList.length > 0) { if (info.skuList && info.skuList.length > 0) {
that.goods_sku_no = info.skuList[0].goods_sku_no if (info.goods_id) {
that.goods_sku_no = info.skuList.filter(item => item.goods_id === info.goods_id)[0].goods_sku_no;
}
// that.goods_sku_no = info.skuList[0].goods_sku_no
} }
that.allPicture = info.goods_images.length; that.allPicture = info.goods_images.length;
if (type == 1) { if (type == 1) {

Loading…
Cancel
Save