purchaseCoupon.vue 3.4 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. <liu-drag-button @clickBtn="back">返回</liu-drag-button>
  42. <uni-popup ref="purchasePopup" type="bottom">
  43. <view class="purchasePopup">
  44. <view class="flex-row justify-between">
  45. <text class="popupTitle">价格明显</text>
  46. <u-icon name="close-circle" color="#000000" size="28"></u-icon>
  47. </view>
  48. <view class="flex-row coupon">
  49. <view class="flex-col couponLeft">
  50. <text class="discounts">¥50</text>
  51. <text class="condition">满300可用</text>
  52. </view>
  53. <view class="couponRight">
  54. <view class="flex-col couponRight1">
  55. <view class="flex-row justify-between">
  56. <text class="couponName">门店通用</text>
  57. </view>
  58. <view class="flex-row">
  59. <view class="couponMsg">
  60. <view class="couponValue">
  61. <text>使用平台:</text>
  62. <text>全平台</text>
  63. </view>
  64. <view class="couponValue">
  65. <text>使用次数:</text>
  66. <text>1次</text>
  67. </view>
  68. <view class="couponValue">
  69. <text>到期时间:</text>
  70. <text>2024-01-01</text>
  71. </view>
  72. </view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="flex-row justify-between titleView bordBottom">
  78. <text class="title">优惠券单价</text>
  79. <text class="couponPrice1">¥50.00</text>
  80. </view>
  81. <view class="flex-row justify-between titleView">
  82. <text class="title">数量</text>
  83. <u-number-box
  84. min="1"
  85. step="1"
  86. inputWidth="50"
  87. integer
  88. button-size="30"
  89. color="#666666"
  90. bgColor="#ffffff"
  91. iconStyle="color: #999999"
  92. ></u-number-box>
  93. </view>
  94. <view class="flex-row justify-between conView">
  95. <view>
  96. <text class="conPriceValue">待支付</text>
  97. <text class="conPrice">¥500</text>
  98. </view>
  99. <view class="conBtn">
  100. <text>提交</text>
  101. </view>
  102. </view>
  103. </view>
  104. </uni-popup>
  105. </view>
  106. </template>
  107. <script>
  108. export default {
  109. components: {},
  110. data() {
  111. return {
  112. }
  113. },
  114. methods: {
  115. back() {
  116. uni.navigateBack({
  117. delta: 1
  118. })
  119. },
  120. openPurchase(){
  121. this.$refs.purchasePopup.open()
  122. }
  123. }
  124. }
  125. </script>
  126. <style lang="scss" scoped>
  127. @import './index.rpx.css';
  128. </style>