推广小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.7 KiB

2 months ago
2 months ago
2 months ago
  1. <template>
  2. <view class="invoiceIssuance">
  3. <view class="head-box"></view>
  4. <Navbar title="订单详情" :autoBack="true" :bgColor="bgColor" leftIconSize="18px" height="100rpx" :leftIconColor="leftIconColor" :titleStyle="{color:fontColor}" />
  5. <view class="content contentPosition_">
  6. <view class="info cardStyle_">
  7. <view class="left">
  8. <image src="https://img0.baidu.com/it/u=4274003247,920124130&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1031" alt="">
  9. </view>
  10. <view class="right">
  11. <view class="detailed">
  12. <view class="title">夏日去撒野旅游计划</view>
  13. <view class="date">2024.10.28 10:00</view>
  14. <view class="address">成都市东丽湖露营地32号</view>
  15. </view>
  16. <view class="data">
  17. <view>12/30</view>
  18. <button class="mini-btn" size="mini">立即报名</button>
  19. </view>
  20. </view>
  21. <i class="icon"></i>
  22. </view>
  23. <view class="info cardStyle_">
  24. <view class="left">
  25. <image src="https://img0.baidu.com/it/u=4274003247,920124130&fm=253&fmt=auto&app=138&f=JPEG?w=800&h=1031" alt="">
  26. </view>
  27. <view class="right">
  28. <view class="detailed">
  29. <view class="title">夏日去撒野旅游计划</view>
  30. <view class="date">2024.10.28 10:00</view>
  31. <view class="address">成都市东丽湖露营地32号</view>
  32. </view>
  33. <view class="data">
  34. <view>12/30</view>
  35. <button class="mini-btn" size="mini">立即报名</button>
  36. </view>
  37. </view>
  38. <i class="icon"></i>
  39. </view>
  40. </view>
  41. </view>
  42. </template>
  43. <script>
  44. import Navbar from '@/pages/components/Navbar.vue'
  45. import { globalMixin } from '../pages/mixins/globalMixin';
  46. export default{
  47. mixins: [globalMixin],
  48. components:{
  49. Navbar
  50. },
  51. computed: {
  52. customStyle1() {
  53. return {
  54. height: '30rpx',
  55. color: '#FF4546',
  56. }
  57. }
  58. },
  59. data() {
  60. return {
  61. }
  62. },
  63. methods: {
  64. }
  65. }
  66. </script>
  67. <style scoped lang="scss">
  68. .invoiceIssuance {
  69. // margin-bottom: 500rpx;
  70. .content {
  71. .info {
  72. position: relative;
  73. margin: 10rpx 32rpx 36rpx;;
  74. border-radius: 26rpx;
  75. .icon {
  76. position: absolute;
  77. right: 0;
  78. top: 0;
  79. display: block;
  80. width: 66rpx;
  81. height: 56rpx;
  82. background: red;
  83. background: url('@/static/image/icon.png') no-repeat;
  84. background-size: 100% 100%;
  85. }
  86. .right {
  87. .data {
  88. display: flex;
  89. justify-content: space-between;
  90. align-items: center;
  91. .mini-btn {
  92. margin: 0;
  93. background: linear-gradient(to right, #FE5E5E, #E41522);
  94. height: 45rpx;
  95. line-height: 45rpx;
  96. width: 181rpx;
  97. color:#fff;
  98. border-radius: 60rpx;
  99. padding-bottom: 5rpx;
  100. }
  101. }
  102. }
  103. }
  104. }
  105. }
  106. </style>