推广小程序前端代码
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.

179 lines
3.2 KiB

5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
  1. <template>
  2. <view class="cardList">
  3. <view class="content">
  4. <view class="left">
  5. <img src="https://up.zhuoku.org/22/a4/60/50/fc3bd0b4e656911fccdde4383637c1cd.jpg" alt="">
  6. </view>
  7. <view class="right">
  8. <view class="detailed">
  9. <view class="title">夏日去撒野旅游计划</view>
  10. <view class="date">2024.08.23 12:00</view>
  11. <view class="address">成都市东丽湖露营地</view>
  12. </view>
  13. <view class="price" v-if="showBottom">
  14. <view class="num-box">20/40</view>
  15. <view class="btn-box" @click="qiandaoClick">开始签到</view>
  16. <!-- <view class="btn-box jieshu-btn" v-else>已结束</view> -->
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. props: {
  25. showBottom:{
  26. type:Boolean,
  27. default:true
  28. }
  29. },
  30. data() {
  31. return {
  32. };
  33. },
  34. components: {
  35. },
  36. computed: {},
  37. watch: {
  38. },
  39. created() {
  40. },
  41. mounted() {},
  42. methods: {
  43. skip(val) {
  44. uni.navigateTo({
  45. url: '/pages_order/orderDetails'
  46. })
  47. },
  48. qiandaoClick() {
  49. this.$emit('qiandaoClick')
  50. }
  51. }
  52. };
  53. </script>
  54. <style scoped lang="scss">
  55. .cardList {
  56. .content {
  57. display: flex;
  58. padding: 24rpx 35rpx;
  59. background: #1B1713;
  60. border-radius: 20rpx;
  61. margin-bottom: 20rpx;
  62. .left {
  63. width: 228rpx;
  64. height: 228rpx;
  65. border-radius: 20rpx;
  66. overflow: hidden;
  67. img {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. }
  72. .right {
  73. display: flex;
  74. flex-direction: column;
  75. justify-content: space-between;
  76. flex: 1;
  77. margin-left: 26rpx;
  78. color: $uni-text-color-grey;
  79. font-size: 24rpx;
  80. .detailed {
  81. .title {
  82. font-size: 32rpx;
  83. color: #fff;
  84. padding-top: 11rpx;
  85. }
  86. .date {
  87. padding: 25rpx 0 19rpx;
  88. display: flex;
  89. align-items: center;
  90. &::before {
  91. content: '';
  92. display: block;
  93. background: url('@/static/image/cart/timeIcon.png') no-repeat;
  94. background-size: 100% 100%;
  95. width: 24rpx;
  96. height: 24rpx;
  97. margin-right: 10rpx;
  98. }
  99. }
  100. .address {
  101. display: flex;
  102. align-items: center;
  103. &::before {
  104. content: '';
  105. display: block;
  106. background: url('@/static/image/cart/addressIcon.png') no-repeat;
  107. background-size: 100% 100%;
  108. width: 22rpx;
  109. height: 26rpx;
  110. margin-right: 10rpx;
  111. }
  112. }
  113. }
  114. .price {
  115. display: flex;
  116. align-items: center;
  117. justify-content: space-between;
  118. .num-box {
  119. font-size: 27rpx;
  120. color: #fff;
  121. }
  122. .btn-box {
  123. width: 180rpx;
  124. height: 54rpx;
  125. background: url('@/static/image/member/btn-2.png') no-repeat;
  126. background-size: 100% 100%;
  127. font-weight: 500;
  128. font-size: 23rpx;
  129. color: #FFFFFF;
  130. text-align: center;
  131. line-height: 54rpx;
  132. border-radius: 30rpx;
  133. }
  134. .jieshu-btn {
  135. background: #666666;
  136. }
  137. }
  138. }
  139. }
  140. .button-sp-area {
  141. text-align: right;
  142. padding-top: 20rpx;
  143. .mini-btn {
  144. width: 166rpx;
  145. height: 53rpx;
  146. line-height: 53rpx;
  147. font-size: 24rpx;
  148. border-radius: 50rpx;
  149. margin-left: 20rpx;
  150. background-color: #34312E;
  151. color: #AFAFAF;
  152. }
  153. }
  154. }
  155. .active {
  156. color: $uni-color-primary !important;
  157. }
  158. </style>