File tree Expand file tree Collapse file tree 4 files changed +8
-27
lines changed
platforms/app-plus/speech Expand file tree Collapse file tree 4 files changed +8
-27
lines changed Original file line number Diff line number Diff line change @@ -233,26 +233,13 @@ function gotoAppPermissionSetting() {
233233 }
234234}
235235
236- function gotoiOSPermissionSetting ( ) {
237- var UIApplication = plus . ios . import ( "UIApplication" ) ;
238- var application2 = UIApplication . sharedApplication ( ) ;
239- var NSURL2 = plus . ios . import ( "NSURL" ) ;
240- var setting2 = NSURL2 . URLWithString ( "App-prefs:root=General" ) ;
241- application2 . openURL ( setting2 ) ;
242-
243- plus . ios . deleteObject ( setting2 ) ;
244- plus . ios . deleteObject ( NSURL2 ) ;
245- plus . ios . deleteObject ( application2 ) ;
246- }
247-
248236const permission = {
249237 get isIOS ( ) {
250238 return typeof isIOS === 'boolean' ? isIOS : ( isIOS = uni . getSystemInfoSync ( ) . platform === 'ios' )
251239 } ,
252240 requestIOS : requestIOS ,
253241 requestAndroid : requestAndroid ,
254- gotoAppSetting : gotoAppPermissionSetting ,
255- gotoiOSSetting : gotoiOSPermissionSetting
242+ gotoAppSetting : gotoAppPermissionSetting
256243}
257244
258245module . exports = permission
Original file line number Diff line number Diff line change 140140 } else if (status === 2 ) {
141141 uni .showModal ({
142142 content: " 系统定位已关闭" ,
143- confirmText: " 设置" ,
143+ confirmText: " 确定" ,
144+ showCancel: false ,
144145 success : function (res ) {
145- if (res .confirm ) {
146- permision .gotoiOSSetting ();
147- }
148146 }
149147 })
150148 } else if (status .code ) {
Original file line number Diff line number Diff line change 171171 } else if (status === 2 ) {
172172 uni .showModal ({
173173 content: " 系统麦克风已关闭" ,
174- confirmText: " 设置" ,
174+ confirmText: " 确定" ,
175+ showCancel: false ,
175176 success : function (res ) {
176- if (res .confirm ) {
177- permision .gotoiOSSetting ();
178- }
179177 }
180178 })
181179 } else {
Original file line number Diff line number Diff line change 7676 status = 1 ;
7777 } else if (status === 2 ) {
7878 uni .showModal ({
79- content: " 系统麦克风已关闭" ,
80- confirmText: " 设置" ,
79+ content: " 系统麦克风已关闭" ,
80+ confirmText: " 确定" ,
81+ showCancel: false ,
8182 success : function (res ) {
82- if (res .confirm ) {
83- permision .gotoiOSSetting ();
84- }
8583 }
8684 })
8785 } else {
You can’t perform that action at this time.
0 commit comments