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

跳转错题,对接收藏

chenxiong 3 жил өмнө
parent
commit
57dbecd975

+ 10 - 0
common/httpList/goods.js

@@ -84,6 +84,16 @@ export default {
 			data: data
 		})
 	},
+	
+	questionRecordList(data) {
+		return myRequest({
+			url: '/bank/question/record/list',
+			method: 'get',
+			data: data
+		})
+	},
+	
+	
 	deleteCart(data) {
 		return myRequest({
 			url: '/base/cart/delete/'+data,

+ 2 - 2
pages/login/login.vue

@@ -144,8 +144,8 @@ export default {
 				return 
 			}
 			//虚拟登录
-			that.fakeLogin()
-			return
+			/* that.fakeLogin()
+			return */
 			that.isUse = true
 			that.$api.accountLogin(this.form).then(
 				res => {

+ 11 - 1
pages2/subject/wrong.vue

@@ -58,8 +58,18 @@ export default {
 		};
 	},
 	onPullDownRefresh() {},
-	onLoad(option) {},
+	onLoad(option) {
+		this.questionRecordList();
+	},
 	methods: {
+		questionRecordList() {
+			this.$api.questionRecordList({
+				isRight:0,
+				
+			}).then(res => {
+				console.log(res)
+			})
+		},
 		showSceen(type){
 			this.sceenType = type
 		},

+ 6 - 4
pages2/wd/question_bank.vue

@@ -21,10 +21,12 @@
 					</view>
 				</navigator>
 				
-				<view class="list-in">
-					<image class="img" src="/static/icon/wk_icon2.png"></image>
-					错题集 >
-				</view>
+				<navigator url="/pages2/subject/wrong">
+					<view class="list-in">
+						<image class="img" src="/static/icon/wk_icon2.png"></image>
+						错题集 >
+					</view>
+				</navigator>
 			</view>
 		</view>
 	</view>