feat:优化初版
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
</view>
|
||||
<view style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">
|
||||
<t-icon name="castle-7"></t-icon>
|
||||
{{ item.coHostUnit }}
|
||||
{{ item.hostUnit }}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -67,7 +67,12 @@
|
||||
<view>
|
||||
<!-- 100人已报名-->
|
||||
</view>
|
||||
<t-button theme="primary" shape="round" size="small">立即报名</t-button>
|
||||
<view style="display: flex;gap: 10px" @click.stop>
|
||||
<t-button theme="default" variant="outline" shape="round" size="small"
|
||||
@click="navigateToDetail(item.id)"><t-icon name="browse" size="16px" style="margin-right: 4px"/>查看详情</t-button>
|
||||
<t-button theme="primary" shape="round" size="small"
|
||||
@click="navigateToSignUp(item.id)"><t-icon name="edit" size="16px" style="margin-right: 4px"/>立即报名</t-button>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -204,6 +209,13 @@ const navigateToDetail = (id) => {
|
||||
});
|
||||
};
|
||||
|
||||
// 报名按钮直达表单,活动ID沿用详情页的报名入口参数。
|
||||
const navigateToSignUp = (id) => {
|
||||
uni.navigateTo({
|
||||
url: `/pages/activity/registration-form/index?id=${id}`
|
||||
});
|
||||
};
|
||||
|
||||
// 初始化
|
||||
onMounted(() => {
|
||||
getListData();
|
||||
@@ -263,8 +275,8 @@ onMounted(() => {
|
||||
padding: 4px 8px;
|
||||
border-radius: 12px;
|
||||
box-sizing: border-box;
|
||||
color: #f45a5a;
|
||||
background-color: rgba(244, 90, 90, 0.12);
|
||||
color: var(--td-brand-color);
|
||||
background-color: rgba(25, 137, 250, 0.12);
|
||||
font-size: 12px;
|
||||
line-height: 1.2;
|
||||
white-space: nowrap;
|
||||
|
||||
Reference in New Issue
Block a user