You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

196 lines
3.4 KiB

<template>
<view class="pages">
<view class="top">
<view class="top-item" >
<view class="top-item-drop"></view>
<view class="top-item-text">
<text class="top-item-text1">异常时间</text>
<text class="top-item-text2">{{info.exceptionTime}}</text>
</view>
</view>
<view class="top-item" style="margin-top: 20px;">
<view class="top-item-bom">
<text class="top-item-bom-text1" @click="textClick('1')">联系技术人员</text>
<text class="top-item-bom-text2" @click="textClick('2')">工作派单</text>
</view>
</view>
</view>
<view class="bom">
<image class="img" src="https://supervise.yxtsoft.com/img/base/xtgz.png"></image>
<text class="text" >提示监控中心未收到报警系统的消息请联系技术人员</text>
</view>
</view>
</template>
<script>
export default {
data() {
return {
info: {
warehouseSid: "",
exceptionTime: "",
}
}
},
onLoad(option) {
// this.sid = option.sid
this.info = {
warehouseSid: option.shSid,
exceptionTime: option.date,
}
console.log("sid", this.info.warehouseSid)
wx.hideHomeButton()
},
methods: {
textClick(index) {
switch (index) {
case "1":
// 联系技术人员
uni.showToast({
icon: "none",
title: '联系技术人员',
duration: 2000,
});
// wx.makePhoneCall({
// //仅为示例,并非真实的电话号码
// phoneNumber: ""
// })
break;
case "2":
// 工作派单
uni.showToast({
icon: "none",
title: '工作派单',
duration: 2000,
});
// uni.navigateTo({
// url: '../index/ReadWork'
// });
break;
default:
break;
}
},
}
}
</script>
<style lang="scss">
.pages {
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
position: fixed;
overflow: auto;
.top {
display: flex;
flex-direction: column;
padding: 15px 20px;
.top-item {
display: flex;
flex-direction: row;
align-items: center;
.top-item-drop {
background: #1684FC;
border-radius: 50%;
width: 8px;
height: 8px;
}
.top-item-text {
margin-left: 10px;
display: flex;
flex-direction: row;
align-items: center;
.top-item-text1 {
font-size: 15px;
color: #666;
}
.top-item-text2 {
font-size: 18px;
color: #000;
font-weight: 600;
font-family: sans-serif;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-line-clamp: 1;
-webkit-box-orient: vertical;
}
}
.top-item-bom {
display: flex;
flex-direction: row;
width: 100%;
margin-left: 30px;
margin-right: 30px;
justify-content: space-between;
.top-item-bom-text1 {
padding: 5px 20px;
color: #2F96E1;
font-size: 14px;
border: 1px solid #2F96E1;
border-radius: 5px;
}
.top-item-bom-text2 {
padding: 5px 20px;
color: #fff;
font-size: 14px;
background: #2F96E1;
border-radius: 5px;
}
}
}
}
.bom {
display: flex;
padding: 20px;
flex-direction: column;
justify-content: center;
align-items: center;
.img {
width: 180px;
height: 180px;
}
.text{
width: 60%;
line-height: 25px;
color: #6C6C6C;
margin-top: 10px;
}
}
}
</style>