| 
														
															@@ -3,6 +3,7 @@ var that; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 var chart1; 
														 | 
														
														 | 
														
															 var chart1; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 var chart2; 
														 | 
														
														 | 
														
															 var chart2; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 var chart3; 
														 | 
														
														 | 
														
															 var chart3; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+var AParse = require('../../../Component/aParse/aParse.js'); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 Page({ 
														 | 
														
														 | 
														
															 Page({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   data: { 
														 | 
														
														 | 
														
															   data: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     userData: {}, 
														 | 
														
														 | 
														
															     userData: {}, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -27,16 +28,19 @@ Page({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       { name: '发布悬赏', imgUrl: '../../../image/caback6.png', url: '../../statistics/offerAreward/offerAreward', code: 'creator admin' }, 
														 | 
														
														 | 
														
															       { name: '发布悬赏', imgUrl: '../../../image/caback6.png', url: '../../statistics/offerAreward/offerAreward', code: 'creator admin' }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       { name: '发放奖票', imgUrl: '../../../image/add_ticket.png', url: '../../statistics/grant/grant', code: 'creator admin' }, 
														 | 
														
														 | 
														
															       { name: '发放奖票', imgUrl: '../../../image/add_ticket.png', url: '../../statistics/grant/grant', code: 'creator admin' }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       { name: '全部', imgUrl: '../../../image/all2.png', url: 'all', code: 'creator admin employee' }, 
														 | 
														
														 | 
														
															       { name: '全部', imgUrl: '../../../image/all2.png', url: 'all', code: 'creator admin employee' }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    ] 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    ], 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    isUpdate:false, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    title:'',//系统消息标题 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    textId:''//系统消息ID 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   }, 
														 | 
														
														 | 
														
															   }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   onLoad() { 
														 | 
														
														 | 
														
															   onLoad() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     that = this; 
														 | 
														
														 | 
														
															     that = this; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     chart1, chart2, chart3 = ''; 
														 | 
														
														 | 
														
															     chart1, chart2, chart3 = ''; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   }, 
														 | 
														
														 | 
														
															   }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-  onShow(query) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  onShow() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     if (app.globalData.userData) { 
														 | 
														
														 | 
														
															     if (app.globalData.userData) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       that.getUserData(); 
														 | 
														
														 | 
														
															       that.getUserData(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      that.getGg(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       that.setData({ isAdministrator: app.globalData.isAdministrator, getRole_four: app.globalData.isCreator }) 
														 | 
														
														 | 
														
															       that.setData({ isAdministrator: app.globalData.isAdministrator, getRole_four: app.globalData.isCreator }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } else { 
														 | 
														
														 | 
														
															     } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       app.login(app.globalData.corpId, function (is) { 
														 | 
														
														 | 
														
															       app.login(app.globalData.corpId, function (is) { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -48,6 +52,7 @@ Page({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           }else if(!app.globalData.isCreator&&!app.globalData.isAdministrator){ 
														 | 
														
														 | 
														
															           }else if(!app.globalData.isCreator&&!app.globalData.isAdministrator){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             that.setMenuList("employee"); 
														 | 
														
														 | 
														
															             that.setMenuList("employee"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           } 
														 | 
														
														 | 
														
															           } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          that.getGg(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           that.getUserData(); 
														 | 
														
														 | 
														
															           that.getUserData(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															           that.setData({ isAdministrator: app.globalData.isAdministrator, getRole_four: app.globalData.isCreator }) 
														 | 
														
														 | 
														
															           that.setData({ isAdministrator: app.globalData.isAdministrator, getRole_four: app.globalData.isCreator }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         } else { 
														 | 
														
														 | 
														
															         } else { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -66,33 +71,52 @@ Page({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }) 
														 | 
														
														 | 
														
															       }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       return 
														 | 
														
														 | 
														
															       return 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    // if(url=='../apply/apply'){ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //   var item = { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     cycle_type: 1, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     id: 578, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     is_attendance: 0, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     max_point: 10, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     min_point: 10, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     prize_type: 0, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     pt_Obj: { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //       code: "BF", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //       id: 3, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //       name: "B分", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     }, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     pt_id: 3, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     range_type: 1, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     remark: "分类1-测试缓存", 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     rule_id: 185, 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //   } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //   dd.navigateTo({ 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //     url: '../apply/apply?item='+JSON.stringify(item) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //   }) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    //   return 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    // } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     dd.navigateTo({ 
														 | 
														
														 | 
														
															     dd.navigateTo({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       url: url 
														 | 
														
														 | 
														
															       url: url 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     }) 
														 | 
														
														 | 
														
															     }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   }, 
														 | 
														
														 | 
														
															   }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  openText(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    that.colseText(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    dd.navigateTo({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      url: '../../deploy/upgradeDetail/upgradeDetail?id='+that.data.textId 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  //获取缓存的公告 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  getReviewerObj(fuc) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    dd.getStorage({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      key: 'isShowMessage', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      success: function (res) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        if (res.data) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          fuc(res.data); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          fuc({}); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  // 获取公告 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  getGg(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if(that.data.title){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      return 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    app.$get("api/announcement/list", {page: 1, page_size: 1}).then((res) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      var data = res.data.data.list[0]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      AParse.aParse('article', 'html', data.focus, that, 5);  
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      that.setData({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        title:data.title, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        textId:data.id 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      that.getReviewerObj(function(res){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          if(res!=data.id){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              that.colseText(); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              dd.setStorage({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    key: 'isShowMessage', 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+                    data: data.id, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+              }); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   setMenuList(str){ 
														 | 
														
														 | 
														
															   setMenuList(str){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       var arr=[]; 
														 | 
														
														 | 
														
															       var arr=[]; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       that.data.menuList.forEach(item=>{ 
														 | 
														
														 | 
														
															       that.data.menuList.forEach(item=>{ 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -104,6 +128,9 @@ Page({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         menuList:arr 
														 | 
														
														 | 
														
															         menuList:arr 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       }) 
														 | 
														
														 | 
														
															       }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   }, 
														 | 
														
														 | 
														
															   }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  colseText(){ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    this.setData({isUpdate: !this.data.isUpdate }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  }, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   showText() { 
														 | 
														
														 | 
														
															   showText() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     this.setData({ isBh: !this.data.isBh }) 
														 | 
														
														 | 
														
															     this.setData({ isBh: !this.data.isBh }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   }, 
														 | 
														
														 | 
														
															   }, 
														 |