|
@@ -2,17 +2,23 @@
|
|
<view bindtap="onTap">你点我呀</view>
|
|
<view bindtap="onTap">你点我呀</view>
|
|
</view> -->
|
|
</view> -->
|
|
|
|
|
|
-<view bindtap="onTap">你点我呀</view>
|
|
|
|
|
|
+<!-- <view bindtap="onTap">你点我呀</view> -->
|
|
|
|
|
|
<view class="box">
|
|
<view class="box">
|
|
<text class="title">
|
|
<text class="title">
|
|
TODOLIST
|
|
TODOLIST
|
|
</text>
|
|
</text>
|
|
|
|
|
|
-<!-- 在绑定key值时,默认会自动从item下找某个属性 -->
|
|
|
|
|
|
+ <!-- 在绑定key值时,默认会自动从item下找某个属性 -->
|
|
<view wx:for="{{todolist}}" wx:key="id" class="todo-item">
|
|
<view wx:for="{{todolist}}" wx:key="id" class="todo-item">
|
|
<checkbox checked="{{item.done}}"></checkbox>
|
|
<checkbox checked="{{item.done}}"></checkbox>
|
|
<text style="width: 375rpx; margin: 0 8px;">{{ item.title }}</text>
|
|
<text style="width: 375rpx; margin: 0 8px;">{{ item.title }}</text>
|
|
- <icon type="cancel" />
|
|
|
|
|
|
+ <icon type="cancel" bindtap="onRemoveTodo" data-id="{{item.id}}" />
|
|
|
|
+ </view>
|
|
|
|
+</view>
|
|
|
|
+
|
|
|
|
+<view bindtap="onTap">
|
|
|
|
+ <view bindtap="onTap" style="padding: 20px;border: 2px solid;background-color: red;">
|
|
|
|
+ <view catch:tap="onTap">你点我呀</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|