This commit is contained in:
2023-10-24 10:46:21 +08:00
parent a0564657ee
commit df45115551
4 changed files with 3 additions and 32 deletions

View File

@ -21,7 +21,7 @@
</view>
<u-tabs :list="hospitalDepartmentList" :current="tabcurrent" @change="tabchange" active-color='#26A888'
:show-bar='false'></u-tabs>
<view class="list">
<view class="list" v-if="HospitalPersonlist">
<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 File

@ -22,7 +22,7 @@
{{item.doctorName?item.doctorName:''}}
</view>
<view class="text">
{{item.problemDescription?item.problemDescription:''}}
{{item.content?item.content:''}}
</view>
<view class="messageCount" v-if="item.messageCount>0">
{{item.messageCount}}

View File

@ -87,7 +87,7 @@
return {
baseurl: '',
title: '',
SOCKETURL: 'ws://8.131.93.145:54088/webSocket/',
SOCKETURL: 'ws://192.168.16.212:8088/webSocket/',
socketOpen: false,
sendInfo: {},
currentItem: '',

View File

@ -1,29 +0,0 @@
export function getSex(idCard) {
if (idCard.length === 15) {
return ['女', '男'][idCard.substr(14, 1) % 2]
} else if (idCard.length === 18) {
return ['女', '男'][idCard.substr(16, 1) % 2]
}
return ''
}
export function getBirthday(idCard) {
var birthday = "";
if (idCard != null && idCard != "") {
if (idCard.length == 15) {
birthday = "19" + idCard.substr(6, 6);
} else if (idCard.length == 18) {
birthday = idCard.substr(6, 8);
}
birthday = birthday.replace(/(.{4})(.{2})/, "$1-$2-");
}
return birthday;
};
// 出生日期转年龄
export function getAgeFun(value) {
var birthdays = new Date(value.replace(/-/g, "/")); //value 是传入的值
var time = new Date(); //当前时间
var age = time.getFullYear() - birthdays.getFullYear() - (time.getMonth() < birthdays.getMonth() || (time.getMonth() == birthdays.getMonth() &&
time.getDate() < birthdays.getDate()) ? 1 : 0);
return age;
}