buyPackage.vue 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <template>
  2. <view class="container">
  3. <img class="top-img" src="https://qiniu.bms16.com/FqDJdcyQZUG7rwTz2zoqkKsxkUrx" />
  4. <view class="type-top">
  5. <view>券包类型</view>
  6. </view>
  7. <view class="type-box">
  8. <view class="type-card">
  9. <!-- 单个套餐 -->
  10. <view class="card-item">
  11. <view class="item-left flex-row flex-between">
  12. <view class="item-top flex-row">
  13. <img src="https://qiniu.bms16.com/FiJc2aTl5Q2H6IxbLq8nul6ywZi1" />
  14. <view class="top-center">
  15. <view>优惠券</view>
  16. <view>¥<text>18.5</text><del>¥70</del></view>
  17. </view>
  18. </view>
  19. <view class="buy-btn">购买立享</view>
  20. </view>
  21. <view class="item-bottom flex-row">
  22. <view>折合0.7元/时</view>
  23. <view style="margin-left: 16rpx;">立享2.3折优惠</view>
  24. </view>
  25. </view>
  26. <view class="card-item">
  27. <view class="item-left flex-row flex-between">
  28. <view class="item-top flex-row">
  29. <img src="https://qiniu.bms16.com/FiJc2aTl5Q2H6IxbLq8nul6ywZi1" />
  30. <view class="top-center">
  31. <view>优惠券</view>
  32. <view>¥<text>18.5</text><del>¥70</del></view>
  33. </view>
  34. </view>
  35. <view class="buy-btn">购买立享</view>
  36. </view>
  37. <view class="item-bottom flex-row">
  38. <view>折合0.7元/时</view>
  39. <view style="margin-left: 16rpx;">立享2.3折优惠</view>
  40. </view>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </template>
  46. <script>
  47. export default {
  48. data() {
  49. return {
  50. };
  51. }
  52. /**
  53. * 生命周期函数--监听页面加载
  54. */
  55. ,
  56. onLoad: function(options) {
  57. },
  58. /**
  59. * 生命周期函数--监听页面显示
  60. */
  61. onShow: function() {
  62. },
  63. methods: {
  64. navToPage(e) {
  65. const url = e.currentTarget.dataset.url;
  66. if (!url) {
  67. return;
  68. }
  69. uni.navigateTo({
  70. url: url
  71. });
  72. },
  73. }
  74. };
  75. </script>
  76. <style>
  77. @import './buyPackage.css';
  78. </style>