p-i-704-section-4.vue 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <template>
  2. <view>
  3. <view class="section">
  4. <view class="box">
  5. <view class="title">
  6. <view class="icon"></view>
  7. <view class="name">工业电视</view>
  8. <view class="right" @click="go_video()"></view>
  9. </view>
  10. <view class="content">
  11. <view class="list_item">
  12. <view class="item">
  13. <view class="icon">
  14. <image src="./icon/icon_1.png" mode=""></image>
  15. </view>
  16. <view class="name">220704风巷</view>
  17. </view>
  18. <view class="item">
  19. <view class="icon">
  20. <image src="./icon/icon_1.png" mode=""></image>
  21. </view>
  22. <view class="name">220704风巷</view>
  23. </view>
  24. <view class="item">
  25. <view class="icon">
  26. <image src="./icon/icon_1.png" mode=""></image>
  27. </view>
  28. <view class="name">220704风巷</view>
  29. </view>
  30. <view class="item">
  31. <view class="icon">
  32. <image src="./icon/icon_1.png" mode=""></image>
  33. </view>
  34. <view class="name">220704风巷</view>
  35. </view>
  36. <view class="item">
  37. <view class="icon">
  38. <image src="./icon/icon_1.png" mode=""></image>
  39. </view>
  40. <view class="name">220704风巷</view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </view>
  47. </template>
  48. <script>
  49. export default {
  50. data() {
  51. return {
  52. };
  53. },
  54. methods:{
  55. go_video(){
  56. uni.navigateTo({
  57. url:"../../pages/p-i-video/p-i-video"
  58. })
  59. }
  60. }
  61. }
  62. </script>
  63. <style lang="scss">
  64. .section{
  65. margin-top: 10rpx;
  66. .box{
  67. background: #FFFFFF;
  68. box-shadow: 0px 3rpx 30rpx 0px rgba(59, 74, 116, 0.14);
  69. border-radius: 21rpx;
  70. .title{
  71. position: relative;
  72. width: 720rpx;
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. border-bottom: 2rpx solid #f3f3f3;
  77. .icon{
  78. width: 42rpx;
  79. height: 42rpx;
  80. background-image: url(icon/icon.png);
  81. background-size: cover;
  82. background-repeat: no-repeat;
  83. }
  84. .name{
  85. margin-left: 10rpx;
  86. font-size: 32rpx;
  87. font-family: PingFangSC-Medium, PingFang SC;
  88. font-weight: 500;
  89. color: #232627;
  90. line-height: 100rpx;
  91. }
  92. .right{
  93. position: absolute;
  94. right: 20rpx;
  95. width: 42rpx;
  96. height: 42rpx;
  97. background-image: url(icon/right.png);
  98. background-size: cover;
  99. background-repeat: no-repeat;
  100. }
  101. }
  102. .content{
  103. .list_item{
  104. overflow: hidden;
  105. margin-top: 38rpx;
  106. box-sizing: border-box;
  107. padding: 0 25rpx;
  108. .item{
  109. float: left;
  110. margin-right: 32rpx;
  111. margin-bottom: 32rpx;
  112. width: 202rpx;
  113. text-align: center;
  114. .icon{
  115. image{
  116. width: 108rpx;
  117. height: 108rpx;
  118. }
  119. }
  120. .name{
  121. margin-top: 28rpx;
  122. font-size: 25rpx;
  123. font-family: PingFangSC-Medium, PingFang SC;
  124. font-weight: 500;
  125. color: #455A64;
  126. line-height: 34rpx;
  127. }
  128. }
  129. .item:nth-child(3n){
  130. margin-right: 0;
  131. }
  132. }
  133. }
  134. }
  135. }
  136. </style>