t-i-ningdongyunying.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. <template>
  2. <view class="content">
  3. <view class="section_1" v-if="home_link[0].children.length > 0">
  4. <view class="tab">
  5. <view class="title active">科室部门</view>
  6. </view>
  7. <view class="list">
  8. <view class="item" v-for="(item,index) in home_link[0].children[0].children" :key="index" @click="go_record(item)">
  9. {{item.title}}
  10. </view>
  11. </view>
  12. </view>
  13. <!-- 图片链接 -->
  14. <view class="section_2" v-if="home_link[2].children.length > 0">
  15. <view class="title">图片链接</view>
  16. <view class="list">
  17. <view class="item" v-for="(item,index) in home_link[2].children" :key="index" @click="go_record(item)">
  18. <image :src="item.thumb" mode=""></image>
  19. </view>
  20. </view>
  21. </view>
  22. <!-- 快速通道 -->
  23. <view class="section_3" v-if="home_link[3].children.length > 0">
  24. <view class="title">快速通道</view>
  25. <view class="list">
  26. <view class="item" v-for="(item,index) in home_link[3].children" :key="index" @click="go_record(item)">
  27. <image :src="item.thumb" mode="widthFix"></image>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- <view class="bottom" @click="go_h5()">
  32. <image src="./icon/bottom.png" mode="aspectFit"></image>
  33. </view> -->
  34. </view>
  35. </template>
  36. <script>
  37. import {
  38. goToLink
  39. } from "@/common/common.js"
  40. export default {
  41. name: "t-i-ningdongyunying",
  42. props: [
  43. "mine_code",
  44. "home_link"
  45. ],
  46. data() {
  47. return {
  48. active: 1,
  49. };
  50. },
  51. methods: {
  52. go_record(item) {
  53. goToLink(item, this.mine_code)
  54. },
  55. go_h5() {
  56. uni.navigateTo({
  57. // http://ningdongyunying.nxjiewei.com:8011/assets/html/QRcoddetails/index.html?name=&uuid=&pageId=10ad4420d27b4146bafe43802f03d5c6&departmentID=
  58. url: "../../index/h5/h5?url=" +
  59. "http://ningdongyunying.nxmy.com:8011/web/monitor/dispatch/center"
  60. })
  61. }
  62. }
  63. }
  64. </script>
  65. <style lang="scss">
  66. .content {
  67. margin-top: 10rpx;
  68. padding-bottom: 40rpx;
  69. background-color: #FFFFFF;
  70. }
  71. .section_1 {
  72. box-sizing: border-box;
  73. padding: 25rpx;
  74. .tab {
  75. display: flex;
  76. padding-left: 10rpx;
  77. .title {
  78. line-height: 80rpx;
  79. font-weight: 700;
  80. }
  81. .active {
  82. color: #009fe8;
  83. border-bottom: 6rpx solid #009fe8;
  84. }
  85. }
  86. .list {
  87. margin-top: 30rpx;
  88. overflow: hidden;
  89. .item {
  90. float: left;
  91. margin-right: 20rpx;
  92. margin-bottom: 30rpx;
  93. width: 160rpx;
  94. box-sizing: border-box;
  95. border: 2rpx solid #009fe8;
  96. border-radius: 20rpx;
  97. font-size: 28rpx;
  98. line-height: 70rpx;
  99. //超过一行省略号
  100. overflow: hidden;
  101. white-space: nowrap;
  102. text-overflow: ellipsis;
  103. padding: 0 10rpx;
  104. background-color: #66C7F218;
  105. color: #009FE8;
  106. text-align: center;
  107. }
  108. .item:nth-child(4n) {
  109. margin-right: 0;
  110. }
  111. }
  112. }
  113. .section_2 {
  114. box-sizing: border-box;
  115. padding: 0 25rpx;
  116. .title {
  117. line-height: 120rpx;
  118. font-size: 36rpx;
  119. }
  120. .list {
  121. display: flex;
  122. flex-wrap: wrap;
  123. justify-content: space-between;
  124. .item {
  125. margin-bottom: 20rpx;
  126. width: 340rpx;
  127. height: 180rpx;
  128. border-radius: 20rpx;
  129. overflow: hidden;
  130. image {
  131. width: 340rpx;
  132. height: 180rpx;
  133. }
  134. }
  135. }
  136. }
  137. .section_3 {
  138. box-sizing: border-box;
  139. padding: 0 25rpx;
  140. .title {
  141. line-height: 120rpx;
  142. font-size: 36rpx;
  143. }
  144. .list {
  145. display: flex;
  146. flex-wrap: wrap;
  147. justify-content: space-between;
  148. .item {
  149. margin-bottom: 20rpx;
  150. width: 700rpx;
  151. border-radius: 10rpx;
  152. overflow: hidden;
  153. image {
  154. width: 700rpx;
  155. }
  156. }
  157. }
  158. }
  159. .bottom {
  160. margin-top: 10rpx;
  161. text-align: center;
  162. image {
  163. width: 700rpx;
  164. height: 240rpx;
  165. }
  166. }
  167. </style>