diff --git a/weapp/app.json b/weapp/app.json index 2a31459..5443628 100644 --- a/weapp/app.json +++ b/weapp/app.json @@ -49,5 +49,8 @@ "desc": "你的位置信息将用于小程序位置接口的效果展示" } }, + "requiredPrivateInfos": [ + "getLocation" + ], "sitemapLocation": "sitemap.json" } \ No newline at end of file diff --git a/weapp/package/inspectionRecord/inspectionRecord.js b/weapp/package/inspectionRecord/inspectionRecord.js index e1234f2..3f83ba9 100644 --- a/weapp/package/inspectionRecord/inspectionRecord.js +++ b/weapp/package/inspectionRecord/inspectionRecord.js @@ -100,7 +100,6 @@ Page({ let { endTime, startTime, ResList, ResIndex } = that.data; let sevenYearAgo = moment().subtract(7, 'days').format('YYYY-MM-DD 00:00:00'); let currentData = moment().startOf('days').format('YYYY-MM-DD 23:59:59'); - console.log(currentData, 'currentData'); let alarm = ResList[ResIndex].value == 'all' ? 'null' : ResList[ResIndex].value == 'normal' ? false : true; wx.showLoading({ title: '加载中'