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

223 lines
4.5 KiB

6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
  1. <template>
  2. <view class="cardList">
  3. <view class="container" v-for="item in 2" :key="item">
  4. <view class="content">
  5. <view class="left">
  6. <image src="https://up.zhuoku.org/22/a4/60/50/fc3bd0b4e656911fccdde4383637c1cd.jpg"></image>
  7. </view>
  8. <view class="right">
  9. <view class="detailed">
  10. <view class="title">周五桌游野餐雅致...</view>
  11. <view class="date">2024.10.28 10:00</view>
  12. <view class="address">成都市东丽湖露营地32号</view>
  13. </view>
  14. <view class="tips-box">
  15. <view class="tips-box-item">高质量</view>
  16. <view class="tips-box-item">多平台招募</view>
  17. <view class="tips-box-item">交友</view>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="bottom-box">
  22. <view class="bottom-box-l">
  23. <uv-avatar-group :urls="urls" size="45rpx" gap="0.1"></uv-avatar-group>
  24. <view class="num">4人参加</view>
  25. </view>
  26. <view class="bottom-box-r" @click="toZhaomu">
  27. 参与招募
  28. </view>
  29. </view>
  30. <view class="tabs-box" :class="item == 1? 'bzcx-item' : 'ycx-item'">{{item == 1? '保证成行' : '已成行'}}</view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. props: {
  37. cardListData: {
  38. type: Array,
  39. default: []
  40. },
  41. },
  42. data() {
  43. return {
  44. urls: [
  45. 'https://cdn.uviewui.com/uview/album/1.jpg',
  46. 'https://cdn.uviewui.com/uview/album/2.jpg',
  47. 'https://cdn.uviewui.com/uview/album/3.jpg',
  48. ]
  49. };
  50. },
  51. components: {
  52. },
  53. computed: {},
  54. watch: {
  55. },
  56. created() {
  57. },
  58. mounted() {},
  59. methods: {
  60. skip(val) {
  61. uni.navigateTo({
  62. url: '/pages_order/orderDetails'
  63. })
  64. },
  65. toZhaomu() {
  66. uni.navigateTo({
  67. url: '/pages_order/lvyou-detail'
  68. })
  69. }
  70. }
  71. };
  72. </script>
  73. <style scoped lang="scss">
  74. .cardList {
  75. .container {
  76. margin-bottom: 30rpx;
  77. border-radius: 20rpx;
  78. background: #1B1713;
  79. position: relative;
  80. .content {
  81. display: flex;
  82. padding: 24rpx 35rpx;
  83. border-bottom: 1px solid #2A2A2A;
  84. .left {
  85. border-radius: 20rpx;
  86. overflow: hidden;
  87. image {
  88. width: 228rpx;
  89. height: 228rpx;
  90. }
  91. }
  92. .right {
  93. display: flex;
  94. flex-direction: column;
  95. justify-content: space-between;
  96. flex: 1;
  97. margin-left: 23rpx;
  98. color: $uni-text-color-grey;
  99. font-size: 24rpx;
  100. .detailed {
  101. .title {
  102. font-size: 32rpx;
  103. color: #fff;
  104. padding-top: 11rpx;
  105. }
  106. .date {
  107. padding: 25rpx 0 19rpx;
  108. display: flex;
  109. align-items: center;
  110. &::before {
  111. content: '';
  112. display: block;
  113. background: url('@/static/image/cart/timeIcon.png') no-repeat;
  114. background-size: 100% 100%;
  115. width: 24rpx;
  116. height: 24rpx;
  117. margin-right: 10rpx;
  118. }
  119. }
  120. .address {
  121. display: flex;
  122. align-items: center;
  123. &::before {
  124. content: '';
  125. display: block;
  126. background: url('@/static/image/cart/addressIcon.png') no-repeat;
  127. background-size: 100% 100%;
  128. width: 22rpx;
  129. height: 26rpx;
  130. margin-right: 10rpx;
  131. }
  132. }
  133. }
  134. .tips-box {
  135. display: flex;
  136. align-items: center;
  137. .tips-box-item {
  138. padding: 0 24rpx;
  139. height: 38rpx;
  140. line-height: 38rpx;
  141. background: #282421;
  142. border-radius: 7rpx;
  143. font-size: 20rpx;
  144. color: #999999;
  145. margin-right: 14rpx;
  146. &:last-child {
  147. margin-right: 0;
  148. }
  149. }
  150. }
  151. }
  152. }
  153. .bottom-box {
  154. display: flex;
  155. align-items: center;
  156. justify-content: space-between;
  157. height: 104rpx;
  158. padding: 0 21rpx;
  159. &-l {
  160. display: flex;
  161. align-items: center;
  162. .num {
  163. font-weight: 500;
  164. font-size: 25rpx;
  165. color: #999999;
  166. margin-left: 20rpx;
  167. }
  168. }
  169. &-r {
  170. width: 180rpx;
  171. height: 53rpx;
  172. background: url('@/static/image/member/canyu-bg.png') no-repeat;
  173. background-size: 100% 100%;
  174. font-weight: 500;
  175. font-size: 23rpx;
  176. color: #FFFFFF;
  177. text-align: center;
  178. line-height: 53rpx;
  179. }
  180. }
  181. .tabs-box {
  182. position: absolute;
  183. top: 0;
  184. right: 0;
  185. width: 117rpx;
  186. height: 40rpx;
  187. font-weight: 500;
  188. font-size: 21rpx;
  189. text-align: center;
  190. line-height: 40rpx;
  191. }
  192. .bzcx-item {
  193. background: url('@/static/image/member/bzcx-bg.png') no-repeat;
  194. background-size: 100% 100%;
  195. color: #FF9000;
  196. }
  197. .ycx-item {
  198. background: url('@/static/image/member/ycx-bg.png') no-repeat;
  199. background-size: 100% 100%;
  200. color: #FF3B47;
  201. }
  202. }
  203. }
  204. </style>