兼容 新老版本
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
"style": "v2",
|
"style": "v2",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"ppScale-plugin": {
|
"ppScale-plugin": {
|
||||||
"version": "0.0.16",
|
"version": "0.0.19",
|
||||||
"provider": "wx0826af4e4908f524"
|
"provider": "wx0826af4e4908f524"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -84,7 +84,8 @@ Page({
|
|||||||
} else {
|
} else {
|
||||||
ppScale.device.name = this.data.device.name;
|
ppScale.device.name = this.data.device.name;
|
||||||
ppScale.device.connection = this.data.device;
|
ppScale.device.connection = this.data.device;
|
||||||
ppScale.version = this.data.device.name.includes("YX") ? "domain2" : "domain1";
|
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 scaleDeviceId = ppScale.device.mac.replace(/:/g, '');
|
||||||
let params = {
|
let params = {
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ Page({
|
|||||||
|
|
||||||
app.globalData.ppScale.device.name = this.data.device.name;
|
app.globalData.ppScale.device.name = this.data.device.name;
|
||||||
app.globalData.ppScale.device.connection = this.data.device;
|
app.globalData.ppScale.device.connection = this.data.device;
|
||||||
app.globalData.ppScale.version = this.data.device.name.includes("YX") ? "domain2" : "domain1";
|
const nameArr = this.data.device.name.split("-");
|
||||||
|
app.globalData.ppScale.version = nameArr.length === 5 ? "domain2" : "domain1";
|
||||||
|
|
||||||
wx.hideLoading();
|
wx.hideLoading();
|
||||||
this.selectComponent('#replaceNetwork1Component').getWiFiList();
|
this.selectComponent('#replaceNetwork1Component').getWiFiList();
|
||||||
|
|||||||
Reference in New Issue
Block a user