"version": "1.2.19"

This commit is contained in:
17792275749
2025-12-16 18:15:44 +08:00
parent 21e69f06c3
commit 6924a1ff5b
3 changed files with 184 additions and 179 deletions
+2 -2
View File
@@ -32,8 +32,8 @@
"style": "v2",
"plugins": {
"ppScale-plugin": {
"version": "0.0.19",
"provider": "wx0826af4e4908f524"
"version": "1.2.19",
"provider": "wx0ffb48417ce6345c"
}
},
"permission": {
@@ -150,6 +150,10 @@ Component({
},
setUserInfo() {
// app.globalData.ppScale.activeProtocol.codeClearDeviceData("00", (res) => {
// console.log("deviceInfo === codeClearDeviceData", res);
// })
if(this.data.connectState == this.data.BLUE_STATE.CONNECTSUCCESS) {
if(this.data.userId) {
app.globalData.ppScale.activeProtocol.dataSyncUserInfo({
+8 -7
View File
@@ -48,7 +48,7 @@ Page({
console.log("deviceInfo === codeClearDeviceData", res);
wx.hideLoading();
if(res === 0) {
if (res === 0) {
let scaleDeviceId = ppScale.device.mac.replace(/:/g, '');
let params = {
equipmentCode: scaleDeviceId,
@@ -86,13 +86,13 @@ Page({
ppScale.device.connection = this.data.device;
const nameArr = this.data.device.name.split("-");
ppScale.version = nameArr.length === 5 ? "domain2" : "domain1";
if(this.data.progressNext) {
if (this.data.progressNext) {
let scaleDeviceId = ppScale.device.mac.replace(/:/g, '');
let params = {
sn: scaleDeviceId,
};
$.ajax("weighingScale/getUserInfoBySn", params, "GET", true, "正在同步用户信息...").then(res => {
if(res.result) {
if (res.result) {
wx.setStorageSync("userInfo", res.result);
this.setProgress();
} else {
@@ -125,7 +125,7 @@ Page({
// 选择了某个设备
deviceChange(e) {
let status = e.detail.status;
if(status) {
if (status) {
wx.showLoading({
title: "蓝牙配对中...",
mask: true
@@ -139,6 +139,7 @@ Page({
},
connectedDevice(e) {
ppScale.plugin.Blue.stop();
wx.showLoading({
title: "正在尝试连接...",
mask: true
@@ -151,7 +152,7 @@ Page({
},
connectedDevice_(device) {
if(device) {
if (device) {
this.setData({
device: device
})
@@ -164,14 +165,14 @@ Page({
progressNext: true
})
let status = e.detail.status;
if(status) {
if (status) {
this.setProgress();
}
},
setDeviceConfig(e) {
let status = e.detail.status;
if(status) {
if (status) {
this.setProgress();
}
},