diff --git a/api/homepage/index.js b/api/homepage/index.js
index a7e6a4a..1dd0871 100644
--- a/api/homepage/index.js
+++ b/api/homepage/index.js
@@ -7,3 +7,12 @@ export function selectOrderByNursePersonCount(nurseStationPersonId) {
method: 'GET'
})
}
+
+
+//护理新闻
+export function selectNurseNews() {
+ return request({
+ url: `/nurseApplet/personLearn/selectNurseNews?informationCategoryType=${'NURSING_NEWS'}`,
+ method: 'GET'
+ })
+}
diff --git a/pages/homepage/homepage.vue b/pages/homepage/homepage.vue
index 1ecc8f0..3e3bdfa 100644
--- a/pages/homepage/homepage.vue
+++ b/pages/homepage/homepage.vue
@@ -54,13 +54,10 @@
-
-
+
+
- 护理 I 致力于打造专业护理人才
-
-
- 生活小窍门,是指人们在日常生活中总结出来的知识和经验,和生活小常识非常相似
+ {{item.informationTitle}}
@@ -70,7 +67,8 @@
@@ -177,34 +188,25 @@
position: absolute;
top: 0;
left: 0;
- width: 130rpx;
- height: 130rpx;
- }
-
- .centertext {
- font-size: 22rpx;
- position: absolute;
- top: 60rpx;
- left: 150rpx;
- overflow: hidden; //超出的文本隐藏
- display: -webkit-box;
- -webkit-line-clamp: 2; // 超出多少行
- -webkit-box-orient: vertical;
+ width: 150rpx;
+ height: 150rpx;
}
.toptext {
- font-size: 30rpx;
+ line-height: 30rpx;
+ font-size: 26rpx;
position: absolute;
top: 5rpx;
- left: 150rpx;
- width: 75%;
- overflow: hidden; //超出的文本隐藏
+ left: 170rpx;
+ width: 70%;
+ text-overflow: -o-ellipsis-lastline;
+ overflow: hidden;
+ text-overflow: ellipsis;
display: -webkit-box;
- -webkit-line-clamp: 1; // 超出多少行
+ -webkit-line-clamp: 5; //行数需设置
+ line-clamp: 5;
-webkit-box-orient: vertical;
- // overflow: hidden; //超出的文本隐藏
- // text-overflow: ellipsis; //溢出用省略号显示
- // white-space: nowrap; // 默认不换行;
+ text-align: justify;
}
}
}
diff --git a/static/hlxw.png b/static/hlxw.png
deleted file mode 100644
index 7259008..0000000
Binary files a/static/hlxw.png and /dev/null differ