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:
@@ -5,7 +5,8 @@ const fallback = require('../../utils/fallback')
|
||||
|
||||
Page({
|
||||
data: {
|
||||
activity: fallback.CURRENT
|
||||
activity: fallback.CURRENT,
|
||||
signupOpen: false
|
||||
},
|
||||
|
||||
onLoad(query) {
|
||||
@@ -34,8 +35,14 @@ Page({
|
||||
activityUtil.openMap(this.data.activity)
|
||||
},
|
||||
|
||||
goSignup() {
|
||||
activityUtil.goSignup(this.data.activity)
|
||||
openSignup() {
|
||||
if (!this.data.activity || !this.data.activity.id) return
|
||||
if (this.data.activity.status === 'past') return
|
||||
this.setData({ signupOpen: true })
|
||||
},
|
||||
|
||||
closeSignup() {
|
||||
this.setData({ signupOpen: false })
|
||||
},
|
||||
|
||||
goPast() {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"navigationBarTitleText": "卓米会",
|
||||
"enablePullDownRefresh": true,
|
||||
"usingComponents": {
|
||||
"activity-board": "/components/activity-board/index"
|
||||
"activity-board": "/components/activity-board/index",
|
||||
"signup-sheet": "/components/signup-sheet/index"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,6 +2,11 @@
|
||||
activity="{{activity}}"
|
||||
show-past="{{true}}"
|
||||
bind:map="openMap"
|
||||
bind:signup="goSignup"
|
||||
bind:signup="openSignup"
|
||||
bind:past="goPast"
|
||||
/>
|
||||
<signup-sheet
|
||||
show="{{signupOpen}}"
|
||||
activity-id="{{activity.id}}"
|
||||
bind:close="closeSignup"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user