diff --git a/pages/goods/list.vue b/pages/goods/list.vue index f18fbd1..c18bd83 100644 --- a/pages/goods/list.vue +++ b/pages/goods/list.vue @@ -248,8 +248,12 @@ // 设置默认列表显示方式 this.setShowView() // 设置微信公众号链接分享卡片内容 - this.setWxofficialShareData() - this.getGoodsTypeList(options.categoryId) + this.setWxofficialShareData() + console.log(111,options.categoryId!= 'undefined') + if(options.categoryId != 'undefined'){ + this.getGoodsTypeList(options.categoryId) + } + }, methods: {