TraceabilityAPP/App.vue

104 lines
1.9 KiB
Vue
Raw Permalink Normal View History

2023-10-17 11:00:41 +08:00
<script>
export default {
onLaunch: function() {
2024-01-03 19:11:45 +08:00
// uni.connectSocket({
// url: 'ws://60.204.152.17:8765'
// });
// uni.onSocketOpen(function(res) {
// console.log('WebSocket连接已打开');
2023-11-30 17:51:39 +08:00
2024-01-04 11:32:58 +08:00
// // username: userInfo.value.master_phone,
// // device: 'lihai_lot_walnutpi_dev_' + userInfo.value.device_id
2024-01-03 19:11:45 +08:00
// uni.sendSocketMessage({
2024-01-04 11:32:58 +08:00
// data: JSON.stringify({
// "username": "1",
// "device": "lihai_lot_walnutpi_dev_5"
// })
2024-01-03 19:11:45 +08:00
// });
2023-11-30 17:51:39 +08:00
2024-01-03 19:11:45 +08:00
// });
// uni.onSocketError(function(res) {
// console.log('WebSocket连接打开失败请检查');
// });
2024-01-04 11:32:58 +08:00
// uni.onSocketClose(function(res) {
// console.log('WebSocket 已关闭!');
// });
2023-10-17 11:00:41 +08:00
},
onShow: function() {
console.log('App Show')
2023-12-25 00:26:32 +08:00
uni.hideTabBar()
2023-11-30 17:51:39 +08:00
2023-10-17 11:00:41 +08:00
},
onHide: function() {
console.log('App Hide')
2023-12-21 18:04:26 +08:00
},
2023-10-17 11:00:41 +08:00
}
2023-10-30 19:09:40 +08:00
// ngrok http 5173
2023-10-17 11:00:41 +08:00
</script>
2023-10-17 16:02:55 +08:00
<style lang="scss">
@import "uview-plus/index.scss";
2023-12-13 15:57:20 +08:00
2023-10-20 18:45:15 +08:00
.card {
position: relative;
2023-11-30 17:51:39 +08:00
2023-10-20 18:45:15 +08:00
background-color: #fff;
box-sizing: border-box;
padding: 20rpx 20rpx;
2023-10-20 18:45:15 +08:00
border-radius: 21.03rpx 21.03rpx 21.03rpx 21.03rpx;
margin: 0 auto;
2023-10-20 18:45:15 +08:00
margin-bottom: 40rpx;
font-size: 29.79rpx;
2023-12-14 11:27:14 +08:00
box-shadow: 1rpx 1rpx 10rpx 1rpx rgba(0, 0, 0, 0.1);
2023-10-20 18:45:15 +08:00
.card-li {
2023-11-30 17:51:39 +08:00
2023-10-20 18:45:15 +08:00
margin-bottom: 17rpx;
}
}
2023-11-21 18:54:33 +08:00
// .content {
// padding: 20rpx 28.5rpx;
// background-color: #F4F4F4;
// min-height: 100vh;
// }
2023-10-23 09:00:12 +08:00
2023-10-23 17:57:19 +08:00
.more-jt {
display: flex;
align-items: center;
}
2023-11-30 17:51:39 +08:00
.u-action-sheet__item-wrap {
overflow: auto;
max-height: 30vh !important;
}
2023-10-23 17:57:19 +08:00
2023-12-13 15:57:20 +08:00
view {
box-sizing: border-box;
}
2023-12-13 18:55:18 +08:00
.te {
2023-12-14 11:27:14 +08:00
width: 30vw;
2023-12-13 18:55:18 +08:00
/* 容器宽度 */
white-space: nowrap;
/* 文字不换行 */
overflow: hidden;
/* 超出部分隐藏 */
text-overflow: ellipsis;
/* 超出部分显示省略号 */
}
2023-12-13 15:57:20 +08:00
// .uni-tabbar .uni-tabbar__icon {
// width: 80rpx !important;
// height: 80rpx !important;
// }
2023-10-17 11:00:41 +08:00
/*每个页面公共css */
2023-10-17 16:02:55 +08:00
</style>