zs 2 éve
szülő
commit
c61fbd8525
1 módosított fájl, 11 hozzáadás és 4 törlés
  1. 11 4
      pagesHome/order/detail.vue

+ 11 - 4
pagesHome/order/detail.vue

@@ -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: '提示',