diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
index e5a582a..426163d 100644
--- a/.hbuilderx/launch.json
+++ b/.hbuilderx/launch.json
@@ -6,7 +6,8 @@
"type" : "uni-app:app-ios"
},
{
- "playground" : "standard",
+ "customPlaygroundType" : "local",
+ "playground" : "custom",
"type" : "uni-app:app-android"
}
]
diff --git a/androidPrivacy.json b/androidPrivacy.json
index 0d726ca..6e900af 100644
--- a/androidPrivacy.json
+++ b/androidPrivacy.json
@@ -1,3 +1,29 @@
{
- "prompt" : "template"
+ "version" : "1",
+ "prompt" : "template",
+ "title" : "服务协议和隐私政策",
+ "message" : " 请你务必审慎阅读、充分理解“服务协议”和“隐私政策”各条款,包括但不限于:为了更好的向你提供服务,我们需要收集你的设备标识、操作日志等信息用于分析、优化应用性能。
你可阅读《服务协议》和《隐私政策》了解详细信息。如果你同意,请点击下面按钮开始接受我们的服务。",
+ "buttonAccept" : "同意并接受",
+ "buttonRefuse" : "暂不同意",
+ "hrefLoader" : "system",
+ "backToExit" : "false",
+ "disagreeMode" : {
+ "support" : false,
+ "loadNativePlugins" : false,
+ "visitorEntry" : false,
+ "showAlways" : true
+ },
+ "styles" : {
+ "backgroundColor" : "#FFFFFF",
+ "borderRadius" : "5px",
+ "title" : {
+ "color" : "#FFFFFF"
+ },
+ "buttonAccept" : {
+ "color" : "#b9e203"
+ },
+ "buttonRefuse" : {
+ "color" : "#555555"
+ }
+ }
}
diff --git a/manifest.json b/manifest.json
index 9058167..d36339b 100644
--- a/manifest.json
+++ b/manifest.json
@@ -57,7 +57,8 @@
],
"minSdkVersion" : 21,
"abiFilters" : [ "armeabi-v7a", "arm64-v8a", "x86" ],
- "schemes" : ""
+ "schemes" : "",
+ "targetSdkVersion" : 30
},
/* ios打包配置 */
"ios" : {
@@ -139,7 +140,8 @@
}
},
"splashscreen" : {
- "useOriginalMsgbox" : true
+ "useOriginalMsgbox" : true,
+ "androidStyle" : "common"
}
}
},
diff --git a/pages.json b/pages.json
index 80fb6e9..ce41a16 100644
--- a/pages.json
+++ b/pages.json
@@ -348,6 +348,13 @@
{
"navigationBarTitleText" : "HBY102"
}
+ },
+ {
+ "path" : "pages/common/user/logOff",
+ "style" :
+ {
+ "navigationBarTitleText" : "注销账号"
+ }
}
diff --git a/pages/4877/BJQ4877.vue b/pages/4877/BJQ4877.vue
index 825a758..ac72311 100644
--- a/pages/4877/BJQ4877.vue
+++ b/pages/4877/BJQ4877.vue
@@ -108,7 +108,7 @@
@@ -382,7 +382,7 @@
latitude: null,
longitude: null,
alarmStatus: null,
- detailPageUrl: "/pages/650/HBY650",
+ detailPageUrl: "/pages/4877/BJQ4877",
showConfirm: false
},
}
@@ -419,7 +419,7 @@
eventChannel.on('detailData', function(data) {
- console.log("收到父页面的参数:" + JSON.stringify(data));
+ // console.log("收到父页面的参数:" + JSON.stringify(data));
let checkIds = uni.getStorageSync("4877CheckColor_" + data.data.id);
if (checkIds && checkIds.length) {
@@ -474,6 +474,8 @@
these.formData.bleStatu = false;
these.formData.deviceId = f.deviceId;
+ these.formData.warnTime=null;
+ these.formData.sta_SOSType='sos_off';
ble.LinkBlue(f.deviceId, f.writeServiceId, f.wirteCharactId, f.notifyCharactId).then(res => {
these.formData.bleStatu = true;
});
@@ -511,6 +513,15 @@
these.dic.groups = groups;
+ let checks = groups.map(item => {
+ return item.id
+ });
+
+ uni.setStorage({
+ key: "4877CheckColor_" + this.device.id,
+ data: checks
+ });
+
}catch(err){
@@ -704,6 +715,21 @@
}
groupSet();
},
+ SOSEvt(){
+ if (this.formData.sta_SOSType == 'sos') {
+ this.formData.sta_ArrowType='arrow_off';
+ this.formData.warnTime = 0;
+ clearInterval(interval);
+ interval = setInterval(() => {
+ this.formData.warnTime += 1;
+ }, 1000)
+ }else{
+ clearInterval(interval);
+ interval=null;
+ this.formData.warnTime = 0;
+ }
+ },
+
sosSetting(item, index) {
let f = this.getDevice();
@@ -724,14 +750,8 @@
ble.sendString(f.deviceId, json, f.writeServiceId, f.wirteCharactId, 30).then(res => {
this.formData.sta_GroupType = -1;
this.formData.sta_SOSType = json.ins_SOSType
- if (this.formData.sta_SOSType == 'sos') {
- this.formData.warnTime = 0;
- clearInterval(interval);
- interval = setInterval(() => {
- this.formData.warnTime += 1;
- }, 1000)
- }
-
+
+ these.SOSEvt();
})
.catch(ex => {
@@ -902,9 +922,15 @@
this.formData[key] = data[key];
}
});
+
+
let msg = [];
if (data.sta_SOSType == 'sos') {
msg.push("设备声光报警中");
+
+ }
+ if('sta_SOSType' in data){
+ these.SOSEvt();
}
if (data.sta_PowerPercent <= 20) {
msg.push("设备电量低");
diff --git a/pages/common/forgotPassword/index.vue b/pages/common/forgotPassword/index.vue
index cdffbe7..2e3445e 100644
--- a/pages/common/forgotPassword/index.vue
+++ b/pages/common/forgotPassword/index.vue
@@ -43,8 +43,8 @@