bottomBanner.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <div :class="{bottomBanner: !mobile, bottomBannerMobile: mobile}">
  3. <div class="title">兼职招聘</div>
  4. <div class="desc">兼职招聘正式上线!40W+程序员、7000+企业方,急速触达!</div>
  5. <div class="btnList">
  6. <div class="left" @click="jumpToCatHandler">
  7. <p>我要找兼职</p>
  8. </div>
  9. <div class="right" @click="needFindJobHandler">
  10. <p>我要招聘</p>
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. props: [],
  18. components: {},
  19. data() {
  20. return {
  21. mobile: false,
  22. };
  23. },
  24. computed: {},
  25. mounted() {},
  26. methods: {
  27. /** banner挑战 **/
  28. jumpToCatHandler() {
  29. location.href = this.$store.state.domainConfig.jobUrl + "/?from=top_nav";
  30. },
  31. needFindJobHandler() {
  32. this.$message.warning("请前往程序员客栈APP,发布兼职招聘");
  33. },
  34. },
  35. };
  36. </script>
  37. <style lang="scss">
  38. @import "~@/assets/css/scssCommon.scss";
  39. .bottomBanner {
  40. width: 1000px;
  41. height: 250px;
  42. display: flex;
  43. justify-content: center;
  44. align-items: center;
  45. flex-direction: column;
  46. background: url("~@/assets/img/job/banner_bottom.png") no-repeat;
  47. background-size: contain;
  48. margin: 10px auto;
  49. .title {
  50. height: 72px;
  51. font-size: 41px;
  52. font-weight: 600;
  53. color: rgba(255, 255, 255, 1);
  54. line-height: 72px;
  55. letter-spacing: 2px;
  56. }
  57. .desc {
  58. height: 26px;
  59. font-size: 19px;
  60. font-weight: 400;
  61. color: rgba(255, 255, 255, 1);
  62. line-height: 26px;
  63. }
  64. .btnList {
  65. width: 100%;
  66. margin-top: 20px;
  67. display: flex;
  68. justify-content: center;
  69. align-items: center;
  70. .left,
  71. .right {
  72. width: 165px;
  73. height: 43px;
  74. background: rgba(255, 255, 255, 1);
  75. border-radius: 2px;
  76. display: flex;
  77. justify-content: center;
  78. align-items: center;
  79. cursor: pointer;
  80. p {
  81. height: 22px;
  82. font-size: 16px;
  83. font-weight: 500;
  84. color: rgba(61, 108, 255, 1);
  85. line-height: 22px;
  86. }
  87. }
  88. .right {
  89. margin-left: 20px;
  90. border: 1px solid rgba(255, 255, 255, 1);
  91. background: transparent;
  92. p {
  93. color: rgba(255, 255, 255, 1);
  94. }
  95. }
  96. }
  97. }
  98. </style>