From 8c0f5c1af766b0a716ef7f7ea9d6fbe94b7c3c5a Mon Sep 17 00:00:00 2001
From: 快乐的昕的电脑 <快乐的昕的电脑@DESKTOP-C2BQPQU>
Date: 星期五, 14 十一月 2025 15:32:23 +0800
Subject: [PATCH] 获取手机MAC地址
---
pages/index.vue | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/pages/index.vue b/pages/index.vue
index 03eae57..7e5c51c 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -408,25 +408,25 @@
getPrintInfo() {
var mac = "";
- mac = "74:24:ca:4f:b7:9b";
- this.$post({
- url: "/DevMachine/GetDevMachineByPdaMac",
- data: {
- pdaMac: mac,
- }
- }).then(res => {
- let devMachine = res.data.tbBillList;
- this.machineNo = devMachine.machineNo;
- this.machineName = "璋冭瘯妯″紡锛�" + this.machineNo + "鍙烽娇杞満"
+ //mac = "74:24:ca:4f:b7:9b";
+ //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();
- });
- return;
+ // this.getWomdaaIsShow();
+ //});
+ //return;
if (plus.os.name == "Android") {
--
Gitblit v1.9.3