Commit 1ca74b70 authored by van.chen's avatar van.chen

617的bug修改

parent 9911b47a
<?xml version='1.0' encoding='utf-8'?>
<widget id="online.hubeidiyi" version="1.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<widget id="online.hubeidiyi" version="1.1.0" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
<name>牧场云</name>
<description>牧场物业管理系统</description>
<author email="van_chen@foxmail.com" href="http://hubeidiyi.online/">Van.chen</author>
......
......@@ -102,10 +102,10 @@ export class Api {
}
}
async presentMsgToast(msg, wz?) {
async presentMsgToast(msg, wz?, t?) {
const toast = await this.toast.create({
message: msg,
duration: 2000,
duration: t ? t : 2000,
mode: 'ios',
cssClass: 'msgToast',
position: wz ? wz : 'bottom'
......
......@@ -53,7 +53,7 @@ export class Mqtt {
led: '#ff0000'
}]);
this.api.presentMsgToast(
this.api.formatTime('yyyy-MM-dd hh:mm:ss', new Date(obj.alarmTime)) + ' ' + obj.description, 'bottom'
this.api.formatTime('yyyy-MM-dd hh:mm:ss', new Date(obj.alarmTime)) + ' ' + obj.description, 'bottom', 5000
);
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment