Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
muChangApp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
WitCloud
muChangApp
Commits
1ca74b70
Commit
1ca74b70
authored
Jun 18, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
617的bug修改
parent
9911b47a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
config.xml
config.xml
+1
-1
api.ts
src/app/service/api.ts
+2
-2
mqtt.ts
src/app/service/mqtt.ts
+1
-1
No files found.
config.xml
View file @
1ca74b70
<?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>
...
...
src/app/service/api.ts
View file @
1ca74b70
...
...
@@ -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'
...
...
src/app/service/mqtt.ts
View file @
1ca74b70
...
...
@@ -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
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment