head_component.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <template>
  2. <div class="contenter">
  3. <div class="head-left">
  4. <img class="head-icon" src="@/assets/images/login/login-return.png" @click="backTo" alt="404">
  5. </div>
  6. <!-- 等UI图更新继续画 <div>-->
  7. <div class="head-title">
  8. <div v-if="headinfo.title">{{headinfo.title}}</div>
  9. </div>
  10. <div class="head-right" v-if="!headinfo.isLogin">
  11. <div class="right-user">
  12. <img src="@/assets/images/wakeup/user.png" @click="backTo" alt="404">
  13. </div>
  14. <el-button class="head-right-btn1" >使用说明</el-button>
  15. <el-button class="head-right-btn2" @click="exit">退出登录</el-button>
  16. </div>
  17. <!-- </div>-->
  18. </div>
  19. </template>
  20. <script setup>
  21. const {proxy} = getCurrentInstance()
  22. const router = useRouter()
  23. const props = defineProps({
  24. headinfo: {}
  25. })
  26. function backTo() {
  27. // router.push({
  28. // path: props.headinfo.backUrl
  29. // })
  30. router.go(-1);
  31. }
  32. function exit() {
  33. proxy.$modal.confirm('您确认退出吗').then(function () {
  34. router.push({
  35. path: '/xjc_login'
  36. })
  37. }).then(() => {
  38. }).catch(() => {
  39. })
  40. }
  41. </script>
  42. <style scoped lang='scss'>
  43. .contenter{
  44. position: absolute;
  45. top: 0;
  46. left: 0;
  47. width:100%;
  48. height: 100px;
  49. display: flex;
  50. align-items: center;
  51. background-color: rgba(251,252,253,0.5);
  52. justify-content: space-between;
  53. .head-left{
  54. width: 464px;
  55. }
  56. .head-icon{
  57. width: 74px;
  58. height: 74px;
  59. margin-left: 74px;
  60. }
  61. .head-title{
  62. width: 464px;
  63. //margin: ;
  64. text-align: center;
  65. font-weight: bold;
  66. font-size: 48px;
  67. color: #060606;
  68. }
  69. .head-right{
  70. display: flex;
  71. justify-content: space-around;
  72. align-items: center;
  73. width: 464px;
  74. .head-right-btn1{
  75. width: 136px;
  76. height: 74px;
  77. background: #2BC17B;
  78. border-radius: 10px 10px 10px 10px;
  79. font-weight: 400;
  80. font-size: 24px;
  81. color: #FFFFFF;
  82. }
  83. .head-right-btn2{
  84. width: 136px;
  85. height: 74px;
  86. background: #FB5451;
  87. border-radius: 10px 10px 10px 10px;
  88. font-weight: 400;
  89. font-size: 24px;
  90. color: #FFFFFF;
  91. }
  92. .right-user{
  93. img{
  94. width: 85px;
  95. height: 85px;
  96. }
  97. }
  98. }
  99. }
  100. </style>