index.vue 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <view>
  3. <u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="选择优惠券"></u-navbar>
  4. <view class="coupon-title">可用代金券:1</view>
  5. <view class="coupon-list">
  6. <view class="flex coupon-list-item">
  7. <view class="flex coupon-list-item-info">
  8. <image src="../../static/logo.png" mode=""></image>
  9. <view class="flex content">
  10. <view class="txt">xx盲票代金券</view>
  11. <view class="txt">使用期限:2022.03.02-2022.04.01</view>
  12. <view class="txt">适用范围:指定盲票</view>
  13. </view>
  14. <view class="money">
  15. <view class=""><text>¥</text>10,00</view>
  16. </view>
  17. </view>
  18. <view class="checked">
  19. <u-checkbox-group>
  20. <u-checkbox :value="checked" :checked="checked" shape="circle" activeColor="#E96737"
  21. @change="changeChecked"></u-checkbox>
  22. </u-checkbox-group>
  23. </view>
  24. </view>
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. export default {
  30. data() {
  31. return {
  32. checked: false
  33. };
  34. },
  35. methods:{
  36. changeChecked(e){
  37. console.log(e);
  38. }
  39. }
  40. }
  41. </script>
  42. <style lang="scss" scoped>
  43. .coupon {
  44. &-title {
  45. position: fixed;
  46. width: 100%;
  47. padding: 24rpx 32rpx;
  48. background-color: #FFFFFF;
  49. }
  50. &-list {
  51. margin-top: 100rpx;
  52. padding: 0 20rpx;
  53. &-item {
  54. justify-content: space-between;
  55. padding: 40rpx;
  56. background-color: #FFFFFF;
  57. &-info{
  58. flex: 1;
  59. image{
  60. width: 84rpx;
  61. height: 132rpx;
  62. }
  63. .content{
  64. height: 132rpx;
  65. flex-direction: column;
  66. align-items: flex-start;
  67. justify-content: space-between;
  68. }
  69. }
  70. }
  71. }
  72. }
  73. </style>