Files
zhuomi-hui/miniprogram/components/activity-board/index.wxml
T
Michelle ZanandCursor cd05113755 Add 卓米会 mini program and admin server.
Initial commit of the WeChat mini program, Express backend, and admin console.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-29 19:01:36 +08:00

49 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<view class="board" wx:if="{{activity}}">
<view class="banner">
<video
wx:if="{{video}}"
class="banner-media"
src="{{video}}"
controls
show-center-play-btn
object-fit="cover"
poster="{{poster}}"
/>
<block wx:else>
<image wx:if="{{poster}}" class="banner-media" src="{{poster}}" mode="aspectFill" />
<view class="banner-shade"></view>
<text class="banner-title">{{activity.title}}</text>
</block>
<view class="badge" wx:if="{{activity.isCurrent}}">当前活动</view>
</view>
<view class="card">
<text class="brand">{{activity.brandName}}</text>
<text wx:if="{{activity.brandDesc}}" class="desc">{{activity.brandDesc}}</text>
</view>
<view class="card info">
<view class="row">
<text class="label">活动名称</text>
<text class="value">{{activity.title}}</text>
</view>
<view class="row">
<text class="label">活动时间</text>
<text class="value">{{activity.startAt || '待定'}}</text>
</view>
<view class="row last">
<text class="label">会场地址</text>
<text class="value">{{activity.address || '待定'}}</text>
</view>
</view>
<view class="btn green" hover-class="btn-pressed" bindtap="onMap">📍 一键导航</view>
<view
class="btn teal {{ended ? 'disabled' : ''}}"
hover-class="{{ended ? 'none' : 'btn-pressed'}}"
bindtap="onSignup"
>{{ended ? '活动已结束' : '立即报名'}}</view>
<view wx:if="{{showPast}}" class="more" bindtap="onPast">查看往期活动 ›</view>
</view>