|
@@ -168,20 +168,22 @@
|
|
|
driverName: "",
|
|
|
interval: "",
|
|
|
}],
|
|
|
- timer: null
|
|
|
+ timer: ""
|
|
|
}
|
|
|
},
|
|
|
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);
|
|
|
- // });
|
|
|
+
|
|
|
+ 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
|
|
@@ -246,9 +248,11 @@
|
|
|
// var appSecurity = "24c593b7037347e08857a6ab05fd231b0509f5bb7cb741078f524f506ad32db8";//网络货运企业在省平台申请的接入安全码
|
|
|
// var enterpriseSenderCode = "23106960";//网络货运企业在省平台申请的企业发送代码
|
|
|
// var environment = "debug";//环境:“debug”接入测试环境,“release”接入正式环境。
|
|
|
- console.log("appid:" + this.appId + "安全码:" + this.appSecurity + "发送代码:" + this.enterpriseSenderCode)
|
|
|
+
|
|
|
let that = this
|
|
|
sdkwx.auth(this.appId, this.appSecurity, this.enterpriseSenderCode, this.environment, function(res) {
|
|
|
+ console.log("appid:" + that.appId + "安全码:" + that.appSecurity + "发送代码:" + that.enterpriseSenderCode+"测试环境"+that.environment)
|
|
|
+ console.log(res)
|
|
|
if (res.type == "onSuccess") {
|
|
|
//成功
|
|
|
that.start()
|