谢杰标 2 年 前
コミット
d00cc80152

+ 2 - 2
common/httpList/course.js

@@ -31,6 +31,7 @@ export default {
 		})
 	},
 	reChapterList(data) {
+		
 		return myRequest({
 			url: '/course/chapterList',
 			method: 'get',
@@ -63,10 +64,10 @@ export default {
 		})
 	},
 	chapterList(data) {
+		
 		return myRequest({
 			url: '/app/common/course/chapterList/'+data,
 			method: 'get',
-			data: data,
 			noToken: true
 		})
 	},
@@ -74,7 +75,6 @@ export default {
 		return myRequest({
 			url: '/app/common/course/sectionList/'+data,
 			method: 'get',
-			data: data,
 			noToken: true
 		})
 	},

+ 0 - 1
common/httpList/exam.js

@@ -7,7 +7,6 @@ export default {
 		return myRequest({
 			url: '/bank/exam/'+data,
 			method: 'get',
-			data: data
 		})
 	}
 }

+ 1 - 3
common/httpList/goods.js

@@ -155,7 +155,6 @@ export default {
 	goodsBankQuestionNum(data) {
 		return myRequest({
 			url: '/goods/bank/questionNum/'+data,
-			data:data,
 			method: 'get',
 		})
 	},
@@ -442,8 +441,7 @@ export default {
 	deleteCart(data) {
 		return myRequest({
 			url: '/base/cart/delete/'+data,
-			method: 'post',
-			data: data
+			method: 'post'
 		})
 	},
 	

+ 2 - 1
components/course/courseChapter.vue

@@ -524,6 +524,7 @@ export default {
       if (!this.down && this.list.length == 0) {
         // console.log(item.id, 69);
         //获取章下面所有节试卷列表-course/sectionExamList
+        
         await this.$api.reSectionExamList({
           chapterId: item.chapterId || item.menuId,
           courseId: item.courseId,
@@ -544,7 +545,7 @@ export default {
             //				this.getMenuExamList(item.id,item.courseId,moduleId)
           }
         } else {
-          this.getSectionList(chapterId);
+          this.getSectionList(item.chapterId);
         }
       }
     },

+ 7 - 7
pages/index/index.vue

@@ -341,13 +341,13 @@ export default {
 		} else {
 			console.log('没有code');
 			// 没有code,就重定向到地址https://www.xyyxt.net?ask_type=h.xyyxt.net 去获取code,授权后就会把code带上然后访问域名,就拿到code了
-			if (!uni.getStorageSync('h5_code')) {
-				location.replace('https://www.xyyxt.net/?ask_type=h.xyyxt.net')
-				return
-			} else {
-				// this.$set(this.optObj, 'code', uni.getStorageSync('h5_code'))
-				// this.OfficialLogin()
-			}
+			// if (!uni.getStorageSync('h5_code')) {
+			// 	location.replace('https://www.xyyxt.net/?ask_type=h.xyyxt.net')
+			// 	return
+			// } else {
+			// 	// this.$set(this.optObj, 'code', uni.getStorageSync('h5_code'))
+			// 	// this.OfficialLogin()
+			// }
 		}
 		// #endif
 		this.getInfo() // 判断有没有关注公众号		

+ 3 - 0
pages2/bank/detail.vue

@@ -475,6 +475,9 @@ export default {
 			})
 		},
 		getIsBuy() {
+			if (this.$method.isGoLogin()) {
+				return;
+			}
 			this.$http({
 				url: '/order/buyGoodsNotExpired',
 				method: 'get',

+ 3 - 1
pages2/register/register.vue

@@ -504,7 +504,9 @@ export default {
 	},
 	onLoad(option) {
 		let that = this;
-		this.$refs.uForm.setRules(this.rules)
+		this.$nextTick(() => {
+			this.$refs.uForm.setRules(this.rules)
+		});
 		// option.scanCode && (this.scanCode = option.scanCode)
 		uni.login({
 			provider: 'weixin',

+ 3 - 0
pages3/course/detail.vue

@@ -705,6 +705,9 @@ export default {
 			})
 		},
 		getIsBuy() {
+			if (this.$method.isGoLogin()) {
+				return;
+			}
 			this.$http({
 				url: '/order/buyGoodsNotExpired',
 				method: 'get',