rule-info.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="flex-common-css iPhone-bottom">
  3. <Nav title="规则详情" titleColor="#333" bgckgroundBox='#fff'></Nav>
  4. <scroll-view :scroll-y="true" class="scroll-view-css" @scrolltolower="scrolltolower">
  5. <view class="contetn-box">
  6. <view class="item-box display-flex mb-20">
  7. <view class="item-left flex-direction align-items-center flex-justify-center"
  8. :class="ticketData.type == 0?'bgc-FCE7E2':'bgc-E6E6E6'">
  9. <view class="align-items-center">
  10. <view class="fs-30 fw-600" :class="ticketData.type == 0?'fc-FB3D03':'fc-9'">¥</view>
  11. <view class="fs-48 fw-600" :class="ticketData.type == 0?'fc-FB3D03':'fc-9'">10</view>
  12. </view>
  13. <view class="fs-24" :class="ticketData.type == 0?'fc-6':'fc-9'">
  14. 满90元可用
  15. </view>
  16. <view class="ball"></view>
  17. <view class="ball-two"></view>
  18. </view>
  19. <view class="item-hr" :class="ticketData.type == 0?'':'item-hr-two'"></view>
  20. <view class="item-right flex-1 bgc-f">
  21. <view class="fs-28 mb-12 ticket-name text-overflow-ellipsis fw-600"
  22. :class="ticketData.type == 0?'fc-3':'fc-9'">
  23. {{ticketData.name}}
  24. </view>
  25. <view class="fs-24 mb-12" :class="ticketData.type == 0?'fc-FB3D03':'fc-9'">
  26. 2024.05.08-2024.05.24
  27. </view>
  28. <view class="flex-justify-space">
  29. <view class="fs-24" :class="ticketData.type == 0?'fc-3':'fc-9'">
  30. 券类型:外卖券
  31. </view>
  32. </view>
  33. <image class="item-img" src="@/static/img/my/ysy.png" mode="" v-if="ticketData.type == 1">
  34. </image>
  35. <image class="item-img" src="@/static/img/my/ysx.png" mode="" v-if="ticketData.type == 2"></image>
  36. </view>
  37. </view>
  38. <view class="but-box" v-if="ticketData.type == 0">
  39. <view class="but fs-32 fc-f fw-500" @click="goToUrl()">
  40. 去使用
  41. </view>
  42. </view>
  43. <view class="fs-34 fw-600 fc-0 mb-12">
  44. 使用范围
  45. </view>
  46. <view class="describe fs-28 fc-6" v-html=""></view>
  47. </view>
  48. </scroll-view>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. components: {},
  54. data() {
  55. return {
  56. ticketData: {
  57. type: 0,
  58. name: '优惠券名称优惠券名称惠券名'
  59. }
  60. };
  61. },
  62. onLoad(data) {},
  63. mounted() {},
  64. methods: {
  65. scrolltolower() {
  66. console.log('触底');
  67. },
  68. },
  69. }
  70. </script>
  71. <style lang="scss" scoped>
  72. .contetn-box {
  73. padding: 24rpx;
  74. box-sizing: border-box;
  75. }
  76. .item-hr {
  77. width: 0px;
  78. height: auto;
  79. border-right: 1rpx dashed #FB7850;
  80. }
  81. .item-hr-two {
  82. width: 0px;
  83. height: auto;
  84. border-right: 1rpx dashed #999;
  85. }
  86. .item-left {
  87. width: 200rpx;
  88. height: auto;
  89. padding: 34rpx 36rpx 44rpx;
  90. box-sizing: border-box;
  91. position: relative;
  92. border-radius: 20rpx 0 0 20rpx;
  93. }
  94. .ball {
  95. width: 24rpx;
  96. height: 24rpx;
  97. border-radius: 50%;
  98. position: absolute;
  99. top: -12rpx;
  100. right: -12rpx;
  101. background: #F5F5F5;
  102. z-index: 10;
  103. }
  104. .ball-two {
  105. width: 24rpx;
  106. height: 24rpx;
  107. border-radius: 50%;
  108. position: absolute;
  109. background: #F5F5F5;
  110. z-index: 10;
  111. bottom: -12rpx;
  112. right: -12rpx;
  113. }
  114. .item-right {
  115. padding: 24rpx;
  116. box-sizing: border-box;
  117. border-radius: 0 20rpx 20rpx 0;
  118. position: relative;
  119. }
  120. .ticket-name {
  121. max-width: 280rpx;
  122. }
  123. .item-img {
  124. width: 88rpx;
  125. height: 88rpx;
  126. position: absolute;
  127. bottom: 40%;
  128. right: 24rpx;
  129. }
  130. .but-box{
  131. padding: 12rpx 44rpx 46rpx;
  132. box-sizing: border-box;
  133. .but{
  134. width: 100%;
  135. height: 92rpx;
  136. line-height: 92rpx;
  137. text-align: center;
  138. background: linear-gradient( 144deg, #57CAFF 0%, #41ABF5 100%);
  139. border-radius: 380rpx;
  140. }
  141. }
  142. .describe{
  143. padding: 0 0 32rpx 0;
  144. border-bottom: 2rpx solid #EEEEEE;
  145. }
  146. </style>