t-i-ningdongyunying.vue 3.7 KB

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