t-i-shicaocun.vue 3.4 KB

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