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
12e033d7
Commit
12e033d7
authored
Jun 25, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加载
parent
42f232a9
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
3 additions
and
11 deletions
+3
-11
east.page.scss
src/app/east/east.page.scss
+1
-1
east.page.ts
src/app/east/east.page.ts
+0
-4
other.page.ts
src/app/other/other.page.ts
+0
-4
environment.prod.ts
src/environments/environment.prod.ts
+2
-2
No files found.
src/app/east/east.page.scss
View file @
12e033d7
...
...
@@ -22,7 +22,7 @@
.stepClass
{
display
:
inline-block
;
width
:
calc
(
100%
-
2
09
px
);
width
:
calc
(
100%
-
2
20
px
);
margin-left
:
60px
;
margin-right
:
5px
;
}
...
...
src/app/east/east.page.ts
View file @
12e033d7
...
...
@@ -70,7 +70,6 @@ export class EastPage implements OnInit {
op
:
a
.
value
?
0
:
1
,
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
};
this
.
load
.
toLoad
(
'指令已发送, 等待处理结果'
,
true
);
this
.
api
.
control
.
controlSwitch
([
req
,
(
data
)
=>
{
if
(
data
&&
data
.
code
===
1
)
{
this
.
getData
(
1
);
...
...
@@ -79,7 +78,6 @@ export class EastPage implements OnInit {
this
.
api
.
presentMsgToast
(
data
.
message
);
}
a
.
loading
=
false
;
this
.
load
.
offLoad
();
}]);
}
...
...
@@ -98,7 +96,6 @@ export class EastPage implements OnInit {
startTime
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
),
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
};
this
.
load
.
toLoad
(
'指令已发送, 等待处理结果'
,
true
);
this
.
api
.
control
.
controlSwitch
([
req
,
(
data
)
=>
{
if
(
data
&&
data
.
code
===
1
)
{
this
.
getData
(
1
);
...
...
@@ -107,7 +104,6 @@ export class EastPage implements OnInit {
this
.
api
.
presentMsgToast
(
data
.
message
);
}
this
.
cancel
();
this
.
load
.
offLoad
();
}]);
}
...
...
src/app/other/other.page.ts
View file @
12e033d7
...
...
@@ -60,7 +60,6 @@ export class OtherPage implements OnInit {
op
:
a
.
value
?
0
:
1
,
ts
:
parseInt
((
new
Date
().
getTime
()
/
1000
).
toString
(),
10
)
};
this
.
load
.
toLoad
(
'指令已发送, 等待处理结果'
,
true
);
this
.
api
.
control
.
controlSwitch
([
req
,
(
data
)
=>
{
if
(
data
&&
data
.
code
===
1
)
{
this
.
getData
(
1
);
...
...
@@ -69,7 +68,6 @@ export class OtherPage implements OnInit {
this
.
api
.
presentMsgToast
(
data
.
message
);
}
a
.
loading
=
false
;
this
.
load
.
offLoad
();
}]);
}
...
...
@@ -105,7 +103,6 @@ export class OtherPage implements OnInit {
op
:
a
.
v
?
0
:
1
,
type
:
a
.
t
};
this
.
load
.
toLoad
(
'指令已发送, 等待处理结果'
,
true
);
this
.
api
.
control
.
controlBatchSwitch
([
req
,
(
data
)
=>
{
if
(
data
.
code
===
1
)
{
this
.
getData
(
1
);
...
...
@@ -114,7 +111,6 @@ export class OtherPage implements OnInit {
this
.
api
.
presentMsgToast
(
data
.
message
);
}
a
.
d
=
false
;
this
.
load
.
offLoad
();
}]);
}
...
...
src/environments/environment.prod.ts
View file @
12e033d7
export
const
environment
=
{
production
:
true
,
//
url: 'http://pasture.witium.com/api', // 对外访问测试网地址
url
:
'http://172.16.1.13:8096'
,
// 测试
url
:
'http://pasture.witium.com/api'
,
// 对外访问测试网地址
//
url: 'http://172.16.1.13:8096', // 测试
};
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