From a693cf7fbd5865fcdea6f915c4d047ce722e819e Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Thu, 3 Nov 2022 10:38:50 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/user/Mynotes.vue | 22 +++++++++++++++++++++-
1 file changed, 21 insertions(+), 1 deletion(-)
diff --git a/src/views/user/Mynotes.vue b/src/views/user/Mynotes.vue
index cbae8ce1..ed9ee57b 100644
--- a/src/views/user/Mynotes.vue
+++ b/src/views/user/Mynotes.vue
@@ -69,7 +69,15 @@
{{ item.sysUpdateTime }}
-
{{ item.content }}
+
{{item.content}}
+
+
+
+ {{displayAll(item)}}
+
+ {{item.isAll?'收起':'全文展开'}}
+
+
@@ -266,6 +274,15 @@ export default {
});
},
methods: {
+ displayAll(item) {
+ if (!item.isAll && item.content && item.content.length > 180) {
+ return item.content.slice(0, 150) + "...";
+ }
+ return item.content;
+ },
+ changeIsAll(item) {
+ item.isAll = !item.isAll;
+ },
// 笔记图片放大
showBigImg(path){
this.currentImagePath = path;
@@ -535,6 +552,9 @@ export default {
apiNote.query(data).then(res=>{
if(res.status == 200) {
res.result.list.forEach((item,index)=>{
+ if(item.type == 2 && item.contentType !== 3) {
+ item.isAll = false;
+ }
if(item.contentType == 3) {
item.content = item.content.split(',');
}
From 89c44e257664ff7632fe7b523facf9b2a87c15cd Mon Sep 17 00:00:00 2001
From: zhaofang <752743406@qq.com>
Date: Thu, 3 Nov 2022 11:38:14 +0800
Subject: [PATCH 2/3] =?UTF-8?q?=E7=BA=AA=E5=BF=B5=E5=8B=8B=E7=AB=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/medal/Index.vue | 70 +++++++++++++++++++++++++++++++++++++--
1 file changed, 68 insertions(+), 2 deletions(-)
diff --git a/src/views/medal/Index.vue b/src/views/medal/Index.vue
index efc583ea..07df47ba 100644
--- a/src/views/medal/Index.vue
+++ b/src/views/medal/Index.vue
@@ -15,8 +15,13 @@
您已超过{{item.exceed}}人
查看详情
+
+
![]()
+
{{item.medalName}}
+
+
查看详情
+
-
![]()
@@ -57,6 +62,20 @@
+
+
+
+
+
+
+
+
+
感谢有你 一路相办
+
勋章领取条件:
+
2022年10月31日-11月15日登录过平台学习的校友
+
+
+
@@ -99,6 +118,7 @@
return item.medalId == 3;
})
}
+ console.log(data,'data');
return data;
}
},
@@ -107,6 +127,7 @@
},
data(){
return{
+ showLoginMedal:false,
baseUrl:process.env.VUE_APP_FILE_BASE_URL,
activeName:'first',
dialogVisible:false,
@@ -122,7 +143,7 @@
this.getConfig();
},
methods:{
-
+
getConfig() {// 获取勋章配置
apiStat.userMedalConfig().then(res=>{
if(res.status == 200) {
@@ -168,6 +189,51 @@