joinGainBlock.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <div class="jg-block-container">
  3. <div class="text-container">
  4. <h1 class="title">{{joinGainInfoData.title}}</h1>
  5. <h2 class="eng-title">{{joinGainInfoData.engTitle}}</h2>
  6. <p class="description">{{joinGainInfoData.description}}</p>
  7. <div class="multi-color-btn">
  8. <span class="main">立即加入代理</span>
  9. <span class="sub">></span>
  10. </div>
  11. <img :src="joinGainInfoData.imgUrl" class="img-container"/>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. name: "joinGainBlock",
  18. props:{joinGainInfoData:{
  19. default:()=>{
  20. return {
  21. title:'',
  22. engTitle:'',
  23. description:'',
  24. imgUrl:require('../assets/add01.png')
  25. }
  26. }
  27. }}
  28. }
  29. </script>
  30. <style scoped lang="less">
  31. @import "../assets/less/_variable.less";
  32. .jg-block-container{
  33. box-sizing: border-box;
  34. &:hover{
  35. & .text-container{
  36. & .multi-color-btn{
  37. display: block;
  38. }
  39. & .title,
  40. & .description{
  41. color: @primaryBlue;
  42. }
  43. border: solid 1px @primaryBlue;
  44. border-left: solid 2px @primaryBlue;
  45. }
  46. }
  47. & .text-container{
  48. position: relative;
  49. border: solid 1px #eeeeee;
  50. width: 430px;
  51. height: 250px;
  52. background-color: white;
  53. & .title{
  54. text-align: left;
  55. margin: 33px 0 0 20px;
  56. font-size: 25px;
  57. line-height: 1;
  58. color:@lightBlack;
  59. }
  60. & .eng-title{
  61. text-align: left;
  62. margin: 10px 0 0 20px;
  63. line-height: 1;
  64. color:@lighterBlack;
  65. font-size: 20px;
  66. }
  67. & .description{
  68. text-align: left;
  69. margin: 40px 150px 0 20px;
  70. line-height: 1;
  71. font-size: 15px;
  72. color: @lightBlack;
  73. }
  74. & .img-container{
  75. position: absolute;
  76. width: 270px;
  77. height: 210px;
  78. top: 50%;
  79. left: 100%;
  80. transform: translate(-50%,-50%);
  81. }
  82. & .multi-color-btn{
  83. cursor: pointer;
  84. display: none;
  85. position: absolute;
  86. color:white;
  87. background-color: @primaryBlue;
  88. line-height: 45px;
  89. left: 20px;
  90. top: 100%;
  91. transform: translateY(-50%);
  92. width: 170px;
  93. height: 45px;
  94. & .sub{
  95. width: 45px;
  96. float: right;
  97. background-color: #2580bb;
  98. }
  99. }
  100. }
  101. }
  102. </style>