Pārlūkot izejas kodu

增加报名等级

htc 5 dienas atpakaļ
vecāks
revīzija
02eb586601
1 mainītis faili ar 33 papildinājumiem un 2 dzēšanām
  1. 33 2
      pagesHome/activityDetail.vue

+ 33 - 2
pagesHome/activityDetail.vue

@@ -74,9 +74,13 @@
 					<view class="tip">{{activityInfo?.loveValueContent||''}}</view>
 				</template>
 				<template v-else-if="activityInfo?.activityLimit==3">
-					<view class="text"><text>免费</text></view>
+					<view class="text"><text class="mf">免费</text></view>
 					<view class="tip"></view>
 				</template>
+				<div class="box1-need-level">
+					<div class="box1-need-level-title">报名等级</div>
+					<div class="box1-need-level-num" :class="{'bxz':!activityInfo?.userLevel}">{{activityInfo?.userLevel?('Lv'+activityInfo?.userLevel):'不限制'}}</div>
+				</div>
 			</view>
 			<view class="box1-line" style="margin-top: 30rpx;"></view>
 			<view class="box1-info adfacjb">
@@ -630,7 +634,7 @@
 			}
 			imgList.value = activityInfo.value?.imageFiles&&(activityInfo.value?.imageFiles.split(',')||[])
 			for(let i=0;i<activityInfo.value.recruitmentNow;i++){
-				avatars.value.push('https://oss.familydaf.cn/sxsnfile/20251218/0a35e90f0fd543a1afa4e4bd7fc9b2f6.png')
+				avatars.value.push('https://oss.familydaf.cn/sxsnfile/20251218/3821654e080945998d464f3c3aa64122.png')
 			}
 		})
 	}
@@ -834,6 +838,7 @@
 			}
 			&-need{
 				margin-top: 30rpx;
+				position: relative;
 				&>text{
 					font-family: PingFangSC, PingFang SC;
 					font-weight: 400;
@@ -852,6 +857,9 @@
 						font-weight: bold;
 						font-size: 36rpx;
 						color: #151B29;
+						&.mf{
+							font-size: 26rpx;
+						}
 					}
 				}
 				.tip{
@@ -862,6 +870,29 @@
 					line-height: 26rpx;
 					margin-top: 20rpx;
 				}
+				&-level{
+					position: absolute;
+					left: 50%;
+					padding-left: 25rpx;
+					&-title{
+						font-family: PingFangSC, PingFang SC;
+						font-weight: 400;
+						font-size: 24rpx;
+						color: #989998;
+						line-height: 26rpx;
+					}
+					&-num{
+						margin-top: 30rpx;
+						font-family: PingFangSC, PingFang SC;
+						font-weight: bold;
+						font-size: 36rpx;
+						color: #151B29;
+						line-height: 26rpx;
+						&.bxz{
+							font-size: 26rpx;
+						}
+					}
+				}
 			}
 			&-info{
 				margin-top: 30rpx;