wangxy преди 5 месеца
родител
ревизия
7e53366065
променени са 1 файла, в които са добавени 17 реда и са изтрити 13 реда
  1. 17 13
      pages/wrong/index.vue

+ 17 - 13
pages/wrong/index.vue

@@ -19,7 +19,7 @@
 									<!-- 时间 -->
 									<view class="item-date-row">
 										<icon class="data-icon"></icon>
-										<text>{{ item.date }}</text>
+										<text>{{ item.cdate }}</text>
 									</view>
 									<!-- 数量 -->
 									<view class="item-cuoti-row">
@@ -30,7 +30,7 @@
 								</template>
 							</uni-list-item>
 							<uni-load-more :status="data.shuxue.state" @click="getMore(0)"
-								:contentText="data.shuxue.contentText"></uni-load-more>
+								:contentText="data.shuxue.state_text"></uni-load-more>
 						</uni-list>
 					</scroll-view>
 				</view>
@@ -41,18 +41,22 @@
 						<!--英语-->
 						<uni-list>
 							<uni-list-item v-for="item in data.yingyu.list">
-								<template v-slot:body>
-									<view class="slot-box">
-										<!-- 时间 -->
-										<text class="slot-text">日期{{ item.cdate }}</text>
-										<!-- 数量 -->
-										<text class="slot-text">错题数:{{ item.count }}题</text>
-										<button @click="getCuotiData(item)">查看错题</button>
-									</view>
-								</template>
-							</uni-list-item>
+                <template v-slot:body>
+                  <!-- 时间 -->
+                  <view class="item-date-row">
+                    <icon class="data-icon"></icon>
+                    <text>{{ item.cdate }}</text>
+                  </view>
+                  <!-- 数量 -->
+                  <view class="item-cuoti-row">
+                    <icon class="cuoti-icon"></icon>
+                    <view class="cuoti-content">错题数:<text class="cuoti-text">{{ item.count }}</text>题</view>
+                  </view>
+                  <view @click="getCuotiData(item)" class="cuoti-btn">查看错题</view>
+                </template>
+              </uni-list-item>
 							<uni-load-more :status="data.yingyu.state" @click="getMore(1)"
-								:contentText="data.yingyu.contentText"></uni-load-more>
+								:contentText="data.yingyu.state_text"></uni-load-more>
 						</uni-list>
 					</scroll-view>
 				</view>