浏览代码

错题调整

wangxy 5 月之前
父节点
当前提交
e2646cb7c3
共有 1 个文件被更改,包括 13 次插入10 次删除
  1. 13 10
      pages/wrong/index.vue

+ 13 - 10
pages/wrong/index.vue

@@ -30,7 +30,7 @@
 								</template>
 							</uni-list-item>
 							<uni-load-more :status="data.shuxue.state" @click="getMore(0)"
-								:contentText="data.shuxue.state_text"></uni-load-more>
+								:contentText="data.shuxue.contentText"></uni-load-more>
 						</uni-list>
 					</scroll-view>
 				</view>
@@ -56,7 +56,7 @@
                 </template>
               </uni-list-item>
 							<uni-load-more :status="data.yingyu.state" @click="getMore(1)"
-								:contentText="data.yingyu.state_text"></uni-load-more>
+								:contentText="data.yingyu.contentText"></uni-load-more>
 						</uni-list>
 					</scroll-view>
 				</view>
@@ -92,14 +92,23 @@
 			list: [],
 			loading: false,
 			state: 'more',
-			state_text: '加载更多'
+      contentText: {
+        contentdown: '查看更多',
+        contentrefresh: '加载中',
+        contentnomore: '没有更多'
+      }
+
 		},
 		yingyu: {
 			page: 0,
 			list: [],
 			loading: false,
 			state: 'more',
-			state_text: '加载更多'
+      contentText: {
+        contentdown: '查看更多',
+        contentrefresh: '加载中',
+        contentnomore: '没有更多'
+      }
 		},
 		wrongList: [],
 	})
@@ -158,24 +167,20 @@
 				if (res.data.total >= data.shuxue.list.length) {
 					// 数学
 					data.shuxue.state = 'no-more';
-					data.shuxue.state_text = '没有更多啦';
 					data.shuxue.loading = false;
 				} else {
 					// 数学
 					data.shuxue.state = 'more';
-					data.shuxue.state_text = '加载更多';
 					data.shuxue.loading = false;
 				}
 			} else if (code == 1) {
 				if (res.data.total >= data.yingyu.list.length) {
 					// 英语
 					data.yingyu.state = 'no-more';
-					data.yingyu.state_text = '没有更多啦';
 					data.yingyu.loading = false;
 				} else {
 					// 英语
 					data.yingyu.state = 'more';
-					data.yingyu.state_text = '加载更多';
 					data.yingyu.loading = false;
 				}
 			}
@@ -183,12 +188,10 @@
 			if (code == 0) {
 				// 数学
 				data.shuxue.state = 'more';
-				data.shuxue.state_text = '加载更多';
 				data.shuxue.loading = false;
 			} else if (code == 1) {
 				// 英语
 				data.yingyu.state = 'more';
-				data.yingyu.state_text = '加载更多';
 				data.yingyu.loading = false;
 			}
 		})