punchDetail.wxml 2.56 KB
<!--pages/index/achievement/achievement.wxml-->
<view class="punch_detail">
    <calendar id="calendar" config="{{calendarConfig}}" bind:afterTapDate="afterTapDate"/>
    <!-- <view class="btn" bindtap="getInfo">按钮</view> -->
    <view class="line_grey"></view>
    <view class="card">
        <view class="card_title">{{taskVo.taskTitle}}</view>
        <view class="card_flex">
            <view class="flex_grey">已进行 {{taskVo.signTotal +' / ' +taskVo.taskCycle}} 天</view>
            <view class="flex_grey">打卡频次 : {{taskVo.taskFrequency}}</view>
            <view class="flex_grey">{{taskVo.hasData == 1 ?'允许补卡': '不允许补卡'}}</view>
        </view>
        <view class="card_context">{{taskVo.taskDesc}}</view>
        <view class="grey_font">
            <view>我发布与{{taskVo.weekDay}} {{taskVo.releaseTime}}</view>
            <view class="grey_font_bottom"></view>
        </view>
    </view>
    <view class="btn_box">
        <van-button round color="#F4F4F4" bindtap='toAchieve' custom-style="color: #000;">我的成果</van-button>
        <van-button round type="info" bindtap='toClock' wx:if="{{isToday}}">立即打卡</van-button>
    </view>

    <!--打卡-->
    <van-popup show="{{ clockShow }}" position="bottom" custom-style="height: 60%;" round bind:close="closeClockShow">
        <view class="pop_title">提交打卡成果</view>
        <view class="pop_flex">
            <view>提交数据</view>
            <view class="pop_cell">
                <view>
                    <van-cell-group>
                        <van-field value="{{ form.statisticsUnit }}" placeholder="请输入" border="{{ false }}" bind:change="onStatisChange" />
                    </van-cell-group>
                </view>
                <view class="pop_fz">分钟</view>
            </view>
        </view>
        <van-field value="{{ form.taskDesc }}" label="" type="textarea" placeholder="填写内容" autosize border="{{ false }}" bind:change="onTaskDescChange"/>
        <view class="pop_tip">
            <van-uploader accept='image' file-list="{{ fileList }}" deletable="{{ true }}" bind:after-read="afterRead" bind:delete="delFile">
                <view class="tip_item">
                    <image class="pop_pic" src="/img/answer/tp1.png" alt="" />
                </view>
            </van-uploader>
            <!-- <image class="pop_pic" src="/img/answer/tp1.png" alt="" /> -->
        </view>
        <view class="pop_btn">
            <van-button type="info" block round bindtap="toCardTask">提 交</van-button>
        </view>
    </van-popup>
</view>