修改
This commit is contained in:
parent
7d37353fe0
commit
72f0f832f2
@ -1,7 +1,17 @@
|
||||
import request from "../../request.js"
|
||||
|
||||
//齐鲁名医
|
||||
export function selectDepartment(pageNum,pageSize) {
|
||||
export function selectDepartmentNoPage() {
|
||||
return request({
|
||||
url: `/nurseApp/healthConsultation/selectDepartmentNoPage`,
|
||||
method: 'GET',
|
||||
header: {
|
||||
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
|
||||
},
|
||||
})
|
||||
}
|
||||
//齐鲁名医
|
||||
export function selectDepartment(pageNum, pageSize) {
|
||||
return request({
|
||||
url: `/nurseApp/healthConsultation/selectDepartment?pageNum=${pageNum}&pageSize=${pageSize}`,
|
||||
method: 'GET',
|
||||
@ -10,9 +20,8 @@ export function selectDepartment(pageNum,pageSize) {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
//人员
|
||||
export function selectHospitalPerson(pageNum,pageSize,departmentId) {
|
||||
export function selectHospitalPerson(pageNum, pageSize, departmentId) {
|
||||
return request({
|
||||
url: `/nurseApp/healthConsultation/selectHospitalPerson?pageNum=${pageNum}&pageSize=${pageSize}&departmentId=${departmentId}`,
|
||||
method: 'GET',
|
||||
|
||||
@ -329,7 +329,8 @@
|
||||
"path": "consultationplatform/consultationplatform",
|
||||
"style": {
|
||||
"navigationBarTitleText": "问诊平台",
|
||||
"enablePullDownRefresh": false
|
||||
"onReachBottomDistance": 40, //距离底部多远时触发 单位为px
|
||||
"enablePullDownRefresh": true //设置参数为true
|
||||
}
|
||||
}, {
|
||||
"path": "doctordetails/doctordetails",
|
||||
|
||||
@ -19,32 +19,29 @@
|
||||
<view class="title">
|
||||
专家信息栏
|
||||
</view>
|
||||
<u-tabs :list="tabList" :current="tabcurrent" @change="tabchange" active-color='#26A888'
|
||||
<u-tabs :list="hospitalDepartmentList" :current="tabcurrent" @change="tabchange" active-color='#26A888'
|
||||
:show-bar='false'></u-tabs>
|
||||
<view class="list">
|
||||
<view class="item" @tap="godoctordetails">
|
||||
<image src="../../static/messages.png" mode=""></image>
|
||||
<view class="item" @tap="godoctordetails" v-for="item in HospitalPersonlist">
|
||||
<image v-if="item.personPictureUrl" :src="baseurl+item.personPictureUrl" mode=""></image>
|
||||
<image v-else src="@/static/pagesB/yis.png" mode=""></image>
|
||||
<view class="name">
|
||||
张三
|
||||
{{item.personName}}
|
||||
</view>
|
||||
<view class="position">
|
||||
主任医师
|
||||
{{ item.academicTitle=='CHIEF_PHYSICIAN'?'主任医师':''}}
|
||||
{{ item.academicTitle=='DEPUTY_CHIEF_PHYSICIAN'?'副主任医师':''}}
|
||||
{{ item.academicTitle=='ATTENDING_DOCTOR'?'主治医师':''}}
|
||||
{{ item.academicTitle=='PHYSICIAN'?'医师':''}}
|
||||
{{ item.academicTitle=='HEALER'?'医士':''}}
|
||||
</view>
|
||||
<view class="text">
|
||||
山东大学齐鲁医院,主任医师, 从事甲状腺疾病等内分泌与代 谢病的诊治,擅长甲状腺结节 良恶性鉴。
|
||||
{{item.personIntroduce}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" @tap="godoctordetails">
|
||||
<image src="../../static/messages.png" mode=""></image>
|
||||
<view class="name">
|
||||
张三
|
||||
</view>
|
||||
<view class="position">
|
||||
主任医师
|
||||
</view>
|
||||
<view class="text">
|
||||
山东大学齐鲁医院,主任医师, 从事甲状腺疾病等内分泌与代 谢病的诊治,擅长甲状腺结节 良恶性鉴。
|
||||
</view>
|
||||
<view style="width: 46%;" v-if="HospitalPersonlist.length%2!=0">
|
||||
</view>
|
||||
<view style="width: 46%;" v-if="HospitalPersonlist.length%2!=0">
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -52,17 +49,54 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {
|
||||
selectDepartmentNoPage,
|
||||
selectHospitalPerson
|
||||
} from '@/api/pagesB/medicine/index.js'
|
||||
import baseurl from '../../api/baseurl';
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
baseurl: '',
|
||||
tabcurrent: 0,
|
||||
tabList: [{
|
||||
name: '健康常识'
|
||||
}],
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
departmentId: null,
|
||||
HospitalPersonlist: null,
|
||||
HospitalPersontotal: 0,
|
||||
hospitalDepartmentList: null,
|
||||
};
|
||||
},
|
||||
onLoad() {
|
||||
this.baseurl = baseurl
|
||||
this.selectDepartmentinfo();
|
||||
},
|
||||
methods: {
|
||||
tabchange() {},
|
||||
//人员
|
||||
selectHospitalPersonInfo() {
|
||||
selectHospitalPerson(this.pageNum, this.pageSize, this.departmentId).then(res => {
|
||||
this.HospitalPersonlist = res.rows
|
||||
this.HospitalPersontotal = res.total
|
||||
})
|
||||
},
|
||||
//齐鲁名医科室
|
||||
selectDepartmentinfo() {
|
||||
selectDepartmentNoPage().then(res => {
|
||||
if (res.data.length > 0) {
|
||||
res.data.forEach(e => {
|
||||
e.name = e.departmentName
|
||||
})
|
||||
this.hospitalDepartmentList = res.data
|
||||
this.departmentId = this.hospitalDepartmentList[0].departmentId
|
||||
this.selectHospitalPersonInfo();
|
||||
}
|
||||
})
|
||||
},
|
||||
tabchange(e) {
|
||||
this.tabcurrent = e
|
||||
this.departmentId = this.hospitalDepartmentList[e].departmentId
|
||||
this.selectHospitalPersonInfo();
|
||||
},
|
||||
//专家问诊
|
||||
gomedicine() {
|
||||
uni.navigateTo({
|
||||
@ -81,12 +115,31 @@
|
||||
url: '/pagesB/doctordetails/doctordetails'
|
||||
})
|
||||
},
|
||||
}
|
||||
},
|
||||
onReachBottom() { //下滑加载
|
||||
if (this.HospitalPersonlist.length >= this.HospitalPersontotal) {} else {
|
||||
this.pageNum++
|
||||
getHeathHousingList(this.pageNum, this.pageSize).then(res => {
|
||||
if (res.rows) {
|
||||
res.rows.forEach(e => {
|
||||
this.HospitalPersonlist.push(e)
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
},
|
||||
onPullDownRefresh() { //下拉刷新
|
||||
this.pageNum = 1;
|
||||
this.selectHospitalPersonInfo();
|
||||
setTimeout(function() {
|
||||
uni.stopPullDownRefresh();
|
||||
}, 1000);
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.app {
|
||||
.app {
|
||||
|
||||
.card {
|
||||
background-color: #fff;
|
||||
@ -101,28 +154,29 @@
|
||||
width: 100%;
|
||||
display: flex;
|
||||
justify-content: space-around;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.item {
|
||||
width: 46%;
|
||||
height: 382rpx;
|
||||
background: #FFFFFF;
|
||||
border: 1px solid #26A888;
|
||||
border-radius: 5rpx;
|
||||
border-radius: 10rpx;
|
||||
position: relative;
|
||||
|
||||
image {
|
||||
position: absolute;
|
||||
width: 100rpx;
|
||||
width: 120rpx;
|
||||
top: 20rpx;
|
||||
left: 20rpx;
|
||||
height: 100rpx;
|
||||
height: 120rpx;
|
||||
}
|
||||
|
||||
.name {
|
||||
position: absolute;
|
||||
top: 40rpx;
|
||||
left: 140rpx;
|
||||
font-size: 26rpx;
|
||||
left: 160rpx;
|
||||
font-size: 28rpx;
|
||||
font-weight: 400;
|
||||
color: #000000;
|
||||
}
|
||||
@ -130,24 +184,24 @@
|
||||
.position {
|
||||
position: absolute;
|
||||
top: 84rpx;
|
||||
left: 140rpx;
|
||||
font-size: 22rpx;
|
||||
left: 160rpx;
|
||||
font-size: 24rpx;
|
||||
color: #666666;
|
||||
}
|
||||
|
||||
.text {
|
||||
word-break: break-all;
|
||||
width: 90%;
|
||||
margin: 150rpx auto 0;
|
||||
font-size: 20rpx;
|
||||
margin: 170rpx auto 0;
|
||||
font-size: 22rpx;
|
||||
color: #666666;
|
||||
line-height: 33rpx;
|
||||
text-overflow: -o-ellipsis-lastline;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
display: -webkit-box;
|
||||
-webkit-line-clamp: 8; //行数需设置
|
||||
line-clamp: 8;
|
||||
-webkit-line-clamp: 5; //行数需设置
|
||||
line-clamp: 5;
|
||||
-webkit-box-orient: vertical;
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user