index.vue 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <template>
  2. <div class="mbhome">
  3. <div class="headerpic">
  4. <img src="http://gimg1.baidu.com/searchbox_feed/app=2001&g=4n&n=0&q=85&refer=http%3A%2F%2Fwww.baidu.com&size=f9999_10000&src=http%3A%2F%2Fcontentcms-bj.cdn.bcebos.com%2Fcmspic%2F2630adecb9edc231a9d7a583aecbd7be.jpeg%3Fx-bce-process%3Dimage%2Fcrop%2Cx_0%2Cy_0%2Cw_1242%2Ch_699?sec=0&t=36e419603fa30a788071b99471e4b65a"/>
  5. </div>
  6. <div class="body">
  7. <div class="an">
  8. <van-button round type="primary" @click="gotopage('task')"><van-icon name="phone" />热线工单</van-button>
  9. <div class="tip">110</div>
  10. </div>
  11. <div class="an">
  12. <van-button round type="primary" @click="gotopage('detection')"><van-icon name="underway" />检测计划</van-button>
  13. <div class="tip">110</div>
  14. </div>
  15. <div class="an">
  16. <van-button round type="primary" @click="gotopage('maintain')"><van-icon name="points" />养护计划</van-button>
  17. <div class="tip">110</div>
  18. </div>
  19. </div>
  20. </div>
  21. </template>
  22. <script setup>
  23. import router from "../../../router"
  24. const gotopage = (name) => {
  25. router.push(`/mb/${name}`)
  26. }
  27. </script>
  28. <style lang="scss">
  29. .mbhome{
  30. .headerpic{
  31. img{
  32. width:100vw;
  33. object-fit: contain;
  34. }
  35. }
  36. .body{
  37. .an{
  38. width:100%;
  39. text-align: center;
  40. margin-top: 60px;
  41. position: relative;
  42. .van-button{
  43. width:80%;
  44. .van-icon{
  45. margin-right: 10px;
  46. }
  47. }
  48. .tip{
  49. background: #E91437;
  50. color: #fff;
  51. min-width:20px;
  52. height: 20px;
  53. font-size: 10px;
  54. border-radius: 10px;
  55. line-height: 18px;
  56. border:1px solid #fff;
  57. position: absolute;
  58. top:-6px;
  59. padding-left: 5px;
  60. padding-right: 5px;
  61. right:10vw;
  62. }
  63. }
  64. }
  65. }
  66. </style>