From 23c8d096b12843c705bca2da4c9bc25b2739406b Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Wed, 23 Feb 2022 11:56:41 +0800
Subject: [PATCH] +安卓任务处理逻辑

---
 App.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/App.vue b/App.vue
index 4a87d6b..38daff1 100644
--- a/App.vue
+++ b/App.vue
@@ -34,7 +34,7 @@
 		},
 		watch: {
 			socketValue() {
-				// console.log(this.socketValue);
+				console.log(this.socketValue);
 				let that = this;
 				if (that.socketValue.type === "start") {
 					// console.log("任务开启vuevueveu")
@@ -47,6 +47,7 @@
 					// 	},
 					// 	success(res) {
 					// let vals = res.data.data.records[0];
+					let types = uni.getSystemInfoSync().platform;
 					let that = this,
 						d = {
 							serid: uni.getStorageSync("ids") || that.$store.state.puserID,
@@ -72,6 +73,12 @@
 										appenUrl: that.$store.state.piAPI,
 										isOn: true
 									});
+									if(types == "android"){
+										uni.navigateTo({
+											url: "/pages/grabOrders/map?data=" + JSON.stringify(val),
+										});
+										return
+									}
 									uni.redirectTo({
 										url: "/pages/grabOrders/map?data=" + JSON.stringify(val),
 									});
@@ -85,6 +92,9 @@
 				} else if (that.socketValue.type === "stop") {
 					// console.log("任务结束vuevueveu")
 					// this.$store.commit("stopTask", this.socketValue.rid);
+					// uni.reLaunch({
+					// 	url: "/pages/home/home"
+					// });
 				}
 			}
 		},

--
Gitblit v1.9.3