permission
小程序接口权限相关设置
例如:小程序定位设置,配置如下
具体是在app.json中如下设置
{
"entryPagePath": "pages/index/index",
"pages": [
"pages/index/index",
"pages/logs/logs",
"pages/news/news",
"pages/about/about"
],
"window": {
"backgroundTextStyle": "dark",
"navigationBarBackgroundColor": "#000000",
"navigationBarTitleText": "我的第一个小程序",
"navigationBarTextStyle": "white",
"backgroundColor": "#f0f0f1",
"enablePullDownRefresh": true,
"onReachBottomDistance": 50