guide-level-scroll.vue 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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" style="background-color: rgba(0,0,0,0.32);">
  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 v-if="!item.secondHidden" 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 v-if="!item.secondHidden"
  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. firstText: '通过向上跳的方式消除标志块',
  56. firstImage: '../../../static/modal/action-jump/midJumpWhite.png',
  57. firstDirection: 1,
  58. firstWidth: 68,
  59. firstHeight: 68,
  60. secondText: '通过向上跳的方式消除标志块',
  61. secondImage: '../../../static/modal/action-jump/midJumpWhite.png',
  62. secondDirection: 1,
  63. secondWidth: 68,
  64. secondHeight: 68,
  65. secondHidden: true
  66. },
  67. {
  68. title: '解锁左右跳',
  69. firstText: '此为左跳图标,通过向左跳的方式消除标志块',
  70. firstImage: '../../../static/modal/action-jump/directionJumpWhite-left.png',
  71. firstDirection: 1,
  72. firstWidth: 68,
  73. firstHeight: 68,
  74. secondText: '此为右跳图标,通过向右跳的方式消除标志块',
  75. secondImage: '../../../static/modal/action-jump/directionJumpWhite-right.png',
  76. secondDirection: 1,
  77. secondWidth: 68,
  78. secondHeight: 68,
  79. secondHidden: false
  80. },
  81. {
  82. title: '解锁左右旋跳',
  83. firstText: '此为左旋跳图标,通过向左旋跳的方式消除标志块',
  84. firstImage: '../../../static/modal/action-jump/rotateJumpWhite-left.png',
  85. firstDirection: 1,
  86. firstWidth: 68,
  87. firstHeight: 68,
  88. secondText: '此为右旋跳图标,通过向右旋跳的方式消除标志块',
  89. secondImage: '../../../static/modal/action-jump/rotateJumpWhite-right.png',
  90. secondDirection: 1,
  91. secondWidth: 68,
  92. secondHeight: 68,
  93. secondHidden: false
  94. }
  95. ],
  96. currentHeight: 0,
  97. threeTipHeight: 0,
  98. threeZIndex: 100,
  99. }
  100. },
  101. onLoad(op) {
  102. },
  103. onHide() {},
  104. methods: {
  105. onBack() {
  106. uni.navigateBack({
  107. delta: 1
  108. })
  109. }
  110. }
  111. }
  112. </script>
  113. <style>
  114. .hardware-border {
  115. border: 1rpx solid #9898FF;
  116. box-sizing: border-box;
  117. }
  118. .guide-container {
  119. /* background-color: rgba(0, 0, 0, 0.3); */
  120. width: 750rpx;
  121. flex: 1;
  122. }
  123. .level-mid {
  124. justify-content: center;
  125. align-items: center;
  126. height: 850rpx;
  127. width: 750rpx;
  128. }
  129. .level-tip-number {
  130. border-radius: 18px;
  131. width: 22px;
  132. height: 22px;
  133. text-align: center;
  134. color: #FFFFFF;
  135. margin-right: 13px;
  136. line-height: 22px;
  137. border: 1rpx solid #FFFFFF;
  138. }
  139. </style>