ticket-centre.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <template>
  2. <view class="flex-common-css">
  3. <Nav title=" " titleColor="" bgckgroundBox='transparent' leftColor='#fff'></Nav>
  4. <image class="lqzx-bg" src="@/static/img/my/lqzx-bg.png" mode=""></image>
  5. <image @click="goToUrl" class="wdyhq" src="@/static/img/my/wdyhq.png" mode=""></image>
  6. <view class="lqzx-blank"></view>
  7. <scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  8. <view class="liat-box ">
  9. <view class="item-box display-flex mb-20" v-for="(item,index) in itemData" :key="index">
  10. <view class="item-right flex-direction flex-justify-center flex-1 bgc-f">
  11. <view class="fs-28 mb-12 ticket-name text-overflow-ellipsis fc-3 fw-600">
  12. {{item.name}}
  13. </view>
  14. <view class="fs-24 fc-6">
  15. 有效时间:2024.05.08-2024.05.24
  16. </view>
  17. </view>
  18. <view class="item-hr"></view>
  19. <view class="item-left flex-direction align-items-center flex-justify-center bgc-FCE7E2">
  20. <view class="align-items-center">
  21. <view class="fs-30 fw-600 fc-FB3D03">¥</view>
  22. <view class="fs-48 fw-600 fc-FB3D03">10</view>
  23. </view>
  24. <view class="fs-24 mb-18 fc-6">
  25. 满90元可用
  26. </view>
  27. <view class="but-box fs-28 fc-f" @click="receive">
  28. 立即领取
  29. </view>
  30. <view class="ball"></view>
  31. <view class="ball-two"></view>
  32. </view>
  33. </view>
  34. </view>
  35. </scroll-view>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. components: {},
  41. data() {
  42. return {
  43. itemData: [{
  44. type: 0,
  45. name: '优惠券名称优惠券名称惠券名名称惠券名'
  46. },
  47. {
  48. type: 0,
  49. name: '优惠券名称'
  50. }
  51. ]
  52. };
  53. },
  54. onLoad(data) {},
  55. mounted() {},
  56. methods: {
  57. goToUrl() {
  58. uni.navigateTo({
  59. url:'/pages-my/my-ticket'
  60. })
  61. },
  62. scrolltolower() {
  63. console.log('触底');
  64. },
  65. receive() {
  66. // 立即领取
  67. }
  68. },
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .lqzx-bg {
  73. position: fixed;
  74. left: 0;
  75. top: 0;
  76. width: 100%;
  77. height: 489rpx;
  78. }
  79. .lqzx-blank {
  80. width: 100%;
  81. height: 272rpx;
  82. }
  83. .wdyhq {
  84. position: fixed;
  85. top: 204rpx;
  86. right: 0;
  87. width: 52rpx;
  88. height: 152rpx;
  89. }
  90. .liat-box {
  91. border-radius: 50rpx 50rpx 0 0;
  92. background: linear-gradient(180deg, #FBE9E4 0%, #F5F4F9 10%, #F5F4F9 100%);
  93. border-image: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0)) 2 2;
  94. padding: 24rpx;
  95. box-sizing: border-box;
  96. }
  97. .item-hr {
  98. width: 0px;
  99. height: auto;
  100. border-right: 1rpx dashed #FB7850;
  101. }
  102. .item-hr-two {
  103. width: 0px;
  104. height: auto;
  105. border-right: 1rpx dashed #999;
  106. }
  107. .item-left {
  108. width: 200rpx;
  109. height: auto;
  110. padding: 20rpx 24rpx;
  111. box-sizing: border-box;
  112. position: relative;
  113. border-radius: 0 20rpx 20rpx 0;
  114. }
  115. .ball {
  116. width: 24rpx;
  117. height: 24rpx;
  118. border-radius: 50%;
  119. position: absolute;
  120. top: -12rpx;
  121. left: -12rpx;
  122. background: #F5F5F5;
  123. z-index: 2;
  124. }
  125. .ball-two {
  126. width: 24rpx;
  127. height: 24rpx;
  128. border-radius: 50%;
  129. position: absolute;
  130. background: #F5F5F5;
  131. z-index: 10;
  132. bottom: -12rpx;
  133. left: -12rpx;
  134. }
  135. .item-right {
  136. padding: 24rpx;
  137. box-sizing: border-box;
  138. border-radius: 20rpx 0 0 20rpx;
  139. position: relative;
  140. }
  141. .but-box {
  142. width: 152rpx;
  143. height: 52rpx;
  144. line-height: 52rpx;
  145. text-align: center;
  146. background: linear-gradient(225deg, #FB3D03 0%, #FF6901 100%);
  147. border-radius: 200rpx;
  148. }
  149. </style>