作者 wumengyu

app.json add permission

@@ -119,18 +119,6 @@ App({ @@ -119,18 +119,6 @@ App({
119 }); 119 });
120 return promise; 120 return promise;
121 }, 121 },
122 - formCollect(id){  
123 - let url = '/sign/formid'  
124 - let params = {  
125 - formid: id,  
126 - openid: wx.getStorageSync('openId')  
127 - }  
128 - this.post(url,params).then((res)=>{  
129 - console.log(res)  
130 - }).catch((errMsg)=>{  
131 -  
132 - })  
133 - },  
134 //获取当前时间 122 //获取当前时间
135 nowDate() { 123 nowDate() {
136 let date = new Date(); 124 let date = new Date();
@@ -37,6 +37,11 @@ @@ -37,6 +37,11 @@
37 "navigationBarTitleText": "科学队长实验室", 37 "navigationBarTitleText": "科学队长实验室",
38 "navigationBarTextStyle": "white" 38 "navigationBarTextStyle": "white"
39 }, 39 },
  40 + "permission": {
  41 + "scope.userLocation": {
  42 + "desc": "你的位置信息将用于获取附近的实验室"
  43 + }
  44 + },
40 "tabBar": { 45 "tabBar": {
41 "color": "#6F6F6F", 46 "color": "#6F6F6F",
42 "selectedColor": "#5AB7F9", 47 "selectedColor": "#5AB7F9",