onlineInformationBtn.vue 772 B

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