purchaseCoupon.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. <template>
  2. <view class="page">
  3. <view class="flex-row coupon" v-for="i in 10">
  4. <view class="flex-col couponLeft">
  5. <text class="discounts">¥50</text>
  6. <text class="condition">满300可用</text>
  7. </view>
  8. <view class="couponRight">
  9. <view class="flex-col couponRight1">
  10. <view class="flex-row justify-between">
  11. <text class="couponName">门店通用</text>
  12. <view class="price">
  13. <text class="couponValue">单价:</text>
  14. <text class="couponPrice">¥50</text>
  15. </view>
  16. </view>
  17. <view class="flex-row">
  18. <view class="couponMsg">
  19. <view class="couponValue">
  20. <text>使用平台:</text>
  21. <text>全平台</text>
  22. </view>
  23. <view class="couponValue">
  24. <text>使用次数:</text>
  25. <text>1次</text>
  26. </view>
  27. <view class="couponValue">
  28. <text>到期时间:</text>
  29. <text>2024-01-01</text>
  30. </view>
  31. </view>
  32. <view class="flex-col justify-end">
  33. <view class="purchaseBtn" @click="openPurchase">
  34. <text>立即购买</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. </view>
  41. <uni-popup ref="purchasePopup" type="bottom">
  42. <view class="purchasePopup">
  43. <view class="flex-row justify-between">
  44. <text class="popupTitle">价格明显</text>
  45. <u-icon name="close-circle" color="#000000" size="28"></u-icon>
  46. </view>
  47. <view class="flex-row coupon">
  48. <view class="flex-col couponLeft">
  49. <text class="discounts">¥50</text>
  50. <text class="condition">满300可用</text>
  51. </view>
  52. <view class="couponRight">
  53. <view class="flex-col couponRight1">
  54. <view class="flex-row justify-between">
  55. <text class="couponName">门店通用</text>
  56. </view>
  57. <view class="flex-row">
  58. <view class="couponMsg">
  59. <view class="couponValue">
  60. <text>使用平台:</text>
  61. <text>全平台</text>
  62. </view>
  63. <view class="couponValue">
  64. <text>使用次数:</text>
  65. <text>1次</text>
  66. </view>
  67. <view class="couponValue">
  68. <text>到期时间:</text>
  69. <text>2024-01-01</text>
  70. </view>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="flex-row justify-between titleView bordBottom">
  77. <text class="title">优惠券单价</text>
  78. <text class="couponPrice1">¥50.00</text>
  79. </view>
  80. <view class="flex-row justify-between titleView">
  81. <text class="title">数量</text>
  82. <u-number-box
  83. min="1"
  84. step="1"
  85. inputWidth="50"
  86. integer
  87. button-size="30"
  88. color="#666666"
  89. bgColor="#ffffff"
  90. iconStyle="color: #999999"
  91. ></u-number-box>
  92. </view>
  93. <view class="flex-row justify-between conView">
  94. <view>
  95. <text class="conPriceValue">待支付</text>
  96. <text class="conPrice">¥500</text>
  97. </view>
  98. <view class="conBtn">
  99. <text>提交</text>
  100. </view>
  101. </view>
  102. </view>
  103. </uni-popup>
  104. </view>
  105. </template>
  106. <script>
  107. export default {
  108. components: {},
  109. data() {
  110. return {
  111. }
  112. },
  113. methods: {
  114. back() {
  115. uni.navigateBack({
  116. delta: 1
  117. })
  118. },
  119. openPurchase(){
  120. this.$refs.purchasePopup.open()
  121. }
  122. }
  123. }
  124. </script>
  125. <style lang="scss" scoped>
  126. @import './index.rpx.css';
  127. </style>