purchaseCoupon.vue 3.4 KB

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