Browse Source

bug修改 ---wgy

tanxue 1 month ago
parent
commit
bdc4984b23
1 changed files with 5 additions and 3 deletions
  1. 5 3
      pages/chanpinneirong/index.vue

+ 5 - 3
pages/chanpinneirong/index.vue

@@ -228,12 +228,14 @@
 						toast("当前单元节内容全部学习完毕,请切换下一单元!")
 						return
 					}
-					if (!da.jieId) {
+					if (!da.curJieId) {
 						toast("无jieId");
 						return;
 					}
-					jieId = da.jieId;
-					if (da.type == 1) {
+					const firstUncompleted = this.dagangList.find(item => item.jieId == da.curJieId);
+						console.log(firstUncompleted)
+					jieId = da.curJieId;
+					if (firstUncompleted.type == 1) {
 						uni.navigateTo({
 							url: `/pages/xinshuxue/lookShipin?jieId=${jieId}`
 						})