index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <view class="main">
  3. <image src="https://axure-file.lanhuapp.com/md5__f93627286149f825890eb821ab5d5abb.png" mode="widthFix" class="banner"></image>
  4. <view class="flow">
  5. <view class="item" @click="go('/pages/introduction/index')">
  6. <view class="out">
  7. <view class="int">
  8. <view class="icon" style="color: rgb(72, 154, 253)">&#xe775;</view>
  9. <view class="title">医院介绍</view>
  10. </view>
  11. </view>
  12. </view>
  13. <view class="item" @click="go('/pages/department/index')">
  14. <view class="out">
  15. <view class="int">
  16. <view class="icon" style="color: rgb(72, 154, 253)">&#xe752;</view>
  17. <view class="title">科室介绍</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="item" @click="go()">
  22. <view class="out">
  23. <view class="int">
  24. <view class="icon" style="color: rgb(72, 154, 253)">&#xe6a3;</view>
  25. <view class="title">医生介绍</view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="item" @click="go('/pages/knowledge/index')">
  30. <view class="out">
  31. <view class="int">
  32. <view class="icon" style="color: rgb(72, 154, 253)">&#xe69a;</view>
  33. <view class="title">健康知识</view>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </template>
  40. <script>
  41. export default {
  42. data() {
  43. return {
  44. ip: this.http.ip,
  45. user: {}
  46. };
  47. },
  48. onShow() {},
  49. onLoad() {
  50. this.getData();
  51. },
  52. methods: {
  53. getData() {},
  54. go(url) {
  55. uni.navigateTo({ url: url });
  56. }
  57. }
  58. };
  59. </script>
  60. <style lang="scss">
  61. .banner {
  62. width: 100%;
  63. border-radius: 7px;
  64. margin-top: -10px;
  65. }
  66. .flow {
  67. padding-top: 10px;
  68. overflow: hidden;
  69. margin-left: -5px;
  70. margin-right: -5px;
  71. .item {
  72. border-radius: 10px;
  73. overflow: hidden;
  74. float: left;
  75. width: 50%;
  76. .out {
  77. padding: 5px;
  78. .int {
  79. padding: 15px;
  80. background-color: white;
  81. overflow: hidden;
  82. border-radius: 9px;
  83. text-align: center;
  84. .icon {
  85. margin: 0 auto;
  86. width: 40px;
  87. height: 40px;
  88. padding: 10px;
  89. line-height: 39px;
  90. color: $main-color;
  91. box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  92. border-radius: 50%;
  93. font-size: 27px;
  94. }
  95. .title {
  96. padding-top: 8px;
  97. }
  98. }
  99. }
  100. }
  101. }
  102. </style>