index.vue 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. <template>
  2. <!-- <div class="page_home">
  3. <div class="top">
  4. <div class="header">
  5. <img src="../../assets/images/hospital.png" alt />
  6. <van-dropdown-menu>
  7. <van-dropdown-item v-model="value" :options="hospitals" />
  8. </van-dropdown-menu>
  9. </div>
  10. <div class="search" @click="ToSearch()">
  11. <el-input
  12. placeholder=" 姓名 / 首拼 / 透析号"
  13. prefix-icon="el-icon-search"
  14. v-model="searchVal"
  15. ></el-input>
  16. </div>
  17. <div class="banner">
  18. <img src="../../assets/images/homebanner.jpg" alt />
  19. </div>
  20. <div class="myDesk">
  21. <h2>我的工作台</h2>
  22. <div class="list">
  23. <ul class="all">
  24. <li class="one">
  25. <img src="../../assets/images/m09.png" alt />
  26. <p @click="patientManagement()">病人管理</p>
  27. </li>
  28. <li class="one">
  29. <img src="../../assets/images/m02.png" alt />
  30. <p>透析记录</p>
  31. </li>
  32. <li class="one">
  33. <img src="../../assets/images/m04.png" alt />
  34. <p>质控分析</p>
  35. </li>
  36. <li class="one">
  37. <img src="../../assets/images/m05.png" alt />
  38. <p>院感管理</p>
  39. </li>
  40. <li class="one">
  41. <img src="../../assets/images/m06.png" alt />
  42. <p>微商城</p>
  43. </li>
  44. <li class="one">
  45. <img src="../../assets/images/m07.png" alt />
  46. <p>微官网</p>
  47. </li>
  48. <li class="one">
  49. <img src="../../assets/images/m08.png" alt />
  50. <p>医院二维码</p>
  51. </li>
  52. <li class="one">
  53. <img src="../../assets/images/m03.png" alt />
  54. <p>基础配置</p>
  55. </li>
  56. </ul>
  57. </div>
  58. </div>
  59. </div>
  60. <div class="tab">
  61. <div class="btn">
  62. <i class="iconfont icon-zhuye"></i>
  63. <span>首页</span>
  64. </div>
  65. <div class="btn">
  66. <i class="iconfont icon-wode"></i>
  67. <span>我的</span>
  68. </div>
  69. </div>
  70. </div> -->
  71. <div class="page_home">
  72. <div>
  73. <router-view />
  74. </div>
  75. <div class="homeBottom">
  76. <van-tabbar class="tab" v-model="active">
  77. <router-link to="/homeIndex" class="link">
  78. <van-tabbar-item>
  79. <i class="iconfont icon-zhuye iconOne"></i>
  80. <div>首页</div>
  81. </van-tabbar-item>
  82. </router-link>
  83. <router-link to="/study">
  84. <van-tabbar-item>
  85. <i class="iconfont icon-jishiben iconOne"></i>
  86. <div>学习</div>
  87. </van-tabbar-item>
  88. </router-link>
  89. <router-link to="/service">
  90. <van-tabbar-item>
  91. <i class="iconfont icon-fuwu2 iconOne"></i>
  92. <div>服务</div>
  93. </van-tabbar-item>
  94. </router-link>
  95. <router-link to="/shop">
  96. <van-tabbar-item>
  97. <i class="iconfont icon-shangcheng iconOne"></i>
  98. <div>商城</div>
  99. </van-tabbar-item>
  100. </router-link>
  101. <router-link to="/my">
  102. <van-tabbar-item>
  103. <i class="iconfont icon-wode iconOne"></i>
  104. <div>我的</div>
  105. </van-tabbar-item>
  106. </router-link>
  107. </van-tabbar>
  108. </div>
  109. </div>
  110. </template>
  111. <script>
  112. export default {
  113. data() {
  114. return {
  115. active: 0,
  116. value: "",
  117. hospitals: [
  118. {
  119. text: "",
  120. value: 0
  121. }
  122. ],
  123. searchVal: ""
  124. };
  125. },
  126. methods: {
  127. // patientManagement() {
  128. // var id = this.$route.query.id;
  129. // this.$router.push("/patientmanagement?id=" + id);
  130. // },
  131. // ToSearch() {
  132. // this.$router.push("/search");
  133. // }
  134. },
  135. created() {
  136. const id = this.$route.query.id;
  137. // this.getAllOrgName(id);
  138. }
  139. };
  140. </script>
  141. <style lang="scss">
  142. .page_home {
  143. height: 100%;
  144. display: flex;
  145. flex-direction: column;
  146. > div:first-child {
  147. flex: 1;
  148. overflow-y: auto;
  149. }
  150. .homeBottom {
  151. height: 3.125rem;
  152. }
  153. ::-webkit-scrollbar {
  154. width: 0;
  155. }
  156. .van-tabbar-item {
  157. height: 100%;
  158. }
  159. .van-tabbar-item__text {
  160. height: 100%;
  161. display: flex;
  162. flex-direction: column;
  163. align-items: center;
  164. justify-content: space-around;
  165. }
  166. .van-tabbar {
  167. display: flex;
  168. justify-content: space-around;
  169. border-top: 1px solid #c5c5c5;
  170. }
  171. .iconOne {
  172. font-size: 1.25rem;
  173. }
  174. // .header {
  175. // padding: 0 15px;
  176. // box-sizing: border-box;
  177. // height: 3.125rem;
  178. // width: 100%;
  179. // line-height: 3.125rem;
  180. // img {
  181. // float: left;
  182. // width: 1.375rem;
  183. // height: 1.375rem;
  184. // margin-top: 0.625rem;
  185. // }
  186. // .van-dropdown-menu {
  187. // width: 8.5rem;
  188. // height: 3.125rem;
  189. // }
  190. // .van-dropdown-menu__item {
  191. // flex: none;
  192. // }
  193. // .van-ellipsis {
  194. // width: 6.25rem;
  195. // height: 3.125rem;
  196. // line-height: 3.125rem;
  197. // font-size: 0.875rem;
  198. // white-space: nowrap;
  199. // text-overflow: ellipsis;
  200. // overflow: hidden;
  201. // }
  202. // }
  203. // .search {
  204. // width: 21.5625rem;
  205. // height: 2.125rem;
  206. // padding: 0 15px;
  207. // box-sizing: border-box;
  208. // .el-input__inner {
  209. // width: 21.5625rem;
  210. // height: 2.125rem;
  211. // border: none;
  212. // background: rgba(244, 244, 244, 1);
  213. // border-radius: 17px;
  214. // color: #999999;
  215. // }
  216. // .el-input__prefix {
  217. // margin-top: -0.125rem;
  218. // color: #999999;
  219. // }
  220. // }
  221. // .banner {
  222. // overflow: hidden;
  223. // margin-top: 1.25rem;
  224. // // width: 21.4375rem;
  225. // // height: 8.3125rem;
  226. // // border-radius: 10px;
  227. // width: 23.4375rem;
  228. // height: 8.3125rem;
  229. // // background: rgba(188, 188, 188, 0.1);
  230. // // opacity: 0.2;
  231. // img {
  232. // margin: 0 15px;
  233. // width: 21.4375rem;
  234. // height: 8.3125rem;
  235. // box-sizing: border-box;
  236. // }
  237. // }
  238. // .myDesk {
  239. // padding: 0 15px;
  240. // box-sizing: border-box;
  241. // padding-top: 1.5625rem;
  242. // width: 23.4375rem;
  243. // height: 17.0625rem;
  244. // // background: rgba(188, 188, 188, 0.1);
  245. // h2 {
  246. // height: 1.1875rem;
  247. // font-size: 1.25rem;
  248. // font-weight: 600;
  249. // color: rgba(0, 0, 0, 1);
  250. // line-height: 0.9375rem;
  251. // }
  252. // .list {
  253. // margin-top: 0.9375rem;
  254. // width: 21.4375rem;
  255. // height: 14rem;
  256. // background: rgba(255, 255, 255, 1);
  257. // border-radius: 10px;
  258. // box-shadow: 0px 3px 12px 0px rgba(188, 188, 188, 0.2);
  259. // display: flex;
  260. // align-items: center;
  261. // .all {
  262. // display: flex;
  263. // justify-content: space-around;
  264. // flex-wrap: wrap;
  265. // }
  266. // .one {
  267. // width: 25%;
  268. // display: flex;
  269. // flex-direction: column;
  270. // align-items: center;
  271. // justify-content: space-around;
  272. // height: 6.25rem;
  273. // img {
  274. // width: 2.8125rem;
  275. // height: 2.8125rem;
  276. // }
  277. // p {
  278. // margin-top: -0.625rem;
  279. // height: 0.8125rem;
  280. // font-size: 0.8125rem;
  281. // color: rgba(60, 60, 60, 1);
  282. // line-height: 0.9375rem;
  283. // }
  284. // }
  285. // }
  286. // }
  287. // .tab {
  288. // display: flex;
  289. // width: 23.4375rem;
  290. // height: 3.0625rem;
  291. // background: rgba(255, 255, 255, 1);
  292. // justify-content: space-around;
  293. // box-shadow: 3px 0px 12px 3px rgba(188, 188, 188, 0.2);
  294. // > div:last-child {
  295. // span {
  296. // color: #bfbfbf;
  297. // }
  298. // }
  299. // .btn {
  300. // display: flex;
  301. // flex-direction: column;
  302. // align-items: center;
  303. // align-self: center;
  304. // i {
  305. // font-size: 1.5rem;
  306. // color: rgba(79, 115, 254, 1);
  307. // }
  308. // .icon-wode {
  309. // color: #bfbfbf;
  310. // }
  311. // span {
  312. // font-size: 0.75rem;
  313. // color: rgba(79, 115, 254, 1);
  314. // margin-top: 0.25rem;
  315. // }
  316. // }
  317. // }
  318. }
  319. </style>