ccj 2 лет назад
Родитель
Сommit
1d413ea246
3 измененных файлов с 48 добавлено и 8 удалено
  1. 11 6
      config/index.js
  2. 20 2
      manifest.json
  3. 17 0
      pages/order/confirmLoading.vue

+ 11 - 6
config/index.js

@@ -6,12 +6,17 @@ const dev = {
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false,
 	//部网络货运 持续定位
-	androidAppId: "uni.UNI9C76CB6", //安卓网络货运企业APP的唯一标识
-	iosAppId: "uni.UNI9C76CB6", //ios网络货运企业APP的唯一标识
-	androidAppSecurity: "24c593b7037347e08857a6ab05fd231b0509f5bb7cb741078f524f506ad32db8", //安卓网络货运企业在省平台申请的接入安全码
-	iosAppSecurity: "b01e4805276646eeb25f0fad91de97a4f32e8c2c0e0d42e5b24cc4737e9f040f", //ios网络货运企业在省平台申请的接入安全码
-	enterpriseSenderCode: "23106960", //网络货运企业在省平台申请的企业发送代码
-	environment: "release", //环境:“debug”接入测试环境,“release”接入正式环境。
+	// androidAppId: "uni.UNI9C76CB6", //安卓网络货运企业APP的唯一标识
+	// iosAppId: "uni.UNI9C76CB6", //ios网络货运企业APP的唯一标识
+	// androidAppSecurity: "24c593b7037347e08857a6ab05fd231b0509f5bb7cb741078f524f506ad32db8", //安卓网络货运企业在省平台申请的接入安全码
+	// iosAppSecurity: "b01e4805276646eeb25f0fad91de97a4f32e8c2c0e0d42e5b24cc4737e9f040f", //ios网络货运企业在省平台申请的接入安全码
+	// enterpriseSenderCode: "23106960", //网络货运企业在省平台申请的企业发送代码
+	androidAppId: "com.wwyly.wlhy.driver", //安卓网络货运企业APP的唯一标识
+	iosAppId: "com.wwyly.wlhy.driver", //ios网络货运企业APP的唯一标识
+	androidAppSecurity: "d22a1520cd354c158fc3ae468f48a52827a798946a0342ccbe77bdd4a494bce20e06b5f7d9ee4936b7313f816cde63d8dd2ca7ff55514a34a38d93cce1b7c4b1", //安卓网络货运企业在省平台申请的接入安全码
+	iosAppSecurity: "d22a1520cd354c158fc3ae468f48a52827a798946a0342ccbe77bdd4a494bce20e06b5f7d9ee4936b7313f816cde63d8dd2ca7ff55514a34a38d93cce1b7c4b1", //ios网络货运企业在省平台申请的接入安全码
+	enterpriseSenderCode: "3400000551", //网络货运企业在省平台申请的企业发送代码
+	environment: "debug", //环境:“debug”接入测试环境,“release”接入正式环境。
 }
 
 export function def() {

+ 20 - 2
manifest.json

@@ -11,7 +11,7 @@
             "ignoreVersion" : true
         },
         "usingComponents" : true,
-        "nvueStyleCompiler" : "智运",
+        "nvueStyleCompiler" : "畅运通",
         "compilerVersion" : 3,
         "splashscreen" : {
             "alwaysShowBeforeRender" : true,
@@ -23,8 +23,12 @@
         "modules" : {
             "Geolocation" : {},
             "Maps" : {},
-            "Camera" : {}
+            "Camera" : {},
+            "Push" : {}
         },
+		"compatible":{
+			"ignoreVersion":true
+		},
         /* 应用发布信息 */
         "distribute" : {
             /* android打包配置 */
@@ -40,6 +44,7 @@
                     "<uses-permission android:name=\"android.permission.CAMERA\"/>",
                     "<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
                     "<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
+                    "<uses-permission android:name=\"android.permission.CLEAR_APP_USER_DATA\"/>",
                     "<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
                     "<uses-permission android:name=\"android.permission.GET_PACKAGE_SIZE\"/>",
                     "<uses-permission android:name=\"android.permission.INSTALL_PACKAGES\"/>",
@@ -83,6 +88,19 @@
                         "appkey_ios" : "450806e9eef29de257faad3a06ec7e9a",
                         "appkey_android" : "dc40c1be0513c1c8e01eb560318dbc68"
                     }
+                },
+                "push" : {
+                    "unipush" : {
+                        "icons" : {
+                            "small" : {
+                                "ldpi" : "unpackage/res/icons/20x20.png",
+                                "mdpi" : "unpackage/res/icons/29x29.png",
+                                "hdpi" : "unpackage/res/icons/40x40.png",
+                                "xhdpi" : "unpackage/res/icons/58x58.png",
+                                "xxhdpi" : "unpackage/res/icons/60x60.png"
+                            }
+                        }
+                    }
                 }
             },
             "icons" : {

+ 17 - 0
pages/order/confirmLoading.vue

@@ -236,6 +236,10 @@
 					if (res.type == "onSuccess") {
 						//成功
 						console.log("授权成功")
+						that.$refs.uToast.show({
+							type: 'error',
+							message: "授权成功"
+						})
 						console.log(res)
 					} else if (res.type == "onFailure") {
 						//失败
@@ -284,11 +288,16 @@
 				param.driverName = this.firstAuthentication.driverName
 				param.remark = remark
 				param.shippingNoteInfos = this.shippingNoteInfos
+				
 				sdkwx.start(this.detailData.carNo, this.firstAuthentication.driverName, remark, this.shippingNoteInfos,
 					function(res) {
 						if (res.type == "onSuccess") {
 							//成功
 							console.log("开启定位成功!!!")
+							that.$refs.uToast.show({
+								type: 'error',
+								message: "开启定位成功"
+							})
 							console.log(res)
 							var shippingNoteInfos = res.data[0]; //运单信息列表
 							if (shippingNoteInfos) {
@@ -327,6 +336,10 @@
 							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);
@@ -337,6 +350,10 @@
 								console.log("定时")
 								that.send()
 							}, 915204); //15分钟
+							that.$refs.uToast.show({
+								type: 'error',
+								message: "管局上报-" + errorMsg
+							})
 						}
 					});
 			},