index.vue 8.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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" replace>
  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="/active">-->
  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" replace>-->
  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="/newMy" replace>
  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. import "../../styles/newStyle.scss";
  113. import { setRem } from "@/libs/functionRem";
  114. export default {
  115. data() {
  116. return {
  117. active: 0,
  118. value: "",
  119. hospitals: [
  120. {
  121. text: "",
  122. value: 0
  123. }
  124. ],
  125. searchVal: ""
  126. };
  127. },
  128. methods: {
  129. // patientManagement() {
  130. // var id = this.$route.query.id;
  131. // this.$router.push("/patientmanagement?id=" + id);
  132. // },
  133. // ToSearch() {
  134. // this.$router.push("/search");
  135. // }
  136. },
  137. created() {
  138. const id = this.$route.query.id;
  139. // this.getAllOrgName(id);
  140. setRem();
  141. },
  142. mounted(){
  143. let currenttabbar = window.location.hash.split("/")[1]
  144. if (currenttabbar === 'homeIndex') {
  145. this.active = 0
  146. } else if (currenttabbar === 'newMy') {
  147. this.active = 2
  148. } else if (currenttabbar === 'active') {
  149. this.active = 1
  150. }
  151. }
  152. };
  153. </script>
  154. <style lang="scss">
  155. .page_home {
  156. height: 100%;
  157. display: flex;
  158. flex-direction: column;
  159. > div:first-child {
  160. flex: 1;
  161. overflow-y: auto;
  162. }
  163. .homeBottom {
  164. height: 3.125rem;
  165. padding-bottom: env(safe-area-inset-bottom);
  166. }
  167. ::-webkit-scrollbar {
  168. width: 0;
  169. }
  170. .van-tabbar-item {
  171. height: 100%;
  172. }
  173. .van-tabbar-item__text {
  174. height: 100%;
  175. display: flex;
  176. flex-direction: column;
  177. align-items: center;
  178. justify-content: space-around;
  179. }
  180. .van-tabbar {
  181. display: flex;
  182. justify-content: space-around;
  183. border-top: 1px solid #e5e5e5;
  184. }
  185. .iconOne {
  186. font-size: 1.25rem;
  187. }
  188. .van-tabbar-item--active {
  189. .iconfont {
  190. color: #1989fa;
  191. }
  192. }
  193. // .header {
  194. // padding: 0 15px;
  195. // box-sizing: border-box;
  196. // height: 3.125rem;
  197. // width: 100%;
  198. // line-height: 3.125rem;
  199. // img {
  200. // float: left;
  201. // width: 1.375rem;
  202. // height: 1.375rem;
  203. // margin-top: 0.625rem;
  204. // }
  205. // .van-dropdown-menu {
  206. // width: 8.5rem;
  207. // height: 3.125rem;
  208. // }
  209. // .van-dropdown-menu__item {
  210. // flex: none;
  211. // }
  212. // .van-ellipsis {
  213. // width: 6.25rem;
  214. // height: 3.125rem;
  215. // line-height: 3.125rem;
  216. // font-size: 0.875rem;
  217. // white-space: nowrap;
  218. // text-overflow: ellipsis;
  219. // overflow: hidden;
  220. // }
  221. // }
  222. // .search {
  223. // width: 21.5625rem;
  224. // height: 2.125rem;
  225. // padding: 0 15px;
  226. // box-sizing: border-box;
  227. // .el-input__inner {
  228. // width: 21.5625rem;
  229. // height: 2.125rem;
  230. // border: none;
  231. // background: rgba(244, 244, 244, 1);
  232. // border-radius: 17px;
  233. // color: #999999;
  234. // }
  235. // .el-input__prefix {
  236. // margin-top: -0.125rem;
  237. // color: #999999;
  238. // }
  239. // }
  240. // .banner {
  241. // overflow: hidden;
  242. // margin-top: 1.25rem;
  243. // // width: 21.4375rem;
  244. // // height: 8.3125rem;
  245. // // border-radius: 10px;
  246. // width: 23.4375rem;
  247. // height: 8.3125rem;
  248. // // background: rgba(188, 188, 188, 0.1);
  249. // // opacity: 0.2;
  250. // img {
  251. // margin: 0 15px;
  252. // width: 21.4375rem;
  253. // height: 8.3125rem;
  254. // box-sizing: border-box;
  255. // }
  256. // }
  257. // .myDesk {
  258. // padding: 0 15px;
  259. // box-sizing: border-box;
  260. // padding-top: 1.5625rem;
  261. // width: 23.4375rem;
  262. // height: 17.0625rem;
  263. // // background: rgba(188, 188, 188, 0.1);
  264. // h2 {
  265. // height: 1.1875rem;
  266. // font-size: 1.25rem;
  267. // font-weight: 600;
  268. // color: rgba(0, 0, 0, 1);
  269. // line-height: 0.9375rem;
  270. // }
  271. // .list {
  272. // margin-top: 0.9375rem;
  273. // width: 21.4375rem;
  274. // height: 14rem;
  275. // background: rgba(255, 255, 255, 1);
  276. // border-radius: 10px;
  277. // box-shadow: 0px 3px 12px 0px rgba(188, 188, 188, 0.2);
  278. // display: flex;
  279. // align-items: center;
  280. // .all {
  281. // display: flex;
  282. // justify-content: space-around;
  283. // flex-wrap: wrap;
  284. // }
  285. // .one {
  286. // width: 25%;
  287. // display: flex;
  288. // flex-direction: column;
  289. // align-items: center;
  290. // justify-content: space-around;
  291. // height: 6.25rem;
  292. // img {
  293. // width: 2.8125rem;
  294. // height: 2.8125rem;
  295. // }
  296. // p {
  297. // margin-top: -0.625rem;
  298. // height: 0.8125rem;
  299. // font-size: 0.8125rem;
  300. // color: rgba(60, 60, 60, 1);
  301. // line-height: 0.9375rem;
  302. // }
  303. // }
  304. // }
  305. // }
  306. // .tab {
  307. // display: flex;
  308. // width: 23.4375rem;
  309. // height: 3.0625rem;
  310. // background: rgba(255, 255, 255, 1);
  311. // justify-content: space-around;
  312. // box-shadow: 3px 0px 12px 3px rgba(188, 188, 188, 0.2);
  313. // > div:last-child {
  314. // span {
  315. // color: #bfbfbf;
  316. // }
  317. // }
  318. // .btn {
  319. // display: flex;
  320. // flex-direction: column;
  321. // align-items: center;
  322. // align-self: center;
  323. // i {
  324. // font-size: 1.5rem;
  325. // color: rgba(79, 115, 254, 1);
  326. // }
  327. // .icon-wode {
  328. // color: #bfbfbf;
  329. // }
  330. // span {
  331. // font-size: 0.75rem;
  332. // color: rgba(79, 115, 254, 1);
  333. // margin-top: 0.25rem;
  334. // }
  335. // }
  336. // }
  337. }
  338. </style>