Ship signup sheet, subscribe reminders, cover crop, and theme updates.

Wire real WeChat app config, prefer activity cover over posters, and add admin cover cropping for the home banner.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Michelle Zan
2026-10-08 13:06:43 +08:00
co-authored by Cursor
parent cd05113755
commit 0ca2e87bf2
35 changed files with 968 additions and 184 deletions
+9 -3
View File
@@ -5,7 +5,8 @@ const activityUtil = require('../../utils/activity')
Page({
data: {
activity: null,
failed: false
failed: false,
signupOpen: false
},
onLoad(query) {
@@ -36,8 +37,13 @@ Page({
activityUtil.openMap(this.data.activity)
},
goSignup() {
activityUtil.goSignup(this.data.activity)
openSignup() {
if (!this.data.activity || this.data.activity.status === 'past') return
this.setData({ signupOpen: true })
},
closeSignup() {
this.setData({ signupOpen: false })
},
goHome() {
+2 -1
View File
@@ -1,6 +1,7 @@
{
"navigationBarTitleText": "卓米会",
"usingComponents": {
"activity-board": "/components/activity-board/index"
"activity-board": "/components/activity-board/index",
"signup-sheet": "/components/signup-sheet/index"
}
}
+13 -7
View File
@@ -1,10 +1,16 @@
<activity-board
wx:if="{{activity}}"
activity="{{activity}}"
show-past="{{false}}"
bind:map="openMap"
bind:signup="goSignup"
/>
<block wx:if="{{activity}}">
<activity-board
activity="{{activity}}"
show-past="{{false}}"
bind:map="openMap"
bind:signup="openSignup"
/>
<signup-sheet
show="{{signupOpen}}"
activity-id="{{activity.id}}"
bind:close="closeSignup"
/>
</block>
<view wx:elif="{{failed}}" class="empty">
<text>活动不存在或已下线</text>
<view class="home" bindtap="goHome">回到首页</view>