Эх сурвалжийг харах

fix:视频试卷还没有学习就显示不合格

xuqiaoying 3 жил өмнө
parent
commit
604af0a3f4

+ 2 - 2
common/request.js

@@ -6,11 +6,11 @@ var num = 1
 //接口api   
 // export const BASE_URL = 'https://api.xyyxt.net'   //release
 // export const BASE_URL = 'https://test.xyyxt.net'   //预发布
-export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
+// export const BASE_URL = 'http://120.79.166.78:19012' // 测试环境
 // export const BASE_URL = 'http://42.192.164.187:19005'    //test(后端本地)
 // export const BASE_URL = 'http://192.168.1.222:5055'    //后端本地更新到222
 // export const BASE_URL = 'http://192.168.1.24:5055'    //后端本地
-// export const BASE_URL = 'http://192.168.1.7:5055'    //后端本地
+export const BASE_URL = 'http://192.168.1.7:5055'    //后端本地
 
  //图片上传api
 // export const BASE_IMG_URL = 'https://file.xyyxt.net/'     //release

+ 3 - 1
components/course/courseModule.vue

@@ -47,7 +47,8 @@
 							>
 							
 								<text v-if="itemM.learning == 1">合格</text>
-								<text v-else>不合格</text>
+								<text v-else-if="itemM.learning == 0">不合格</text>
+								<!-- <text v-else>不合格</text> -->
 							</view>
 						</view>
 					</view>
@@ -192,6 +193,7 @@ export default {
 					self.list = res.data.data
 				}
 			});
+			console.log('-----------list', this.list)
 		},
 		/**
 		 * 去做题

+ 9 - 9
pages/learn/index.vue

@@ -718,16 +718,16 @@ export default {
 				title: '拼命加载中...',
 				mask:true,
 			})
-			// var confirmDetail = true;
-			// if (item.educationName == '继续教育') { 
-			// 	if(item.officialName && item.businessName == '二级' && item.projectName == '建造师') { 
-			// 		confirmDetail = await this.userConfirmInfoDetail()
-			// 	}
-			// }
+			var confirmDetail = true;
+			if (item.educationName == '继续教育') { 
+				if(item.officialName && item.businessName == '二级' && item.projectName == '建造师') { 
+					confirmDetail = await this.userConfirmInfoDetail()
+				}
+			}
 			
-			// if(!confirmDetail) {
-			// 	return;
-			// }
+			if(!confirmDetail) {
+				return;
+			}
 
 			this.itemIndex = index
 			if (item.gradeStatus == 1 && item.status == 1 && (item.serviceEndTime > this.sysTime) && (item

+ 11 - 11
pages3/polyv/detail.vue

@@ -1363,17 +1363,17 @@ export default {
 					}
 					
           // 查询用户最后一次看的录播的信息
-          // this.$http({
-          //   url: '/study/record/getUserWatchLast',
-          //   method: 'get',
-          //   data: {
-          //     orderGoodsId: this.orderGoodsId,
-          //   }
-          // }).then((res) => {
-          //   if (res.data.code == 200) {
-          //     this.sectionItem = res.data.data  
-          //   }
-          // })
+          this.$http({
+            url: '/study/record/getUserWatchLast',
+            method: 'get',
+            data: {
+              orderGoodsId: this.orderGoodsId,
+            }
+          }).then((res) => {
+            if (res.data.code == 200) {
+              this.sectionItem = res.data.data  
+            }
+          })
 
 				}
 			})