Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

112 lines
3.0KB

  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/standard/outside.png">
  6. <img class="pageRedDot pageRedDot1" @click="lookDetail('hengfu')" src="../assets/pageRedDot.png">
  7. <img class="pageRedDot pageRedDot2" @click="lookDetail('mentie')" src="../assets/pageRedDot.png">
  8. <img class="pageRedDot pageRedDot3" @click="lookDetail('yimitie')" 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_standard_outside",
  20. data(){
  21. return{
  22. product:"phone",//产品
  23. category:"standard",//类别
  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: fixed;
  54. left: 50%;
  55. top: 50%;
  56. transform: translate(-50%,-50%);
  57. width: 7.5rem;
  58. height: 12.06rem;
  59. display: flex;
  60. justify-content: center;
  61. overflow: hidden;
  62. }
  63. .contentImg{
  64. width: 6.93rem;
  65. height: 11.21rem;
  66. }
  67. .pageRedDot{
  68. position: absolute;
  69. width: 0.29rem;
  70. height: 0.29rem;
  71. animation: dotTwinkle 3s linear infinite;
  72. }
  73. @keyframes dotTwinkle {
  74. 0%{opacity: 0.2}
  75. 50%{opacity:1}
  76. 100%{opacity:0.2}
  77. }
  78. .pageRedDot1{
  79. left: 5.86rem;
  80. top: 4.58rem;
  81. }
  82. .pageRedDot2{
  83. left: 2.22rem;
  84. top: 6.68rem;
  85. }
  86. .pageRedDot3{
  87. left: 4.55rem;
  88. top: 7.1rem;
  89. }
  90. .sidebarSty{
  91. position: fixed!important;
  92. top:0.3rem;
  93. left: 0.3rem;
  94. }
  95. .arrow{
  96. position: absolute;
  97. bottom: 0.3rem;
  98. left: 50%;
  99. transform: translateX(-50%);
  100. width: 0.37rem;
  101. height: 0.33rem;
  102. animation: arrowAni 1s linear infinite;
  103. }
  104. @keyframes arrowAni {
  105. 0%{bottom: 0.3rem}
  106. 50%{bottom: 0.1rem}
  107. 100%{bottom: 0.3rem}
  108. }
  109. </style>