ccj 2 years ago
parent
commit
ff8a6a0ee6
5 changed files with 37 additions and 46 deletions
  1. 10 20
      App.vue
  2. 1 1
      config/index.js
  3. 2 2
      manifest.json
  4. 10 9
      pages/mine/index1.vue
  5. 14 14
      util/request.js

+ 10 - 20
App.vue

@@ -304,26 +304,16 @@
 					if (res1.data.length > 0) {
 						this.shippingNoteInfos[0].shippingNoteNumber = res1.data[0].orderNo //运单号
 						this.shippingNoteInfos[0].serialNumber = "0000" //分单号
-						this.shippingNoteInfos[0].startCountrySubdivisionCode = res1.data[0]
-							.sendAdCode //起点位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填
-						this.shippingNoteInfos[0].endCountrySubdivisionCode = res1.data[0]
-							.unsendAdCode //到达位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填
-						this.shippingNoteInfos[0].startLongitude = res1.data[0]
-							.sendLongitude //起点位置经度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-						this.shippingNoteInfos[0].startLatitude = res1.data[0]
-							.sendLatitude //起点位置纬度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-						this.shippingNoteInfos[0].endLongitude = res1.data[0]
-							.unsendLongitude //到达位置经度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-						this.shippingNoteInfos[0].endLatitude = res1.data[0]
-							.unsendLatitude //到达位置纬度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-						this.shippingNoteInfos[0].driverName = res1.data[0]
-							.driverName //司机姓名,SDK 回调返回, 调用 start/stop/pause/restart/ 必填,send 时非必填
-						this.shippingNoteInfos[0].vehicleNumber = res1.data[0]
-							.carNumber //车牌号,SDK 回调返回,调 用 start/stop/pause/restart/必 填,send 时非必填
-						this.shippingNoteInfos[0].startLocationText = res1.data[0]
-							.sendCity //起点地址文字描述,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-						this.shippingNoteInfos[0].endLocationText = res1.data[0]
-							.unloadCity //到达地址文字描述,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+						this.shippingNoteInfos[0].startCountrySubdivisionCode = res1.data[0].sendAdCode //起点位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填
+						this.shippingNoteInfos[0].endCountrySubdivisionCode = res1.data[0].unsendAdCode //到达位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填
+						this.shippingNoteInfos[0].startLongitude = res1.data[0].sendLongitude //起点位置经度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+						this.shippingNoteInfos[0].startLatitude = res1.data[0].sendLatitude //起点位置纬度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+						this.shippingNoteInfos[0].endLongitude = res1.data[0].unsendLongitude //到达位置经度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+						this.shippingNoteInfos[0].endLatitude = res1.data[0].unsendLatitude //到达位置纬度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+						this.shippingNoteInfos[0].driverName = res1.data[0].driverName //司机姓名,SDK 回调返回, 调用 start/stop/pause/restart/ 必填,send 时非必填
+						this.shippingNoteInfos[0].vehicleNumber = res1.data[0].carNumber //车牌号,SDK 回调返回,调 用 start/stop/pause/restart/必 填,send 时非必填
+						this.shippingNoteInfos[0].startLocationText = res1.data[0].sendCity //起点地址文字描述,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+						this.shippingNoteInfos[0].endLocationText = res1.data[0].unloadCity //到达地址文字描述,调用 start/stop/pause/restart 时必 填,调用 send 非必填
 						this.shippingNoteInfos[0].interval = "5000"
 						console.log("查看参数", this.shippingNoteInfos)
 						// that.auth()

+ 1 - 1
config/index.js

@@ -9,7 +9,7 @@ const dev = {
 	debug: false,
 	//部网络货运 持续定位
 	androidAppId: "uni.UNI9C76CB6", //安卓网络货运企业APP的唯一标识
-	iosAppId: "uni.UNIDCD13AC", //ios网络货运企业APP的唯一标识
+	iosAppId: "uni.UNI9C76CB6", //ios网络货运企业APP的唯一标识
 	androidAppSecurity: "24c593b7037347e08857a6ab05fd231b0509f5bb7cb741078f524f506ad32db8", //安卓网络货运企业在省平台申请的接入安全码
 	iosAppSecurity: "b01e4805276646eeb25f0fad91de97a4f32e8c2c0e0d42e5b24cc4737e9f040f", //ios网络货运企业在省平台申请的接入安全码
 	enterpriseSenderCode: "23106960", //网络货运企业在省平台申请的企业发送代码

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "畅运通",
     "appid" : "__UNI__9C76CB6",
     "description" : "",
-    "versionName" : "1.1.4",
-    "versionCode" : 114,
+    "versionName" : "1.1.5",
+    "versionCode" : 115,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {

+ 10 - 9
pages/mine/index1.vue

@@ -21,17 +21,17 @@
 				driverName:"尚师傅",//司机姓名
 				remark:"测试",//备注
 				shippingNoteInfos:[{
-					shippingNoteNumber:"CY20221027826293",//运单号
+					shippingNoteNumber:"CY20221027199993",//运单号
 					serialNumber:"0000",//分单号
 					startCountrySubdivisionCode:"210804",//起点位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填
-					endCountrySubdivisionCode:"370202",//到达位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填
-					startLongitude:"122.13266",//起点位置经度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-					startLatitude:"40.26865",//起点位置纬度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-					endLongitude:"120.369557",//到达位置经度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-					endLatitude:"36.094406",//到达位置纬度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+					endCountrySubdivisionCode:"210804",//到达位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填
+					startLongitude:"122.17153",//起点位置经度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+					startLatitude:"40.266814",//起点位置纬度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+					endLongitude:"122.146806",//到达位置经度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+					endLatitude:"40.261078",//到达位置纬度,调用 start/stop/pause/restart 时必 填,调用 send 非必填
 					startLocationText:"营口市",//起点地址文字描述,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-					endLocationText:"青岛市",//到达地址文字描述,调用 start/stop/pause/restart 时必 填,调用 send 非必填
-					vehicleNumber:"辽A77777",//车牌号,SDK 回调返回,调 用 start/stop/pause/restart/必 填,send 时非必填
+					endLocationText:"营口市",//到达地址文字描述,调用 start/stop/pause/restart 时必 填,调用 send 非必填
+					vehicleNumber:"辽A12347",//车牌号,SDK 回调返回,调 用 start/stop/pause/restart/必 填,send 时非必填
 					driverName:"尚师傅",//司机姓名,SDK 回调返回, 调用 start/stop/pause/restart/ 必填,send 时非必填
 					interval:"5000"//请求时间间隔,SDK 回调返 回(单位 ms)				 
 				}],//运单信息列表,一辆车运单数最大支持数为 10
@@ -96,7 +96,7 @@
 					var shippingNoteInfos = res.data[0]; //运单信息列表
 					console.log(shippingNoteInfos, "查看返回的时间")
 					if (shippingNoteInfos) {
-						let dateTtime = Number(shippingNoteInfos.interval + 60000)
+						let dateTtime = Number(shippingNoteInfos.interval + 1000)
 						console.log("开始定时", dateTtime)
 						that.timer = setTimeout(() => {
 							console.log("定时")
@@ -180,6 +180,7 @@
 				});			
 			},
 			stop(){
+				var that = this
 				//结束定位
 				var vehicleNumber= this.vehicleNumber;//车牌号
 				var driverName = this.driverName;//司机姓名

+ 14 - 14
util/request.js

@@ -43,20 +43,20 @@ const baseRequest = (method, url, data, header) => {
 				// 		})
 				uni.request(baseDefaultOpts).then(
 					(res) => {
-						uni.request({
-							method: 'POST',
-							url: 'https://2817a7b4-7e07-48f0-a7b5-764a65999735.bspapp.com/api',
-							data: {
-								user: userInfo.phone,
-								phoneType: uni.getStorageSync('phoneType'),
-								type: "司机端",
-								request: baseDefaultOpts,
-								response: res
-							},
-							success(res) {
-								console.log(res);
-							}
-						})
+						// uni.request({
+						// 	method: 'POST',
+						// 	url: 'https://2817a7b4-7e07-48f0-a7b5-764a65999735.bspapp.com/api',
+						// 	data: {
+						// 		user: userInfo.phone,
+						// 		phoneType: uni.getStorageSync('phoneType'),
+						// 		type: "司机端",
+						// 		request: baseDefaultOpts,
+						// 		response: res
+						// 	},
+						// 	success(res) {
+						// 		console.log(res);
+						// 	}
+						// })
 
 
 						if (res.cookies) {