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

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

View File

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