From 4e44bc1fd7806a6c1611302120882b91d96640b5 Mon Sep 17 00:00:00 2001
From: liuwh <hugeinfo123>
Date: Mon, 27 Apr 2020 17:50:19 +0800
Subject: [PATCH] bug修复

---
 SunshineLnsMinApp/pages/messageNotification/messageNotification.js |   17 ++++++++---------
 1 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/SunshineLnsMinApp/pages/messageNotification/messageNotification.js b/SunshineLnsMinApp/pages/messageNotification/messageNotification.js
index c5a814e..8be7cd8 100644
--- a/SunshineLnsMinApp/pages/messageNotification/messageNotification.js
+++ b/SunshineLnsMinApp/pages/messageNotification/messageNotification.js
@@ -18,7 +18,7 @@
     dataSet: []
   },
 
-  navbarTap: function (e) {
+  navbarTap: function(e) {
     this.setData({
       currentTab: e.currentTarget.dataset.idx
     })
@@ -26,7 +26,7 @@
 
   },
 
-  showList: function (tab) {
+  showList: function(tab) {
     var userinfo = wx.getStorageSync("user");
     var that = this;
     var id = userinfo.id
@@ -48,7 +48,7 @@
     }
     wx.request({
       url: app.globalData.url + '/api/businessAggr/draftQuery?page=1&size=' + that.data[sizeQty] + '&userId=' + id + '&flag=message' + str,
-      success: function (res) {
+      success: function(res) {
         if (res.data.code == 0) {
           (res.data.data.content).forEach(e => {
             (e.createTime) = app.formatDate(e.createTime)
@@ -109,7 +109,7 @@
     })
   },
 
-  businessSchedule: function (event) {
+  businessSchedule: function(event) {
     var id = event.currentTarget.id;
     var businessType = this.data.dataSet[id].businessType;
     var businessId = this.data.dataSet[id].businessId;
@@ -117,9 +117,8 @@
     var flag = this.data.dataSet[id].flag || '';
     var picType = this.data.dataSet[id].picType || '';
     if (businessType == "公益随手拍") {
-      wx.navigateTo({
-        url: '../publicSnapshot/publicSnapshot?id=' + businessId + '&type=' + picType,
-      })
+      app.getPermission('../publicSnapshot/publicSnapshot?id=' + businessId + '&type=' + picType)
+      
     } else if (businessType == "扫黑除恶") {
       wx.navigateTo({
         url: '../scanEvildoing/scanEvildoing?id=' + businessId,
@@ -144,14 +143,14 @@
     }
   },
 
-  onLoad: function () {
+  onLoad: function() {
     this.showList(0)
   },
 
   /**
    * 页面上拉触底事件的处理函数
    */
-  onReachBottom: function () {
+  onReachBottom: function() {
     if (this.data.hasMoreData) {
       this.showList(this.data.currentTab)
       this.setData({

--
Gitblit v1.8.0