From e6f70da676e817329fc58047edf898e2b101bc77 Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Thu, 24 Nov 2022 15:58:31 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/my/myArticles.vue | 18 ++++++++++++++----
pages/my/myMedal.vue | 14 ++++++++------
2 files changed, 22 insertions(+), 10 deletions(-)
diff --git a/pages/my/myArticles.vue b/pages/my/myArticles.vue
index f336605..ee8f49a 100644
--- a/pages/my/myArticles.vue
+++ b/pages/my/myArticles.vue
@@ -50,6 +50,9 @@
+
+ 暂未搜索到内容
+
@@ -167,6 +170,7 @@ export default {
uni.hideLoading();
if (rs.status == 200) {
this.articleList.count = rs.result.count;
+
if (rs.result.list.length != 0) {
let userIds = [];
rs.result.list.forEach(item => {
@@ -180,11 +184,17 @@ export default {
userIds.push(item.sysCreateAid);
});
await this.loadUserInfos(rs.result.list, userIds);
+ if (this.articleList.list.length < this.articleList.count) {
+ this.loadStatus = 'more';
+ } else {
+ this.loadStatus = 'noMore';
+ }
}else{
- uni.showToast({
- title: '查无数据',
- icon: 'none'
- });
+ this.loadStatus = 'noMore';
+ // uni.showToast({
+ // title: '查无数据',
+ // icon: 'none'
+ // });
}
}
// uni.hideLoading();
diff --git a/pages/my/myMedal.vue b/pages/my/myMedal.vue
index 3250dbb..340298e 100644
--- a/pages/my/myMedal.vue
+++ b/pages/my/myMedal.vue
@@ -51,14 +51,14 @@
-
+
-
+
{{medalData.medalName}}
LV.{{index+1}}
LV.{{index+1}}
- LV.{{index+1}}
+ LV.{{index+1}}
@@ -91,9 +91,11 @@
this.getConfig();
},
methods:{
- tabQu(ru) {
- this.medalData.requirement = ru.remark;
- this.showLevel = ru.level;
+ tabQu(ru,index) {
+ if(index == this.medalData.medalLevel || index > this.medalData.medalLevel) {
+ this.medalData.requirement = ru.remark;
+ this.showLevel = ru.level;
+ }
},
back(){
uni.navigateBack();