修改商品默认sku编码获取

h5
wangdong 3 months ago
parent f672f0d9b7
commit 9807473c17
  1. 6
      pages/goods/detail.vue
  2. 5
      pages/goods/seckillDetail.vue

@ -828,6 +828,7 @@
},
//
toJDdetal() {
console.log(this.goods_sku_no);
wx.navigateToMiniProgram({
appId: 'wx91d27dbf599dff74',
path: '/pages/item/detail/detail?sku=' + this.goods_sku_no,
@ -1088,7 +1089,10 @@
that.isTodo = true;
that.goods_sku_no = ""
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;
if (type == 1) {

@ -978,7 +978,10 @@
that.isTodo = true;
that.goods_sku_no = ""
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;
if (type == 1) {

Loading…
Cancel
Save