ccj 2 년 전
부모
커밋
7ae81adaac
6개의 변경된 파일36개의 추가작업 그리고 48개의 파일을 삭제
  1. 10 10
      App.vue
  2. 1 1
      config/index.js
  3. 10 13
      manifest.json
  4. 11 20
      pages/order/confirmLoading.vue
  5. 1 1
      pages/order/confirmUnloading.vue
  6. 3 3
      pages/public/login.vue

+ 10 - 10
App.vue

@@ -326,7 +326,7 @@
 							.unloadCity //到达地址文字描述,调用 start/stop/pause/restart 时必 填,调用 send 非必填
 						this.shippingNoteInfos[0].interval = "5000"
 						console.log("查看参数", this.shippingNoteInfos)
-						// that.auth()
+						that.auth()
 						//判断有没有定位权限  有权限 定位 没权限不操作
 						let system = uni.getSystemInfoSync(); // 获取系统信息
 						if (system.platform === 'android') { // 判断平台
@@ -513,16 +513,16 @@
 		onShow: function() {
 			console.log('App Show')
 			// #ifdef APP-PLUS
-			// var isContains = true;//隐私权政策是否包含高德开平隐私权政策  true是包含
-			// var isShow = true;//隐私权政策是否弹窗展示告知用户 true是展示 
-			// sdkwx.updatePrivacyShow(isContains, isShow);
+			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 isAgree = true;//隐私权政策是否取得用户同意  true是用户同意
+			sdkwx.updatePrivacyAgree(isAgree);
+			//检查定位权限
+			sdkwx.checkLocationPermission(function(res){
+				console.log(res);
+			});
 			getCurrentNo(res => {
 				// 进页面获取当前APP版本号(用于页面显示)
 				this.version = res.versionName;

+ 1 - 1
config/index.js

@@ -16,7 +16,7 @@ const dev = {
 	androidAppSecurity: "d22a1520cd354c158fc3ae468f48a52827a798946a0342ccbe77bdd4a494bce20e06b5f7d9ee4936b7313f816cde63d8dd2ca7ff55514a34a38d93cce1b7c4b1", //安卓网络货运企业在省平台申请的接入安全码
 	iosAppSecurity: "d22a1520cd354c158fc3ae468f48a52827a798946a0342ccbe77bdd4a494bce20e06b5f7d9ee4936b7313f816cde63d8dd2ca7ff55514a34a38d93cce1b7c4b1", //ios网络货运企业在省平台申请的接入安全码
 	enterpriseSenderCode: "3400000551", //网络货运企业在省平台申请的企业发送代码
-	environment: "debug", //环境:“debug”接入测试环境,“release”接入正式环境。
+	environment: "release", //环境:“debug”接入测试环境,“release”接入正式环境。
 }
 
 export function def() {

+ 10 - 13
manifest.json

@@ -2,8 +2,8 @@
     "name" : "畅运通",
     "appid" : "__UNI__9C76CB6",
     "description" : "",
-    "versionName" : "1.2.6",
-    "versionCode" : 126,
+    "versionName" : "1.2.8",
+    "versionCode" : 128,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {
@@ -26,9 +26,6 @@
             "Camera" : {},
             "Push" : {}
         },
-		"compatible":{
-			"ignoreVersion":true
-		},
         /* 应用发布信息 */
         "distribute" : {
             /* android打包配置 */
@@ -167,15 +164,15 @@
             },
             "Hdgq-LocSdkWX" : {
                 "__plugin_info__" : {
-                    "name" : "部网络货运信息交互系统位置信息SDK插件V2高德版(Android和iOS)",
-                    "description" : "部网络货运信息交互系统位置信息插件2.1.1,高德定位版本,支持Android和iOS,有问题联系qq:568647409,qq群:1042037517",
+                    "name" : "部网络货运信息交互系统位置信息单插件2.0.24",
+                    "description" : "部网络货运信息交互系统位置信息单插件2.0.24",
                     "platforms" : "Android,iOS",
-                    "url" : "https://ext.dcloud.net.cn/plugin?id=2648",
-                    "android_package_name" : "uni.UNI9C76CB6",
-                    "ios_bundle_id" : "uni.UNI9C76CB6",
-                    "isCloud" : true,
-                    "bought" : 1,
-                    "pid" : "2648",
+                    "url" : "",
+                    "android_package_name" : "",
+                    "ios_bundle_id" : "",
+                    "isCloud" : false,
+                    "bought" : -1,
+                    "pid" : "",
                     "parameters" : {}
                 }
             }

+ 11 - 20
pages/order/confirmLoading.vue

@@ -122,7 +122,7 @@
 <script>
 	let that;
 	//插件对象
-	// var sdkwx = uni.requireNativePlugin('Hdgq-LocSdkWX');
+	var sdkwx = uni.requireNativePlugin('Hdgq-LocSdkWX');
 	import uploadImage from '@/components/ossutil/uploadFile.js';
 	import * as config from '@/config/index.js'
 	import {
@@ -209,13 +209,16 @@
 			sdkwx.checkLocationPermission(function(res) {
 				console.log(res);
 			});
-			// this.auth()
+			
+			this.auth()
+			
 		},
 		onHide() {
 			uni.removeStorageSync(
 				"contractdata")
 		},
 		onShow() {
+			
 			this.firstAuthentication = uni.getStorageSync("firstAuthentication")
 			if (uni.getStorageSync('contractdata')) {
 				this.id = uni.getStorageSync('contractdata').id
@@ -236,10 +239,6 @@
 					if (res.type == "onSuccess") {
 						//成功
 						console.log("授权成功")
-						that.$refs.uToast.show({
-							type: 'error',
-							message: "授权成功"
-						})
 						console.log(res)
 					} else if (res.type == "onFailure") {
 						//失败
@@ -294,10 +293,6 @@
 						if (res.type == "onSuccess") {
 							//成功
 							console.log("开启定位成功!!!")
-							that.$refs.uToast.show({
-								type: 'error',
-								message: "开启定位成功"
-							})
 							console.log(res)
 							var shippingNoteInfos = res.data[0]; //运单信息列表
 							if (shippingNoteInfos) {
@@ -305,7 +300,7 @@
 								console.log("开始定时", dateTtime)
 								that.send()
 							}
-							that.affirm(val) //管局上报成功后提交
+							// that.affirm(val) //管局上报成功后提交
 						} else if (res.type == "onFailure") {
 							//失败
 							console.log("开启定位失败!!!")
@@ -336,10 +331,6 @@
 							var shippingNoteInfos = res.data[0]; //运单信息列表
 							let dateTtime = Number(shippingNoteInfos.interval + 1000)
 							console.log("开始定时", dateTtime)
-							that.$refs.uToast.show({
-								type: 'error',
-								message: "发送定位成功"
-							})
 							that.timer = setTimeout(() => {
 								that.send()
 							}, dateTtime);
@@ -350,10 +341,10 @@
 								console.log("定时")
 								that.send()
 							}, 915204); //15分钟
-							that.$refs.uToast.show({
-								type: 'error',
-								message: "管局上报-" + errorMsg
-							})
+							// that.$refs.uToast.show({
+							// 	type: 'error',
+							// 	message: "管局上报-" + errorMsg
+							// })
 						}
 					});
 			},
@@ -766,7 +757,7 @@
 							_title = '暂存成功!'
 							return
 						} else {
-							// that.start() //开始授权并开始定位
+							that.start() //开始授权并开始定位
 							_title = '提交成功!'
 						}
 						that.$helper.fUN_AmapLocation.start({

+ 1 - 1
pages/order/confirmUnloading.vue

@@ -757,7 +757,7 @@
 								if (this.detailData.statusFlag == 1) {
 									_title = '暂存成功!'
 								} else {
-									// that.stop()
+									that.stop()
 									_title = '提交成功!'
 								}
 								uni.hideLoading()

+ 3 - 3
pages/public/login.vue

@@ -154,9 +154,9 @@
 			var isAgree = true; //隐私权政策是否取得用户同意  true是用户同意
 			sdkwx.updatePrivacyAgree(isAgree);
 			//检查定位权限
-			// sdkwx.checkLocationPermission(function(res){
-			// 	console.log(res);
-			// });
+			sdkwx.checkLocationPermission(function(res){
+				console.log(res);
+			});
 			// #endif
 
 			if (wx.getUserProfile) {