闸门智控小程序
This commit is contained in:
@@ -0,0 +1,299 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<tui-list-view>
|
||||
<tui-list-cell :lineLeft="false">
|
||||
<view class="tui-item-box">
|
||||
<view class="tui-msg-box">
|
||||
<image :src="apiHost+'/miniapp/static/weijing.png'" class="tui-msg-pic" mode="widthFix"></image>
|
||||
<view class="tui-msg-item">
|
||||
<view class="tui-msg-name">胃镜清洗</view>
|
||||
<view class="tui-msg-content">清洗人员:林平之(护士)</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tui-msg-right">
|
||||
<uni-tag :type="tagType" :text="tagName" :style="'border:none;padding:10rpx 20rpx;color:#000;'+tagStyle"></uni-tag>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tui-default textleftright">
|
||||
<text class="textleft">清洗时间:2022-07-14 15:16</text>
|
||||
<text class="textright"> </text>
|
||||
</view>
|
||||
</tui-list-cell>
|
||||
<view style="height:20rpx"></view>
|
||||
</tui-list-view>
|
||||
|
||||
<view class="tui-order-tracking" style="background-color: #F5F6FA;padding-top:0;">
|
||||
<view style="color:#5C5EC3;padding-bottom:40rpx">机洗-清洗流程信息记录</view>
|
||||
<tui-time-axis>
|
||||
<block v-for="(item,index) in detail" :key="item.id">
|
||||
<tui-timeaxis-item backgroundColor="transparent">
|
||||
<template v-slot:node>
|
||||
<view class="tui-node">
|
||||
<tui-icon name="" color="#fff" :size="13"></tui-icon>
|
||||
</view>
|
||||
</template>
|
||||
<template v-slot:content>
|
||||
<view class="tui-order-title tui-gray">{{item.name}}</view>
|
||||
<view class="tui-order-desc tui-light-gray">时间从{{item.date}}<text style="color:#5C5EC3">{{item.time}}</text></view>
|
||||
<view class="tui-order-time tui-gray"> </view>
|
||||
</template>
|
||||
</tui-timeaxis-item>
|
||||
</block>
|
||||
|
||||
</tui-time-axis>
|
||||
<tui-time-axis class="mytimeaxis">
|
||||
<tui-timeaxis-item backgroundColor="transparent">
|
||||
<template v-slot:node>
|
||||
<view class="tui-node">
|
||||
<tui-icon name="" color="#fff" :size="12"></tui-icon>
|
||||
</view>
|
||||
</template>
|
||||
<template v-slot:content>
|
||||
<view class="tui-order-title tui-gray">{{detailEnd.name}}</view>
|
||||
<view class="tui-order-desc tui-light-gray">时间从{{detailEnd.date}}<text style="color:#5C5EC3">{{detailEnd.time}}</text></view>
|
||||
<view class="tui-order-time tui-gray"> </view>
|
||||
</template>
|
||||
</tui-timeaxis-item>
|
||||
</tui-time-axis>
|
||||
</view>
|
||||
<view class="tui-order-header">
|
||||
<view style="display:inline-block">
|
||||
<view class="tui-text">内镜编码:
|
||||
<text class="tui-bold">9136257866</text>
|
||||
</view>
|
||||
<view class="tui-text">总计清洗:
|
||||
<text class="tui-bold">11分40秒</text>
|
||||
</view>
|
||||
</view>
|
||||
<view style="display:inline-block;position:absolute;right:30rpx">
|
||||
<view class="tui-text">消毒液温度:
|
||||
<text class="tui-bold">23°c</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import myapp from '@/common/js/myapp.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
apiHost: myapp.apiHost,
|
||||
tagType: 'success',
|
||||
tagStyle: '',
|
||||
tagBgColor:{
|
||||
'jixi': 'background-color:#ADDEFF !important',
|
||||
'shouxi': 'background-color:#ADFFB5 !important',
|
||||
},
|
||||
tagName:'',
|
||||
tagText:{
|
||||
'jixi': '机洗',
|
||||
'shouxi': '手洗',
|
||||
},
|
||||
detail:[],
|
||||
detailEnd:{}
|
||||
}
|
||||
},
|
||||
onShow: function() {
|
||||
let user = myapp.checkLogin()
|
||||
uni.setStorageSync('lastPagePath', '/packagePage/pages/record_detail/record_detail')
|
||||
|
||||
this.tagType = 'success'
|
||||
this.tagStyle = this.tagBgColor['shouxi']
|
||||
this.tagName = this.tagText['shouxi']
|
||||
let detail = [
|
||||
{id:1, name: '清洗 1分23秒', date: '4月5日', time: '16:17到18:19'},
|
||||
{id:2, name: '漂洗 4分56秒', date: '4月5日', time:'16:18到18:20'},
|
||||
{id:3, name: '消毒 5分43秒', date: '4月5日', time:'16:19到18:21'},
|
||||
{id:4, name: '终末漂洗 2分10秒', date: '4月5日', time:'16:20到18:22'},
|
||||
{id:5, name: '干燥 0分12秒', date: '4月5日', time:'16:21到18:23'},
|
||||
]
|
||||
let detailEnd = []
|
||||
this.detailEnd = detail.pop()
|
||||
this.detail = detail
|
||||
},
|
||||
methods: {
|
||||
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
page {
|
||||
background-color: #F5F6FA;
|
||||
}
|
||||
|
||||
.tui-order-header {
|
||||
padding: 30rpx;
|
||||
box-sizing: border-box;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.tui-text {
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
padding: 4rpx;
|
||||
}
|
||||
|
||||
.tui-bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tui-node {
|
||||
height: 24rpx;
|
||||
width: 24rpx;
|
||||
border-radius: 50%;
|
||||
background-color: #5C5EC3;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: #fff;
|
||||
flex-shrink: 0;
|
||||
margin-top: 0rpx;
|
||||
}
|
||||
|
||||
.tui-order-tracking {
|
||||
padding: 30rpx 30rpx 30rpx 60rpx;
|
||||
background: #fff;
|
||||
margin-top: 20rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.tui-time-axis {
|
||||
border-left: 3rpx solid #5C5EC3;
|
||||
padding-top:0;
|
||||
padding-bottom:10rpx;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.mytimeaxis, .mytimeaxis .tui-time-axis {
|
||||
border-left: none;
|
||||
}
|
||||
|
||||
.tui-order-title {
|
||||
position: relative;
|
||||
top:-9rpx;
|
||||
padding-bottom: 12rpx;
|
||||
font-size: 32rpx;
|
||||
color: #333;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.tui-order-desc {
|
||||
padding-bottom: 12rpx;
|
||||
font-size: 28rpx;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
.tui-ptop {
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
line-height: 28rpx;
|
||||
}
|
||||
|
||||
.tui-order-time {
|
||||
font-size: 24rpx;
|
||||
font-weight: bold;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.tui-gray {
|
||||
color: #848484 !important;
|
||||
}
|
||||
|
||||
.tui-light-gray {
|
||||
color: #888 !important;
|
||||
}
|
||||
|
||||
.textleft, .textright {
|
||||
color: #949494;
|
||||
font-size: 20rpx;
|
||||
margin-bottom: 20rpx;
|
||||
}
|
||||
.textleft {
|
||||
float:left;
|
||||
}
|
||||
.textright {
|
||||
float:right;
|
||||
}
|
||||
|
||||
.textleftright {
|
||||
border-top:3px solid #F5F6FA;
|
||||
}
|
||||
|
||||
.tui-default {
|
||||
padding: 30rpx 10rpx 40rpx 10rpx;
|
||||
}
|
||||
|
||||
.tui-item-box {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
padding-bottom: 20rpx;
|
||||
}
|
||||
|
||||
.tui-msg-box {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.tui-msg-item {
|
||||
max-width: 500rpx;
|
||||
min-height: 80rpx;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.tui-msg-pic {
|
||||
width: 100rpx;
|
||||
height: 100rpx;
|
||||
border-radius: 50%;
|
||||
display: block;
|
||||
margin-right: 24rpx;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.tui-msg-name {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 34rpx;
|
||||
line-height: 1;
|
||||
color: #262b3a;
|
||||
}
|
||||
|
||||
.tui-msg-content {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 26rpx;
|
||||
line-height: 1;
|
||||
color: #9397a4;
|
||||
}
|
||||
|
||||
.tui-msg-right {
|
||||
max-width: 120rpx;
|
||||
height: 88rpx;
|
||||
margin-left: auto;
|
||||
text-align: right;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
align-items: flex-end;
|
||||
}
|
||||
|
||||
.uni-tag--primary {
|
||||
background-color:#ADDEFF !important;
|
||||
border:none !important;
|
||||
color:#000 !important;
|
||||
}
|
||||
|
||||
.uni-tag--success {
|
||||
background-color:#ADFFB5 !important;
|
||||
border:none !important;
|
||||
color:#000 !important;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user