guide-level-scroll.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. <template>
  2. <view>
  3. <uni-nav-bar id="nav-bar" status-bar="true" @clickLeft="onBack()" @clickRight="onNavUpdateDevice()" title="关卡指导"
  4. color="#000000" fixed="true" :border="false">
  5. <view slot="left">
  6. <view class=" flex align-center margin-left">
  7. <image class="p-left-arrow" src="../../../static/p-left-arrow.png"></image>
  8. </view>
  9. </view>
  10. </uni-nav-bar>
  11. <view v-for="(item,index) in levelList" :key="index" class="mask-bg-07 ">
  12. <view class="flex flex-direction level-mid position-relative">
  13. <view style="height: 278rpx;width: 750rpx;" class="position-relative">
  14. <view class="position-absolute-center flex">
  15. <image style="width: 442rpx;height: 278rpx;"
  16. src="../../../static/common/subNVue/guide/level-game-title@2x.png"></image>
  17. </view>
  18. <view class="position-absolute-center flex justify-center">
  19. <text class="text-white text-14px" style="top: 0rpx;left:20rpx;">{{item.title}}</text>
  20. </view>
  21. </view>
  22. <view class="flex flex-direction-row align-center justify-center margin-xl">
  23. <view class="level-tip-number">1</view>
  24. <text class="text-16px text-left text-white " style="width:476rpx;">{{item.firstText}}</text>
  25. </view>
  26. <image
  27. :style="{ width: item.firstWidth + 'rpx', height: item.firstHeight + 'rpx' ,transform:'scaleX('+item.firstDirection +')' }"
  28. :src="item.firstImage"></image>
  29. <view class="flex flex-direction-row align-center justify-center margin-xl">
  30. <text class="level-tip-number">2</text>
  31. <text class="text-16px text-left text-white " style="width:476rpx;">{{item.secondText}}</text>
  32. </view>
  33. <image
  34. :style="{ width: item.secondWidth + 'rpx', height: item.secondHeight + 'rpx' ,transform:'scaleX('+item.secondDirection +')' }"
  35. :src="item.secondImage">
  36. </image>
  37. <view style="height: 100rpx;"></view>
  38. </view>
  39. </view>
  40. </view>
  41. </template>
  42. <script>
  43. export default {
  44. data() {
  45. return {
  46. devicesList: [],
  47. circular: true,
  48. levelList: [{
  49. title: '解锁向上跳',
  50. firstText: '请先确保手柄已经连接成功。',
  51. firstImage: '../../../static/common/subNVue/guide/level-game-fab@2x.png',
  52. firstDirection: 1,
  53. firstWidth: 102,
  54. firstHeight: 108,
  55. secondText: '通过向上跳的方式消除标志块',
  56. secondImage: '../../../static/modal/action-jump/midJumpWhite.png',
  57. secondDirection: 1,
  58. secondWidth: 68,
  59. secondHeight: 68
  60. },
  61. {
  62. title: '解锁左右跳',
  63. firstText: '此为左跳图标,通过向左跳的方式消除标志块',
  64. firstImage: '../../../static/modal/action-jump/directionJumpWhite.png',
  65. firstDirection: -1,
  66. firstWidth: 68,
  67. firstHeight: 68,
  68. secondText: '此为右跳图标,通过向右跳的方式消除标志块',
  69. secondImage: '../../../static/modal/action-jump/directionJumpWhite.png',
  70. secondDirection: 1,
  71. secondWidth: 68,
  72. secondHeight: 68
  73. },
  74. {
  75. title: '解锁左右旋跳',
  76. firstText: '此为左旋跳图标,通过向左旋跳的方式消除标志块',
  77. firstImage: '../../../static/modal/action-jump/directionJumpWhite.png',
  78. firstDirection: -1,
  79. firstWidth: 68,
  80. firstHeight: 68,
  81. secondText: '此为右旋跳图标,通过向右旋跳的方式消除标志块',
  82. secondImage: '../../../static/modal/action-jump/directionJumpWhite.png',
  83. secondDirection: 1,
  84. secondWidth: 68,
  85. secondHeight: 68
  86. }
  87. ],
  88. currentHeight: 0,
  89. threeTipHeight: 0,
  90. threeZIndex: 100,
  91. }
  92. },
  93. onLoad(op) {
  94. },
  95. onHide() {},
  96. methods: {
  97. onBack() {
  98. uni.navigateBack({
  99. delta: 1
  100. })
  101. }
  102. }
  103. }
  104. </script>
  105. <style>
  106. .hardware-border {
  107. border: 1rpx solid #9898FF;
  108. box-sizing: border-box;
  109. }
  110. .guide-container {
  111. /* background-color: rgba(0, 0, 0, 0.3); */
  112. width: 750rpx;
  113. flex: 1;
  114. }
  115. .level-mid {
  116. justify-content: center;
  117. align-items: center;
  118. height: 850rpx;
  119. width: 750rpx;
  120. }
  121. .level-tip-number {
  122. border-radius: 18px;
  123. width: 22px;
  124. height: 22px;
  125. text-align: center;
  126. color: #FFFFFF;
  127. margin-right: 13px;
  128. line-height: 18px;
  129. border: 1rpx solid #FFFFFF;
  130. }
  131. </style>