- backend: NestJS service with exercise/plan data - miniprogram: WeChat mini program client - exclude node_modules, dist, runtime data-store, local env
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
Component({
|
|
properties: {
|
|
exercise: { type: Object, value: {} },
|
|
score: { type: Number, value: 0 },
|
|
reason: { type: String, value: '' },
|
|
compact: { type: Boolean, value: false }
|
|
},
|
|
methods: {
|
|
onTap() {
|
|
const ex = this.data.exercise || {};
|
|
this.triggerEvent('tap', { id: ex.id, exercise: ex });
|
|
}
|
|
}
|
|
});
|