Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

phone_high_within.vue 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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/within.png">
  6. <img class="pageRedDot pageRedDot1" @click="lookDetail('haibao')" src="../assets/pageRedDot.png">
  7. <img class="pageRedDot pageRedDot2" @click="lookDetail('zhizhitaika')" src="../assets/pageRedDot.png">
  8. </div>
  9. <sidebar class="sidebarSty"></sidebar>
  10. <phoneAppliancesWin v-if="winShow" :product="product" @hiddenWin='winControl' :category="category" :detailName="detailName"></phoneAppliancesWin>
  11. </div>
  12. </template>
  13. <script>
  14. import Sidebar from '../components/sidebar'
  15. import phoneAppliancesWin from './phone_appliances_win'
  16. export default {
  17. name: "phone_high_within",
  18. data(){
  19. return{
  20. product:"phone",//产品
  21. category:"high",//类别
  22. detailName:"",//详细名称
  23. winShow:false,//是否显示弹窗
  24. }
  25. },
  26. components:{
  27. Sidebar,
  28. phoneAppliancesWin
  29. },
  30. methods:{
  31. lookDetail(name){//查看详情
  32. this.detailName = name;
  33. this.winControl();
  34. },
  35. winControl(){//控制弹窗显示状态
  36. this.winShow = !this.winShow;
  37. }
  38. }
  39. }
  40. </script>
  41. <style scoped>
  42. .pageBg{
  43. position: fixed;
  44. top: 50%;
  45. left: 0;
  46. transform: translateY(-50%);
  47. width: 7.5rem;
  48. height: 15.06rem;
  49. }
  50. .contentFrame{
  51. position: fixed;
  52. left: 50%;
  53. top: 50%;
  54. transform: translate(-50%,-50%);
  55. width: 7.5rem;
  56. height: 12.06rem;
  57. display: flex;
  58. justify-content: center;
  59. overflow: hidden;
  60. }
  61. .contentImg{
  62. width: 6.93rem;
  63. height: 11.67rem;
  64. }
  65. .pageRedDot{
  66. position: absolute;
  67. width: 0.29rem;
  68. height: 0.29rem;
  69. animation: dotTwinkle 3s linear infinite;
  70. }
  71. @keyframes dotTwinkle {
  72. 0%{opacity: 0.2}
  73. 50%{opacity:1}
  74. 100%{opacity:0.2}
  75. }
  76. .pageRedDot1{
  77. left: 4.16rem;
  78. top: 4.57rem;
  79. }
  80. .pageRedDot2{
  81. left: 0.85rem;
  82. top: 7.45rem;
  83. }
  84. .sidebarSty{
  85. position: fixed;
  86. top:0.3rem;
  87. left: 0.3rem;
  88. }
  89. </style>