|
@@ -1,57 +1,57 @@
|
|
|
<template>
|
|
|
- <view>
|
|
|
- <view class="ezy-navBar-box">
|
|
|
+ <view class="ezy-cuoti-page">
|
|
|
+ <view class="icon-title-navBar-box">
|
|
|
<view @click="handleBack" class="nav-bar-icon"></view>
|
|
|
<text class="nav-bar-title">我的错题</text>
|
|
|
</view>
|
|
|
- <view class="uni-padding-wrap uni-common-mt">
|
|
|
- <uni-segmented-control :current="data.current" :values="data.items" style-type="button"
|
|
|
- active-color="#007aff" @clickItem="onChangeTab" />
|
|
|
- </view>
|
|
|
- <view class="content">
|
|
|
- <view v-if="data.current === 0">
|
|
|
- <scroll-view style="height: 300px;" scroll-y="true" refresher-enabled="true"
|
|
|
- :refresher-triggered="data.shuxue.loading" :refresher-threshold="50"
|
|
|
- refresher-background="lightgreen" @refresherrefresh="onRefresh" @refresherrestore="onRestore"
|
|
|
- @refresherabort="onAbort">
|
|
|
- <!--数学-->
|
|
|
+ <view class="cuoti-border-box">
|
|
|
+ <uni-segmented-control :current="data.current" :values="data.items"
|
|
|
+ active-color="#3A7FE9" @clickItem="onChangeTab" class="cuo-tab-box"/>
|
|
|
+ <view class="cuoti-content-box">
|
|
|
+ <view v-if="data.current === 0">
|
|
|
+ <scroll-view style="height: 300px;" scroll-y="true" refresher-enabled="true"
|
|
|
+ :refresher-triggered="data.shuxue.loading" :refresher-threshold="50"
|
|
|
+ refresher-background="lightgreen" @refresherrefresh="onRefresh" @refresherrestore="onRestore"
|
|
|
+ @refresherabort="onAbort">
|
|
|
+ <!--数学-->
|
|
|
+ <uni-list>
|
|
|
+ <uni-list-item v-for="item in data.shuxue.list">
|
|
|
+ <template v-slot:body>
|
|
|
+ <view class="slot-box">
|
|
|
+ <!-- 时间 -->
|
|
|
+ <text class="slot-text">日期{{ item.date }}</text>
|
|
|
+ <!-- 数量 -->
|
|
|
+ <text class="slot-text">错题数:{{ item.count }}题</text>
|
|
|
+ <button @click="getCuotiData(item)">查看错题</button>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </uni-list-item>
|
|
|
+ <uni-load-more :status="data.shuxue.state" @click="getMore(0)"
|
|
|
+ :contentText="data.shuxue.contentText"></uni-load-more>
|
|
|
+ </uni-list>
|
|
|
+ </scroll-view>
|
|
|
+ </view>
|
|
|
+ <view v-if="data.current === 1">
|
|
|
+ <!--英语-->
|
|
|
<uni-list>
|
|
|
- <uni-list-item v-for="item in data.shuxue.list">
|
|
|
+ <uni-list-item v-for="item in data.yingyu.list">
|
|
|
<template v-slot:body>
|
|
|
<view class="slot-box">
|
|
|
- <!-- 时间 -->
|
|
|
- <text class="slot-text">日期{{ item.date }}</text>
|
|
|
- <!-- 数量 -->
|
|
|
- <text class="slot-text">错题数:{{ item.count }}题</text>
|
|
|
- <button @click="getCuotiData(item)">查看错题</button>
|
|
|
+ {{ item }}
|
|
|
+ <text class="slot-text">title</text>
|
|
|
+ <text class="slot-text">date</text>
|
|
|
+ <text class="slot-text">wrong</text>
|
|
|
+ <button>查看错题</button>
|
|
|
</view>
|
|
|
</template>
|
|
|
</uni-list-item>
|
|
|
- <uni-load-more :status="data.shuxue.state" @click="getMore(0)"
|
|
|
- :contentText="data.shuxue.contentText"></uni-load-more>
|
|
|
+ <uni-load-more :status="data.yingyu.state" @click="getMore(1)"
|
|
|
+ :contentText="data.yingyu.contentText"></uni-load-more>
|
|
|
</uni-list>
|
|
|
- </scroll-view>
|
|
|
- </view>
|
|
|
- <view v-if="data.current === 1">
|
|
|
- <!--英语-->
|
|
|
- <uni-list>
|
|
|
- <uni-list-item v-for="item in data.yingyu.list">
|
|
|
- <template v-slot:body>
|
|
|
- <view class="slot-box">
|
|
|
- {{ item }}
|
|
|
- <text class="slot-text">title</text>
|
|
|
- <text class="slot-text">date</text>
|
|
|
- <text class="slot-text">wrong</text>
|
|
|
- <button>查看错题</button>
|
|
|
- </view>
|
|
|
- </template>
|
|
|
- </uni-list-item>
|
|
|
- <uni-load-more :status="data.yingyu.state" @click="getMore(1)"
|
|
|
- :contentText="data.yingyu.contentText"></uni-load-more>
|
|
|
- </uni-list>
|
|
|
+ </view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <cuoti ref="wrongRef" :list="data.wrongList" @back="handleBackFromCuoti"></cuoti>
|
|
|
+ <cuoti ref="wrongRef" :list="data.wrongList" @back="handleBackFromCuoti" ></cuoti>
|
|
|
</view>
|
|
|
</template>
|
|
|
|