Commit 5ddc708d72f29e34b29cae9121ee12c4333478c7
1 parent
8dc43b27e3
Exists in
master
and in
2 other branches
no message
Showing 3 changed files with 25 additions and 43 deletions
littleApp_child/app.json
View file @
5ddc708
littleApp_child/pages/system_notifacations/system_notifacations.js
View file @
5ddc708
... | ... | @@ -11,24 +11,18 @@ |
11 | 11 | |
12 | 12 | |
13 | 13 | Page({ |
14 | + | |
14 | 15 | data: { |
16 | + | |
15 | 17 | list: [ |
16 | - {zar:12, title: "title1", content: "content1content1content1content1content1content1content1content1content1content1content1ds到场定损", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } | |
17 | - , { zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } | |
18 | - , { zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } | |
19 | - , { zar: 12,title: "title1", content: "content1", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } | |
20 | - , { zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } | |
21 | - , { zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } | |
18 | + { isHighRisk: false,zar:12, title: "title1", content: "content1content1content1content1content1content1content1content1content1content1content1ds到场定损", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } | |
19 | + , { isHighRisk: true, zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } | |
20 | + , { isHighRisk: false, zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } | |
21 | + , { isHighRisk: false, zar: 12,title: "title1", content: "content1", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } | |
22 | + , { isHighRisk: true, zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } | |
23 | + , { isHighRisk: false, zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } | |
22 | 24 | ], |
23 | - images: [ | |
24 | - // 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg', | |
25 | - // 'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg', | |
26 | - 'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg' | |
27 | - ], | |
28 | - titles: ["日常护理", "营养美食", "疾病护理", "亲子互动", "言传qq"], | |
29 | - id:0, | |
30 | - category:'', | |
31 | - current_index:0, | |
25 | + | |
32 | 26 | }, |
33 | 27 | onLoad: function (e) { |
34 | 28 | this.data.id = e.id |
... | ... | @@ -45,12 +39,7 @@ |
45 | 39 | onUnload: function() { |
46 | 40 | |
47 | 41 | }, |
48 | - /*---------事件处理函数--------*/ | |
49 | - bindViewTap: function() { | |
50 | - wx.navigateTo({ | |
51 | - url: '../home/home' | |
52 | - }) | |
53 | - }, | |
42 | + | |
54 | 43 | // 加载更多 |
55 | 44 | loadMore:function(e){ |
56 | 45 | if(!hasMore || isRefresh == true){ |
57 | 46 | |
58 | 47 | |
... | ... | @@ -73,19 +62,13 @@ |
73 | 62 | this.loadMore() |
74 | 63 | } |
75 | 64 | }, |
76 | - titleClick:function(e){ | |
77 | - console.log(e) | |
78 | - var index = e.currentTarget.dataset.index | |
79 | - this.setData({ | |
80 | - current_index:index | |
81 | - }) | |
82 | - }, | |
65 | + | |
83 | 66 | /*---------自定义函数--------*/ |
84 | - requestData(id){ | |
67 | + requestData(){ | |
85 | 68 | var self = this |
86 | 69 | isRefresh = true |
87 | 70 | networkUtil.showLoading() |
88 | - var param = {page:page,limit:15,type:getApp().globalData.userInfo.status,categoryId:self.data.id} | |
71 | + var param = {page:page,limit:15,} | |
89 | 72 | networkUtil._get(api.articleList,param,function(res){ |
90 | 73 | |
91 | 74 | isRefresh = false |
littleApp_child/pages/system_notifacations/system_notifacations.wxml
View file @
5ddc708
1 | - | |
2 | 1 | <view class="main"> |
3 | 2 | |
4 | 3 | <scroll-view style="" bindscrolltolower="loadMore"> |
5 | - | |
4 | + | |
6 | 5 | <view> |
7 | - <block hover-class="weui-cell_active" wx:for="{{list}}"> | |
8 | - <view class="high_risk_main"> | |
6 | + <block hover-class="weui-cell_active" wx:for="{{list}}"> | |
7 | + <view hidden="{{item.isHighRisk}}" class="high_risk_main"> | |
9 | 8 | <view class="high_risk_title">高危紧急通知</view> |
10 | 9 | <view class="high_rish_content1"> |
11 | 10 | <label class="high_rish_content_before">危急值:</label> |
12 | 11 | |
13 | 12 | |
... | ... | @@ -24,21 +23,21 @@ |
24 | 23 | <label class="high_rish_date">2017-7</label> |
25 | 24 | <label class="high_rish_hospital_name">紧急提醒</label> |
26 | 25 | </view> |
27 | - </view> | |
28 | - <view class="other_three_main"> | |
29 | - <view class="green_line"></view> | |
30 | - <view class="other_three_title">高危紧急通知</view> | |
31 | - <view class="other_three_content">公司的复苏的还记得公司的复苏的还记得公司的复苏的还记得</view> | |
32 | - <view class="line"></view> | |
26 | + </view> | |
27 | + <view hidden="{{!item.isHighRisk}}" class="other_three_main"> | |
28 | + <view class="green_line"></view> | |
29 | + <view class="other_three_title">高危紧急通知</view> | |
30 | + <view class="other_three_content">公司的复苏的还记得公司的复苏的还记得公司的复苏的还记得</view> | |
31 | + <view class="line"></view> | |
33 | 32 | <view class="high_rish_content1"> |
34 | 33 | <label class="other_three_date">2017-7</label> |
35 | 34 | <label class="other_three_hospital_name">紧急提醒</label> |
36 | 35 | </view> |
37 | - </view> | |
36 | + </view> | |
38 | 37 | </block> |
39 | 38 | <view class="loadMoreView" wx:if="{{hasMore}}">加载更多...</view> |
40 | 39 | </view> |
41 | - </scroll-view> | |
40 | + </scroll-view> | |
42 | 41 | |
43 | 42 | </view> |