coupon-find-list.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <template>
  2. <!-- TODO -->
  3. <view class="coupon-find-list">
  4. <!-- 顶部提示 -->
  5. <view class="top-tip">
  6. <view class="tip-text">如何领取更多优惠券?</view>
  7. <view class="tip-btn" @click="popupVisible = true">去了解</view>
  8. </view>
  9. <!-- 优惠券列表 -->
  10. <view class="coupon-list">
  11. <cm-coupon :key="i" v-for="i in 3"></cm-coupon>
  12. </view>
  13. <!-- 如何获取更多优惠券 -->
  14. <message-popup @close="closePopup" :visible="popupVisible" class="message-popup">
  15. <template v-slot:title>
  16. <view class="title"> 如何获取更多优惠券? </view>
  17. </template>
  18. <template v-slot:content>
  19. <view class="content">
  20. <view class="row">
  21. <view class="dt">好友分享券</view>
  22. <view class="dd">
  23. 登录用户可通过分享商城给好友,当好友成功登录后,您可以领取一张好友分享券。
  24. </view>
  25. </view>
  26. <view class="row">
  27. <view class="dt">好友消费券</view>
  28. <view class="dd">
  29. 登录用户可通过分享商城给好友,当好友成功消费一笔订单后,您将可以领取一张好友消费券。
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. </message-popup>
  35. </view>
  36. </template>
  37. <script>
  38. import MessagePopup from '@/components/message-popup/message-popup.vue'
  39. import CmCoupon from '@/components/cm-module/cm-coupon/cm-coupon.vue'
  40. export default {
  41. components: {
  42. MessagePopup,
  43. CmCoupon
  44. },
  45. data() {
  46. return {
  47. popupVisible: true
  48. }
  49. },
  50. computed: {},
  51. onLoad() {},
  52. methods: {
  53. // 关闭信息弹窗
  54. closePopup() {
  55. this.popupVisible = false
  56. }
  57. }
  58. }
  59. </script>
  60. <style lang="scss" scoped>
  61. $tip-height: 80rpx;
  62. $grid: 24rpx;
  63. .top-tip {
  64. display: flex;
  65. justify-content: space-between;
  66. align-items: center;
  67. width: 750rpx;
  68. height: $tip-height;
  69. padding: 0 $grid;
  70. background: #fff3f7;
  71. box-sizing: border-box;
  72. .tip-text {
  73. font-size: 26rpx;
  74. color: #ff457b;
  75. }
  76. .tip-btn {
  77. width: 128rpx;
  78. height: 48rpx;
  79. border: 1rpx solid #ff457b;
  80. border-radius: 24rpx;
  81. text-align: center;
  82. line-height: 48rpx;
  83. font-size: 26rpx;
  84. color: #ff457b;
  85. }
  86. }
  87. .message-popup {
  88. .title {
  89. font-size: 30rpx;
  90. font-weight: 600;
  91. color: #333333;
  92. }
  93. .content {
  94. .row {
  95. padding-left: 32rpx;
  96. margin: $grid 0;
  97. .dt {
  98. position: relative;
  99. font-size: 26rpx;
  100. font-weight: 600;
  101. line-height: 40rpx;
  102. color: #333333;
  103. &::before {
  104. content: '';
  105. display: block;
  106. position: absolute;
  107. left: -$grid;
  108. top: 50%;
  109. transform: translateY(-50%);
  110. width: 10rpx;
  111. height: 10rpx;
  112. background: #ff457b;
  113. }
  114. }
  115. .dd {
  116. font-size: 26rpx;
  117. line-height: 40rpx;
  118. color: #666666;
  119. margin-top: $grid;
  120. }
  121. }
  122. }
  123. }
  124. </style>