t-p-shicaocun.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <template>
  2. <view class="content">
  3. <view class="item_box" style="background-color: #638BD5;" @click="go_production_report()">
  4. <view class="img">
  5. <image src="../t-p-icon/icon_2.png" mode=""></image>
  6. </view>
  7. <view class="text">
  8. <view class="name">生产报表</view>
  9. <view class="tip">当日产量140517.8吨</view>
  10. </view>
  11. </view>
  12. <view class="item_box" style="background-color: #A3A2E4;" @click="go_personnel_orientation()">
  13. <view class="img">
  14. <image src="../t-p-icon/icon_3.png" mode=""></image>
  15. </view>
  16. <view class="text">
  17. <view class="name">人员定位</view>
  18. <view class="tip">井下人数3892人</view>
  19. </view>
  20. </view>
  21. <view class="item_box" style="background-color: #8BC8DA;" @click="go_safety_monitoring()">
  22. <view class="img">
  23. <image src="../t-p-icon/icon_4.png" mode=""></image>
  24. </view>
  25. <view class="text">
  26. <view class="name">安全监测</view>
  27. <view class="tip">6268监测点</view>
  28. </view>
  29. </view>
  30. <view class="item_box" style="background-color: #FBB47B;">
  31. <view class="img">
  32. <image src="../t-p-icon/icon_6.png" mode=""></image>
  33. </view>
  34. <view class="text">
  35. <view class="name">视频监控</view>
  36. <view class="tip">工业视频</view>
  37. </view>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. export default {
  43. name: "t-p-shicaocun",
  44. data() {
  45. return {
  46. };
  47. },
  48. methods: {
  49. // 生产报表
  50. go_production_report() {
  51. uni.navigateTo({
  52. url: "../../production/production_report/production_report"
  53. })
  54. },
  55. // 安全监测
  56. go_safety_monitoring() {
  57. uni.navigateTo({
  58. url: "../../production/safety_monitoring/safety_monitoring?mine=shicaocun"
  59. })
  60. },
  61. //人员定位
  62. go_personnel_orientation() {
  63. uni.navigateTo({
  64. url:"../../production/personnel_orientation/personnel_orientation?mine=shicaocun"
  65. })
  66. }
  67. }
  68. }
  69. </script>
  70. <style lang="scss">
  71. .content {
  72. box-sizing: border-box;
  73. padding: 20rpx 25rpx 0;
  74. margin-bottom: 100rpx;
  75. overflow: hidden;
  76. .item_box {
  77. float: left;
  78. width: 220rpx;
  79. height: 280rpx;
  80. margin-right: 20rpx;
  81. margin-bottom: 20rpx;
  82. border-radius: 16rpx;
  83. .img {
  84. box-sizing: border-box;
  85. padding-top: 40rpx;
  86. text-align: center;
  87. image {
  88. width: 140rpx;
  89. height: 140rpx;
  90. }
  91. }
  92. .text {
  93. text-align: center;
  94. color: #FFFFFF;
  95. line-height: 40rpx;
  96. .name {
  97. font-size: 28rpx;
  98. }
  99. .tip {
  100. font-size: 24rpx;
  101. white-space: nowrap;
  102. overflow: hidden;
  103. text-overflow: ellipsis;
  104. }
  105. }
  106. }
  107. .item_box:nth-child(3n) {
  108. margin-right: 0;
  109. }
  110. }
  111. </style>