detail.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view>
  3. <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="卡券详情"></u-navbar>
  4. <view class="detail">
  5. <view class="flex detail-item">
  6. <image src="../../static/logo.png" mode=""></image>
  7. <view class="flex info">
  8. <view class="flex desc">
  9. <view class="title">200元代金券</view>
  10. <view class="txt">使用期限:2022.03.02-2022.04.01</view>
  11. <view class="txt">适用范围:星巴克xxx店</view>
  12. </view>
  13. <view class="flex btn">
  14. <view class="amt"><text>¥</text>100</view>
  15. </view>
  16. </view>
  17. </view>
  18. <view class="flex detail-code">
  19. <image src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fhbimg.b0.upaiyun.com%2F211e185f4b9df58bfe5dd69803b1df006b6cffd8b1b2-RtehJE_fw658&refer=http%3A%2F%2Fhbimg.b0.upaiyun.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1649408501&t=2dcfddb70458864d1c284b0020a3977d" mode=""></image>
  20. </view>
  21. <view class="detail-explain">
  22. <view class="txt">使用说明:</view>
  23. <view class="txt">1. 仅限星巴克杭州地区门店可使用</view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. };
  33. }
  34. }
  35. </script>
  36. <style lang="scss" scoped>
  37. .detail{
  38. margin: 20rpx;
  39. padding: 26rpx 24rpx;
  40. background-color: #FFFFFF;
  41. border-radius: 10rpx;
  42. &-item {
  43. justify-content: space-between;
  44. padding-bottom: 26rpx;
  45. border-bottom: 1px dashed rgba(236, 236, 236, 100);
  46. image {
  47. width: 94rpx;
  48. height: 132rpx;
  49. }
  50. .info {
  51. position: relative;
  52. justify-content: space-between;
  53. flex: 1;
  54. }
  55. .desc {
  56. height: 132rpx;
  57. flex-direction: column;
  58. justify-content: space-between;
  59. align-items: flex-start;
  60. padding-left: 20rpx;
  61. }
  62. .txt {
  63. font-size: 24rpx;
  64. }
  65. .btn {
  66. flex-direction: column;
  67. }
  68. .amt {
  69. font-size: 48rpx;
  70. font-weight: bold;
  71. line-height: 72rpx;
  72. }
  73. text {
  74. font-size: 24rpx;
  75. }
  76. }
  77. &-code{
  78. padding: 60rpx 0;
  79. image{
  80. width: 426rpx;
  81. height: 426rpx;
  82. }
  83. }
  84. &-explain{
  85. font-size: 24rpx;
  86. .txt{
  87. line-height: 50rpx;
  88. }
  89. }
  90. }
  91. </style>