活动页面展示信息优化-立即报名-卡片高度
This commit is contained in:
parent
a30e24b7fe
commit
f61b3f6c80
|
|
@ -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;
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
}
|
||||||
// 在详情页中点击卡片不执行任何操作
|
// 在详情页中点击卡片不执行任何操作
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user