punchDetail.wxml
2.88 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!--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.allowRepairCard == 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>
<van-button round type="warning" bindtap='toRepairClock' wx:if="{{taskVo.allowRepairCard == 1&&repairText=='缺卡'&&!isToday&&!isLarge}}">补 卡</van-button>
</view>
<!--打卡-->
<van-popup show="{{ clockShow }}" position="bottom" custom-style="height: 60%;" round bind:close="closeClockShow">
<view class="pop_title">{{form.isRepair == 2? '补交打卡成果' : '提交打卡成果'}}</view>
<view class="pop_flex" wx:if="{{taskVo.hasData==1}}">
<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">{{taskVo.statisticsUnit}}</view>
</view>
</view>
<van-field value="{{ form.taskDesc }}" label="" type="textarea" placeholder="填写内容(如:已完成)" 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="{{form.isRepair == 2? 'warning':'info'}}" block round bindtap="toCardTask">提 交</van-button>
</view>
</van-popup>
</view>