ActivityPackage.vue 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. <template>
  2. <view class="activity-package-container">
  3. <view class="left-container" @click="go('/another-tf/another-serve/goodsList/index?classifyId=1439')">
  4. <image src="../../../static/images/new-business/home/user-upgrade-goods.png" style="width: 100%;height: 100%;" mode="aspectFit"></image>
  5. <view style="position: absolute;top: 8upx;width: 100%;font-size: 38upx;font-weight: bold;color: #ffffff;text-align: center;">
  6. <view>特殊产品</view>
  7. <view style="margin-top: 12upx;">会员升级必买</view>
  8. <view style="margin-top: 16upx;">关系链专用</view>
  9. </view>
  10. </view>
  11. <view class="right-container">
  12. <view class="right-item" @click="empty()">
  13. <view class="item-title">充话费享折扣</view>
  14. <image class="zhe" src="../../../static/images/new-business/home/zhe.png"></image>
  15. <view class="button-wrapper">
  16. <button class="item-btn uni-btn">立即体验</button>
  17. <image class="bao" src="../../../static/images/new-business/home/bao.png"></image>
  18. </view>
  19. </view>
  20. <view class="right-item oli" @click="empty()">
  21. <view class="title-wrapper">
  22. <view class="title">加油券</view>
  23. <view class="count">100+领取</view>
  24. </view>
  25. <image src="../../../static//images//new-business/home/car.png" class="car"></image>
  26. <image src="../../../static//images//new-business/home/cao.png" class="cao"></image>
  27. <view class="button-wrapper">
  28. <button class="item-btn uni-btn">立即体验</button>
  29. </view>
  30. </view>
  31. </view>
  32. <tui-toast ref="toast"></tui-toast>
  33. </view>
  34. </template>
  35. <script>
  36. export default {
  37. props: {
  38. scrollTop: {
  39. type: Number,
  40. default: 0
  41. }
  42. }
  43. }
  44. </script>
  45. <style lang="less" scoped>
  46. .activity-package-container {
  47. height: 517upx;
  48. display: flex;
  49. align-items: center;
  50. justify-content: space-between;
  51. .item-btn {
  52. width: 153upx;
  53. height: 43upx;
  54. border-radius: 100px;
  55. border: 2upx solid #EF530E;
  56. display: flex;
  57. align-items: center;
  58. justify-content: center;
  59. color: #EF530E;
  60. font-size: 24upx;
  61. }
  62. .left-container {
  63. position: relative;
  64. height: 517upx;
  65. width: 355upx;
  66. overflow: hidden;
  67. }
  68. .right-container {
  69. height: 517upx;
  70. width: 316upx;
  71. display: flex;
  72. align-items: center;
  73. justify-content: space-between;
  74. flex-direction: column;
  75. .right-item {
  76. display: flex;
  77. justify-content: space-between;
  78. flex-direction: column;
  79. padding: 28upx 23upx;
  80. box-sizing: border-box;
  81. position: relative;
  82. width: 316upx;
  83. height: 248upx;
  84. background: linear-gradient(180deg, #FCE8B4 0%, #FFFFFF 45%);
  85. border-radius: 20upx;
  86. overflow: hidden;
  87. .zhe {
  88. position: absolute;
  89. right: -28upx;
  90. bottom: -40upx;
  91. width: 184upx;
  92. height: 227upx;
  93. }
  94. .item-title {
  95. color: #222229;
  96. font-size: 32upx;
  97. font-weight: 500;
  98. }
  99. .button-wrapper {
  100. position: relative;
  101. .bao {
  102. width: 153.86upx;
  103. height: 84.94upx;
  104. position: absolute;
  105. top: -84upx;
  106. left: 10upx;
  107. }
  108. }
  109. }
  110. .oli {
  111. background: linear-gradient(180deg, #FCDECC 0%, #FFFFFF 52%);
  112. .car {
  113. position: absolute;
  114. width: 257.34upx;
  115. height: 172.58upx;
  116. top: 57upx;
  117. right: -96upx;
  118. }
  119. .cao {
  120. position: absolute;
  121. width: 191upx;
  122. height: 84upx;
  123. top: 94upx;
  124. left: -20upx;
  125. }
  126. .title-wrapper {
  127. display: flex;
  128. align-items: center;
  129. justify-content: space-between;
  130. color: #222229;
  131. .title {
  132. font-size: 32upx;
  133. font-weight: 500;
  134. }
  135. .count {
  136. font-size: 24upx;
  137. }
  138. }
  139. }
  140. }
  141. }
  142. </style>