Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
DrWater
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
路少雄
DrWater
Commits
568319f6
Commit
568319f6
authored
Jun 07, 2024
by
路少雄
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'main' of
http://git.imoreme.com/lushaoxiong/DrWater
into main
parents
8be980f9
e2c8c66f
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
102 additions
and
27 deletions
+102
-27
DJMHomeTY.xcworkspace/xcuserdata/nana.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBackBtn.imageset/Contents.json
+22
-0
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBackBtn.imageset/组 61@2x.png
+0
-0
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBackBtn.imageset/组 61@3x.png
+0
-0
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBtn.imageset/Contents.json
+22
-0
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBtn.imageset/清洁@2x.png
+0
-0
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBtn.imageset/清洁@3x.png
+0
-0
DJMHomeTY/Page/DRFacial/Controller/DXHFXVC.m
+6
-1
DJMHomeTY/Page/DRFacial/View/DXHFXView.h
+1
-1
DJMHomeTY/Page/DRFacial/View/DXHFXView.m
+45
-19
DJMHomeTY/Page/DeviceListPage/Controller/DXDeviceListVC.m
+6
-6
No files found.
DJMHomeTY.xcworkspace/xcuserdata/nana.xcuserdatad/UserInterfaceState.xcuserstate
View file @
568319f6
No preview for this file type
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBackBtn.imageset/Contents.json
0 → 100644
View file @
568319f6
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"组 61@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"组 61@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBackBtn.imageset/组 61@2x.png
0 → 100644
View file @
568319f6
13.1 KB
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBackBtn.imageset/组 61@3x.png
0 → 100644
View file @
568319f6
31 KB
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBtn.imageset/Contents.json
0 → 100644
View file @
568319f6
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"清洁@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"filename"
:
"清洁@3x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBtn.imageset/清洁@2x.png
0 → 100644
View file @
568319f6
1.17 KB
DJMHomeTY/Assets.xcassets/HFX/HFX_upkeepBtn.imageset/清洁@3x.png
0 → 100644
View file @
568319f6
2.17 KB
DJMHomeTY/Page/DRFacial/Controller/DXHFXVC.m
View file @
568319f6
...
...
@@ -180,8 +180,11 @@
self
.
localIsupkeep
=
[
dic
objectForKey
:
@"isUpkeep"
];
if
([
self
.
localIsupkeep
isEqualToString
:
@"0"
])
{
self
.
myView
.
byBtn
.
hidden
=
NO
;
self
.
myView
.
startUpkeepBtn
.
hidden
=
NO
;
}
else
{
self
.
myView
.
byBtn
.
hidden
=
YES
;
self
.
myView
.
startUpkeepBtn
.
hidden
=
YES
;
}
}
}
...
...
@@ -277,8 +280,10 @@
weakSelf
.
isNeedUpkeep
=
[
responseObject
[
@"data"
]
boolValue
];
if
(
weakSelf
.
isNeedUpkeep
){
[
weakSelf
showUpkeepAlert
];
//
[weakSelf showUpkeepAlert];
weakSelf
.
myView
.
byBtn
.
hidden
=
NO
;
weakSelf
.
myView
.
startUpkeepBtn
.
hidden
=
NO
;
}
else
{
weakSelf
.
myView
.
byBtn
.
hidden
=
YES
;
}
...
...
DJMHomeTY/Page/DRFacial/View/DXHFXView.h
View file @
568319f6
...
...
@@ -86,7 +86,7 @@ typedef enum : NSUInteger{
@property
(
nonatomic
,
strong
)
UILabel
*
speedStressTitleLb
;
@property
(
nonatomic
,
strong
)
UIButton
*
startUpkeepBtn
;
...
...
DJMHomeTY/Page/DRFacial/View/DXHFXView.m
View file @
568319f6
...
...
@@ -167,29 +167,29 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
-
(
void
)
creatUI
{
self
.
backgroundColor
=
XHColorRGB
(
247
,
247
,
247
);
_byBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
_byBtn
setTitle
:
HJLocalizedString
(
@"建议本次使用结束后进行设备保养"
)
forState
:
UIControlStateNormal
];
[
_byBtn
addTarget
:
self
action
:
@selector
(
controlWithItem
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
_byBtn
.
tag
=
Itembaoyang
;
[
_byBtn
setImage
:[
UIImage
imageNamed
:
@"HFX_froget"
]
forState
:
UIControlStateNormal
];
_byBtn
.
backgroundColor
=
XHColorRGB
(
252
,
214
,
214
);
[
_byBtn
setTitleColor
:
XHColorRGB
(
175
,
44
,
35
)
forState
:
UIControlStateNormal
];
_byBtn
.
titleLabel
.
font
=
XHFontSize
(
12
);
_byBtn
.
contentHorizontalAlignment
=
UIControlContentHorizontalAlignmentLeft
;
_byBtn
.
semanticContentAttribute
=
UISemanticContentAttributeForceRightToLeft
;
_byBtn
.
titleEdgeInsets
=
UIEdgeInsetsMake
(
0
,
20
,
0
,
0
);
_byBtn
.
imageEdgeInsets
=
UIEdgeInsetsMake
(
0
,
_byBtn
.
titleLabel
.
bounds
.
size
.
width
+
25
,
0
,
-
(
_byBtn
.
titleLabel
.
bounds
.
size
.
width
+
10
));
[
self
addSubview
:
_byBtn
];
[
_byBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
top
.
equalTo
(
self
);
make
.
height
.
equalTo
(
@25
);
}];
self
.
byBtn
.
hidden
=
YES
;
//
_byBtn = [UIButton buttonWithType:UIButtonTypeCustom];
//
[_byBtn setTitle:HJLocalizedString(@"建议本次使用结束后进行设备保养") forState:UIControlStateNormal];
//
[_byBtn addTarget:self action:@selector(controlWithItem:) forControlEvents:UIControlEventTouchUpInside];
//
_byBtn.tag = Itembaoyang;
//
[_byBtn setImage:[UIImage imageNamed:@"HFX_froget"] forState:UIControlStateNormal];
//
_byBtn.backgroundColor = XHColorRGB(252, 214, 214);
//
[_byBtn setTitleColor:XHColorRGB(175, 44, 35) forState:UIControlStateNormal];
//
_byBtn.titleLabel.font = XHFontSize(12);
//
_byBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
//
_byBtn.semanticContentAttribute = UISemanticContentAttributeForceRightToLeft;
//
_byBtn.titleEdgeInsets = UIEdgeInsetsMake(0, 20, 0, 0);
//
_byBtn.imageEdgeInsets = UIEdgeInsetsMake(0, _byBtn.titleLabel.bounds.size.width + 25, 0, -(_byBtn.titleLabel.bounds.size.width + 10));
//
[self addSubview:_byBtn];
//
[_byBtn mas_makeConstraints:^(MASConstraintMaker *make) {
//
make.left.right.top.equalTo(self);
//
make.height.equalTo(@25);
//
}];
//
self.byBtn.hidden = YES;
UIView
*
centerLine
=
[
UIView
new
];
[
self
addSubview
:
centerLine
];
[
centerLine
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
self
.
byBtn
.
mas_bottom
).
offset
(
22
*
IPhone6ScaleHeight
);
make
.
top
.
equalTo
(
self
).
offset
(
22
*
IPhone6ScaleHeight
);
make
.
centerX
.
equalTo
(
self
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
0
.
1
,
0
.
1
));
}];
...
...
@@ -640,7 +640,26 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
_speedStressLb
.
textColor
=
XHColorRGB_Alpha
(
198
,
195
,
195
,
1
);
_speedStressTitleLb
.
textColor
=
XHColorRGB_Alpha
(
198
,
195
,
195
,
1
);
[
self
setTimeLineWithString
:
_currentVideoList
[
0
].
describeInfo
];
_startUpkeepBtn
=
[
UIButton
buttonWithType
:
UIButtonTypeCustom
];
[
_startUpkeepBtn
setBackgroundImage
:[
UIImage
imageNamed
:
@"HFX_upkeepBackBtn"
]
forState
:
UIControlStateNormal
];
[
_startUpkeepBtn
setImage
:[
UIImage
imageNamed
:
@"HFX_upkeepBtn"
]
forState
:
UIControlStateNormal
];
[
_startUpkeepBtn
setTitle
:[
NSString
stringWithFormat
:
@" %@"
,
HJLocalizedString
(
@"立即进行设备保养"
)]
forState
:
UIControlStateNormal
];
[
_startUpkeepBtn
setTitleColor
:
XHColorRGB_Alpha
(
164
,
47
,
36
,
1
)
forState
:
UIControlStateNormal
];
_startUpkeepBtn
.
titleLabel
.
font
=
XHFontSizeBold
(
14
);
_startUpkeepBtn
.
hidden
=
YES
;
[
_startUpkeepBtn
addTarget
:
self
action
:
@selector
(
startUpkeepClik
:
)
forControlEvents
:
UIControlEventTouchUpInside
];
[
self
addSubview
:
_startUpkeepBtn
];
[
_startUpkeepBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
bottom
.
centerX
.
equalTo
(
self
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
334
,
67
));
make
.
bottom
.
mas_equalTo
(
-
35
);
}];
}
-
(
BOOL
)
gestureRecognizer
:
(
UIGestureRecognizer
*
)
gestureRecognizer
shouldReceiveTouch
:
(
UITouch
*
)
touch
{
if
([
touch
.
view
isDescendantOfView
:
self
.
collectionView
])
{
if
([
self
.
collectionView
indexPathForItemAtPoint
:[
touch
locationInView
:
self
.
collectionView
]])
{
...
...
@@ -957,6 +976,13 @@ static NSString *dXHFXVideoCell = @"DXHFXVideoCell";
[
self
.
delegate
deviceControlWithTag
:
sender
.
tag
];
}
}
-
(
void
)
startUpkeepClik
:
(
UIButton
*
)
button
{
if
(
self
.
delegate
&&
[
self
.
delegate
respondsToSelector
:
@selector
(
deviceControlWithTag
:)]){
[
self
.
delegate
deviceControlWithTag
:
Itembaoyang
];
}
}
-
(
void
)
changeVolume
:
(
UIButton
*
)
sender
{
sender
.
selected
=
!
sender
.
selected
;
self
.
playerView
.
currentPlayerManager
.
muted
=
!
sender
.
selected
;
...
...
DJMHomeTY/Page/DeviceListPage/Controller/DXDeviceListVC.m
View file @
568319f6
...
...
@@ -233,12 +233,12 @@ static NSString *dxmachineCell = @"DXDeviceListCell";
@"imgName"
:
@"DXDr_HFX"
,
@"tag"
:
@
(
DR04BtnTag
)
},
@{
@"DeviceType"
:
@"Dr.热电仪"
,
@"DeviceCode"
:
@"Dr-05"
,
@"DeviceId"
:
@"Dr-05"
,
@"imgName"
:
@"DXDr_HFX"
,
@"tag"
:
@
(
DR05BtnTag
)
}
//
@{@"DeviceType":@"Dr.热电仪",
//
@"DeviceCode":@"Dr-05",
//
@"DeviceId":@"Dr-05",
//
@"imgName":@"DXDr_HFX",
//
@"tag":@(DR05BtnTag)
//
}
];
self
.
dataArr
=
[
XHDeviceListModel
mj_objectArrayWithKeyValuesArray
:
arr
];
[
self
.
myTabView
reloadData
];
...
...
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