ccj 2 年之前
父節點
當前提交
fa51553cbd
共有 2 個文件被更改,包括 8 次插入8 次删除
  1. 1 1
      pages/mine/index1.vue
  2. 7 7
      pages/order/confirmLoading.vue

+ 1 - 1
pages/mine/index1.vue

@@ -21,7 +21,7 @@
 				driverName:"尚师傅",//司机姓名
 				remark:"测试",//备注
 				shippingNoteInfos:[{
-					shippingNoteNumber:"CY20221015674637",//运单号
+					shippingNoteNumber:"CY20221027826293",//运单号
 					serialNumber:"0000",//分单号
 					startCountrySubdivisionCode:"210804",//起点位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填
 					endCountrySubdivisionCode:"370202",//到达位置行政区划代码,调 用 start/stop/pause/restart 时 必填,调用 send 非必填

+ 7 - 7
pages/order/confirmLoading.vue

@@ -289,10 +289,10 @@
 								let dateTtime = Number(shippingNoteInfos.interval + 1000)
 								console.log("开始定时", dateTtime)
 								that.send()
-								that.timer = setInterval(() => {
-									console.log("定时")
-									that.send()
-								}, dateTtime);
+								// that.timer = setTimeout(() => {
+								// 	console.log("定时")
+								// 	that.send()
+								// }, dateTtime);
 							}
 						} else if (res.type == "onFailure") {
 							//失败
@@ -300,7 +300,7 @@
 							console.log(res)
 							var errorCode = res.data.errorCode; //错误码
 							var errorMsg = res.data.errorMsg; //错误描述
-							that.timer = setInterval(() => {
+							that.timer = setTimeout(() => {
 								console.log("定时")
 								that.send()
 							}, 915204);
@@ -319,13 +319,13 @@
 							var shippingNoteInfos = res.data[0]; //运单信息列表
 							let dateTtime = Number(shippingNoteInfos.interval + 1000)
 							console.log("开始定时", dateTtime)
-							that.timer = setInterval(() => {
+							that.timer = setTimeout(() => {
 								that.send()
 							}, dateTtime);
 						} else if (res.type == "onFailure") {
 							var errorCode = res.data.errorCode; //错误码
 							var errorMsg = res.data.errorMsg; //错误描述
-							that.timer = setInterval(() => {
+							that.timer = setTimeout(() => {
 								console.log("定时")
 								that.send()
 							}, 915204); //15分钟