You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

phone_high_counter.vue 3.0KB

пре 5 година
пре 5 година
пре 5 година
пре 5 година
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <div class="all">
  3. <img class="pageBg" src="../assets/productBg.jpg">
  4. <div class="contentFrame">
  5. <img class="contentImg" src="../assets/phone/high/counter.png">
  6. <img class="pageRedDot pageRedDot1" @click="lookDetail('guitailika')" src="../assets/pageRedDot.png">
  7. <img class="pageRedDot pageRedDot2" @click="lookDetail('shoujibeitie')" src="../assets/pageRedDot.png">
  8. <img class="pageRedDot pageRedDot3" @click="lookDetail('guitaitie')" src="../assets/pageRedDot.png">
  9. </div>
  10. <img class="arrow" src="../assets/pageArrow.png"/>
  11. <sidebar class="sidebarSty"></sidebar>
  12. <phoneAppliancesWin v-if="winShow" :product="product" @hiddenWin='winControl' :category="category" :detailName="detailName"></phoneAppliancesWin>
  13. </div>
  14. </template>
  15. <script>
  16. import Sidebar from '../components/sidebar'
  17. import phoneAppliancesWin from './phone_appliances_win'
  18. export default {
  19. name: "phone_high_counter",
  20. data(){
  21. return{
  22. product:"phone",//产品
  23. category:"high",//类别
  24. detailName:"",//详细名称
  25. winShow:false,//是否显示弹窗
  26. }
  27. },
  28. components:{
  29. Sidebar,
  30. phoneAppliancesWin
  31. },
  32. methods:{
  33. lookDetail(name){//查看详情
  34. this.detailName = name;
  35. this.winControl();
  36. },
  37. winControl(){//控制弹窗显示状态
  38. this.winShow = !this.winShow;
  39. }
  40. }
  41. }
  42. </script>
  43. <style scoped>
  44. .pageBg{
  45. position: fixed;
  46. top: 50%;
  47. left: 0;
  48. transform: translateY(-50%);
  49. width: 7.5rem;
  50. height: 15.06rem;
  51. }
  52. .contentFrame{
  53. position: absolute;
  54. left: 50%;
  55. top: 50%;
  56. transform: translate(-50%,-50%);
  57. width: 7.5rem;
  58. height: 12.06rem;
  59. display: flex;
  60. align-items: center;
  61. justify-content: center;
  62. overflow: hidden;
  63. }
  64. .contentImg{
  65. width: 6.93rem;
  66. height: 11.85rem;
  67. }
  68. .pageRedDot{
  69. position: absolute;
  70. width: 0.29rem;
  71. height: 0.29rem;
  72. animation: dotTwinkle 3s linear infinite;
  73. }
  74. @keyframes dotTwinkle {
  75. 0%{opacity: 0.2}
  76. 50%{opacity:1}
  77. 100%{opacity:0.2}
  78. }
  79. .pageRedDot1{
  80. left: 0.97rem;
  81. top: 5.17rem;
  82. }
  83. .pageRedDot2{
  84. left: 0.88rem;
  85. top: 8.13rem;
  86. }
  87. .pageRedDot3{
  88. left: 6.32rem;
  89. top: 6.73rem;
  90. }
  91. .sidebarSty{
  92. position: fixed;
  93. top:0.3rem;
  94. left: 0.3rem;
  95. }
  96. .arrow{
  97. position: absolute;
  98. bottom: 0.3rem;
  99. left: 50%;
  100. transform: translateX(-50%);
  101. width: 0.37rem;
  102. height: 0.33rem;
  103. animation: arrowAni 1s linear infinite;
  104. }
  105. @keyframes arrowAni {
  106. 0%{bottom: 0.3rem}
  107. 50%{bottom: 0.1rem}
  108. 100%{bottom: 0.3rem}
  109. }
  110. </style>