wave-point.vue 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <template>
  2. <view class="wave-point flex-common-css box-sizing-border iPhone-bottom">
  3. <Nav class='nav-view' :title="isScroll?'波点兑换中心':''" :titleColor="isScroll?'#333':'#fff'"
  4. :bgckgroundBox="isScroll?'#fff':'transparent'" :rightShow='true' :rightType='2'>
  5. <template v-slot:right>
  6. <view class="nav-right-box sys-size-24" :class="isScroll?'view-n':'view-s'" @click="to(1)">兑换记录</view>
  7. </template>
  8. </Nav>
  9. <image class="bg-img" src="@/static/img/wallet/bd-bg.png" mode="aspectFill"></image>
  10. <view class="nav-box">
  11. <view :class="navId === item.id?'text-s':'text-n'"
  12. v-for="(item,i) in navList" :key="i" @click="select(item,i)">
  13. {{item.name}}
  14. </view>
  15. <view class="nav-only" :style="{left:navLeft+'rpx',}"></view>
  16. </view>
  17. <scroll-view scroll-y="true" class="list-scroll" @scrolltolower="scrolltolower">
  18. <view class="list-home">
  19. <view class="list-box" v-for="(item,i) in 10" :key="i">
  20. <image v-if="i%2===0" class="box-bg" src="@/static/img/wallet/shop-bg.png" mode="aspectFill"></image>
  21. <image v-else class="box-bg" src="@/static/img/wallet/shop-bg-right.png" mode="aspectFill"></image>
  22. <view class="box-top" v-if="navId === 3">
  23. <view class="box-1 sys-size-24">剩余0</view>
  24. <image class="type-3" src="@/static/img/circle/1.png" mode="scaleToFill"></image>
  25. <view class="box-san-left" v-if="i%2===0"></view>
  26. <view class="box-san-right" v-else></view>
  27. </view>
  28. <view class="box-top" v-else>
  29. <view class="box-2">
  30. <view class="box-2-c">
  31. <text class="sys-size-28 sys-color-gray-3 sys-weight-600">3天</text>
  32. <image v-if="navId===2" src="@/static/img/wallet/fj.png" mode="aspectFill"></image>
  33. <!-- <image src="@/static/img/wallet/vip-shop.png" mode="aspectFill"></image> -->
  34. <!-- <image src="@/static/img/wallet/x-shop.png" mode="aspectFill"></image> -->
  35. <image v-else src="@/static/img/wallet/svip-shop.png" mode="aspectFill"></image>
  36. </view>
  37. </view>
  38. </view>
  39. <view class="box-name sys-size-32 sys-color-white sys-weight-500 sys-webkit-box">
  40. 速度与激情速度与激情速度与激情
  41. </view>
  42. <view class="box-name-xian"><view></view></view>
  43. <view class="box-b">
  44. <view class="box-b-left">
  45. <text class="sys-size-36 sys-color-00E7EA sys-weight-600">20K</text>
  46. <text class="sys-size-24 sys-color-gray-9">波点</text>
  47. </view>
  48. <!-- <image src="@/static/img/wallet/dh.png" mode="aspectFill"></image> -->
  49. <image src="@/static/img/wallet/yqg.png" mode="aspectFill"></image>
  50. </view>
  51. </view>
  52. </view>
  53. </scroll-view>
  54. </view>
  55. </template>
  56. <script>
  57. export default {
  58. data(){
  59. return{
  60. isScroll:false,
  61. navId:1,
  62. navIndex:0,
  63. navLeft:110, //差值250 起点110
  64. navList:[{name:'特权',id:1},{name:'道具',id:2},{name:'其他',id:3},],
  65. }
  66. },
  67. methods:{
  68. scrolltolower(){
  69. console.log('触底');
  70. },
  71. select(item,i){
  72. if(this.navId!=item.id){
  73. this.navId =item.id;
  74. this.navIndex = i;
  75. this.navLeft = i * 250 + 110;
  76. }
  77. },
  78. to(type,item){
  79. if(type === 1){
  80. uni.navigateTo({
  81. url:'/pages/wallet/bill'
  82. })
  83. }
  84. }
  85. },
  86. }
  87. </script>
  88. <style scoped lang="scss">
  89. .wave-point{
  90. position: relative;
  91. .bg-img{
  92. width: 100%;
  93. height: 690rpx;
  94. }
  95. .nav-view{
  96. position: absolute;
  97. top: 0;
  98. left: 0;
  99. .nav-right-box{
  100. width: 120rpx;
  101. height: 34rpx;
  102. background: rgba(235,235,235,0.14);
  103. border-radius: 200rpx;
  104. line-height: 34rpx;
  105. text-align: center;
  106. }
  107. .view-s{
  108. border: 1rpx solid #F9F9F9;
  109. color: #fff;
  110. }
  111. .view-n{
  112. border: 1rpx solid #333;
  113. color: #333;
  114. }
  115. }
  116. .nav-box{
  117. background-color: #081432;
  118. width: 100%;
  119. height: 116rpx;
  120. display: flex;
  121. align-items: center;
  122. position: relative;
  123. .nav-only{
  124. width: 36rpx;
  125. height: 4rpx;
  126. background-color: #fff;
  127. position: absolute;
  128. bottom: 20rpx;
  129. transition: left 0.5s;
  130. }
  131. view{
  132. flex: 1;
  133. text-align: center;
  134. line-height: 116rpx;
  135. }
  136. .text-s{
  137. color: #fff;
  138. font-weight: 600;
  139. font-size: 36rpx;
  140. transition: all 0.5;
  141. }
  142. .text-n{
  143. color: #525A6E;
  144. font-size: 32rpx;
  145. transition: all 0.5;
  146. }
  147. }
  148. .list-scroll{
  149. background-color: #081432;
  150. flex: 1;
  151. overflow: auto;
  152. .list-home{
  153. display: flex;
  154. justify-content: space-between;
  155. flex-flow: row wrap;
  156. box-sizing: border-box;
  157. padding: 0 32rpx;
  158. .list-box{
  159. width: 333rpx;
  160. height: 444rpx;
  161. position: relative;
  162. margin-bottom: 28rpx;
  163. .box-bg{
  164. width: 333rpx;
  165. height: 444rpx;
  166. position: absolute;
  167. top: 0;
  168. left: 0;
  169. }
  170. .box-top{
  171. width: 313rpx;
  172. height: 264rpx;
  173. margin:2rpx 8rpx 10rpx 10rpx;
  174. position: relative;
  175. .box-2{
  176. width: 313rpx;
  177. height: 264rpx;
  178. box-sizing: border-box;
  179. padding-top: 118rpx;
  180. .box-2-c{
  181. width: 128rpx;
  182. height: 52rpx;
  183. line-height: 52rpx;
  184. background: #FFFFFF;
  185. border-radius: 0rpx 16rpx 16rpx 0rpx;
  186. margin: 0 78rpx 0 128rpx;
  187. box-sizing: border-box;
  188. padding-left: 60rpx;
  189. position: relative;
  190. image{
  191. width: 100rpx;
  192. height: 100rpx;
  193. position: absolute;
  194. left: -50rpx;
  195. top: -28rpx;
  196. }
  197. }
  198. }
  199. .box-san-left{
  200. position: absolute;
  201. top: -20rpx;
  202. left: -8rpx;
  203. border-top: 25rpx solid transparent;
  204. border-bottom: 25rpx solid transparent;
  205. border-right: 25rpx solid #081432;
  206. transform:rotate(45deg);
  207. }
  208. .box-san-right{
  209. position: absolute;
  210. top: -20rpx;
  211. right: -8rpx;
  212. border-top: 25rpx solid transparent;
  213. border-bottom: 25rpx solid transparent;
  214. border-left: 25rpx solid #081432;
  215. transform:rotate(-45deg);
  216. }
  217. .type-3{
  218. width: 100%;
  219. height: 100%;
  220. }
  221. .box-1{
  222. z-index: 100 !important;
  223. position: absolute;
  224. bottom: -2rpx;
  225. right: -2rpx;
  226. width: 84rpx;
  227. height: 36rpx;
  228. line-height: 36rpx;
  229. text-align: center;
  230. border-radius: 10rpx 0rpx 0rpx 0rpx;
  231. border: 2rpx solid #1F3F7B;
  232. color: #5D6473;
  233. background: #182137;
  234. }
  235. }
  236. .box-name{
  237. box-sizing: border-box;
  238. padding: 18rpx 35rpx 0 35rpx;
  239. position: relative;
  240. }
  241. .box-name-xian{
  242. box-sizing: border-box;
  243. padding: 0 35rpx;
  244. margin-top: 24rpx;
  245. position: relative;
  246. view{
  247. width: 100%;
  248. border-bottom: 2rpx dashed #274077;
  249. }
  250. }
  251. .box-b{
  252. box-sizing: border-box;
  253. padding: 18rpx 35rpx 0 35rpx;
  254. display: flex;
  255. justify-content: space-between;
  256. position: relative;
  257. .box-b-left{
  258. text{
  259. margin-right: 4rpx;
  260. }
  261. }
  262. image{
  263. width: 108rpx;
  264. height: 48rpx;
  265. }
  266. }
  267. }
  268. }
  269. }
  270. }
  271. </style>