project init
This commit is contained in:
@@ -1,42 +1,39 @@
|
||||
<!--pages/today/index.wxml-->
|
||||
<t-tabs
|
||||
defaultValue="{{0}}"
|
||||
bind:change="onTabsChange"
|
||||
bind:click="onTabsClick"
|
||||
showBottomLine="{{false}}"
|
||||
t-class="custom-tabs"
|
||||
>
|
||||
<t-tab-panel label="任务清单" value="0">
|
||||
<t-swipe-cell wx:for="{{taskList}}" wx:key="{{index}}" >
|
||||
<t-cell class="text_ath" title="{{item.title}}" note="{{item.note}}" bordered="{{true}}" hover/>
|
||||
<view slot="right" class="t-swipe-cell-demo-btn-wrapper">
|
||||
<view class="t-swipe-cell-demo-btn favor-btn" data-id='{{item.taskId}}' bind:tap="onEdit">收藏</view>
|
||||
<view class="t-swipe-cell-demo-btn delete-btn" data-id='{{item.taskId}}' bind:tap="onDelete">删除</view>
|
||||
<view class="top-wrap">
|
||||
<tab id="category"
|
||||
tab-data="{{categoryMenu}}"
|
||||
tab-cur="{{categoryCur}}"
|
||||
size="{{80}}"
|
||||
scroll="{{false}}"
|
||||
bindchange="toggleCategory">
|
||||
</tab>
|
||||
</view>
|
||||
|
||||
<swiper current="{{categoryCur}}" duration="{{duration}}" bindanimationfinish="animationFinish">
|
||||
<swiper-item wx:for="{{categoryData}}" wx:key="index">
|
||||
<scroll requesting="{{item.requesting}}"
|
||||
end="{{item.end}}"
|
||||
list-count="{{item.listData.length}}"
|
||||
has-top="{{true}}"
|
||||
refresh-size="{{80}}"
|
||||
bind:refresh="refresh"
|
||||
bind:more="more">
|
||||
<view class="cells">
|
||||
<view class="cell"
|
||||
wx:for="{{item.listData}}"
|
||||
wx:key="index"
|
||||
data-link="{{item.link}}"
|
||||
bind:longpress="showArticle">
|
||||
<view class="name">
|
||||
<checkbox value="{{item.taskId}}" checked="{{item.complete}}"></checkbox>
|
||||
<rich-text nodes="{{item.title}}"></rich-text>
|
||||
</view>
|
||||
<view class="date">{{item.note}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</t-swipe-cell>
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="收藏任务" value="1">
|
||||
<t-swipe-cell wx:for="{{todayList}}" wx:key="{{index}}" >
|
||||
<t-cell class="text_ath" title="{{item.title}}" note="{{item.note}}" bordered="{{true}}" hover/>
|
||||
<view slot="right" class="t-swipe-cell-demo-btn-wrapper">
|
||||
<view class="t-swipe-cell-demo-btn delete-btn" data-id='{{item.taskId}}' bind:tap="onDelete">删除</view>
|
||||
</view>
|
||||
</t-swipe-cell>
|
||||
</t-tab-panel>
|
||||
<t-tab-panel label="延期任务" value="2">
|
||||
<t-swipe-cell wx:for="{{delayList}}" wx:key="{{index}}" >
|
||||
<t-cell class="text_ath" title="{{item.title}}" note="{{item.note}}" bordered="{{true}}" hover/>
|
||||
<view slot="right" class="t-swipe-cell-demo-btn-wrapper">
|
||||
<view class="t-swipe-cell-demo-btn delete-btn" data-id='{{item.taskId}}' bind:tap="onDelete">删除</view>
|
||||
</view>
|
||||
</t-swipe-cell>
|
||||
</t-tab-panel>
|
||||
</t-tabs>
|
||||
<cover-view class='phone-box' style='bottom: 170rpx' bindtap='callPhone'>
|
||||
<cover-image icon="add"></cover-image>
|
||||
<button class='hide-btn'></button>
|
||||
</cover-view>
|
||||
<t-fab icon="add" bind:click="handleClick"></t-fab>
|
||||
</scroll>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
<view>
|
||||
<foot-tab iconList="{{aIconList}}"/>
|
||||
</view>
|
||||
|
||||
Reference in New Issue
Block a user