ticket-det.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view class="ticket-det-box iPhone-bottom flex-common-css box-border-box">
  3. <view class="nav-box">
  4. <Nav :leftShow='false' :customNav='true' bgckgroundBox='transparent'>
  5. <template>
  6. <view slot="custom" class="align-items-center">
  7. <view class="yuan-bg">
  8. <uni-icons type="left" size="20" @click="toBack()" color="#000"></uni-icons>
  9. </view>
  10. </view>
  11. </template>
  12. </Nav>
  13. </view>
  14. <view class="scroll-view-css">
  15. <swiper class="swiper " circular :autoplay="true" :interval="3000" :duration="500" :current='BanenerCurrent' @change="onSwiperChange">
  16. <swiper-item v-for="(item,i) in 3" :key="i">
  17. <image class="swiper-item" src="@/static/img/my/lqzx-bg.png" mode="scaleToFill"></image>
  18. <view class="swiper-num fc-f">{{BanenerCurrent + 1}}/3</view>
  19. </swiper-item>
  20. </swiper>
  21. <view class="box-border-box p-24">
  22. <view class="box-card box-border-box p-24">
  23. <view class="mb-12">
  24. <span class="fs-28 fc-FB3D03 fw-600">¥</span>
  25. <span class="fs-44 fc-FB3D03 fw-600">19.5</span>
  26. </view>
  27. <view class="fs-36 fw-600">
  28. 巧大耳朵游乐场大耳朵游乐场1大耳朵游乐场巧大耳朵游乐场大耳朵游乐场1大耳朵游乐场
  29. </view>
  30. </view>
  31. </view>
  32. <image class="pwxq" src="@/static/img/buy/pwxq.png" mode="scaleToFill"></image>
  33. <view class="box-border-box plr-24">
  34. <view class="box-card box-border-box p-24 fs-30 fc-0">
  35. 套餐内日描述套餐内日描述套餐内日描述套餐 内日描述套餐内日描述套餐内日描述套餐内日描述套餐内日描述
  36. <image src="../static/img/my/bg.png" mode=""></image>
  37. </view>
  38. </view>
  39. </view>
  40. <view class="bottom-box box-border-box p-24">
  41. <view class="flex-justify-space">
  42. <view class="align-items-flex-end box-1">
  43. <span class="fs-28 fc-f fw-600">¥</span>
  44. <span class="fs-44 fc-f fw-600">19.5</span>
  45. </view>
  46. <view class="text-align-center box-2 fs-32 fc-f fw-600">立即抢购</view>
  47. </view>
  48. </view>
  49. </view>
  50. </template>
  51. <script>
  52. import tools from "@/service/tools";
  53. export default {
  54. data(){
  55. return{
  56. BanenerCurrent:1,
  57. }
  58. },
  59. methods:{
  60. toBack(){
  61. tools.leftClick()
  62. },
  63. onSwiperChange(e){
  64. this.BanenerCurrent = e.detail.current;
  65. },
  66. },
  67. }
  68. </script>
  69. <style scoped lang="scss">
  70. .ticket-det-box{
  71. position: relative;
  72. .nav-box{
  73. position: absolute;
  74. .yuan-bg{
  75. width: 60rpx;
  76. height: 60rpx;
  77. background-color: #B3B3B4;
  78. border-radius: 50%;
  79. text-align: center;
  80. line-height: 62rpx;
  81. }
  82. }
  83. .bottom-box{
  84. .box-1{
  85. flex: 1;
  86. height: 100rpx;
  87. background: #333333;
  88. border-radius: 200rpx 0rpx 0rpx 200rpx;
  89. box-sizing: border-box;
  90. padding-left: 32rpx;
  91. padding-bottom: 20rpx;
  92. }
  93. .box-2{
  94. width: 200rpx;
  95. height: 100rpx;
  96. line-height: 100rpx;
  97. background: #41ABF5;
  98. border-radius: 0rpx 200rpx 200rpx 0rpx;
  99. text-align: center;
  100. }
  101. }
  102. .swiper{
  103. width: 100%;
  104. height: 750rpx;
  105. position: relative;
  106. .swiper-item{
  107. width: 100%;
  108. height: 750rpx;
  109. }
  110. .swiper-num{
  111. position: absolute;
  112. right: 24rpx;
  113. bottom: 24rpx;
  114. width: 120rpx;
  115. height: 48rpx;
  116. background: rgba(51,51,51,0.6);
  117. border-radius: 200rpx;
  118. text-align: center;
  119. line-height: 48rpx;
  120. }
  121. }
  122. .box-card{
  123. width: 100%;
  124. min-height: 100rpx;
  125. background: #FFFFFF;
  126. border-radius: 20rpx;
  127. }
  128. .pwxq{
  129. width: 146rpx;
  130. height: 46rpx;
  131. margin: 38rpx auto 24rpx auto;
  132. }
  133. }
  134. </style>