onlineInformationBtn.vue 899 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <template>
  2. <a class="zxzx-btn" :href="linkForKefu" target="_blank">在线咨询</a>
  3. </template>
  4. <script>
  5. import {linkForKefu} from "~/defaultConfig"
  6. export default {
  7. name: "onlineInformation",
  8. props: {
  9. myType: {
  10. type: String,
  11. default: '1'
  12. }
  13. },
  14. data() {
  15. return {
  16. linkForKefu
  17. }
  18. },
  19. methods: {
  20. btnClick() {
  21. this.$router.push({name: 'courseware'});
  22. }
  23. },
  24. }
  25. </script>
  26. <style lang="scss">
  27. .zxzx-btn {
  28. width: 154px;
  29. height: 48px;
  30. line-height: 48px;
  31. border-radius: 24px;
  32. border: 1px solid #00b96b;
  33. cursor: pointer;
  34. display: inline-block;
  35. text-align: center;
  36. color: #00b96b;
  37. @media (max-width: 768px) {
  38. width: 44%;height:35px;line-height:35px;max-width: 120px;margin: 0 3%;font-size: 14px;
  39. }
  40. }
  41. .zxzx-btn.shouye {
  42. height: 55px;
  43. width: 180px;
  44. line-height: 55px;
  45. color: #fff;
  46. background: #00b96b;
  47. }
  48. </style>