t-p-xixuan.vue 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <view class="content">
  3. <view class="item_box" style="background-color: #FBB47B;" @click="go_video_monitor()">
  4. <view class="img">
  5. <image src="../t-p-icon/icon_6.png" mode=""></image>
  6. </view>
  7. <view class="text">
  8. <view class="name">视频监控</view>
  9. <view class="tip">工业视频</view>
  10. </view>
  11. </view>
  12. </view>
  13. </template>
  14. <script>
  15. export default {
  16. name: "t-p-xixuan",
  17. data() {
  18. return {
  19. mine_code:"xixuan",
  20. };
  21. },
  22. methods: {
  23. // 视频监控
  24. go_video_monitor(){
  25. uni.navigateTo({
  26. url:"../../production/video_monitor/video_monitor?mine_code=" + this.mine_code
  27. })
  28. }
  29. }
  30. }
  31. </script>
  32. <style lang="scss">
  33. .content {
  34. box-sizing: border-box;
  35. padding: 20rpx 25rpx 0;
  36. margin-bottom: 100rpx;
  37. overflow: hidden;
  38. .item_box {
  39. float: left;
  40. width: 220rpx;
  41. height: 280rpx;
  42. margin-right: 20rpx;
  43. margin-bottom: 20rpx;
  44. border-radius: 16rpx;
  45. .img {
  46. box-sizing: border-box;
  47. padding-top: 40rpx;
  48. text-align: center;
  49. image {
  50. width: 140rpx;
  51. height: 140rpx;
  52. }
  53. }
  54. .text {
  55. text-align: center;
  56. color: #FFFFFF;
  57. line-height: 40rpx;
  58. .name {
  59. font-size: 28rpx;
  60. }
  61. .tip {
  62. font-size: 24rpx;
  63. white-space: nowrap;
  64. overflow: hidden;
  65. text-overflow: ellipsis;
  66. }
  67. }
  68. }
  69. .item_box:nth-child(3n) {
  70. margin-right: 0;
  71. }
  72. }
  73. </style>