护理站
This commit is contained in:
parent
4386ebdc78
commit
fdd656b241
@ -15,9 +15,9 @@ export function getAppStationItemInfo(stationId, stationItemId, stationItemPrice
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
export function appointment(data) {
|
||||
export function submitAppointment(data) {
|
||||
return request({
|
||||
url: `/nurseApplet/login/appointment`,
|
||||
url: `/nurseApp/login/submitAppointment`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
|
||||
@ -10,12 +10,12 @@ export function introductionList(id) {
|
||||
|
||||
|
||||
|
||||
export function getPatientInfo(id) {
|
||||
return request({
|
||||
url: `/nurseApplet/login/getPatientInfo?openId=${id}`,
|
||||
method: 'GET'
|
||||
})
|
||||
}
|
||||
// export function getAppStationItemInfo(id) {
|
||||
// return request({
|
||||
// url: `/nurseApp/login/getAppStationItemInfo?patientId=${id}`,
|
||||
// method: 'GET'
|
||||
// })
|
||||
// }
|
||||
|
||||
export function itemList(id,pageSize,pageNum) {
|
||||
return request({
|
||||
|
||||
@ -9,7 +9,7 @@ var request = function(config) {
|
||||
url: baseurl + config.url,
|
||||
data: config.data,
|
||||
method: config.method,
|
||||
timeout: 5000,
|
||||
timeout: 10000,
|
||||
// header: {
|
||||
// token: uni.getStorageSync('token')
|
||||
// },
|
||||
|
||||
@ -16,8 +16,8 @@
|
||||
</view>
|
||||
<view class="selecttime" @tap='timeshow=true'>
|
||||
<span>时间:</span>
|
||||
<text v-if="usertime==''">请选择时间</text>
|
||||
<text v-else>{{usertime}}</text>
|
||||
<text v-if="usertime==''" style="color: black;">请选择时间</text>
|
||||
<text v-else style="color: black;">{{usertime}}</text>
|
||||
<image src="../../static/jiantou.png"></image>
|
||||
</view>
|
||||
</view>
|
||||
@ -55,12 +55,6 @@
|
||||
<view class="queren" @tap='updata'>确认预约</view>
|
||||
</view>
|
||||
<u-toast ref="uToast" />
|
||||
<!-- <u-picker @confirm='confirm2()' mode="time" v-model="timeshow2" start-year='2022' :params="params2">
|
||||
</u-picker>
|
||||
<u-picker @confirm='confirm3()' mode="time" v-model="timeshow3" start-year='2022' :params="params3">
|
||||
</u-picker>
|
||||
<u-picker @confirm='confirm4()' mode="time" v-model="timeshow4" start-year='2022' :params="params4">
|
||||
</u-picker> -->
|
||||
<upicker v-model="timeshow" mode="time" start-year='2022' :params="timeparams" @confirm='timeconfirm'></upicker>
|
||||
</view>
|
||||
</template>
|
||||
@ -71,7 +65,7 @@
|
||||
submitAppointment
|
||||
} from '@/api/appointmenttime/appointmenttime.js'
|
||||
import baseurl from '@/api/baseurl.js'
|
||||
import upicker from '../u-picker/u-picker.vue'
|
||||
import upicker from '../picker/picker.vue'
|
||||
export default {
|
||||
components: {
|
||||
upicker
|
||||
@ -88,9 +82,6 @@
|
||||
endminute: true,
|
||||
},
|
||||
timeshow: false,
|
||||
timeshow2: false,
|
||||
timeshow3: false,
|
||||
timeshow4: false,
|
||||
maskshow: false,
|
||||
orderlist: {
|
||||
"patientId": '',
|
||||
@ -112,29 +103,25 @@
|
||||
},
|
||||
maskshow: false,
|
||||
userlist: [],
|
||||
userid: '',
|
||||
patientId: 46,
|
||||
phone: '',
|
||||
patientName: '',
|
||||
address: '',
|
||||
usertime: '',
|
||||
maskshow: false,
|
||||
radio1: 1,
|
||||
stationId: 2,
|
||||
stationItemId: 2,
|
||||
stationItemPriceId: 3,
|
||||
getinfolist: {}, //服务时长
|
||||
listInfo: [],
|
||||
username: "",
|
||||
userAddress: "",
|
||||
userphoneList: [],
|
||||
useraddressList: [],
|
||||
personInfo: [],
|
||||
}
|
||||
},
|
||||
onLoad(options) {
|
||||
console.log(options)
|
||||
this.getInfo()
|
||||
this.getPatientInfo()
|
||||
//获取护理站id等信息
|
||||
this.personInfo.patientId = options.patientId
|
||||
this.orderlist.stationId = options.stationId
|
||||
this.orderlist.stationItemId = options.stationItemId
|
||||
this.orderlist.stationItemPriceId = options.stationItemPriceId
|
||||
@ -143,26 +130,28 @@
|
||||
},
|
||||
methods: {
|
||||
//获取时间
|
||||
timeconfirm(e){
|
||||
timeconfirm(e) {
|
||||
console.log(e)
|
||||
this.orderlist.serviceDate = e.year + '-' + e.month + '-' + e.day
|
||||
this.orderlist.serviceStartTime = e.hour + ":" + e.minute
|
||||
this.orderlist.serviceEndTime = e.endhour + ":" + e.endminute
|
||||
this.usertime = e.year + '年' + e.month + '月' + e.day + '日' + e.hour + ":" + e.minute + '至' +e.endhour + ":" + e.endminute
|
||||
console.log(this.orderlist,this.usertime)
|
||||
},
|
||||
getInfo() { //被护理人信息
|
||||
getAppPatientList(this.patientId).then(res => {
|
||||
this.personInfo = res.data[0]
|
||||
console.log("this.personInfo", this.personInfo);
|
||||
this.orderlist.patientId = res.data[0].patientId
|
||||
this.orderlist.serviceAddress = res.data[0].address
|
||||
|
||||
})
|
||||
},
|
||||
|
||||
//获取耗材包详情
|
||||
getPatientInfo(stationId, stationItemId, stationItemPriceId) {
|
||||
getAppStationItemInfo(stationId, stationItemId, stationItemPriceId).then(res => {
|
||||
getAppStationItemInfo(this.stationId, this.stationItemId, this.stationItemPriceId).then(res => {
|
||||
console.log(res)
|
||||
this.orderlist = res.data
|
||||
//被护理人信息
|
||||
this.getInfo()
|
||||
|
||||
})
|
||||
},
|
||||
//确认预约
|
||||
@ -175,44 +164,11 @@
|
||||
|
||||
)
|
||||
},
|
||||
confirm2(e) {
|
||||
console.log(e);
|
||||
this.timeshow3 = true;
|
||||
this.orderlist.serviceDate = e.year + '-' + e.month + '-' + e.day
|
||||
this.usertime = e.year + '年' + e.month + '月' + e.day + '日'
|
||||
},
|
||||
confirm4(e) {
|
||||
console.log(e)
|
||||
this.usertime = this.usertime + e.hour + ":" + e.minute
|
||||
this.orderlist.serviceEndTime = e.hour + ":" + e.minute
|
||||
},
|
||||
confirm3(e) {
|
||||
console.log(e)
|
||||
var sep = '\xa0 \xa0';
|
||||
this.usertime = this.usertime + sep + e.hour + ":" + e.minute + '至'
|
||||
console.log(this.orderlist)
|
||||
this.orderlist.serviceStartTime = e.hour + ":" + e.minute
|
||||
console.log(this.orderlist)
|
||||
this.timeshow4 = true;
|
||||
},
|
||||
|
||||
|
||||
|
||||
changeRadio2() {
|
||||
this.radio1 = 2;
|
||||
// console.log("个人")
|
||||
},
|
||||
// changeRadio2() {
|
||||
// this.radio1 = 2;
|
||||
// // console.log("个人")
|
||||
// this.maskshow = true;
|
||||
// },
|
||||
|
||||
timeconfirm(e) {
|
||||
console.log(e);
|
||||
// this.orderlist.serviceDate = e.year + '-' + e.month + '-' + e.day
|
||||
// this.usertime = e.year + '年' + e.month + '月' + e.day + '日'
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@ -270,6 +226,11 @@
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx;
|
||||
margin-top: 3%;
|
||||
|
||||
input {
|
||||
margin-top: -6%;
|
||||
margin-left: 15%;
|
||||
}
|
||||
}
|
||||
|
||||
.priceback {
|
||||
@ -318,14 +279,6 @@
|
||||
line-height: 2rpx;
|
||||
font-size: 34rpx;
|
||||
|
||||
.radio {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
border-radius: 70%;
|
||||
border: 2rpx solid #178ffb;
|
||||
margin: 6px 25px -10px -10px;
|
||||
}
|
||||
|
||||
.agreement {
|
||||
font-size: 34rpx;
|
||||
color: #878987;
|
||||
@ -335,17 +288,27 @@
|
||||
.radio-right {
|
||||
margin-left: 66rpx;
|
||||
|
||||
/* 同意协议 */
|
||||
.radio-active {
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #178ffb;
|
||||
}
|
||||
|
||||
.radio-default {
|
||||
border: 2rpx solid #0fbda6;
|
||||
}
|
||||
|
||||
.radio {
|
||||
width: 34rpx;
|
||||
height: 34rpx;
|
||||
border-radius: 70%;
|
||||
border: 2rpx solid #178ffb;
|
||||
margin: 6px 25px -10px -10px;
|
||||
|
||||
.radio-active {
|
||||
width: 16rpx;
|
||||
height: 16rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #178ffb;
|
||||
margin-left: 20%;
|
||||
margin-top: 20%;
|
||||
// margin: 0 auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -1,18 +1,17 @@
|
||||
<template>
|
||||
|
||||
<view class="CON">
|
||||
<view class="app">
|
||||
<view class="concent">
|
||||
<view class="background">
|
||||
<view class="picture">
|
||||
<image src="/static/detailed.png" mode=""></image>
|
||||
<view>
|
||||
<view class="detailed">
|
||||
<view>护理站是以维护社区人群健康、满足社区 人群基本医疗护理需求为宗旨,以护士为核心 的各类护理人员组成的团队,在一定社区范围 内,为长期卧床老人、患者、残疾人、临终患
|
||||
者和其他需要护理服务者提供基础护理、专科 护理、临终护理、消毒隔离技术指导、营养指导、社区康复指导、健康宣教和其他护理服务 的医疗机构。</view>
|
||||
<view>护理站以遵医嘱的上门护理服务为主,包括生活护理和医疗护理,详情如下:</view>
|
||||
</view>
|
||||
<image src="/static/detailed.png" mode=""></image>
|
||||
<view>
|
||||
<view class="detailed">
|
||||
<view>护理站是以维护社区人群健康、满足社区 人群基本医疗护理需求为宗旨,以护士为核心 的各类护理人员组成的团队,在一定社区范围 内,为长期卧床老人、患者、残疾人、临终患
|
||||
者和其他需要护理服务者提供基础护理、专科 护理、临终护理、消毒隔离技术指导、营养指导、社区康复指导、健康宣教和其他护理服务 的医疗机构。</view>
|
||||
<view>护理站以遵医嘱的上门护理服务为主,包括生活护理和医疗护理,详情如下:</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
<view class="concenta">
|
||||
@ -22,7 +21,7 @@
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="concentb">
|
||||
<view class="concentb">
|
||||
<text class="life">医疗护理 </text>
|
||||
<view class="lifeserve">
|
||||
<image src="/static/yiliaohuli.png" mode=""></image>
|
||||
@ -51,13 +50,51 @@
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.CON {
|
||||
// position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
// min-height: 100vh;
|
||||
background-color:#F4F5F7;
|
||||
padding-bottom: 20rpx;
|
||||
.app {
|
||||
// font-size: 36rpx;
|
||||
padding-top: 10rpx;
|
||||
|
||||
.concent {
|
||||
width: 701rpx;
|
||||
height: 811rpx;
|
||||
background: #4C7BC9;
|
||||
box-shadow: 0px 9px 31px 9px rgba(0, 0, 0, 0.03);
|
||||
border-radius: 20rpx;
|
||||
margin-top: 5%;
|
||||
// left: 50%;
|
||||
// transform: translateX(-50%);
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20px;
|
||||
|
||||
.background {
|
||||
position: relative;
|
||||
// display: flex;
|
||||
width: 657rpx;
|
||||
height: 727rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 25rpx;
|
||||
background-color: white;
|
||||
margin: 0 auto;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
|
||||
image {
|
||||
width: 178rpx;
|
||||
height: 84rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 25px;
|
||||
// float: right;
|
||||
margin-left: 68%;
|
||||
margin-top: 5%;
|
||||
}
|
||||
|
||||
|
||||
// text-align:center;
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.life {
|
||||
@ -72,20 +109,7 @@
|
||||
|
||||
}
|
||||
|
||||
.concent {
|
||||
// position: absolute;
|
||||
|
||||
width: 701rpx;
|
||||
height: 811rpx;
|
||||
background: #4C7BC9;
|
||||
box-shadow: 0px 9px 31px 9px rgba(0, 0, 0, 0.03);
|
||||
border-radius: 20rpx;
|
||||
margin-top: 5%;
|
||||
// left: 50%;
|
||||
// transform: translateX(-50%);
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.lifeserve image {
|
||||
width: 639rpx;
|
||||
@ -112,7 +136,8 @@
|
||||
border-radius: 25rpx;
|
||||
// margin-bottom: 30rpx;
|
||||
}
|
||||
.concentb{
|
||||
|
||||
.concentb {
|
||||
margin: 0 auto;
|
||||
margin-bottom: 20px;
|
||||
// position: absolute;
|
||||
@ -126,25 +151,8 @@
|
||||
}
|
||||
|
||||
|
||||
.background {
|
||||
position: relative;
|
||||
// display: flex;
|
||||
width: 657rpx;
|
||||
height: 727rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 25rpx;
|
||||
background-color: white;
|
||||
margin: 0 auto;
|
||||
top: 50%;
|
||||
transform: translateY(-50%);
|
||||
|
||||
|
||||
// text-align:center;
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
.detailed {
|
||||
// font-size: 29rpx;
|
||||
width: 657rpx;
|
||||
@ -157,14 +165,4 @@
|
||||
// height: 100%;
|
||||
text-indent: 2em;
|
||||
}
|
||||
|
||||
.picture image {
|
||||
width: 178rpx;
|
||||
height: 84rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 25px;
|
||||
// float: right;
|
||||
margin-left: 68%;
|
||||
margin-top: 5%;
|
||||
}
|
||||
</style>
|
||||
|
||||
@ -7,13 +7,16 @@
|
||||
{{list.nurseStationName}}
|
||||
</view>
|
||||
<view class="address">{{list.address}} </view>
|
||||
<view class="callme" @tap="gophone()">
|
||||
<u-icon name="phone-fill" color="#ffffff" size="28"></u-icon>
|
||||
联系我们
|
||||
</view>
|
||||
<view class="Navigation">
|
||||
<image src="/static/daohang.png" mode="">导航</image>
|
||||
<view class="call">
|
||||
<view class="callme" @tap="gophone()">
|
||||
<u-icon name="phone-fill" color="#ffffff" size="28"></u-icon>
|
||||
联系我们
|
||||
</view>
|
||||
<view class="Navigation">
|
||||
<image src="/static/daohang.png" mode="">导航</image>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="detail">
|
||||
<view class="Introduction">机构简介</view>
|
||||
@ -28,24 +31,22 @@
|
||||
<view class="measure">
|
||||
<text>{{item.labelDescription}}</text>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tive">
|
||||
<view class="tab-box">
|
||||
<view class="tab-item" @tap="testTabClick(index)" :class="tabIndex == index?'active':''"
|
||||
v-for="(item,index) in tabList" :key="index">
|
||||
<view class="tab-item" @tap="testTabClick(index)" v-for="(item,index) in tabList" :key="index"
|
||||
:class="tabIndex == index?'active':''">
|
||||
{{item.name}}
|
||||
</view>
|
||||
</view>
|
||||
<view class="item" v-for="(item,index) in servelist" :key="index" v-show='choicetab==false'>
|
||||
<view class="item" v-for="item in servelist" :key="" v-show='choicetab==false'>
|
||||
<image src="../../static/fuwutu.png"></image>
|
||||
<view class="huanyao">{{item.nurseItemName}}
|
||||
<view class="pingfen">
|
||||
<u-rate :count="5" value="2"></u-rate>
|
||||
</view>
|
||||
|
||||
</view>
|
||||
<view class="servicetime">服务时长:{{item.serveDurationUnit}}</view>
|
||||
<view class="appointment" @tap='goappointments(item)'>预约</view>
|
||||
@ -107,8 +108,8 @@
|
||||
this.productinfo()
|
||||
},
|
||||
methods: {
|
||||
//
|
||||
goappointments(item) {
|
||||
console.log(item)
|
||||
uni.navigateTo({
|
||||
url: `/pages/appointmenttime/appointmenttime?stationId=${item.stationId}&stationItemId=${item.stationItemId}&stationItemPriceId=${item.stationItemPriceId}`,
|
||||
|
||||
@ -117,9 +118,12 @@
|
||||
getInfo() {
|
||||
introductionList(this.nurseStationId).then(res => {
|
||||
this.list = res[0]
|
||||
this.nurseStationLabelList = res[0].nurseStationLabelList
|
||||
console.log(this.list)
|
||||
if(res[0].nurseStationLabelList){
|
||||
this.nurseStationLabelList = res[0].nurseStationLabelList
|
||||
}
|
||||
// this.nearbyNursingStationItemList = res[0].nearbyNursingStationItemList
|
||||
console.log(this.nurseStationLabelList);
|
||||
// (this.nurseStationLabelList);
|
||||
})
|
||||
},
|
||||
serveinfo() {
|
||||
@ -141,43 +145,43 @@
|
||||
}
|
||||
},
|
||||
|
||||
gophone() {
|
||||
var that = this
|
||||
uni.getSystemInfo({
|
||||
success: function(res) {
|
||||
// console.log(res)
|
||||
if (res.platform == 'ios') {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: that.list.phone //仅为示例
|
||||
});
|
||||
} else {
|
||||
uni.showActionSheet({
|
||||
itemList: ['呼叫', ],
|
||||
success: function(res) {
|
||||
if (res.tapIndex + 1 == 1) {
|
||||
uni.makePhoneCall({
|
||||
phoneNumber: that.list.phone //仅为示例
|
||||
});
|
||||
}
|
||||
console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
|
||||
},
|
||||
fail: function(res) {
|
||||
// console.log(res.errMsg);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
// gophone() {
|
||||
// var that = this
|
||||
// uni.getSystemInfo({
|
||||
// success: function(res) {
|
||||
// // console.log(res)
|
||||
// if (res.platform == 'ios') {
|
||||
// uni.makePhoneCall({
|
||||
// phoneNumber: that.list.phone //仅为示例
|
||||
// });
|
||||
// } else {
|
||||
// uni.showActionSheet({
|
||||
// itemList: ['呼叫', ],
|
||||
// success: function(res) {
|
||||
// if (res.tapIndex + 1 == 1) {
|
||||
// uni.makePhoneCall({
|
||||
// phoneNumber: that.list.phone //仅为示例
|
||||
// });
|
||||
// }
|
||||
// console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
|
||||
// },
|
||||
// fail: function(res) {
|
||||
// // console.log(res.errMsg);
|
||||
// }
|
||||
// });
|
||||
// }
|
||||
// }
|
||||
// });
|
||||
|
||||
},
|
||||
// },
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
//全局
|
||||
.app {
|
||||
font-size: 36rpx;
|
||||
padding-top: 10rpx;
|
||||
|
||||
.tive {
|
||||
width: 94%;
|
||||
background-color: #ffffff;
|
||||
@ -347,39 +351,48 @@
|
||||
margin-top: 5%;
|
||||
}
|
||||
|
||||
.Navigation {
|
||||
width: 103rpx;
|
||||
height: 48rpx;
|
||||
background: #00C176;
|
||||
border-radius: 24px;
|
||||
font-size: 21rpx;
|
||||
color: #ffffff;
|
||||
line-height: 48rpx;
|
||||
margin-left: 60%;
|
||||
text-align: center;
|
||||
margin-top: -6%;
|
||||
image {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
}
|
||||
}
|
||||
.callme {
|
||||
width: 149rpx;
|
||||
height: 48rpx;
|
||||
background: #D43953;
|
||||
border-radius: 24px;
|
||||
font-size: 21rpx;
|
||||
color: #ffffff;
|
||||
line-height: 48rpx;
|
||||
margin-left: 35%;
|
||||
margin-top: 3%;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.title {
|
||||
margin-left: 35%;
|
||||
line-height: 49px;
|
||||
font-size: 33rpx;
|
||||
}
|
||||
|
||||
.call {
|
||||
display: flex;
|
||||
|
||||
.Navigation {
|
||||
width: 103rpx;
|
||||
height: 48rpx;
|
||||
background: #00C176;
|
||||
border-radius: 24px;
|
||||
font-size: 21rpx;
|
||||
color: #ffffff;
|
||||
line-height: 48rpx;
|
||||
margin-left: 5%;
|
||||
text-align: center;
|
||||
margin-top: 3%;
|
||||
|
||||
image {
|
||||
width: 24rpx;
|
||||
height: 24rpx;
|
||||
}
|
||||
}
|
||||
|
||||
.callme {
|
||||
width: 149rpx;
|
||||
height: 48rpx;
|
||||
background: #D43953;
|
||||
border-radius: 24px;
|
||||
font-size: 21rpx;
|
||||
color: #ffffff;
|
||||
line-height: 48rpx;
|
||||
margin-left: 35%;
|
||||
margin-top: 3%;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
|
||||
.address {
|
||||
font-size: 25rpx;
|
||||
margin-left: 35%;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user