Browse Source

(*)地理位置权限配置

master
Archer_cdm 2 years ago
parent
commit
1e7559438f
  1. 3
      weapp/app.json
  2. 1
      weapp/package/inspectionRecord/inspectionRecord.js

3
weapp/app.json

@ -49,5 +49,8 @@
"desc": "你的位置信息将用于小程序位置接口的效果展示" "desc": "你的位置信息将用于小程序位置接口的效果展示"
} }
}, },
"requiredPrivateInfos": [
"getLocation"
],
"sitemapLocation": "sitemap.json" "sitemapLocation": "sitemap.json"
} }

1
weapp/package/inspectionRecord/inspectionRecord.js

@ -100,7 +100,6 @@ Page({
let { endTime, startTime, ResList, ResIndex } = that.data; let { endTime, startTime, ResList, ResIndex } = that.data;
let sevenYearAgo = moment().subtract(7, 'days').format('YYYY-MM-DD 00:00:00'); 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'); 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; let alarm = ResList[ResIndex].value == 'all' ? 'null' : ResList[ResIndex].value == 'normal' ? false : true;
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'

Loading…
Cancel
Save