NurseStationApp/pages/Nursingstationserviceorder/Nursingstationserviceorder.vue

157 lines
2.8 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<view class="app">
<view class="content">
<view class="name">
{{list.createTime}}
<span>{{list.orderStatus=='WAIT_PAY'?'待付款':''}}
{{list.orderStatus=='WAIT_DISPATCH'?'待派单':''}}
{{list.orderStatus=='NOT_FINISH'?'未完成':''}}
{{list.orderStatus=='COMPLETE'?'服务完成':''}}</span>
</view>
<view class="details">
<view class="detailslist">
<image src="/static/fuwutu.png" mode=""></image>
<view class="model">
<view class="top">
<span>{{list.nurseItemName}}</span>
<span>{{list.totalPrice}}</span>
</view>
<view class="bottom">
<span>服务时长{{list.itemServeDurationUnit}}</span>
</view>
</view>
</view>
<view class="submit" @tap="gofinished">
确认完成
</view>
</view>
</view>
</view>
</template>
<script>
import baseurl from '@/api/baseurl.js'
import {
appServiceOrder
} from '@/api/Nursingstationserviceorder/Nursingstationserviceorder.js'
export default {
data() {
return {
patientId: 46,
pageNum: 1,
pageSize: 10,
list: [],
}
},
onLoad() {
this.getinfo()
},
methods: {
getinfo() {
appServiceOrder(this.patientId, this.pageNum, this.pageSize).then(res => {
// console.log(res)
this.list = res.rows[0];
console.log(this.list)
})
},
gofinished() {
uni.navigateTo({
url: '/pages/ServiceDetails/ServiceDetails'
})
},
}
}
</script>
<style lang="scss">
.app {
height: 100vh;
padding: 2%;
.content {
// margin-top: 3%;
width: 99%;
height: 386rpx;
background: #FFFFFF;
box-shadow: 0px 9px 31px 9px rgba(0, 0, 0, 0.03);
border-radius: 20px;
margin: 0 auto;
margin-top: 2%;
.name {
width: 95%;
height: 90rpx;
font-size: 30rpx;
color: #969394;
line-height: 90rpx;
border-bottom: 1rpx solid #D8D4D4;
margin: 0 auto;
span {
color: #4C7BC9;
float: right;
}
image {
width: 15rpx;
height: 23rpx;
padding-left: 25rpx;
}
}
.details {
height: 250rpx;
.detailslist {
display: flex;
image {
width: 182rpx;
height: 182rpx;
margin: 20rpx 0 0 20rpx;
}
.model {
width: 70%;
margin: 30rpx 0 0 20rpx;
span {
font-size: 38rpx;
color: #000000;
}
span:nth-child(2) {
color: #969394;
float: right;
margin-right: 30rpx;
}
.bottom {
margin-top: 20rpx;
span {
font-size: 35rpx;
color: #969394;
}
}
}
}
.submit {
width: 175rpx;
height: 68rpx;
line-height: 68rpx;
background: #4C7BC9;
border-radius: 26rpx;
text-align: center;
font-size: 32rpx;
color: #FFFFFF;
float: right;
margin-right: 30rpx;
}
}
}
}
</style>