index.vue 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <div class="emptWrap">
  3. <div class="emptLeft">
  4. <h2>{{ title }}</h2>
  5. <p>{{ context }}</p>
  6. <el-button type="primary" @click="addSome">{{ btnTitle }}</el-button>
  7. </div>
  8. <div class="emptRight">
  9. <div class="imgWrap">
  10. <img src="./emptyPage_bg.png" width="100%" alt="">
  11. </div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. props: ["title", "btnTitle", "context"],
  18. data() {
  19. return {};
  20. },
  21. methods:{
  22. addSome(){
  23. this.$emit('submit')
  24. }
  25. }
  26. };
  27. </script>
  28. <style lang="less" scoped>
  29. .emptWrap {
  30. justify-content: center;
  31. background-color: #fff;
  32. padding: 85px 0 100px;
  33. display: flex;
  34. flex-direction: row;
  35. .emptLeft {
  36. margin-top: 80px;
  37. width: 365px;
  38. margin-right: 20px;
  39. h2 {
  40. font-size: 32px;
  41. font-family: PingFangSC-Semibold, PingFang SC;
  42. font-weight: 600;
  43. color: #000000;
  44. line-height: 45px;
  45. margin-bottom: 20px;
  46. }
  47. p {
  48. font-size: 14px;
  49. font-family: PingFangSC-Regular, PingFang SC;
  50. font-weight: 400;
  51. color: #666666;
  52. line-height: 24px;
  53. margin-bottom: 30px;
  54. }
  55. }
  56. }
  57. .imgWrap {
  58. width: 573px;
  59. height: 375px;
  60. img {
  61. width: 100%;
  62. }
  63. }
  64. </style>