| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <template>
- <view class="page">
- <view style="padding: 20rpx 5rpx 10rpx;">
- <view class="flex justify-between padding-right-10">
- <view class="bg-blue" style="width: 65%;">
- <u-cell-group :border="false">
- <u-cell-item :icon-style="iconStyle" :arrow="false" icon="account-fill" title="姓名: " :value="detailData.personName || '未知'"></u-cell-item>
- <u-cell-item :icon-style="iconStyle" :arrow="false" icon="phone-fill" title="手机号: " :value="detailData.phone || '未知'"></u-cell-item>
- <u-cell-item :icon-style="iconStyle" :arrow="false" icon="info-circle-fill" title="体温: " :value="detailData.temperature+' ℃'"></u-cell-item>
- </u-cell-group>
- </view>
- <image @click="previewImg(detailData.faceUrl)" :src="detailData.faceUrl" mode="scaleToFill" style="width: 240rpx;height: 240rpx;"></image>
- </view>
- <u-cell-group :border="false">
- <u-cell-item :value-style="detailData.isException==0?titleStyle0:titleStyle1" :icon-style="iconStyle" :arrow="false" icon="question-circle-fill" title="是否异常:" :value="detailData.isException==0?'否':'异常'"></u-cell-item>
- <u-cell-item :icon-style="iconStyle" :arrow="false" icon="bookmark-fill" title="设备名称:" :value="detailData.cameraName"></u-cell-item>
- <u-cell-item :icon-style="iconStyle" :arrow="false" icon="clock-fill" title="测温时间:" :value="detailData.recogTime"></u-cell-item>
- <u-cell-item :icon-style="iconStyle" :arrow="false" icon="map-fill" title="安装位置:" :value="detailData.address || '未知'"></u-cell-item>
- </u-cell-group>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: '',
- data() {
- return {
- detailData:{},
- iconStyle:{
- color:"#59a5f0"
- },
- titleStyle0:{
- color:"#19be6b"
- },
- titleStyle1:{
- color:"#fa3534"
- },
- };
- },
- onLoad() {
-
- },
- onShow() {
- this.detailData=getApp().globalData.staffTemperature
- },
- methods:{
- previewImg(img){
- let imgs=[]
- imgs.push(img)
- uni.previewImage({
- urls:imgs
- })
- }
- }
- };
- </script>
- <style lang="scss" scoped>
- .page{
- background-color: #FFFFFF;
- min-height: 100vh;
- }
- </style>
|