feat: init fitness-coach (backend + miniprogram)
- backend: NestJS service with exercise/plan data - miniprogram: WeChat mini program client - exclude node_modules, dist, runtime data-store, local env
This commit is contained in:
13
miniprogram/components/section-header/index.js
Normal file
13
miniprogram/components/section-header/index.js
Normal file
@@ -0,0 +1,13 @@
|
||||
Component({
|
||||
properties: {
|
||||
title: { type: String, value: '' },
|
||||
subtitle: { type: String, value: '' },
|
||||
eyebrow: { type: String, value: '' },
|
||||
action: { type: String, value: '' }
|
||||
},
|
||||
methods: {
|
||||
onAction() {
|
||||
this.triggerEvent('action');
|
||||
}
|
||||
}
|
||||
});
|
||||
4
miniprogram/components/section-header/index.json
Normal file
4
miniprogram/components/section-header/index.json
Normal file
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
8
miniprogram/components/section-header/index.wxml
Normal file
8
miniprogram/components/section-header/index.wxml
Normal file
@@ -0,0 +1,8 @@
|
||||
<view class="sh">
|
||||
<view class="sh__main">
|
||||
<view wx:if="{{eyebrow}}" class="eyebrow">{{eyebrow}}</view>
|
||||
<view class="sh__title">{{title}}</view>
|
||||
<view wx:if="{{subtitle}}" class="sh__sub">{{subtitle}}</view>
|
||||
</view>
|
||||
<view wx:if="{{action}}" class="sh__action" bindtap="onAction">{{action}} ›</view>
|
||||
</view>
|
||||
23
miniprogram/components/section-header/index.wxss
Normal file
23
miniprogram/components/section-header/index.wxss
Normal file
@@ -0,0 +1,23 @@
|
||||
.sh {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
padding: 8rpx 0 20rpx;
|
||||
}
|
||||
.sh__title {
|
||||
font-size: 40rpx;
|
||||
font-weight: 700;
|
||||
letter-spacing: 2rpx;
|
||||
color: var(--text);
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.sh__sub {
|
||||
font-size: 24rpx;
|
||||
color: var(--text-2);
|
||||
margin-top: 8rpx;
|
||||
}
|
||||
.sh__action {
|
||||
font-size: 26rpx;
|
||||
color: var(--gold);
|
||||
white-space: nowrap;
|
||||
}
|
||||
Reference in New Issue
Block a user