coupon.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <view class="content">
  3. <view class="topbox">
  4. <view class="top">
  5. <view class="topLine">
  6. <view class="topTxt1">默认等级</view>
  7. <view class="topTxt2">客户等级</view>
  8. </view>
  9. <view class="topx"></view>
  10. <view class="topLine">
  11. <view class="topTxt1">18</view>
  12. <view class="topTxt2">可用优惠券</view>
  13. </view>
  14. <view class="topx"></view>
  15. <view class="topLine">
  16. <view class="topTxt1">19</view>
  17. <view class="topTxt2">可用积分</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="cBox">
  22. <view class="line" v-for="(item,index) in list">
  23. <view class="lineTop">
  24. <view class="nameBox">
  25. <view class="type">代金券</view>
  26. <view class="name">{{item.ActName}}</view>
  27. </view>
  28. <view class="lprice">
  29. <span class="price1">¥</span>
  30. <span class="price2">4566</span>
  31. <span class="price3">满10000元可用</span>
  32. </view>
  33. <view style="display: flex;">
  34. <view class="chepai">限鲁A9JK32使用</view>
  35. </view>
  36. <view class="time">2021.02.21 至 2021.03</view>
  37. </view>
  38. <view class="lineBottom">
  39. [不可叠加] [限门店] [使用说明]
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </template>
  45. <script>
  46. export default {
  47. data() {
  48. return {
  49. customerId:'',
  50. list:[]
  51. }
  52. },
  53. onLoad() {
  54. },
  55. methods: {
  56. getdata(){
  57. var that=this;
  58. this.customerId=uni.getStorageSync('customerId')
  59. this.$http('enterprise/wechat/listIntegralInfo', {
  60. id:this.customerId,
  61. }, 'GET').then(res => {
  62. this.list=res.data
  63. })
  64. }
  65. }
  66. }
  67. </script>
  68. <style scoped>
  69. .topbox{
  70. padding: 24rpx;background: #fff;
  71. }
  72. .top{
  73. width: 702rpx;
  74. height: 156rpx;
  75. background: linear-gradient( 132deg, #FFF0DF 0%, #FED28F 100%);
  76. border-radius: 10rpx;
  77. }
  78. .top{
  79. display: flex;justify-content: space-around;
  80. }
  81. .topx{
  82. opacity: 0.19;
  83. height: 49rpx;
  84. width: 1px;
  85. background: #2D2417;
  86. margin-top: 54rpx;
  87. }
  88. .topLine{
  89. text-align: center;
  90. padding-top: 37rpx;
  91. }
  92. .topTxt1{
  93. font-weight: 500;
  94. font-size: 35rpx;
  95. color: #2D2417;
  96. }
  97. .topTxt2{
  98. font-size: 24rpx;
  99. color: #50402A;
  100. padding-top: 8rpx;
  101. }
  102. .cBox{
  103. padding: 0 24rpx;
  104. }
  105. .line{
  106. padding: 30rpx 0rpx;background: #FFFFFF;
  107. border-radius: 10rpx;margin-top: 20rpx;
  108. }
  109. .nameBox{
  110. display: flex;
  111. }
  112. .type{
  113. font-size: 24rpx;
  114. color: #2B2219;
  115. height: 36rpx;
  116. background: linear-gradient( 128deg, #FFE4C5 0%, #FDC692 100%);
  117. border-radius: 4rpx;
  118. width: 82rpx;
  119. text-align: center;
  120. line-height: 36rpx;
  121. }
  122. .name{
  123. line-height: 36rpx;padding-left: 10rpx;font-weight: 500;
  124. font-size: 28rpx;
  125. color: #333333;
  126. }
  127. .lineTop{
  128. padding: 0 24rpx;
  129. border-bottom: 1px dashed #DDDDDD;
  130. }
  131. .price1{
  132. font-weight: 500;
  133. font-size: 26rpx;
  134. color: #FF3B30;
  135. }
  136. .price2{
  137. font-weight: 500;
  138. font-size: 40rpx;
  139. color: #FF0000;
  140. }
  141. .price3{
  142. font-weight: 400;
  143. font-size: 22rpx;
  144. color: #666666;
  145. }
  146. .chepai{
  147. height: 36rpx;
  148. background:rgba(255, 129, 19, 0.1);
  149. border-radius: 4rpx;
  150. font-size: 22rpx;
  151. color: #FF8113;
  152. line-height: 36rpx;
  153. padding: 0 10rpx;
  154. margin-top: 10rpx;
  155. }
  156. .time{
  157. font-size: 22rpx;
  158. color: #666666;padding-top: 10rpx;
  159. padding-bottom: 15rpx;
  160. }
  161. .lineBottom{
  162. font-size: 22rpx;
  163. color: #666666;
  164. padding: 15rpx 24rpx;
  165. }
  166. </style>