Selaa lähdekoodia

Merge branch '2024鹅状元' of https://gogs.mtavip.com/wangguoyu/uniProject into 2024鹅状元

tanxue 4 kuukautta sitten
vanhempi
commit
0a16f4b5f8
1 muutettua tiedostoa jossa 37 lisäystä ja 35 poistoa
  1. 37 35
      pages/wrong/index.vue

+ 37 - 35
pages/wrong/index.vue

@@ -9,9 +9,9 @@
 				@clickItem="onChangeTab" class="ezy-tab-box" />
 			<view class="cuoti-content-box">
 				<view v-if="data.current === 0">
-					<scroll-view scroll-y="true" refresher-enabled="true"
-						:refresher-triggered="data.shuxue.loading" :refresher-threshold="50"
-						refresher-background="transparent" @refresherrefresh="onRefresh" class="cuoti-scroll-view">
+					<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.shuxue.loading"
+						:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh"
+						class="cuoti-scroll-view">
 						<!--数学-->
 						<uni-list>
 							<uni-list-item v-for="item in data.shuxue.list" class="list-item-box">
@@ -23,8 +23,9 @@
 									</view>
 									<!-- 数量 -->
 									<view class="item-cuoti-row">
-											<icon class="cuoti-icon"></icon>
-											<view class="cuoti-content">错题数:<text class="cuoti-text">{{ item.count }}</text>题</view>
+										<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>
@@ -35,26 +36,27 @@
 					</scroll-view>
 				</view>
 				<view v-if="data.current === 1">
-					<scroll-view scroll-y="true" refresher-enabled="true"
-						:refresher-triggered="data.yingyu.loading" :refresher-threshold="50"
-						refresher-background="transparent" @refresherrefresh="onRefresh" class="cuoti-scroll-view">
+					<scroll-view scroll-y="true" refresher-enabled="true" :refresher-triggered="data.yingyu.loading"
+						:refresher-threshold="50" refresher-background="transparent" @refresherrefresh="onRefresh"
+						class="cuoti-scroll-view">
 						<!--英语-->
 						<uni-list>
-							<uni-list-item v-for="item in data.yingyu.list">
-                <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-list-item v-for="item in data.yingyu.list" class="list-item-box">
+								<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>
 						</uni-list>
@@ -83,11 +85,11 @@
 		getWrongInfo
 	} from "@/api/wrong";
 	import CustomTabBar from '@/components/custom-tabbar/custom-tabbar.vue';
-	
+
 	const zhangId = ref(null);
 	const nianji = ref(null);
 	const cardId = ref(null);
-	
+
 	const wrongRef = ref(null);
 
 	const data = reactive({
@@ -98,11 +100,11 @@
 			list: [],
 			loading: false,
 			state: 'more',
-      contentText: {
-        contentdown: '查看更多',
-        contentrefresh: '加载中',
-        contentnomore: '没有更多'
-      }
+			contentText: {
+				contentdown: '查看更多',
+				contentrefresh: '加载中',
+				contentnomore: '没有更多'
+			}
 
 		},
 		yingyu: {
@@ -110,11 +112,11 @@
 			list: [],
 			loading: false,
 			state: 'more',
-      contentText: {
-        contentdown: '查看更多',
-        contentrefresh: '加载中',
-        contentnomore: '没有更多'
-      }
+			contentText: {
+				contentdown: '查看更多',
+				contentrefresh: '加载中',
+				contentnomore: '没有更多'
+			}
 		},
 		wrongList: [],
 	})