save code
This commit is contained in:
@@ -9,6 +9,10 @@
|
|||||||
"customPlaygroundType" : "local",
|
"customPlaygroundType" : "local",
|
||||||
"playground" : "custom",
|
"playground" : "custom",
|
||||||
"type" : "uni-app:app-ios"
|
"type" : "uni-app:app-ios"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"playground" : "custom",
|
||||||
|
"type" : "uni-app:app-android"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
+12
-1
@@ -69,7 +69,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
// let permissionNeed = ["android.permission.CAMERA", "android.permission.RECORD_AUDIO",
|
||||||
|
// "android.permission.WRITE_EXTERNAL_STORAGE"]
|
||||||
|
// // 请求权限
|
||||||
|
// UTSAndroid.requestSystemPermission(UTSAndroid.getUniActivity()!, permissionNeed, function (allRight : boolean, _ : string[]) {
|
||||||
|
// if (allRight) {
|
||||||
|
// // 权限请求成功
|
||||||
|
// } else {
|
||||||
|
// //用户拒绝了部分权限
|
||||||
|
// }
|
||||||
|
// }, function (_ : boolean, _ : string[]) {
|
||||||
|
// //用户拒绝了部分权限
|
||||||
|
// })
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
onError(res : any) {
|
onError(res : any) {
|
||||||
|
|||||||
Reference in New Issue
Block a user