chen %!s(int64=3) %!d(string=hai) anos
pai
achega
a43895b984
Modificáronse 3 ficheiros con 540 adicións e 407 borrados
  1. 38 0
      common/httpList/goods.js
  2. 452 213
      pages2/bank/questionBank.vue
  3. 50 194
      pages2/bank/question_record.vue

+ 38 - 0
common/httpList/goods.js

@@ -38,7 +38,45 @@ export default {
 			method: 'POST',
 		})
 	},
+	examRecord(data) {
+		return myRequest({
+			url: '/exam/record',
+			data:data,
+			method: 'POST',
+		})
+	},
+	
+	examWrongRecord(data) {
+		return myRequest({
+			url: '/exam/wwrong/record',
+			data:data,
+			method: 'POST',
+		})
+	},
+	
+	examRecordEdit(data) {
+		return myRequest({
+			url: '/exam/record/edit',
+			data:data,
+			method: 'POST',
+		})
+	},
 	
+	examaperList(data) {
+		return myRequest({
+			url: '/exam/paper/list',
+			data:data,
+			method: 'GET',
+		})
+	},
+	
+	examRecordList(data) {
+		return myRequest({
+			url: '/exam/record/list',
+			data:data,
+			method: 'GET',
+		})
+	},
 	
 
 	listGoodsUserQuestion(data) {

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 452 - 213
pages2/bank/questionBank.vue


+ 50 - 194
pages2/bank/question_record.vue

@@ -6,17 +6,17 @@
 		</view>
 		
 		<view class="record">
-			<view class="item">
-				<view class="note">真题</view>
-				<view class="title">试卷名称可换行我也不知道最多多少个字试卷名称可换行我也不知道最多多少个字</view>
+			<view class="item" v-for="record in recordList">
+				<view class="note">{{record.paperName}}</view>
+				<view class="title">{{record.examName}}</view>
 				<view class="desc">
 					<view>
 						<image src="/static/icon/wk_icon2.png"></image>
-						<text>2021/12/20  14:30</text>
+						<text>{{$method.timestampToTime(record.updateTime,false)}}</text>
 					</view>
 					<view>
 						<image src="/static/icon/wk_icon2.png"></image>
-						<text>总共 95 题 做对 0 题</text>
+						<text>总共 {{record.totalQuestionNum}} 题 做对  {{record.rightQuestionNum}} 题</text>
 					</view>
 				</view>
 				<view class="btns">
@@ -26,186 +26,7 @@
 					<view class="btn">
 						解析
 					</view>
-					<view class="btn">
-						报告
-					</view>
-				</view>
-			</view>
-			
-			<view class="item">
-				<view class="note">真题</view>
-				<view class="title">试卷道最多多少个字</view>
-				<view class="desc">
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>2021/12/20  14:30</text>
-					</view>
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>总共 95 题 做对 0 题</text>
-					</view>
-				</view>
-				<view class="btns">
-					<view class="btn">
-						重做
-					</view>
-					<view class="btn">
-						解析
-					</view>
-					<view class="btn">
-						报告
-					</view>
-				</view>
-			</view>
-			<view class="item">
-				<view class="note">真题</view>
-				<view class="title">试卷名称可换行我也不知道最多多少个字试卷名称可换行我也不知道最多多少个字</view>
-				<view class="desc">
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>2021/12/20  14:30</text>
-					</view>
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>总共 95 题 做对 0 题</text>
-					</view>
-				</view>
-				<view class="btns">
-					<view class="btn">
-						重做
-					</view>
-					<view class="btn">
-						解析
-					</view>
-					<view class="btn">
-						报告
-					</view>
-				</view>
-			</view>
-			
-			<view class="item">
-				<view class="note">真题</view>
-				<view class="title">试卷道最多多字</view>
-				<view class="desc">
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>2021/12/20  14:30</text>
-					</view>
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>总共 95 题 做对 0 题</text>
-					</view>
-				</view>
-				<view class="btns">
-					<view class="btn">
-						重做
-					</view>
-					<view class="btn">
-						解析
-					</view>
-					<view class="btn">
-						报告
-					</view>
-				</view>
-			</view>
-			<view class="item">
-				<view class="note">真题</view>
-				<view class="title">试卷名称可换行我也不知道最多多少个字试卷名称可换行我也不知道最多多少个字试卷名称可换行我也不知道最多多少个字</view>
-				<view class="desc">
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>2021/12/20  14:30</text>
-					</view>
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>总共 95 题 做对 0 题</text>
-					</view>
-				</view>
-				<view class="btns">
-					<view class="btn">
-						重做
-					</view>
-					<view class="btn">
-						解析
-					</view>
-					<view class="btn">
-						报告
-					</view>
-				</view>
-			</view>
-			
-			<view class="item">
-				<view class="note">真题</view>
-				<view class="title">试卷道最多多少个字</view>
-				<view class="desc">
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>2021/12/20  14:30</text>
-					</view>
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>总共 95 题 做对 0 题</text>
-					</view>
-				</view>
-				<view class="btns">
-					<view class="btn">
-						重做
-					</view>
-					<view class="btn">
-						解析
-					</view>
-					<view class="btn">
-						报告
-					</view>
-				</view>
-			</view>
-			<view class="item">
-				<view class="note">真题</view>
-				<view class="title">试卷名称可换行我也不知道最多多少个字</view>
-				<view class="desc">
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>2021/12/20  14:30</text>
-					</view>
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>总共 95 题 做对 0 题</text>
-					</view>
-				</view>
-				<view class="btns">
-					<view class="btn">
-						重做
-					</view>
-					<view class="btn">
-						解析
-					</view>
-					<view class="btn">
-						报告
-					</view>
-				</view>
-			</view>
-			
-			<view class="item">
-				<view class="note">真题</view>
-				<view class="title">试卷道最多多少个字</view>
-				<view class="desc">
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>2021/12/20  14:30</text>
-					</view>
-					<view>
-						<image src="/static/icon/wk_icon2.png"></image>
-						<text>总共 95 题 做对 0 题</text>
-					</view>
-				</view>
-				<view class="btns">
-					<view class="btn">
-						重做
-					</view>
-					<view class="btn">
-						解析
-					</view>
-					<view class="btn">
+					<view class="btn" v-if="record.status == 1">
 						报告
 					</view>
 				</view>
@@ -217,10 +38,7 @@
 			<view class="content">
 				<view class="top">全部题库记录</view>
 				<view class="list">
-					<view class="item">试卷名称可换行并完整显示</view>
-					<view class="item">试卷名称可换行并完整显示</view>
-					<view class="item">试卷名称可换行并完整显示</view>
-					<view class="item">试卷名称单行卡片变小</view>
+					<view class="item" v-for="listItem in list" @click="testClick(listItem)">{{listItem.goodsName}}</view>
 				</view>
 			</view>
 			<view class="modal_wrap" @click="index=0"></view>
@@ -230,9 +48,7 @@
 			<view class="content">
 				<view class="top">全部试卷类型</view>
 				<view class="list">
-					<view class="item">模拟卷</view>
-					<view class="item">真题</view>
-					<view class="item">练习</view>
+					<view class="item" v-for="listItem in list1" @click="paperClick(listItem)">{{listItem.paperName}}</view>
 				</view>
 			</view>
 			<view class="modal_wrap" @click="index=0"></view>
@@ -245,18 +61,58 @@
 		data() {
 			return {
 				index:0,
+				list:[],
+				list1:[],
+				recordList:[]
 			}
 		},
 		onLoad(option) {
-			// this.getDict()
+			this.listGoodsUserQuestion();
+			this.examaperList();
+			
+			this.$api.examRecordList({}).then(res => {
+				this.recordList = res.data.rows
+			})
 		},
 		onShow(){
 			
 		},
 		methods: {
+			testClick(item) {
+				this.index = 0
+				this.$api.examRecordList({
+					goodsId:item.goodsId
+				}).then(res => {
+					this.recordList = res.data.rows
+				})
+			},
+			paperClick(item) {
+				this.index = 0
+				this.$api.examRecordList({
+					paperId:item.paperId
+				}).then(res => {
+					this.recordList = res.data.rows
+				})
+			},
 			tab(e) {
 				this.index = e.currentTarget.dataset.index;
-			}
+			},
+			
+			examaperList() {
+				this.$api.examaperList({
+					
+				}).then(res => {
+					this.list1 = res.data.rows;
+				})
+			},
+			
+			listGoodsUserQuestion() {
+				this.$api.listGoodsUserQuestion({
+					
+				}).then(res => {
+					this.list = res.data.rows;
+				})
+			},
 		},
 		
 	}

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio