t-i-shicaocun.vue 3.5 KB

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