TraceabilityAPP/App.vue

104 lines
1.9 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.

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