ソースを参照

授权问题解决

twt 10 ヶ月 前
コミット
02703e00b7
共有2 個のファイルを変更した20 個の追加4 個の削除を含む
  1. 0 2
      pages/index/carModel.vue
  2. 20 2
      pages/index/index.vue

+ 0 - 2
pages/index/carModel.vue

@@ -307,8 +307,6 @@
 			 
 			  uni.showLoading({ title: '加载中'});
 			 
-			  
-			  
 			  this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
 			  this.$http('matchingByOpen/queryCarModelGroupPackage', {
 			

+ 20 - 2
pages/index/index.vue

@@ -207,7 +207,7 @@
 											if(data.code!=1){
 												console.log(data.data)
 												that.vinNum=data.data;
-																that.queryCarModelGroupByVinAggregation()
+												that.queryCarModelGroupByVinAggregation()
 											}else{
 												uni.showToast({
 												    title: data.msg,
@@ -241,7 +241,25 @@
 						     duration: 3000,
 						 });
 				     	console.log("授权失败")
-						console.log(err)
+						uni.showModal({
+							title: '是否重新授权识图功能',
+							success(res) {
+								if (res.confirm) {
+									uni.openSetting({
+										success() {
+											console.log('开启权限成功');
+										},
+										fail() {
+											console.log('开启权限失败');
+										}
+									});
+								} else if (res.cancel) {
+									console.log('拒绝开启开启权限');
+								}
+							}
+						});
+						
+						
 				     }
 				 })