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