Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FastService
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AppWaiBao
FastService
Commits
7c757c81
Commit
7c757c81
authored
Feb 27, 2024
by
xuning
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接单设置
parent
0533b5e2
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
627 additions
and
10 deletions
+627
-10
project.pbxproj
FastService.xcodeproj/project.pbxproj
+18
-0
UserInterfaceState.xcuserstate
...serdata/xuning.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Contents.json
...sets.xcassets/iconPark-camera-five.imageset/Contents.json
+21
-0
iconPark-camera-five@2x.png
...iconPark-camera-five.imageset/iconPark-camera-five@2x.png
+0
-0
Contents.json
...Assets.xcassets/iconPark-checklist.imageset/Contents.json
+21
-0
iconPark-checklist@2x.png
...ets/iconPark-checklist.imageset/iconPark-checklist@2x.png
+0
-0
XVVerticalButton.h
FastService/Common/Categpry/XVVerticalButton.h
+28
-0
XVVerticalButton.m
FastService/Common/Categpry/XVVerticalButton.m
+120
-0
XVJobStatusToolView.h
FastService/Main/View/XVJobStatusToolView.h
+1
-0
XVJobStatusToolView.m
FastService/Main/View/XVJobStatusToolView.m
+7
-1
XVOrderInfoViewCell.m
FastService/Main/View/XVOrderInfoViewCell.m
+1
-1
XVOrderSettingViewController.m
...ervice/Personal/Controller/XVOrderSettingViewController.m
+262
-8
XVOrderSettiingTitleView.h
FastService/Personal/View/XVOrderSettiingTitleView.h
+17
-0
XVOrderSettiingTitleView.m
FastService/Personal/View/XVOrderSettiingTitleView.m
+57
-0
XVOrderSettingView.h
FastService/Personal/View/XVOrderSettingView.h
+17
-0
XVOrderSettingView.m
FastService/Personal/View/XVOrderSettingView.m
+57
-0
No files found.
FastService.xcodeproj/project.pbxproj
View file @
7c757c81
...
...
@@ -45,6 +45,9 @@
79DC8B782B74B78A00DBD8EA
/* XVOrderInfoViewController.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
79DC8B772B74B78A00DBD8EA
/* XVOrderInfoViewController.m */
;
};
79DC8B7B2B7AF42800DBD8EA
/* XVOrderInfoTopView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
79DC8B7A2B7AF42800DBD8EA
/* XVOrderInfoTopView.m */
;
};
79DC8B7E2B88DC3B00DBD8EA
/* XVOrderInfoViewCell.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
79DC8B7D2B88DC3B00DBD8EA
/* XVOrderInfoViewCell.m */
;
};
79DC8B842B8CD5DF00DBD8EA
/* XVOrderSettiingTitleView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
79DC8B832B8CD5DF00DBD8EA
/* XVOrderSettiingTitleView.m */
;
};
79DC8B872B8CD5F000DBD8EA
/* XVOrderSettingView.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
79DC8B862B8CD5F000DBD8EA
/* XVOrderSettingView.m */
;
};
79DC8B8A2B8D818000DBD8EA
/* XVVerticalButton.m in Sources */
=
{
isa
=
PBXBuildFile
;
fileRef
=
79DC8B892B8D818000DBD8EA
/* XVVerticalButton.m */
;
};
FA5E55D5A48FDC04BA4CCD08
/* Pods_fastservice.framework in Frameworks */
=
{
isa
=
PBXBuildFile
;
fileRef
=
08D109EE60B32403F3655A70
/* Pods_fastservice.framework */
;
};
/* End PBXBuildFile section */
...
...
@@ -128,6 +131,12 @@
79DC8B7A2B7AF42800DBD8EA
/* XVOrderInfoTopView.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
XVOrderInfoTopView.m
;
sourceTree
=
"<group>"
;
};
79DC8B7C2B88DC3B00DBD8EA
/* XVOrderInfoViewCell.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
XVOrderInfoViewCell.h
;
sourceTree
=
"<group>"
;
};
79DC8B7D2B88DC3B00DBD8EA
/* XVOrderInfoViewCell.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
XVOrderInfoViewCell.m
;
sourceTree
=
"<group>"
;
};
79DC8B822B8CD5DF00DBD8EA
/* XVOrderSettiingTitleView.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
XVOrderSettiingTitleView.h
;
sourceTree
=
"<group>"
;
};
79DC8B832B8CD5DF00DBD8EA
/* XVOrderSettiingTitleView.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
XVOrderSettiingTitleView.m
;
sourceTree
=
"<group>"
;
};
79DC8B852B8CD5F000DBD8EA
/* XVOrderSettingView.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
XVOrderSettingView.h
;
sourceTree
=
"<group>"
;
};
79DC8B862B8CD5F000DBD8EA
/* XVOrderSettingView.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
XVOrderSettingView.m
;
sourceTree
=
"<group>"
;
};
79DC8B882B8D818000DBD8EA
/* XVVerticalButton.h */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.h
;
path
=
XVVerticalButton.h
;
sourceTree
=
"<group>"
;
};
79DC8B892B8D818000DBD8EA
/* XVVerticalButton.m */
=
{
isa
=
PBXFileReference
;
lastKnownFileType
=
sourcecode.c.objc
;
path
=
XVVerticalButton.m
;
sourceTree
=
"<group>"
;
};
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
...
...
@@ -248,6 +257,10 @@
7981EB0A2B73BC1500F357E7
/* XVPersonalViewCell.m */
,
79DC8B6D2B74A8E600DBD8EA
/* XVPersonalFooterView.h */
,
79DC8B6E2B74A8E600DBD8EA
/* XVPersonalFooterView.m */
,
79DC8B822B8CD5DF00DBD8EA
/* XVOrderSettiingTitleView.h */
,
79DC8B832B8CD5DF00DBD8EA
/* XVOrderSettiingTitleView.m */
,
79DC8B852B8CD5F000DBD8EA
/* XVOrderSettingView.h */
,
79DC8B862B8CD5F000DBD8EA
/* XVOrderSettingView.m */
,
);
path
=
View
;
sourceTree
=
"<group>"
;
...
...
@@ -317,6 +330,8 @@
7981EAB92B6E670200F357E7
/* UIView+XVAdd.m */
,
7981EABB2B6E675F00F357E7
/* NSString+XVAdd.h */
,
7981EABC2B6E675F00F357E7
/* NSString+XVAdd.m */
,
79DC8B882B8D818000DBD8EA
/* XVVerticalButton.h */
,
79DC8B892B8D818000DBD8EA
/* XVVerticalButton.m */
,
);
path
=
Categpry
;
sourceTree
=
"<group>"
;
...
...
@@ -546,9 +561,11 @@
files
=
(
79DC8B6F2B74A8E600DBD8EA
/* XVPersonalFooterView.m in Sources */
,
79DC8B752B74B69600DBD8EA
/* XVOrderDetailsViewController.m in Sources */
,
79DC8B872B8CD5F000DBD8EA
/* XVOrderSettingView.m in Sources */
,
7981EAB72B6E669000F357E7
/* UIScrollView+XVAdd.m in Sources */
,
7981EACF2B6F63CF00F357E7
/* XVMainJobViewController.m in Sources */
,
799DF1042B6D220300680907
/* XVBaseViewController.m in Sources */
,
79DC8B8A2B8D818000DBD8EA
/* XVVerticalButton.m in Sources */
,
799DF0C62B6BD8AF00680907
/* AppDelegate.m in Sources */
,
7981EAC72B6F41B000F357E7
/* XVRegisterViewController.m in Sources */
,
79DC8B7B2B7AF42800DBD8EA
/* XVOrderInfoTopView.m in Sources */
,
...
...
@@ -557,6 +574,7 @@
7981EAD32B6F656900F357E7
/* XVCustomBarView.m in Sources */
,
7981EACA2B6F59E800F357E7
/* XVPasswordViewController.m in Sources */
,
79DC8B782B74B78A00DBD8EA
/* XVOrderInfoViewController.m in Sources */
,
79DC8B842B8CD5DF00DBD8EA
/* XVOrderSettiingTitleView.m in Sources */
,
7981EABD2B6E675F00F357E7
/* NSString+XVAdd.m in Sources */
,
799DF0F72B6BDA1400680907
/* BRPlaceholderTextView.m in Sources */
,
79DC8B7E2B88DC3B00DBD8EA
/* XVOrderInfoViewCell.m in Sources */
,
...
...
FastService.xcworkspace/xcuserdata/xuning.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7c757c81
No preview for this file type
FastService/Assets.xcassets/iconPark-camera-five.imageset/Contents.json
0 → 100644
View file @
7c757c81
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"iconPark-camera-five@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
FastService/Assets.xcassets/iconPark-camera-five.imageset/iconPark-camera-five@2x.png
0 → 100644
View file @
7c757c81
561 Bytes
FastService/Assets.xcassets/iconPark-checklist.imageset/Contents.json
0 → 100644
View file @
7c757c81
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"filename"
:
"iconPark-checklist@2x.png"
,
"idiom"
:
"universal"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"scale"
:
"3x"
}
],
"info"
:
{
"author"
:
"xcode"
,
"version"
:
1
}
}
FastService/Assets.xcassets/iconPark-checklist.imageset/iconPark-checklist@2x.png
0 → 100644
View file @
7c757c81
482 Bytes
FastService/Common/Categpry/XVVerticalButton.h
0 → 100644
View file @
7c757c81
//
// XVVerticalButton.h
// fastservice
//
// Created by xuning on 2/27/24.
// Copyright © 2024 FastService. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface
XVVerticalButton
:
UIButton
// Round Image
@property
BOOL
imageIsRound
;
// Image Padding
@property
CGFloat
padding
;
// Spacing between imageview and textlabel
@property
CGFloat
imageTextSpace
;
// Maximum imageview size
@property
CGSize
imageViewMaxSize
;
// Button backgroundHighlighted
@property
(
nonatomic
,
strong
)
UIColor
*
backgroundHighlightedColor
;
// Button backgroundNormal
@property
(
nonatomic
,
strong
)
UIColor
*
backgroundNormalColor
;
@end
NS_ASSUME_NONNULL_END
FastService/Common/Categpry/XVVerticalButton.m
0 → 100644
View file @
7c757c81
//
// XVVerticalButton.m
// fastservice
//
// Created by xuning on 2/27/24.
// Copyright © 2024 FastService. All rights reserved.
//
#import "XVVerticalButton.h"
#define IMAGECENTERBUTTON_IMAGE_TEXT_SPACING 10.0
#define IMAGECENTERBUTTON_TITLE_MIN_HEIGHT 14.0
#define IMAGECENTERBUTTON_PADDING_MIN 8.0
@implementation
XVVerticalButton
-
(
instancetype
)
initWithCoder
:(
NSCoder
*
)
aDecoder
{
self
=
[
super
initWithCoder
:
aDecoder
];
if
(
self
)
{
[
self
addAction
];
}
return
self
;
}
-
(
instancetype
)
init
{
self
=
[
super
init
];
if
(
self
)
{
[
self
addAction
];
}
return
self
;
}
-
(
void
)
addAction
{
// [self addTarget:self action:@selector(pressed:) forControlEvents:UIControlEventTouchDown];
// [self addTarget:self action:@selector(touchUp:) forControlEvents:UIControlEventTouchUpInside];
// [self addTarget:self action:@selector(touchUp:) forControlEvents:UIControlEventTouchUpOutside];
}
-
(
void
)
layoutSubviews
{
[
super
layoutSubviews
];
self
.
adjustsImageWhenHighlighted
=
NO
;
if
(
!
self
.
padding
)
{
self
.
padding
=
IMAGECENTERBUTTON_PADDING_MIN
;
}
if
(
!
self
.
imageTextSpace
)
{
self
.
imageTextSpace
=
IMAGECENTERBUTTON_IMAGE_TEXT_SPACING
;
}
CGFloat
titleLabelHeight
=
self
.
titleLabel
.
frame
.
size
.
height
;
if
(
titleLabelHeight
==
0
)
{
titleLabelHeight
=
IMAGECENTERBUTTON_TITLE_MIN_HEIGHT
;
}
CGFloat
imageMaxHeight
=
self
.
frame
.
size
.
height
-
titleLabelHeight
-
self
.
imageTextSpace
-
self
.
padding
*
2
;
CGFloat
imageMaxWidth
=
self
.
frame
.
size
.
width
-
self
.
padding
*
2
;
if
(
self
.
imageViewMaxSize
.
height
)
{
imageMaxHeight
=
self
.
imageViewMaxSize
.
height
;
}
if
(
self
.
imageViewMaxSize
.
width
)
{
imageMaxWidth
=
self
.
imageViewMaxSize
.
width
;
}
//Set ImageView Threshold
if
(
self
.
imageView
.
frame
.
size
.
height
>
imageMaxHeight
)
{
CGRect
newImageView
=
self
.
imageView
.
frame
;
newImageView
.
size
=
CGSizeMake
(
imageMaxHeight
/
self
.
imageView
.
frame
.
size
.
height
*
self
.
imageView
.
frame
.
size
.
width
,
imageMaxHeight
);
self
.
imageView
.
frame
=
newImageView
;
}
if
(
self
.
imageView
.
frame
.
size
.
width
>
imageMaxWidth
)
{
CGRect
newImageView
=
self
.
imageView
.
frame
;
newImageView
.
size
=
CGSizeMake
(
imageMaxWidth
,
imageMaxWidth
/
self
.
imageView
.
frame
.
size
.
width
*
self
.
imageView
.
frame
.
size
.
height
);
self
.
imageView
.
frame
=
newImageView
;
}
CGFloat
totalHeight
=
self
.
imageView
.
frame
.
size
.
height
+
self
.
imageTextSpace
+
titleLabelHeight
;
//Center image
CGPoint
center
=
self
.
imageView
.
center
;
center
.
x
=
self
.
frame
.
size
.
width
/
2
.
0
;
center
.
y
=
self
.
frame
.
size
.
height
/
2
.
0
-
totalHeight
/
2
.
0
+
self
.
imageView
.
frame
.
size
.
height
/
2
.
0
;
self
.
imageView
.
center
=
center
;
if
(
self
.
imageIsRound
)
{
self
.
imageView
.
layer
.
cornerRadius
=
self
.
imageView
.
frame
.
size
.
width
/
2
.
0
;
}
CGRect
titleLabelFrame
=
self
.
titleLabel
.
frame
;
titleLabelFrame
.
size
=
CGSizeMake
(
self
.
frame
.
size
.
width
,
titleLabelHeight
);
self
.
titleLabel
.
frame
=
titleLabelFrame
;
//Center text
CGPoint
titleCenter
=
self
.
titleLabel
.
center
;
titleCenter
.
x
=
self
.
frame
.
size
.
width
/
2
.
0
;
titleCenter
.
y
=
self
.
imageView
.
center
.
y
+
self
.
imageView
.
frame
.
size
.
height
/
2
.
0
+
self
.
imageTextSpace
+
titleLabelHeight
/
2
.
0
;
self
.
titleLabel
.
center
=
titleCenter
;
self
.
titleLabel
.
textAlignment
=
NSTextAlignmentCenter
;
}
//- (void)pressed:(UIButton *)btn {
// if (self.backgroundHighlightedColor) {
// [btn setBackgroundColor:self.backgroundHighlightedColor];
// } else {
// [btn setBackgroundColor:[UIColor colorWithRed:0.9 green:0.9 blue:0.9 alpha:1]];
// }
//}
//
//- (void)touchUp:(UIButton *)btn {
// if (self.backgroundNormalColor) {
// [btn setBackgroundColor:self.backgroundNormalColor];
// } else {
// [btn setBackgroundColor:[UIColor whiteColor]];
// }
//}
@end
FastService/Main/View/XVJobStatusToolView.h
View file @
7c757c81
...
...
@@ -12,6 +12,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface
XVJobStatusToolView
:
UIView
@end
NS_ASSUME_NONNULL_END
FastService/Main/View/XVJobStatusToolView.m
View file @
7c757c81
...
...
@@ -7,6 +7,7 @@
//
#import "XVJobStatusToolView.h"
#import "XVOrderSettingViewController.h"
@interface
XVJobStatusToolView
()
...
...
@@ -54,11 +55,16 @@
kViewBorderRadius
(
self
.
statusButton
,
4
,
0
,
COLOR_THEMEGRENN
);
}
-
(
void
)
settingButtonClick
{
XVOrderSettingViewController
*
vc
=
[[
XVOrderSettingViewController
alloc
]
init
];
[
self
.
viewController
.
navigationController
pushViewController
:
vc
animated
:
YES
];
}
-
(
UIButton
*
)
settingButton
{
if
(
_settingButton
==
nil
)
{
_settingButton
=
[[
UIButton
alloc
]
initWithTitle
:
@"接单设置"
fontSize
:
12
titleColor
:
F_415058_COLOR
normalImageName
:
@"if-settings"
selectedImgName
:
@"if-settings"
backgroundColor
:
nil
];
[
_settingButton
addTarget
:
self
action
:
@selector
(
settingButtonClick
)
forControlEvents
:
UIControlEventTouchUpInside
];
}
return
_settingButton
;
...
...
FastService/Main/View/XVOrderInfoViewCell.m
View file @
7c757c81
...
...
@@ -7,7 +7,7 @@
//
#import "XVOrderInfoViewCell.h"
#import "XVLabel.h"
@interface
XVOrderInfoViewCell
()
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
...
...
FastService/Personal/Controller/XVOrderSettingViewController.m
View file @
7c757c81
...
...
@@ -7,26 +7,280 @@
//
#import "XVOrderSettingViewController.h"
#import "XVOrderSettiingTitleView.h"
#import "XVOrderSettingView.h"
#import "XVVerticalButton.h"
@interface
XVOrderSettingViewController
()
@property
(
nonatomic
,
strong
)
UIScrollView
*
scrollView
;
@property
(
nonatomic
,
strong
)
XVOrderSettiingTitleView
*
title1View
;
@property
(
nonatomic
,
strong
)
XVOrderSettingView
*
switch1View
;
@property
(
nonatomic
,
strong
)
XVOrderSettingView
*
switch2View
;
@property
(
nonatomic
,
strong
)
XVOrderSettingView
*
switch3View
;
@property
(
nonatomic
,
strong
)
XVOrderSettingView
*
switch4View
;
@property
(
nonatomic
,
strong
)
XVOrderSettingView
*
switch5View
;
@property
(
nonatomic
,
strong
)
XVOrderSettingView
*
switch6View
;
@property
(
nonatomic
,
strong
)
XVOrderSettiingTitleView
*
title2View
;
@property
(
nonatomic
,
strong
)
XVOrderSettingView
*
switch7View
;
@property
(
nonatomic
,
strong
)
XVOrderSettingView
*
switch8View
;
@property
(
nonatomic
,
strong
)
XVOrderSettiingTitleView
*
title3View
;
@property
(
nonatomic
,
strong
)
UIView
*
bottomView
;
@property
(
nonatomic
,
strong
)
XVVerticalButton
*
orderTestButton
;
@property
(
nonatomic
,
strong
)
XVVerticalButton
*
pushTestButton
;
@end
@implementation
XVOrderSettingViewController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
// Do any additional setup after loading the view.
[
self
setupUI
];
}
-
(
void
)
setupUI
{
[
self
.
view
addSubview
:
self
.
scrollView
];
[
self
.
scrollView
addSubview
:
self
.
title1View
];
[
self
.
title1View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
mas_equalTo
(
self
.
view
).
mas_offset
(
7
);
make
.
right
.
mas_equalTo
(
self
.
view
).
mas_offset
(
-
7
);
make
.
top
.
mas_equalTo
(
self
.
scrollView
).
mas_offset
(
5
);
make
.
height
.
mas_equalTo
(
40
);
}];
[
self
.
scrollView
addSubview
:
self
.
switch1View
];
[
self
.
switch1View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
mas_equalTo
(
self
.
title1View
);
make
.
height
.
mas_equalTo
(
44
);
make
.
top
.
mas_equalTo
(
self
.
title1View
.
mas_bottom
);
}];
[
self
.
scrollView
addSubview
:
self
.
switch2View
];
[
self
.
switch2View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
switch1View
);
make
.
top
.
mas_equalTo
(
self
.
switch1View
.
mas_bottom
);
}];
[
self
.
scrollView
addSubview
:
self
.
switch3View
];
[
self
.
switch3View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
switch1View
);
make
.
top
.
mas_equalTo
(
self
.
switch2View
.
mas_bottom
);
}];
[
self
.
scrollView
addSubview
:
self
.
switch4View
];
[
self
.
switch4View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
switch1View
);
make
.
top
.
mas_equalTo
(
self
.
switch3View
.
mas_bottom
);
}];
[
self
.
scrollView
addSubview
:
self
.
switch5View
];
[
self
.
switch5View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
switch1View
);
make
.
top
.
mas_equalTo
(
self
.
switch4View
.
mas_bottom
);
}];
[
self
.
scrollView
addSubview
:
self
.
switch6View
];
[
self
.
switch6View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
switch1View
);
make
.
top
.
mas_equalTo
(
self
.
switch5View
.
mas_bottom
);
}];
[
self
.
scrollView
addSubview
:
self
.
title2View
];
[
self
.
title2View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
title1View
);
make
.
top
.
mas_equalTo
(
self
.
switch6View
.
mas_bottom
).
mas_offset
(
5
);
}];
[
self
.
scrollView
addSubview
:
self
.
switch7View
];
[
self
.
switch7View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
switch1View
);
make
.
top
.
mas_equalTo
(
self
.
title2View
.
mas_bottom
);
}];
[
self
.
scrollView
addSubview
:
self
.
switch8View
];
[
self
.
switch8View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
switch1View
);
make
.
top
.
mas_equalTo
(
self
.
switch7View
.
mas_bottom
);
}];
[
self
.
scrollView
addSubview
:
self
.
title3View
];
[
self
.
title3View
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
height
.
mas_equalTo
(
self
.
title1View
);
make
.
top
.
mas_equalTo
(
self
.
switch8View
.
mas_bottom
).
mas_offset
(
5
);
}];
[
self
.
scrollView
addSubview
:
self
.
bottomView
];
[
self
.
bottomView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
right
.
mas_equalTo
(
self
.
title1View
);
make
.
top
.
mas_equalTo
(
self
.
title3View
.
mas_bottom
);
make
.
height
.
mas_equalTo
(
197
);
make
.
bottom
.
mas_equalTo
(
self
.
scrollView
).
mas_offset
(
-
5
);
}];
[
self
.
bottomView
addSubview
:
self
.
orderTestButton
];
[
self
.
orderTestButton
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
mas_equalTo
(
self
.
bottomView
).
mas_offset
(
18
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
50
,
48
));
make
.
top
.
mas_equalTo
(
self
.
title3View
.
mas_bottom
).
mas_offset
(
12
);
}];
[
self
.
bottomView
addSubview
:
self
.
pushTestButton
];
[
self
.
pushTestButton
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
left
.
mas_equalTo
(
self
.
orderTestButton
.
mas_right
).
mas_offset
(
13
);
make
.
size
.
mas_equalTo
(
CGSizeMake
(
50
,
48
));
make
.
top
.
mas_equalTo
(
self
.
title3View
.
mas_bottom
).
mas_offset
(
12
);
}];
[
self
.
view
layoutIfNeeded
];
[
self
.
title1View
addRoundedCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
withRadii
:
CGSizeMake
(
10
,
10
)];
[
self
.
switch6View
addRoundedCorners
:
UIRectCornerBottomLeft
|
UIRectCornerBottomRight
withRadii
:
CGSizeMake
(
10
,
10
)];
[
self
.
title2View
addRoundedCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
withRadii
:
CGSizeMake
(
10
,
10
)];
[
self
.
switch8View
addRoundedCorners
:
UIRectCornerBottomLeft
|
UIRectCornerBottomRight
withRadii
:
CGSizeMake
(
10
,
10
)];
[
self
.
title3View
addRoundedCorners
:
UIRectCornerTopLeft
|
UIRectCornerTopRight
withRadii
:
CGSizeMake
(
10
,
10
)];
[
self
.
bottomView
addRoundedCorners
:
UIRectCornerBottomLeft
|
UIRectCornerBottomRight
withRadii
:
CGSizeMake
(
10
,
10
)];
}
-
(
UIScrollView
*
)
scrollView
{
if
(
_scrollView
==
nil
)
{
_scrollView
=
[[
UIScrollView
alloc
]
initWithFrame
:
self
.
view
.
bounds
];
_scrollView
.
backgroundColor
=
DEFAULT_BACKGROUND_COLOR
;
_scrollView
.
alwaysBounceVertical
=
YES
;
}
return
_scrollView
;
}
-
(
XVOrderSettiingTitleView
*
)
title1View
{
if
(
_title1View
==
nil
)
{
_title1View
=
[[
XVOrderSettiingTitleView
alloc
]
initWithTitle
:
@"抢单设置"
];
}
return
_title1View
;
}
-
(
XVOrderSettingView
*
)
switch1View
{
if
(
_switch1View
==
nil
)
{
_switch1View
=
[[
XVOrderSettingView
alloc
]
initWithTitle
:
@"抢单模式(点击)"
];
}
return
_switch1View
;
}
-
(
XVOrderSettingView
*
)
switch2View
{
if
(
_switch2View
==
nil
)
{
_switch2View
=
[[
XVOrderSettingView
alloc
]
initWithTitle
:
@"新订单弹窗"
];
}
return
_switch2View
;
}
/*
#pragma mark - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
// Get the new view controller using [segue destinationViewController].
// Pass the selected object to the new view controller.
-
(
XVOrderSettingView
*
)
switch3View
{
if
(
_switch3View
==
nil
)
{
_switch3View
=
[[
XVOrderSettingView
alloc
]
initWithTitle
:
@"新订单语音播报"
];
}
return
_switch3View
;
}
*/
-
(
XVOrderSettingView
*
)
switch4View
{
if
(
_switch4View
==
nil
)
{
_switch4View
=
[[
XVOrderSettingView
alloc
]
initWithTitle
:
@"新订单/派单消息震动"
];
}
return
_switch4View
;
}
-
(
XVOrderSettingView
*
)
switch5View
{
if
(
_switch5View
==
nil
)
{
_switch5View
=
[[
XVOrderSettingView
alloc
]
initWithTitle
:
@"抢单免弹框确认"
];
}
return
_switch5View
;
}
-
(
XVOrderSettingView
*
)
switch6View
{
if
(
_switch6View
==
nil
)
{
_switch6View
=
[[
XVOrderSettingView
alloc
]
initWithTitle
:
@"开启屏幕常亮"
];
}
return
_switch6View
;
}
-
(
XVOrderSettiingTitleView
*
)
title2View
{
if
(
_title2View
==
nil
)
{
_title2View
=
[[
XVOrderSettiingTitleView
alloc
]
initWithTitle
:
@"抢单设置"
];
}
return
_title2View
;
}
-
(
XVOrderSettingView
*
)
switch7View
{
if
(
_switch7View
==
nil
)
{
_switch7View
=
[[
XVOrderSettingView
alloc
]
initWithTitle
:
@"不看预约单"
];
}
return
_switch7View
;
}
-
(
XVOrderSettingView
*
)
switch8View
{
if
(
_switch8View
==
nil
)
{
_switch8View
=
[[
XVOrderSettingView
alloc
]
initWithTitle
:
@"顺路单推送"
];
}
return
_switch8View
;
}
-
(
XVOrderSettiingTitleView
*
)
title3View
{
if
(
_title3View
==
nil
)
{
_title3View
=
[[
XVOrderSettiingTitleView
alloc
]
initWithTitle
:
@"抢单设置"
];
}
return
_title3View
;
}
-
(
UIView
*
)
bottomView
{
if
(
_bottomView
==
nil
)
{
_bottomView
=
[[
UIView
alloc
]
init
];
_bottomView
.
backgroundColor
=
[
UIColor
whiteColor
];
}
return
_bottomView
;
}
-
(
XVVerticalButton
*
)
orderTestButton
{
if
(
_orderTestButton
==
nil
)
{
_orderTestButton
=
[[
XVVerticalButton
alloc
]
init
];
_orderTestButton
.
imageIsRound
=
NO
;
_orderTestButton
.
imageViewMaxSize
=
CGSizeMake
(
24
,
24
);
_orderTestButton
.
imageTextSpace
=
3
;
[
_orderTestButton
setImage
:
IMG
(
@"iconPark-checklist"
)
forState
:(
UIControlStateNormal
)];
[
_orderTestButton
setTitle
:
@"接单检测"
forState
:
UIControlStateNormal
];
[
_orderTestButton
setTitleColor
:
F_606060_COLOR
forState
:
UIControlStateNormal
];
_orderTestButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
12
];
}
return
_orderTestButton
;
}
-
(
XVVerticalButton
*
)
pushTestButton
{
if
(
_pushTestButton
==
nil
)
{
_pushTestButton
=
[[
XVVerticalButton
alloc
]
init
];
_pushTestButton
.
imageIsRound
=
NO
;
_pushTestButton
.
imageViewMaxSize
=
CGSizeMake
(
24
,
24
);
_pushTestButton
.
imageTextSpace
=
3
;
[
_pushTestButton
setImage
:
IMG
(
@"iconPark-camera-five"
)
forState
:(
UIControlStateNormal
)];
[
_pushTestButton
setTitle
:
@"推送测试"
forState
:
UIControlStateNormal
];
[
_pushTestButton
setTitleColor
:
F_606060_COLOR
forState
:
UIControlStateNormal
];
_pushTestButton
.
titleLabel
.
font
=
[
UIFont
systemFontOfSize
:
12
];
}
return
_pushTestButton
;
}
@end
FastService/Personal/View/XVOrderSettiingTitleView.h
0 → 100644
View file @
7c757c81
//
// XVOrderSettiingTitleView.h
// fastservice
//
// Created by xuning on 2/26/24.
// Copyright © 2024 FastService. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface
XVOrderSettiingTitleView
:
UIView
-
(
instancetype
)
initWithTitle
:(
NSString
*
)
title
;
@end
NS_ASSUME_NONNULL_END
FastService/Personal/View/XVOrderSettiingTitleView.m
0 → 100644
View file @
7c757c81
//
// XVOrderSettiingTitleView.m
// fastservice
//
// Created by xuning on 2/26/24.
// Copyright © 2024 FastService. All rights reserved.
//
#import "XVOrderSettiingTitleView.h"
@interface
XVOrderSettiingTitleView
()
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
UIView
*
lineView
;
@end
@implementation
XVOrderSettiingTitleView
-
(
instancetype
)
initWithTitle
:(
NSString
*
)
title
{
if
(
self
=
[
super
init
])
{
self
.
backgroundColor
=
[
UIColor
whiteColor
];
self
.
titleLabel
.
text
=
title
;
[
self
addSubview
:
self
.
titleLabel
];
[
self
.
titleLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
self
).
mas_offset
(
13
);
make
.
left
.
mas_equalTo
(
self
).
mas_offset
(
15
);
}];
[
self
addSubview
:
self
.
lineView
];
[
self
.
lineView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
bottom
.
mas_equalTo
(
self
);
make
.
left
.
mas_equalTo
(
self
).
mas_offset
(
15
);
make
.
right
.
mas_equalTo
(
self
).
mas_offset
(
-
15
);
make
.
height
.
mas_equalTo
(
1
);
}];
}
return
self
;
}
-
(
UILabel
*
)
titleLabel
{
if
(
_titleLabel
==
nil
)
{
_titleLabel
=
[[
UILabel
alloc
]
initWithText
:
@"标题"
textColor
:
F_101010_COLOR
textAlignment
:
(
NSTextAlignmentLeft
)
fontSize
:
16
];
}
return
_titleLabel
;
}
-
(
UIView
*
)
lineView
{
if
(
_lineView
==
nil
)
{
_lineView
=
[[
UIView
alloc
]
init
];
_lineView
.
backgroundColor
=
F7_3_COLOR
;
}
return
_lineView
;
}
@end
FastService/Personal/View/XVOrderSettingView.h
0 → 100644
View file @
7c757c81
//
// XVOrderSettingView.h
// fastservice
//
// Created by xuning on 2/26/24.
// Copyright © 2024 FastService. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface
XVOrderSettingView
:
UIView
-
(
instancetype
)
initWithTitle
:(
NSString
*
)
title
;
@end
NS_ASSUME_NONNULL_END
FastService/Personal/View/XVOrderSettingView.m
0 → 100644
View file @
7c757c81
//
// XVOrderSettingView.m
// fastservice
//
// Created by xuning on 2/26/24.
// Copyright © 2024 FastService. All rights reserved.
//
#import "XVOrderSettingView.h"
@interface
XVOrderSettingView
()
@property
(
nonatomic
,
strong
)
UILabel
*
titleLabel
;
@property
(
nonatomic
,
strong
)
UISwitch
*
switchView
;
@end
@implementation
XVOrderSettingView
-
(
instancetype
)
initWithTitle
:(
NSString
*
)
title
{
if
(
self
=
[
super
init
])
{
self
.
backgroundColor
=
[
UIColor
whiteColor
];
self
.
titleLabel
.
text
=
title
;
[
self
addSubview
:
self
.
titleLabel
];
[
self
.
titleLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
mas_equalTo
(
self
).
mas_offset
(
13
);
make
.
left
.
mas_equalTo
(
self
).
mas_offset
(
15
);
}];
[
self
addSubview
:
self
.
switchView
];
[
self
.
switchView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerY
.
mas_equalTo
(
self
);
make
.
right
.
mas_equalTo
(
self
).
mas_offset
(
-
15
);
}];
}
return
self
;
}
-
(
UILabel
*
)
titleLabel
{
if
(
_titleLabel
==
nil
)
{
_titleLabel
=
[[
UILabel
alloc
]
initWithText
:
@"标题"
textColor
:
F_606060_COLOR
textAlignment
:
(
NSTextAlignmentLeft
)
fontSize
:
14
];
}
return
_titleLabel
;
}
-
(
UISwitch
*
)
switchView
{
if
(
_switchView
==
nil
)
{
_switchView
=
[[
UISwitch
alloc
]
init
];
_switchView
.
onTintColor
=
COLOR_THEMEGRENN
;
_switchView
.
tintColor
=
BB_3_COLOR
;
}
return
_switchView
;
}
@end
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