t-i-ningdongyunying.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222
  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. // http://ningdongyunying.nxjiewei.com:8011/assets/html/QRcoddetails/index.html?name=&uuid=&pageId=10ad4420d27b4146bafe43802f03d5c6&departmentID=
  75. url:"../../index/h5/h5?url=" + "http://ningdongyunying.nxjiewei.com:8011/web/monitor/dispatch/center"
  76. })
  77. }
  78. }
  79. }
  80. </script>
  81. <style lang="scss">
  82. .content {
  83. margin-top: 10rpx;
  84. padding-bottom: 40rpx;
  85. background-color: #FFFFFF;
  86. }
  87. .section_1 {
  88. box-sizing: border-box;
  89. padding: 25rpx;
  90. .tab {
  91. display: flex;
  92. padding-left: 10rpx;
  93. .title {
  94. line-height: 80rpx;
  95. font-weight: 700;
  96. }
  97. .active {
  98. color: #009fe8;
  99. border-bottom: 6rpx solid #009fe8;
  100. }
  101. }
  102. .list {
  103. margin-top: 30rpx;
  104. overflow: hidden;
  105. .item {
  106. float: left;
  107. margin-right: 20rpx;
  108. margin-bottom: 30rpx;
  109. width: 160rpx;
  110. box-sizing: border-box;
  111. border: 2rpx solid #009fe8;
  112. border-radius: 20rpx;
  113. font-size: 28rpx;
  114. line-height: 70rpx;
  115. //超过一行省略号
  116. overflow: hidden;
  117. white-space: nowrap;
  118. text-overflow: ellipsis;
  119. padding: 0 10rpx;
  120. background-color: #66C7F218;
  121. color: #009FE8;
  122. text-align: center;
  123. }
  124. .item:nth-child(4n) {
  125. margin-right: 0;
  126. }
  127. }
  128. }
  129. .section_2 {
  130. box-sizing: border-box;
  131. padding: 0 25rpx;
  132. .title {
  133. line-height: 120rpx;
  134. font-size: 36rpx;
  135. font-weight: 700;
  136. }
  137. .list {
  138. display: flex;
  139. flex-wrap: wrap;
  140. justify-content: space-between;
  141. .item {
  142. margin-bottom: 20rpx;
  143. width: 340rpx;
  144. height: 180rpx;
  145. border-radius: 20rpx;
  146. overflow: hidden;
  147. image {
  148. width: 340rpx;
  149. height: 180rpx;
  150. }
  151. }
  152. }
  153. }
  154. .section_3 {
  155. box-sizing: border-box;
  156. padding: 0 25rpx;
  157. .title {
  158. line-height: 120rpx;
  159. font-size: 36rpx;
  160. font-weight: 700;
  161. }
  162. .list {
  163. display: flex;
  164. flex-wrap: wrap;
  165. justify-content: space-between;
  166. .item {
  167. margin-bottom: 20rpx;
  168. width: 700rpx;
  169. height: 240rpx;
  170. border-radius: 10rpx;
  171. overflow: hidden;
  172. image {
  173. width: 700rpx;
  174. height: 240rpx;
  175. }
  176. }
  177. }
  178. }
  179. .bottom{
  180. margin-top: 10rpx;
  181. text-align: center;
  182. image{
  183. width: 700rpx;
  184. height: 240rpx;
  185. }
  186. }
  187. </style>