Browse Source

修改详情页面

wangxy 1 month ago
parent
commit
116110faf9
1 changed files with 10 additions and 0 deletions
  1. 10 0
      pages/chanpinneirong/index.vue

+ 10 - 0
pages/chanpinneirong/index.vue

@@ -91,6 +91,16 @@
 			getBanbenInfo() {
 				banbenImpinfo({}).then(res => {
 					if (res.code == 0) {
+						console.log('res',res)
+						if (res.data.chanpinId == 0) {
+							toast('请先进行选课!')
+							uni.switchTab({
+								url: '/pages/chanpinXuanze/index'
+							})
+							return;
+						}
+						
+						
 						this.chanpinId = res.data.chanpinId
 						this.switchGetNeiRongInfo(res.data)
 					} else {