62 lines
2.5 KiB
Plaintext
62 lines
2.5 KiB
Plaintext
<!--subpackage/train/goal/goal.wxml-->
|
|
<view class="page-content">
|
|
<mp-bar background="linear-gradient(190deg, #49a5fc 0%, #f7f7f7 800rpx, #f7f7f7 100%)" title="目标" color="#fff"></mp-bar>
|
|
|
|
<view class="candle">
|
|
<view class="tittle" wx:if="{{nowGoal.goalAmount != null}}">今日设定目标 <text class="gooo">{{nowGoal.goalAmount}}</text> 个,完成目标才算打卡成功哦!</view>
|
|
<view class="tittle" wx:else>今日暂未设定目标,快去设置吧!</view>
|
|
<!-- <view style="height: 300rpx;"></view> -->
|
|
<view class="calendar" bindtouchstart="touchStart" bindtouchend="touchEnd">
|
|
<view class="header">
|
|
<mp-icon icon="back" size="{{14}}" color="#777777E6" bindtap="changeMonth" data-direction="prev" />
|
|
<text>{{year}}-{{month}}</text>
|
|
<mp-icon icon="arrow" size="{{16}}" color="#777777E6" bindtap="changeMonth" data-direction="next" />
|
|
</view>
|
|
<view class="days">
|
|
<view class="week">
|
|
<text>日</text>
|
|
<text>一</text>
|
|
<text>二</text>
|
|
<text>三</text>
|
|
<text>四</text>
|
|
<text>五</text>
|
|
<text>六</text>
|
|
</view>
|
|
<view class="dates">
|
|
<block wx:for="{{days}}" wx:key="index">
|
|
<view class="date {{item.itemClass}}" bindtap="showEventDetail" data-day="{{item}}">{{item.day}}</view>
|
|
</block>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="goal-total">
|
|
<view class="goal-total-item">
|
|
<view class="goal-total-item-top">
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/last.png" class="goal-img" />
|
|
我已连续打卡
|
|
</view>
|
|
<view class="goal-total-item-num">
|
|
{{nowGoal.continuousDays}}<text style="font-size: 20rpx;">天</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="goal-total-item">
|
|
<view class="goal-total-item-top">
|
|
<image src="https://yuedong-wechatapplet.oss-cn-shanghai.aliyuncs.com/static/all.png" class="goal-img" />
|
|
连续累计跳绳
|
|
</view>
|
|
<view class="goal-total-item-num">
|
|
{{nowGoal.accumulatedCount != null ? nowGoal.accumulatedCount : 0}}<text style="font-size: 20rpx;">个</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<!-- 输入 -->
|
|
<view class="put" wx:if="{{nowGoal.goalAmount == null || nowGoal.goalAmount == 0}}">
|
|
<input type="number" bindinput="putNum" placeholder="设置今日目标" />
|
|
<view class="sure" bind:tap="setMyGoal">
|
|
确认
|
|
</view>
|
|
</view>
|
|
</view> |