t-i-ningdongyunying - 原始适配版本备份.vue 3.8 KB

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