修改
This commit is contained in:
parent
a0564657ee
commit
df45115551
@ -21,7 +21,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<u-tabs :list="hospitalDepartmentList" :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" v-if="HospitalPersonlist">
|
||||||
<view class="item" @tap="godoctordetails" v-for="item in HospitalPersonlist">
|
<view class="item" @tap="godoctordetails" v-for="item in HospitalPersonlist">
|
||||||
<image v-if="item.personPictureUrl" :src="baseurl+item.personPictureUrl" mode=""></image>
|
<image v-if="item.personPictureUrl" :src="baseurl+item.personPictureUrl" mode=""></image>
|
||||||
<image v-else src="@/static/pagesB/yis.png" mode=""></image>
|
<image v-else src="@/static/pagesB/yis.png" mode=""></image>
|
||||||
|
|||||||
@ -22,7 +22,7 @@
|
|||||||
{{item.doctorName?item.doctorName:''}}
|
{{item.doctorName?item.doctorName:''}}
|
||||||
</view>
|
</view>
|
||||||
<view class="text">
|
<view class="text">
|
||||||
{{item.problemDescription?item.problemDescription:''}}
|
{{item.content?item.content:''}}
|
||||||
</view>
|
</view>
|
||||||
<view class="messageCount" v-if="item.messageCount>0">
|
<view class="messageCount" v-if="item.messageCount>0">
|
||||||
{{item.messageCount}}
|
{{item.messageCount}}
|
||||||
|
|||||||
@ -87,7 +87,7 @@
|
|||||||
return {
|
return {
|
||||||
baseurl: '',
|
baseurl: '',
|
||||||
title: '',
|
title: '',
|
||||||
SOCKETURL: 'ws://8.131.93.145:54088/webSocket/',
|
SOCKETURL: 'ws://192.168.16.212:8088/webSocket/',
|
||||||
socketOpen: false,
|
socketOpen: false,
|
||||||
sendInfo: {},
|
sendInfo: {},
|
||||||
currentItem: '',
|
currentItem: '',
|
||||||
|
|||||||
@ -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;
|
|
||||||
}
|
|
||||||
Loading…
Reference in New Issue
Block a user