diff --git a/littleApp_child/app.json b/littleApp_child/app.json index 4f0a719..e484bf4 100644 --- a/littleApp_child/app.json +++ b/littleApp_child/app.json @@ -1,6 +1,6 @@ { "pages": [ - + "pages/home/home", "pages/login/login", "pages/inspectionReport/inspectionReport", diff --git a/littleApp_child/pages/system_notifacations/system_notifacations.js b/littleApp_child/pages/system_notifacations/system_notifacations.js index 8198c04..92fbba3 100644 --- a/littleApp_child/pages/system_notifacations/system_notifacations.js +++ b/littleApp_child/pages/system_notifacations/system_notifacations.js @@ -11,24 +11,18 @@ var isRefresh Page({ + data: { + list: [ - {zar:12, title: "title1", content: "content1content1content1content1content1content1content1content1content1content1content1ds到场定损", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } - , { zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } - , { zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } - , { zar: 12,title: "title1", content: "content1", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } - , { zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } - , { zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } + { isHighRisk: false,zar:12, title: "title1", content: "content1content1content1content1content1content1content1content1content1content1content1ds到场定损", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } + , { isHighRisk: true, zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } + , { isHighRisk: false, zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } + , { isHighRisk: false, zar: 12,title: "title1", content: "content1", image: "http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg" } + , { isHighRisk: true, zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg" } + , { isHighRisk: false, zar: 12, title: "title2", content: "content2", image: "http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg" } ], - images: [ - // 'http://img02.tooopen.com/images/20150928/tooopen_sy_143912755726.jpg', - // 'http://img06.tooopen.com/images/20160818/tooopen_sy_175866434296.jpg', - 'http://img06.tooopen.com/images/20160818/tooopen_sy_175833047715.jpg' - ], - titles: ["日常护理", "营养美食", "疾病护理", "亲子互动", "言传qq"], - id:0, - category:'', - current_index:0, + }, onLoad: function (e) { this.data.id = e.id @@ -45,12 +39,7 @@ Page({ onUnload: function() { }, - /*---------事件处理函数--------*/ - bindViewTap: function() { - wx.navigateTo({ - url: '../home/home' - }) - }, + // 加载更多 loadMore:function(e){ if(!hasMore || isRefresh == true){ @@ -73,19 +62,13 @@ Page({ this.loadMore() } }, - titleClick:function(e){ - console.log(e) - var index = e.currentTarget.dataset.index - this.setData({ - current_index:index - }) - }, + /*---------自定义函数--------*/ - requestData(id){ + requestData(){ var self = this isRefresh = true networkUtil.showLoading() - var param = {page:page,limit:15,type:getApp().globalData.userInfo.status,categoryId:self.data.id} + var param = {page:page,limit:15,} networkUtil._get(api.articleList,param,function(res){ isRefresh = false diff --git a/littleApp_child/pages/system_notifacations/system_notifacations.wxml b/littleApp_child/pages/system_notifacations/system_notifacations.wxml index 0888b07..0f7cc83 100644 --- a/littleApp_child/pages/system_notifacations/system_notifacations.wxml +++ b/littleApp_child/pages/system_notifacations/system_notifacations.wxml @@ -1,11 +1,10 @@ - - + - - + + - - - 高危紧急通知 - 公司的复苏的还记得公司的复苏的还记得公司的复苏的还记得 - + + + 加载更多... - + \ No newline at end of file