index.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <template>
  2. <view class="game">
  3. <view class="backImg">
  4. <navigator url="/pages/index/happly" open-type="reLaunch">
  5. <image class="back" src="../../static/icon/fanhui.png" mode=""></image>
  6. </navigator>
  7. </view>
  8. <scroll-view scroll-y="true" class="scroll" >
  9. <view class="centerBox flex position-relative">
  10. <view class="centerItem">
  11. <view class="gameList position-relative" v-for="(item,index) in imgNum">
  12. <image class="gameImgBg" :src="`../../static/game/juedou/game${(2*index+1)}.png`" mode="scaleToFill"></image>
  13. </view>
  14. </view>
  15. <view class="tipImgBox">
  16. <view class="conentTipImg" :style="{
  17. top:`${(index)*276+106}rpx`
  18. }" v-for="(item,index) in imgNum">
  19. </view>
  20. </view>
  21. <view class="centerItem">
  22. <view class="gameList position-relative" v-for="(item,index) in imgNum">
  23. <image class="gameImgBg" :src="`../../static/game/juedou/game${(2*index+2)}.png`" mode="scaleToFill"></image>
  24. </view>
  25. </view>
  26. </view>
  27. </scroll-view>
  28. <view class="footer flex">
  29. <image class="leftImg" src="../../static/game/juedou/footerLeft.png" mode="scaleToFill"></image>
  30. <view class="footerCenter">
  31. </view>
  32. <image class="rightImg" src="../../static/game/juedou/footerRight.png" mode="scaleToFill"></image>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. // 图片数量
  41. imgNum:4
  42. }
  43. },
  44. methods: {
  45. }
  46. }
  47. </script>
  48. <style lang="scss" scoped>
  49. .game{
  50. min-height: 100vh;
  51. background-color: rgb(80, 49, 47);
  52. // padding-top: calc(var(--status-bar-height) + 500rpx);
  53. }
  54. .backImg{
  55. padding: 40rpx 0rpx 0 30rpx;
  56. background-image: url("../../static/game/juedou/gameBanner.png");
  57. background-repeat: no-repeat;
  58. background-size: 100% auto;
  59. height: 398rpx;
  60. .back{
  61. width: 40rpx;
  62. height: 40rpx;
  63. }
  64. }
  65. .centerBox{
  66. flex-wrap: wrap;
  67. margin: 0 26rpx;
  68. background-color:rgb(59, 33, 33);
  69. padding: 0 18rpx;
  70. .tipImgBox{
  71. .conentTipImg{
  72. background-color: rgb(159,81,53);
  73. // border: 1px solid #FFF;
  74. width: 50rpx;
  75. height: 50rpx;
  76. border-radius: 14rpx;
  77. transform:rotateX(30deg) rotateZ(45deg) ;
  78. position: absolute;
  79. left: 324rpx;
  80. }
  81. }
  82. .centerItem{
  83. line-height: 0;
  84. padding: 20rpx 18rpx 0rpx 18rpx;
  85. box-shadow:inset 0px -5px 10px 3px rgba(106,41,25, 1) ;
  86. &:nth-child(1){
  87. padding-right: 30rpx;
  88. }
  89. &:nth-child(3){
  90. padding-left: 30rpx;
  91. }
  92. .gameList{
  93. border: 2px solid rgba(127,71,36, .7);
  94. border-radius: 10rpx;
  95. overflow: hidden;
  96. margin-bottom: 40rpx;
  97. .gameImgBg{
  98. width:267rpx ;
  99. height: 226rpx;
  100. }
  101. }
  102. }
  103. }
  104. .scroll{
  105. height: calc(100vh - 170rpx - 398rpx);
  106. }
  107. .footer{
  108. position: fixed;
  109. bottom: 0;
  110. left: 0;
  111. width: 100%;
  112. height: 170rpx;
  113. background-image: url("../../static/game/juedou/gameBottom.png");
  114. background-repeat: no-repeat;
  115. background-size: 100% auto;
  116. padding: 0 30rpx;
  117. .footerCenter{
  118. background-image: url("../../static/game/juedou/touru.png");
  119. background-repeat: no-repeat;
  120. background-size: 100% auto;
  121. height:114rpx ;
  122. width: 260rpx;
  123. }
  124. .leftImg{
  125. width: 78rpx;
  126. height: 104rpx;
  127. }
  128. .rightImg{
  129. width: 82rpx;
  130. height: 106rpx;
  131. }
  132. }
  133. </style>