修改
This commit is contained in:
parent
f12372cbb2
commit
1e6418dd6c
@ -7,3 +7,12 @@ export function selectOrderByNursePersonCount(nurseStationPersonId) {
|
|||||||
method: 'GET'
|
method: 'GET'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//护理新闻
|
||||||
|
export function selectNurseNews() {
|
||||||
|
return request({
|
||||||
|
url: `/nurseApplet/personLearn/selectNurseNews?informationCategoryType=${'NURSING_NEWS'}`,
|
||||||
|
method: 'GET'
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|||||||
@ -54,13 +54,10 @@
|
|||||||
<u-icon name="arrow-right" color='#969494'></u-icon>
|
<u-icon name="arrow-right" color='#969494'></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<view class="items" @tap='goHealthknowledge'>
|
<view class="items" @tap='goHealthknowledge'>
|
||||||
<view class="item">
|
<view class="item" v-for='(item,index) in NurseNewslist'>
|
||||||
<image src="../../static/hlxw.png" mode=""></image>
|
<image :src="item.leadThumbnailUrl" mode=""></image>
|
||||||
<view class="toptext">
|
<view class="toptext">
|
||||||
护理 I 致力于打造专业护理人才
|
{{item.informationTitle}}
|
||||||
</view>
|
|
||||||
<view class="centertext">
|
|
||||||
生活小窍门,是指人们在日常生活中总结出来的知识和经验,和生活小常识非常相似
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -70,7 +67,8 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
selectOrderByNursePersonCount
|
selectOrderByNursePersonCount,
|
||||||
|
selectNurseNews
|
||||||
} from '@/api/homepage/index.js'
|
} from '@/api/homepage/index.js'
|
||||||
import {
|
import {
|
||||||
mapActions
|
mapActions
|
||||||
@ -83,9 +81,11 @@
|
|||||||
nurserStationPersonId: null, //护理员id
|
nurserStationPersonId: null, //护理员id
|
||||||
selectOrderByNursePersonCountlist: {}, //项目数量对象
|
selectOrderByNursePersonCountlist: {}, //项目数量对象
|
||||||
personRoleLoginFlag: 'notRoleName', //身份认证
|
personRoleLoginFlag: 'notRoleName', //身份认证
|
||||||
|
NurseNewslist: [],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
|
this.selectNurseNewsinfo();
|
||||||
this.personRoleLoginFlag = "notRoleName"
|
this.personRoleLoginFlag = "notRoleName"
|
||||||
this.selectOrderByNursePersonCountlist = {}
|
this.selectOrderByNursePersonCountlist = {}
|
||||||
this.beijingurl = baseurl + '/profile/nursePersonAppletPicture/person_center.png'
|
this.beijingurl = baseurl + '/profile/nursePersonAppletPicture/person_center.png'
|
||||||
@ -139,6 +139,17 @@
|
|||||||
url: '/pages/Learningtraining/Learningtraining'
|
url: '/pages/Learningtraining/Learningtraining'
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
//护理新闻
|
||||||
|
selectNurseNewsinfo() {
|
||||||
|
selectNurseNews().then(res => {
|
||||||
|
if (res.rows) {
|
||||||
|
res.rows.forEach(e => {
|
||||||
|
e.leadThumbnailUrl = baseurl + e.leadThumbnailUrl
|
||||||
|
})
|
||||||
|
}
|
||||||
|
this.NurseNewslist = res.rows
|
||||||
|
})
|
||||||
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
@ -177,34 +188,25 @@
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
width: 130rpx;
|
width: 150rpx;
|
||||||
height: 130rpx;
|
height: 150rpx;
|
||||||
}
|
|
||||||
|
|
||||||
.centertext {
|
|
||||||
font-size: 22rpx;
|
|
||||||
position: absolute;
|
|
||||||
top: 60rpx;
|
|
||||||
left: 150rpx;
|
|
||||||
overflow: hidden; //超出的文本隐藏
|
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-line-clamp: 2; // 超出多少行
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.toptext {
|
.toptext {
|
||||||
font-size: 30rpx;
|
line-height: 30rpx;
|
||||||
|
font-size: 26rpx;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 5rpx;
|
top: 5rpx;
|
||||||
left: 150rpx;
|
left: 170rpx;
|
||||||
width: 75%;
|
width: 70%;
|
||||||
overflow: hidden; //超出的文本隐藏
|
text-overflow: -o-ellipsis-lastline;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
display: -webkit-box;
|
display: -webkit-box;
|
||||||
-webkit-line-clamp: 1; // 超出多少行
|
-webkit-line-clamp: 5; //行数需设置
|
||||||
|
line-clamp: 5;
|
||||||
-webkit-box-orient: vertical;
|
-webkit-box-orient: vertical;
|
||||||
// overflow: hidden; //超出的文本隐藏
|
text-align: justify;
|
||||||
// text-overflow: ellipsis; //溢出用省略号显示
|
|
||||||
// white-space: nowrap; // 默认不换行;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
BIN
static/hlxw.png
BIN
static/hlxw.png
Binary file not shown.
|
Before Width: | Height: | Size: 134 KiB |
Loading…
Reference in New Issue
Block a user