活动页面展示信息优化-立即报名-卡片高度

This commit is contained in:
WindowBird 2025-09-19 16:35:08 +08:00
parent a30e24b7fe
commit f61b3f6c80
2 changed files with 10 additions and 4 deletions

View File

@ -46,8 +46,7 @@
<!-- 报名按钮 --> <!-- 报名按钮 -->
<view <view
v-if=" v-if="
showRegisterButton && showRegisterButton && activity.status !== ACTIVITY_STATUS.FINISHED
activity.status === ACTIVITY_STATUS.REGISTERING
" "
class="register-button" class="register-button"
@click.stop="handleRegister" @click.stop="handleRegister"
@ -160,7 +159,7 @@ export default {
.activity-card { .activity-card {
width: 684rpx; width: 684rpx;
height: 370rpx; height: 400rpx;
border-radius: 24rpx; border-radius: 24rpx;
overflow: hidden; overflow: hidden;
position: relative; position: relative;

View File

@ -67,7 +67,10 @@
</view> </view>
<!-- 底部操作按钮 --> <!-- 底部操作按钮 -->
<view class="bottom-actions"> <view
v-if="formattedActivity.status !== 'finished'"
class="bottom-actions"
>
<view class="action-button phone-button" @click="handlePhoneCall"> <view class="action-button phone-button" @click="handlePhoneCall">
<image <image
:src="CommonEnum.PHONE" :src="CommonEnum.PHONE"
@ -116,6 +119,7 @@ export default {
error: "", error: "",
activityData: null, activityData: null,
actId: "", actId: "",
activityHasFinished: false,
}; };
}, },
computed: { computed: {
@ -183,6 +187,9 @@ export default {
// //
handleCardClick(activity) { handleCardClick(activity) {
console.log("点击活动卡片:", activity); console.log("点击活动卡片:", activity);
if (activity.status === "finished") {
this.activityHasFinished = true;
}
// //
}, },