Skip to content

Commit

Permalink
hzuapps#5 hzuapps#19 第5次实验代码
Browse files Browse the repository at this point in the history
  • Loading branch information
panxiaomian committed Dec 5, 2017
1 parent bf152ca commit a81ee0a
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
15 changes: 15 additions & 0 deletions 1514080901223/pages/index/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,27 @@ Page({
todoTextAreaValue: '',

// 事项列表
taskList:[],
itemList: [],
editItemList: [] //编辑勾选中的事项id
},

onLoad() {
let _this = this;

wx.request({
url: 'https://infoaas.com/data/1514080901223/Panxmian.json',
header: {
'content-type': 'application/json'
},
success: function (res) {
console.log(res.data);
_this.setData({
moodList: res.data.Panxmian
});
}
})

promiseHandle(wx.getSystemInfo).then((data) => {
_this.setData({
updatePanelTop: data.windowHeight
Expand Down
26 changes: 26 additions & 0 deletions 1514080901223/pages/index/index.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,32 @@
<navigator url="/pages/form/form" hover-class="navigator-hover">点击跳转到"事项表单"页面</navigator>
</view>

<view class="section">
<view class="section__title">事项数据</view>
<scroll-view class="page" scroll-y="true" style="height:400px;" bindscrolltoupper="onUpper" bindscrolltolower="onLower" bindscroll="onScroll" >
<view class="page__bd" wx:for="{{taskList}}" wx:key='task'>
<view class="weui-panel weui-panel_access" >
<view class="weui-panel__bd">
<view class="weui-media-box weui-media-box_appmsg">
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg">
<icon type="waiting" size="56"/>
</view>
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<view class="weui-media-box__desc">{{item.time}}</view>
<view class="weui-media-box__desc">{{item.content}}</view>

</view>
</view>
</view>
</view>
<view class="weui-loadmore" wx:if="{{isLower}}">
</view>
<view class="weui-loadmore weui-loadmore_line" wx:if="{{isEnd}}">
</view>
</view>
</scroll-view>
</view>

<view class="updatePanel" style="top: {{updatePanelTop}}px;height:{{updatePanelTop}}px" animation="{{updatePanelAnimationData}}">
<!--<view class="title"><text>添加事项</text></view>-->
<input placeholder="请输入事项标题" value="{{todoInputValue}}" bindchange="todoInputChangeEvent" />
Expand Down

0 comments on commit a81ee0a

Please sign in to comment.