zhongtianhaoyuan %!s(int64=2) %!d(string=hai) anos
pai
achega
3ca1fe14bc
Modificáronse 4 ficheiros con 34 adicións e 5 borrados
  1. 10 3
      App.vue
  2. 2 2
      pages/mine/index.vue
  3. 10 0
      pages/order/confirmLoading.vue
  4. 12 0
      pages/public/login.vue

+ 10 - 3
App.vue

@@ -161,9 +161,6 @@
 						console.log("授权失败")
 						console.log(res)
 					}
-					// uni.showModal({
-					// 	content: JSON.stringify(res)
-					// });
 				});
 			},
 		},
@@ -516,6 +513,16 @@
 		},
 		onShow: function() {
 			console.log('App Show')
+			//隐私合规接口,HBuildx3.3.3及其以后的版本需要调用合规检查
+			var isContains = true;//隐私权政策是否包含高德开平隐私权政策  true是包含
+			var isShow = true;//隐私权政策是否弹窗展示告知用户 true是展示 
+			sdkwx.updatePrivacyShow(isContains, isShow);
+			var isAgree = true;//隐私权政策是否取得用户同意  true是用户同意
+			sdkwx.updatePrivacyAgree(isAgree);
+			//检查定位权限
+			sdkwx.checkLocationPermission(function(res){
+				console.log(res);
+			});
 			// #ifdef APP-PLUS
 			getCurrentNo(res => {
 				// 进页面获取当前APP版本号(用于页面显示)

+ 2 - 2
pages/mine/index.vue

@@ -138,7 +138,7 @@
 				</view>
 			</view>
 			
-			<!-- <view class="flex flex-space-between" @click="goDetailPage('/pages/mine/index1')">
+			<view class="flex flex-space-between" @click="goDetailPage('/pages/mine/index1')">
 				<view class="flex align-center">
 					<image class="img" src="@/static/images/mine/set.png" mode='widthFix'>
 					</image>
@@ -147,7 +147,7 @@
 				<view>
 					<image src="../../static/images/myimg/gengduo1@3x.png" class="arrow"></image>
 				</view>
-			</view> -->
+			</view>
 			<!-- 	<view class="flex flex-space-between" @click="goDetailPage('/pages/mine/evaluate')">
 				<view class="flex align-center">
 					<image class="img" src="@/static/images/mine/set.png" mode='widthFix'>

+ 10 - 0
pages/order/confirmLoading.vue

@@ -172,6 +172,16 @@
 			}
 		},
 		onLoad(options) {
+			//隐私合规接口,HBuildx3.3.3及其以后的版本需要调用合规检查
+			var isContains = true;//隐私权政策是否包含高德开平隐私权政策  true是包含
+			var isShow = true;//隐私权政策是否弹窗展示告知用户 true是展示 
+			sdkwx.updatePrivacyShow(isContains, isShow);
+			var isAgree = true;//隐私权政策是否取得用户同意  true是用户同意
+			sdkwx.updatePrivacyAgree(isAgree);
+			//检查定位权限
+			sdkwx.checkLocationPermission(function(res){
+				console.log(res);
+			});
 			let phoneType = uni.getSystemInfoSync().platform //判断手机类型
 			this.enterpriseSenderCode = config.def().enterpriseSenderCode
 			this.environment = config.def().environment

+ 12 - 0
pages/public/login.vue

@@ -137,6 +137,18 @@
 			this.$api.logout()
 		},
 		onLoad(options) {
+			
+			
+			//隐私合规接口,HBuildx3.3.3及其以后的版本需要调用合规检查
+			var isContains = true;//隐私权政策是否包含高德开平隐私权政策  true是包含
+			var isShow = true;//隐私权政策是否弹窗展示告知用户 true是展示 
+			sdkwx.updatePrivacyShow(isContains, isShow);
+			var isAgree = true;//隐私权政策是否取得用户同意  true是用户同意
+			sdkwx.updatePrivacyAgree(isAgree);
+			//检查定位权限
+			sdkwx.checkLocationPermission(function(res){
+				console.log(res);
+			});
 
 			if (wx.getUserProfile) {
 				console.log('--check getUserProfile--OK');