From d3c0c5787fbe378ab4b01c88d261d7d49cbbecfe Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期四, 25 九月 2025 16:52:27 +0800
Subject: [PATCH] 改为本地调试

---
 pages/index.vue |   92 +++++++++++++++++++++++-----------------------
 store/index.js  |    4 +-
 2 files changed, 48 insertions(+), 48 deletions(-)

diff --git a/pages/index.vue b/pages/index.vue
index eaeb155..1470c40 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -389,63 +389,63 @@
 			getPrintInfo() {
 				var mac = "ac:f4:2c:20:0d:b4";
 				
-				// mac = "e8:51:9e:7d:dc:95";
-				// this.$post({
-				// 	url: "/DevMachine/GetDevMachineByPdaMac",
-				// 	data: {
-				// 		pdaMac: mac,
-				// 	}
-				// }).then(res => {
-				// 	let devMachine = res.data.tbBillList;
-				// 	this.machineNo = devMachine.machineNo;
-				// 	this.machineName = "璋冭瘯妯″紡锛�" + this.machineNo + "鍙锋敞濉戞満"
+				mac = "e8:51:9e:7d:dc:95";
+				this.$post({
+					url: "/DevMachine/GetDevMachineByPdaMac",
+					data: {
+						pdaMac: mac,
+					}
+				}).then(res => {
+					let devMachine = res.data.tbBillList;
+					this.machineNo = devMachine.machineNo;
+					this.machineName = "璋冭瘯妯″紡锛�" + this.machineNo + "鍙锋敞濉戞満"
 
-				// 	uni.setStorageSync('machineNo', this.machineNo);
-				// 	uni.setStorageSync('printMac', devMachine.printMac);
+					uni.setStorageSync('machineNo', this.machineNo);
+					uni.setStorageSync('printMac', devMachine.printMac);
 
-				// 	console.log(devMachine.printMac);
+					console.log(devMachine.printMac);
 
-				// 	this.getWomdaaIsShow();
-				// });
+					this.getWomdaaIsShow();
+				});
 				
 				
-				if (plus.os.name == "Android") {
-					//鑾峰彇鎵嬫満MAC鍦板潃
-					var Context = plus.android.importClass("android.content.Context");
-					var WifiManager = plus.android.importClass("android.net.wifi.WifiManager");
-					var wifiManager = plus.android.runtimeMainActivity().getSystemService(Context.WIFI_SERVICE);
-					var WifiInfo = plus.android.importClass("android.net.wifi.WifiInfo");
-					var wifiInfo = wifiManager.getConnectionInfo();
-					mac = wifiInfo.getMacAddress();
+	// 			if (plus.os.name == "Android") {
+	// 				//鑾峰彇鎵嬫満MAC鍦板潃
+	// 				var Context = plus.android.importClass("android.content.Context");
+	// 				var WifiManager = plus.android.importClass("android.net.wifi.WifiManager");
+	// 				var wifiManager = plus.android.runtimeMainActivity().getSystemService(Context.WIFI_SERVICE);
+	// 				var WifiInfo = plus.android.importClass("android.net.wifi.WifiInfo");
+	// 				var wifiInfo = wifiManager.getConnectionInfo();
+	// 				mac = wifiInfo.getMacAddress();
 					
-					//濡傛灉mac涓衡��02:00:00:00:00:00鈥濓紝鍒欏彲鑳芥槸瀹夊崜6.0浠ヤ笂鐗堟湰锛屽垯浣跨敤鍙︿竴绉嶆柟娉曡幏鍙杕ac鍦板潃
-					if (mac == "02:00:00:00:00:00") {
-						mac = this.getMacNew();
-					}
-					//濡傛灉mac浣跨敤鏂版柟娉曚緷鐒舵槸鈥�02:00:00:00:00:00鈥濆垯涓嶈繘琛屼繚瀛�
-					if (mac == "02:00:00:00:00:00") {
-						return;
-					}
-					uni.setStorageSync('pdaMac', mac);
+	// 				//濡傛灉mac涓衡��02:00:00:00:00:00鈥濓紝鍒欏彲鑳芥槸瀹夊崜6.0浠ヤ笂鐗堟湰锛屽垯浣跨敤鍙︿竴绉嶆柟娉曡幏鍙杕ac鍦板潃
+	// 				if (mac == "02:00:00:00:00:00") {
+	// 					mac = this.getMacNew();
+	// 				}
+	// 				//濡傛灉mac浣跨敤鏂版柟娉曚緷鐒舵槸鈥�02:00:00:00:00:00鈥濆垯涓嶈繘琛屼繚瀛�
+	// 				if (mac == "02:00:00:00:00:00") {
+	// 					return;
+	// 				}
+	// 				uni.setStorageSync('pdaMac', mac);
 
-					this.$post({
-						url: "/DevMachine/GetDevMachineByPdaMac",
-						data: {
-							pdaMac: mac,
-						}
-					}).then(res => {
-						let devMachine = res.data.tbBillList;
-						this.machineNo = devMachine.machineNo;
-						this.machineName = "褰撳墠鏈哄彴锛�" + this.machineNo + "鍙锋敞濉戞満";
+	// 				this.$post({
+	// 					url: "/DevMachine/GetDevMachineByPdaMac",
+	// 					data: {
+	// 						pdaMac: mac,
+	// 					}
+	// 				}).then(res => {
+	// 					let devMachine = res.data.tbBillList;
+	// 					this.machineNo = devMachine.machineNo;
+	// 					this.machineName = "褰撳墠鏈哄彴锛�" + this.machineNo + "鍙锋敞濉戞満";
 
-						uni.setStorageSync('machineNo', this.machineNo);
-						uni.setStorageSync('printMac', devMachine.printMac);
+	// 					uni.setStorageSync('machineNo', this.machineNo);
+	// 					uni.setStorageSync('printMac', devMachine.printMac);
  
 
-						this.getWomdaaIsShow();
+	// 					this.getWomdaaIsShow();
 
-					});
-				}
+	// 				});
+	// 			}
 			},
 			save() {
 				let data = this.selectedItems();
diff --git a/store/index.js b/store/index.js
index bb889ef..8ca9068 100644
--- a/store/index.js
+++ b/store/index.js
@@ -11,8 +11,8 @@
 			serverURLInt:'http://192.168.11.251:10054',//鏈嶅姟鍣ㄤ綋妫� 10.0.1.104:10054
 			serverURL:'http://localhost:10054',//鏈湴璋冭瘯鍦板潃
 			//serverAPI:'http://78566b00.r1.cpolar.top/api',//澶栫綉鍦板潃
-			serverAPI:'http://192.168.0.94:10055/api', //鍐呯綉鍦板潃
-			// serverAPI:'http://localhost:63775/api',//鏈湴璋冭瘯鍦板潃
+			//serverAPI:'http://192.168.0.94:10055/api', //鍐呯綉鍦板潃
+			 serverAPI:'http://localhost:5106/api',//鏈湴璋冭瘯鍦板潃
 		}
 	},
 	mutations: {

--
Gitblit v1.9.3