@@ -309,10 +309,17 @@
if (that.Selected) {
let specs_id;
let specs = that.specs.find(i => i.name == that.Selected)
- if (specs) specs_id = specs._id
- uni.navigateTo({
- url: `/pagesHome/group/index?specs_id=${specs_id}&goods_id=${that.id}`
- })
+ if (specs.can_group == '0') {
+ specs_id = specs._id
+ uni.navigateTo({
+ url: `/pagesHome/group/index?specs_id=${specs_id}&goods_id=${that.id}`
+ })
+ } else {
+ uni.showToast({
+ title: `该规格暂无团购`,
+ icon: 'error'
+ }
} else {
uni.showModal({
title: '提示',