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
42f232a9
Commit
42f232a9
authored
Jun 24, 2019
by
van.chen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
将下拉刷新改成点击刷新两个字刷新
parent
0918841d
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
34 additions
and
48 deletions
+34
-48
alarm.page.html
src/app/alarm/alarm.page.html
+1
-1
east.page.html
src/app/east/east.page.html
+18
-14
east.page.ts
src/app/east/east.page.ts
+2
-15
mine.page.html
src/app/mine/mine.page.html
+2
-2
other.page.html
src/app/other/other.page.html
+6
-9
other.page.ts
src/app/other/other.page.ts
+2
-4
environment.prod.ts
src/environments/environment.prod.ts
+2
-2
environment.ts
src/environments/environment.ts
+1
-1
No files found.
src/app/alarm/alarm.page.html
View file @
42f232a9
<div
class=
"mainCon"
>
<Navbar
[
leftContent
]="
icon
"
(
onLeftClick
)="
onLeftClick
()"
style=
"background-color: #28c9bd;position: fixed;top: 0;width: 100%;"
style=
"background-color: #28c9bd;position: fixed;top: 0;width: 100%;
z-index: 2;
"
>
报警信息
</Navbar>
...
...
src/app/east/east.page.html
View file @
42f232a9
<div
class=
"mainCon"
>
<div
class=
"mainCon"
style=
"padding-top: 45px;"
>
<Navbar
[
leftContent
]="
icon
"
(
onLeftClick
)="
onLeftClick
()"
style=
"background-color: #28c9bd"
[
rightContent
]="
r
"
style=
"background-color: #28c9bd;position: fixed;top: 0;width: 100%;z-index: 2;"
>
{{fieldRegionName}}控制
</Navbar>
<PullToRefresh
[
direction
]="
state
.
direction
"
[(
ngModel
)]="
state
.
refreshState
"
[
endReachedRefresh
]="
state
.
endReachedRefresh
"
(
onRefresh
)="
pullToRefresh
($
event
)"
style=
"min-height: calc(100% - 45px)"
>
<ng-template
#
r
>
<span
(
click
)="
pullToRefresh
()"
>
刷新
</span>
</ng-template>
<div
class=
"topPart"
>
<ListItem
multipleLine
*
ngIf=
"yewei || yewei === 0"
>
当前液位:
...
...
@@ -32,10 +30,15 @@
</ListItem>
<ListItem
multipleLine
*
ngIf=
"a.fieldDeviceName === '南水' ? nanClicked : beiClicked"
>
选择开启时间
<Stepper
class=
"stepClass"
[(
ngModel
)]="
duration
"
[
min
]="
1
"
[
showNumber
]="
true
"
></Stepper>
分钟
<Stepper
class=
"stepClass"
[(
ngModel
)]="
duration
"
[
min
]="
1
"
[
showNumber
]="
true
"
></Stepper>
分钟
<div
style=
"text-align: right;padding-top: 10px"
>
<div
Button
style=
"margin-right: 10px"
class=
"btn"
(
click
)="
cancel
()"
[
inline
]="
true
"
[
size
]="'
small
'"
[
type
]="'
default
'"
>
取消
</div>
<div
Button
(
click
)="
confirm
(
a
)"
class=
"btn"
[
inline
]="
true
"
[
size
]="'
small
'"
[
type
]="'
primary
'"
>
确认
</div>
<div
Button
style=
"margin-right: 10px"
class=
"btn"
(
click
)="
cancel
()"
[
inline
]="
true
"
[
size
]="'
small
'"
[
type
]="'
default
'"
>
取消
</div>
<div
Button
(
click
)="
confirm
(
a
)"
class=
"btn"
[
inline
]="
true
"
[
size
]="'
small
'"
[
type
]="'
primary
'"
>
确认
</div>
</div>
</ListItem>
</div>
...
...
@@ -46,14 +49,15 @@
<v-switch
[
value
]="
a
.
value
"
[
disabled
]="
true
"
[
loading
]="
a
.
loading
"
></v-switch>
</ListItem>
</div>
</PullToRefresh>
</div>
<ng-template
#
icon
>
<span
class=
"vo v-back"
></span>
</ng-template>
<ng-template
#
s1
>
<v-switch
[
value
]="
value
[
0
]"
[
disabled
]="
beiLoading
||
value
[
1
]"
(
click
)="
toggleNb
(
0
)"
[
loading
]="
nanLoading
"
></v-switch>
<v-switch
[
value
]="
value
[
0
]"
[
disabled
]="
beiLoading
||
value
[
1
]"
(
click
)="
toggleNb
(
0
)"
[
loading
]="
nanLoading
"
></v-switch>
</ng-template>
<ng-template
#
s2
>
<v-switch
[
value
]="
value
[
1
]"
[
disabled
]="
nanLoading
||
value
[
0
]"
(
click
)="
toggleNb
(
1
)"
[
loading
]="
beiLoading
"
></v-switch>
<v-switch
[
value
]="
value
[
1
]"
[
disabled
]="
nanLoading
||
value
[
0
]"
(
click
)="
toggleNb
(
1
)"
[
loading
]="
beiLoading
"
></v-switch>
</ng-template>
src/app/east/east.page.ts
View file @
42f232a9
...
...
@@ -26,17 +26,6 @@ export class EastPage implements OnInit {
fieldRegionNo
=
''
;
fieldRegionName
=
''
;
state
=
{
refreshState
:
{
currentState
:
'deactivate'
,
drag
:
false
},
direction
:
''
,
endReachedRefresh
:
false
,
data
:
[],
directionName
:
'up'
};
constructor
(
private
tf
:
Transfer
,
private
api
:
Api
,
private
load
:
Load
,
private
ac
:
ActivatedRoute
)
{
}
...
...
@@ -162,9 +151,7 @@ export class EastPage implements OnInit {
}]);
}
pullToRefresh
(
event
)
{
if
(
event
===
'down'
)
{
this
.
getData
(
1
);
}
pullToRefresh
()
{
this
.
getData
(
1
);
}
}
src/app/mine/mine.page.html
View file @
42f232a9
<div
class=
"mainContent"
>
<div
class=
"mainContent"
style=
"padding-top: 45px"
>
<Navbar
[
leftContent
]="
icon
"
(
onLeftClick
)="
onLeftClick
()"
style=
"background-color: #28c9bd"
style=
"background-color: #28c9bd
;position: fixed;top: 0;width: 100%;z-index: 2;
"
>
个人中心
</Navbar>
...
...
src/app/other/other.page.html
View file @
42f232a9
<div
class=
"mainCon"
>
<div
class=
"mainCon"
style=
"padding-top: 45px;"
>
<Navbar
[
leftContent
]="
icon
"
(
onLeftClick
)="
onLeftClick
()"
style=
"background-color: #28c9bd"
[
rightContent
]="
r
"
style=
"background-color: #28c9bd;position: fixed;top: 0;width: 100%;z-index: 2;"
>
{{fieldRegionName}}控制
</Navbar>
<PullToRefresh
[
direction
]="
state
.
direction
"
[(
ngModel
)]="
state
.
refreshState
"
[
endReachedRefresh
]="
state
.
endReachedRefresh
"
(
onRefresh
)="
pullToRefresh
($
event
)"
style=
"min-height: calc(100% - 45px)"
>
<ng-template
#
r
>
<span
(
click
)="
pullToRefresh
()"
>
刷新
</span>
</ng-template>
<div
class=
"topPart"
>
<ListItem
multipleLine
*
ngIf=
"yewei || yewei === 0"
>
当前液位:
...
...
@@ -39,7 +37,6 @@
<v-switch
[
value
]="
a
.
value
"
(
click
)="
toggle
(
a
)"
[
loading
]="
a
.
loading
"
></v-switch>
</ListItem>
</div>
</PullToRefresh>
</div>
<ng-template
#
icon
>
<span
class=
"vo v-back"
></span>
...
...
src/app/other/other.page.ts
View file @
42f232a9
...
...
@@ -148,9 +148,7 @@ export class OtherPage implements OnInit {
}]);
}
pullToRefresh
(
event
)
{
if
(
event
===
'down'
)
{
this
.
getData
(
1
);
}
pullToRefresh
()
{
this
.
getData
(
1
);
}
}
src/environments/environment.prod.ts
View file @
42f232a9
export
const
environment
=
{
production
:
true
,
url
:
'http://pasture.witium.com/api'
,
// 对外访问测试网地址
// url: 'http://172.16.1.52:8094
', // 测试
//
url: 'http://pasture.witium.com/api', // 对外访问测试网地址
url
:
'http://172.16.1.13:8096
'
,
// 测试
};
src/environments/environment.ts
View file @
42f232a9
...
...
@@ -8,7 +8,7 @@ export const environment = {
// url: 'http://cloud-test.witium.com:8096', // 测试
// url: 'http://172.16.1.53:8097', // cy
url
:
'http://172.16.1.52:8096'
,
// zz
// url: 'http://172.16.1.13:809
4
', // 测试
// url: 'http://172.16.1.13:809
6
', // 测试
};
/*
...
...
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