Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
colorfulSchoolReconsitution
Project
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
2
Merge Requests
2
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
刘卓鑫
colorfulSchoolReconsitution
Commits
e7706464
Commit
e7706464
authored
Sep 10, 2019
by
刘卓鑫
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
3.8.9定版
parent
838485bc
Show whitespace changes
Inline
Side-by-side
Showing
26 changed files
with
152 additions
and
67 deletions
+152
-67
ColorfulSchool.xcscheme
....xcodeproj/xcshareddata/xcschemes/ColorfulSchool.xcscheme
+1
-1
UserInterfaceState.xcuserstate
...ata/liuzhuoxin.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
Breakpoints_v2.xcbkptlist
...uzhuoxin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
+32
-0
ZXAdTool.m
ColorfulSchool/ColorfulSchool/Classes/AD(广告)/ZXAdTool.m
+4
-1
ZXHomePageSupverViewController.m
.../0801HomePage/Controller/ZXHomePageSupverViewController.m
+3
-3
ZXHomePageAnnouceCell.m
...ePage(首页)/0801HomePage/View/Cells/ZXHomePageAnnouceCell.m
+3
-3
ZXHomePageBannerCell.m
...mePage(首页)/0801HomePage/View/Cells/ZXHomePageBannerCell.m
+2
-2
ZXHomePageSingleCell.m
...mePage(首页)/0801HomePage/View/Cells/ZXHomePageSingleCell.m
+3
-3
ZXHomePageSingleNewsCell.m
...ge(首页)/0801HomePage/View/Cells/ZXHomePageSingleNewsCell.m
+3
-3
ZXHomeFunctionView.m
...ge(首页)/0801HomePage/View/customViews/ZXHomeFunctionView.m
+2
-2
HomeSectionView.m
...s/HomePage(首页)/NewFirstPage(新版首页)/Views/HomeSectionView.m
+2
-2
New_ADCell.m
...lasses/HomePage(首页)/NewFirstPage(新版首页)/Views/New_ADCell.m
+3
-3
New_BannerCell.m
...es/HomePage(首页)/NewFirstPage(新版首页)/Views/New_BannerCell.m
+2
-2
New_SchoolNewCell.m
...HomePage(首页)/NewFirstPage(新版首页)/Views/New_SchoolNewCell.m
+3
-3
New_TopicCell.m
...ses/HomePage(首页)/NewFirstPage(新版首页)/Views/New_TopicCell.m
+3
-3
New_WindowCell.m
...es/HomePage(首页)/NewFirstPage(新版首页)/Views/New_WindowCell.m
+3
-3
UseEquipmentController.m
...(1.0购券)/UserEquipment/Controller/UseEquipmentController.m
+28
-12
ZXSelfHelpViewController.m
...Page(首页)/Operation(自助服务)/2.0条码/ZXSelfHelpViewController.m
+2
-2
ZXAppointBathViewController.m
...ntmentBath(预约洗浴)/Controller/ZXAppointBathViewController.m
+3
-3
ZXExceptionDealController.m
...isdomLattice(智慧格子)/Controller/ZXExceptionDealController.m
+3
-3
ZXWisdomLatticeViewController.m
...mLattice(智慧格子)/Controller/ZXWisdomLatticeViewController.m
+3
-3
LatticeViolationOrderCell.m
...助服务)/wisdomLattice(智慧格子)/View/LatticeViolationOrderCell.m
+3
-3
SGQRCodeObtain.h
...lorfulSchool/Classes/Vendor(三方)/SGQRCode/SGQRCodeObtain.h
+7
-1
SGQRCodeObtain.m
...lorfulSchool/Classes/Vendor(三方)/SGQRCode/SGQRCodeObtain.m
+27
-2
ZXScannerViewController.h
...ool/Classes/Vendor(三方)/SGQRCode/ZXScannerViewController.h
+4
-2
ZXScannerViewController.m
...ool/Classes/Vendor(三方)/SGQRCode/ZXScannerViewController.m
+3
-2
No files found.
ColorfulSchool/ColorfulSchool.xcodeproj/xcshareddata/xcschemes/ColorfulSchool.xcscheme
View file @
e7706464
...
...
@@ -62,7 +62,7 @@
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"
Debug
"
buildConfiguration =
"
Release
"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
...
...
ColorfulSchool/ColorfulSchool.xcworkspace/xcuserdata/liuzhuoxin.xcuserdatad/UserInterfaceState.xcuserstate
View file @
e7706464
No preview for this file type
ColorfulSchool/ColorfulSchool.xcworkspace/xcuserdata/liuzhuoxin.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist
View file @
e7706464
...
...
@@ -13,5 +13,37 @@
stopOnStyle =
"0"
>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"ColorfulSchool/Classes/HomePage(首页)/Operation(自助服务)/1.0Version(1.0购券)/BuyCoupons/Controller/BuyCouponsViewController.m"
timestampString =
"589789189.075565"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"453"
endingLineNumber =
"453"
landmarkName =
"-tableView:didSelectRowAtIndexPath:"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID =
"Xcode.Breakpoint.FileBreakpoint"
>
<BreakpointContent
shouldBeEnabled =
"Yes"
ignoreCount =
"0"
continueAfterRunningActions =
"No"
filePath =
"ColorfulSchool/Classes/AD(广告)/ZXTXAdTool.m"
timestampString =
"589796272.887374"
startingColumnNumber =
"9223372036854775807"
endingColumnNumber =
"9223372036854775807"
startingLineNumber =
"86"
endingLineNumber =
"86"
landmarkName =
"-splashAdFailToPresent:withError:"
landmarkType =
"7"
>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
ColorfulSchool/ColorfulSchool/Classes/AD(广告)/ZXAdTool.m
View file @
e7706464
//
//
...
...
@@ -69,6 +69,9 @@
if
(
lauch
.
isButt
)
{
[[
ZXTXAdTool
sharedZXTXAdTool
]
createLauchAdByPlacmentId
:
kTXAdLauchPLACEMENTID
];
}
else
{
if
(
lauch
.
advertImg
==
nil
||
[
lauch
.
advertImg
isEqualToString
:
@""
])
{
return
;
}
ZXFullScreenAdView
*
adView
=
[[
ZXFullScreenAdView
alloc
]
initWithFrame
:[
UIScreen
mainScreen
].
bounds
];
adView
.
duration
=
lauch
.
millisecond
/
1000
;
adView
.
waitTime
=
3
;
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/0801HomePage/Controller/ZXHomePageSupverViewController.m
View file @
e7706464
//
//
...
...
@@ -22,14 +22,14 @@
[
self
createNabar
];
self
.
contentView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
kTopHeight
+
10
*
k6Scale
,
kScreenWidth
,
kScreenHeight
-
kTopHeight
-
10
*
k6Scale
)];
self
.
contentView
=
[[
UIView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
kTopHeight
,
kScreenWidth
,
kScreenHeight
-
kTopHeight
)];
[
self
.
view
addSubview
:
self
.
contentView
];
}
#pragma mark - ========== 创建导航栏 ==========
-
(
void
)
createNabar
{
UIImage
*
image
=
[
UIImage
imageNamed
:
@"nav_bg"
];
CGFloat
height
=
kTopHeight
+
25
*
k6Scale
;
CGFloat
height
=
kTopHeight
;
UIImageView
*
nabar
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
height
)];
nabar
.
userInteractionEnabled
=
YES
;
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/0801HomePage/View/Cells/ZXHomePageAnnouceCell.m
View file @
e7706464
//
//
...
...
@@ -48,8 +48,8 @@
self
.
ContentImageView
=
[[
UIImageView
alloc
]
init
];
self
.
ContentImageView
.
contentMode
=
UIViewContentModeScaleAspectFill
;
self
.
ContentImageView
.
clipsToBounds
=
YES
;
//
self.ContentImageView.contentMode = UIViewContentModeScaleAspectFill;
//
self.ContentImageView.clipsToBounds = YES;
[
imageV
addSubview
:
self
.
ContentImageView
];
self
.
ContentImageView
.
layer
.
cornerRadius
=
5
*
k6Scale
;
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/0801HomePage/View/Cells/ZXHomePageBannerCell.m
View file @
e7706464
//
//
...
...
@@ -29,7 +29,7 @@
-
(
instancetype
)
initWithStyle
:
(
UITableViewCellStyle
)
style
reuseIdentifier
:
(
NSString
*
)
reuseIdentifier
{
if
(
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
])
{
self
.
cycleScrollView
=
[
SDCycleScrollView
cycleScrollViewWithFrame
:
CGRectMake
(
20
*
k6Scale
,
5
*
k6Scale
,
kScreenWidth
-
40
*
k6Scale
,
95
*
k6Scale
)
shouldInfiniteLoop
:
YES
imageNamesGroup
:
@[]];
self
.
cycleScrollView
.
bannerImageViewContentMode
=
UIViewContentModeScaleAspectFill
;
//
self.cycleScrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
self
.
cycleScrollView
.
autoScrollTimeInterval
=
5
;
self
.
cycleScrollView
.
layer
.
cornerRadius
=
5
*
k6Scale
;
self
.
cycleScrollView
.
layer
.
masksToBounds
=
YES
;
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/0801HomePage/View/Cells/ZXHomePageSingleCell.m
View file @
e7706464
//
//
...
...
@@ -34,8 +34,8 @@
self
.
selectionStyle
=
UITableViewCellSelectionStyleGray
;
self
.
topicImageView
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
20
*
k6Scale
,
5
*
k6Scale
,
kScreenWidth
-
40
*
k6Scale
,
95
*
k6Scale
)];
[
self
.
contentView
addSubview
:
self
.
topicImageView
];
self
.
topicImageView
.
contentMode
=
UIViewContentModeScaleAspectFill
;
self
.
topicImageView
.
clipsToBounds
=
YES
;
//
self.topicImageView.contentMode = UIViewContentModeScaleAspectFill;
//
self.topicImageView.clipsToBounds = YES;
self
.
topicImageView
.
layer
.
cornerRadius
=
5
*
k6Scale
;
self
.
topicImageView
.
userInteractionEnabled
=
YES
;
UITapGestureRecognizer
*
tap1
=
[[
UITapGestureRecognizer
alloc
]
init
];
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/0801HomePage/View/Cells/ZXHomePageSingleNewsCell.m
View file @
e7706464
//
//
...
...
@@ -68,8 +68,8 @@
[
self
.
contentView
addSubview
:
self
.
titleLabel
];
// [self.contentView addSubview:self.fromLabel];
// [self.contentView addSubview:self.dateLabel];
self
.
contentImageView
.
contentMode
=
UIViewContentModeScaleAspectFill
;
self
.
contentImageView
.
clipsToBounds
=
YES
;
//
self.contentImageView.contentMode = UIViewContentModeScaleAspectFill;
//
self.contentImageView.clipsToBounds = YES;
self
.
contentImageView
.
layer
.
cornerRadius
=
5
*
k6Scale
;
// UIView *line = [[UIView alloc] init];
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/0801HomePage/View/customViews/ZXHomeFunctionView.m
View file @
e7706464
//
//
...
...
@@ -30,7 +30,7 @@
[
self
.
bgImageView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
edges
.
equalTo
(
self
);
}];
self
.
bgImageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
//
self.bgImageView.contentMode = UIViewContentModeScaleAspectFit;
// self.titleLabel = [[UILabel alloc] init];
// [self addSubview:_titleLabel];
// self.titleLabel.textColor = [UIColor whiteColor];
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/NewFirstPage(新版首页)/Views/HomeSectionView.m
View file @
e7706464
//
//
...
...
@@ -35,7 +35,7 @@
}];
self
.
contentImageView
.
backgroundColor
=
[
UIColor
clearColor
];
self
.
contentLabel
=
[[
UILabel
alloc
]
init
];
self
.
contentImageView
.
contentMode
=
UIViewContentModeScaleAspectFit
;
//
self.contentImageView.contentMode = UIViewContentModeScaleAspectFit;
[
self
.
contentView
addSubview
:
self
.
contentLabel
];
[
self
.
contentLabel
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
centerX
.
equalTo
(
self
.
contentView
);
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/NewFirstPage(新版首页)/Views/New_ADCell.m
View file @
e7706464
//
//
...
...
@@ -29,8 +29,8 @@
}];
self
.
contentImageview
.
layer
.
cornerRadius
=
5
;
self
.
contentImageview
.
clipsToBounds
=
YES
;
self
.
contentImageview
.
contentMode
=
UIViewContentModeScaleAspectFill
;
self
.
contentImageview
.
clipsToBounds
=
YES
;
//
self.contentImageview.contentMode = UIViewContentModeScaleAspectFill;
//
self.contentImageview.clipsToBounds = YES;
UITapGestureRecognizer
*
tap
=
[[
UITapGestureRecognizer
alloc
]
init
];
self
.
contentImageview
.
userInteractionEnabled
=
YES
;
[
self
.
contentImageview
addGestureRecognizer
:
tap
];
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/NewFirstPage(新版首页)/Views/New_BannerCell.m
View file @
e7706464
//
//
...
...
@@ -29,7 +29,7 @@
-
(
instancetype
)
initWithStyle
:
(
UITableViewCellStyle
)
style
reuseIdentifier
:
(
NSString
*
)
reuseIdentifier
{
if
(
self
=
[
super
initWithStyle
:
style
reuseIdentifier
:
reuseIdentifier
])
{
self
.
cycleScrollView
=
[
SDCycleScrollView
cycleScrollViewWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
120
*
k6Scale
)
shouldInfiniteLoop
:
YES
imageNamesGroup
:
@[]];
self
.
cycleScrollView
.
bannerImageViewContentMode
=
UIViewContentModeScaleAspectFill
;
//
self.cycleScrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
self
.
cycleScrollView
.
autoScrollTimeInterval
=
5
;
self
.
cycleScrollView
.
pageControlStyle
=
SDCycleScrollViewPageContolStyleClassic
;
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/NewFirstPage(新版首页)/Views/New_SchoolNewCell.m
View file @
e7706464
//
//
...
...
@@ -39,8 +39,8 @@
self
.
ContentImageView
=
[[
UIImageView
alloc
]
init
];
self
.
ContentImageView
.
contentMode
=
UIViewContentModeScaleAspectFill
;
self
.
ContentImageView
.
clipsToBounds
=
YES
;
//
self.ContentImageView.contentMode = UIViewContentModeScaleAspectFill;
//
self.ContentImageView.clipsToBounds = YES;
[
self
.
contentView
addSubview
:
self
.
ContentImageView
];
self
.
ContentImageView
.
layer
.
cornerRadius
=
5
;
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/NewFirstPage(新版首页)/Views/New_TopicCell.m
View file @
e7706464
//
//
...
...
@@ -24,8 +24,8 @@
self
.
selectionStyle
=
UITableViewCellSelectionStyleNone
;
self
.
contentImageView
=
[[
UIImageView
alloc
]
init
];
[
self
.
contentView
addSubview
:
self
.
contentImageView
];
self
.
contentImageView
.
contentMode
=
UIViewContentModeScaleAspectFill
;
self
.
contentImageView
.
clipsToBounds
=
YES
;
//
self.contentImageView.contentMode = UIViewContentModeScaleAspectFill;
//
self.contentImageView.clipsToBounds = YES;
self
.
contentImageView
.
layer
.
cornerRadius
=
5
;
self
.
contentImageView
.
layer
.
masksToBounds
=
YES
;
[
self
.
contentImageView
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/NewFirstPage(新版首页)/Views/New_WindowCell.m
View file @
e7706464
//
//
...
...
@@ -101,8 +101,8 @@
make
.
bottom
.
top
.
equalTo
(
imageV
);
make
.
width
.
mas_equalTo
(
1
);
}];
imageV
.
contentMode
=
UIViewContentModeScaleAspectFill
;
imageV
.
clipsToBounds
=
YES
;
//
imageV.contentMode = UIViewContentModeScaleAspectFill;
//
imageV.clipsToBounds = YES;
UIView
*
line1
=
[
UIView
new
];
[
imageV
addSubview
:
line1
];
line1
.
backgroundColor
=
kRGBColor
(
242
,
242
,
242
,
1
);
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/Operation(自助服务)/1.0Version(1.0购券)/UserEquipment/Controller/UseEquipmentController.m
View file @
e7706464
//
//
...
...
@@ -20,6 +20,7 @@
#import "HMScannerViewController.h"
#import "SearchEquipmenController.h"
#import "DeleteAlertView.h"
#import "ZXScannerViewController.h"
@interface
UseEquipmentController
()
<
UITableViewDataSource
,
UITableViewDelegate
,
UIGestureRecognizerDelegate
>
@property
(
strong
,
nonatomic
)
NSArray
*
dataArray
;
@property
(
strong
,
nonatomic
)
NSArray
*
imageArray
;
...
...
@@ -170,7 +171,7 @@
-
(
void
)
viewWillDisappear
:
(
BOOL
)
animated
{
[
super
viewWillDisappear
:
animated
];
self
.
currentStr
=
@""
;
}
-
(
void
)
addGestureForTopView
{
...
...
@@ -187,19 +188,34 @@
*/
-
(
void
)
tapGestureGotoqrCode
{
NSString
*
cardName
=
[
NSString
stringWithFormat
:
@"%@-%@"
,
@"二维码扫描"
,
self
.
equipItem
.
serviceName
];
UIImage
*
avatar
=
[
UIImage
imageNamed
:
@"avatar"
];
__weak
typeof
(
self
)
weakSelf
=
self
;
HMScannerViewController
*
scanner
=
[[
HMScannerViewController
alloc
]
initWithCardName
:
cardName
avatar
:
avatar
completion
:^
(
NSString
*
stringValue
)
{
// NSString *cardName = [NSString stringWithFormat:@"%@-%@",@"二维码扫描", self.equipItem.serviceName];
// UIImage *avatar = [UIImage imageNamed:@"avatar"];
//
// __weak typeof(self) weakSelf=self;
// HMScannerViewController * scanner=[[HMScannerViewController alloc]initWithCardName:cardName avatar:avatar completion:^(NSString *stringValue) {
//
//
// [weakSelf pushToBuyWith:stringValue];
//
// }];
// scanner.titleStr=@"使用设备";
// scanner.equipmentItem=self.equipItem;
// [self.navigationController pushViewController:scanner animated:NO];
[
weakSelf
pushToBuyWith
:
stringValue
];
@weakify
(
self
);
ZXScannerViewController
*
vc
=
[[
ZXScannerViewController
alloc
]
init
];
vc
.
equipmentItem
=
self
.
equipItem
;
vc
.
title
=
@"使用设备"
;
vc
.
hidesBottomBarWhenPushed
=
YES
;
vc
.
scanResult
=
^
(
NSString
*
result
)
{
@strongify
(
self
);
dispatch_async
(
dispatch_get_main_queue
(),
^
{
[
self
pushToBuyWith
:
result
];
});
}];
scanner
.
titleStr
=
@"使用设备"
;
scanner
.
equipmentItem
=
self
.
equipItem
;
[
self
.
navigationController
pushViewController
:
scanner
animated
:
NO
];
};
[
self
.
navigationController
pushViewController
:
vc
animated
:
NO
];
}
-
(
void
)
pushToBuyWith
:
(
NSString
*
)
strNo
;{
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/Operation(自助服务)/2.0条码/ZXSelfHelpViewController.m
View file @
e7706464
//
//
...
...
@@ -175,7 +175,7 @@
images
=
@[
@"洗衣01"
,
@"洗衣02"
];
}
self
.
cycleScrollView
=
[
SDCycleScrollView
cycleScrollViewWithFrame
:
CGRectZero
shouldInfiniteLoop
:
YES
imageNamesGroup
:
images
];
self
.
cycleScrollView
.
bannerImageViewContentMode
=
UIViewContentModeScaleAspectFill
;
//
self.cycleScrollView.bannerImageViewContentMode = UIViewContentModeScaleAspectFill;
self
.
cycleScrollView
.
autoScrollTimeInterval
=
3
;
self
.
cycleScrollView
.
pageControlStyle
=
SDCycleScrollViewPageContolStyleClassic
;
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/Operation(自助服务)/appointmentBath(预约洗浴)/Controller/ZXAppointBathViewController.m
View file @
e7706464
//
//
...
...
@@ -167,8 +167,8 @@
self
.
topView
.
backgroundColor
=
kRGBColor
(
242
,
242
,
242
,
1
);
UIImageView
*
header
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
kScreenWidth
*
image
.
size
.
height
/
image
.
size
.
width
)];
[
self
.
topView
addSubview
:
header
];
header
.
contentMode
=
UIViewContentModeBottomLeft
|
UIViewContentModeBottomRight
;
header
.
clipsToBounds
=
YES
;
//
header.contentMode = UIViewContentModeBottomLeft|UIViewContentModeBottomRight;
//
header.clipsToBounds = YES;
header
.
userInteractionEnabled
=
YES
;
header
.
image
=
image
;
// self.phone1 = [[UILabel alloc] init];
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/Operation(自助服务)/wisdomLattice(智慧格子)/Controller/ZXExceptionDealController.m
View file @
e7706464
//
//
...
...
@@ -113,8 +113,8 @@
UIImageView
*
line
=
[[
UIImageView
alloc
]
init
];
line
.
image
=
[
UIImage
imageNamed
:
@"wisdomGezi-line"
];
line
.
contentMode
=
UIViewContentModeScaleAspectFill
;
line
.
clipsToBounds
=
YES
;
//
line.contentMode = UIViewContentModeScaleAspectFill;
//
line.clipsToBounds = YES;
[
contentImageView
addSubview
:
line
];
[
line
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
contentImageView
.
mas_top
).
offset
(
84
*
k6Scale
);
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/Operation(自助服务)/wisdomLattice(智慧格子)/Controller/ZXWisdomLatticeViewController.m
View file @
e7706464
//
//
...
...
@@ -164,8 +164,8 @@
-
(
void
)
createTableHeader
{
UIImageView
*
top
=
[[
UIImageView
alloc
]
initWithFrame
:
CGRectMake
(
0
,
0
,
kScreenWidth
,
48
*
k6Scale
)];
top
.
contentMode
=
UIViewContentModeScaleAspectFill
;
top
.
clipsToBounds
=
YES
;
//
top.contentMode = UIViewContentModeScaleAspectFill;
//
top.clipsToBounds = YES;
top
.
userInteractionEnabled
=
YES
;
enlargeClickRegionBtn
*
scan
=
[[
enlargeClickRegionBtn
alloc
]
init
];
[
top
addSubview
:
scan
];
...
...
ColorfulSchool/ColorfulSchool/Classes/HomePage(首页)/Operation(自助服务)/wisdomLattice(智慧格子)/View/LatticeViolationOrderCell.m
View file @
e7706464
//
//
...
...
@@ -88,8 +88,8 @@
UIImageView
*
line
=
[[
UIImageView
alloc
]
init
];
line
.
image
=
[
UIImage
imageNamed
:
@"wisdomGezi-line"
];
line
.
contentMode
=
UIViewContentModeScaleAspectFill
;
line
.
clipsToBounds
=
YES
;
//
line.contentMode = UIViewContentModeScaleAspectFill;
//
line.clipsToBounds = YES;
[
contentImageView
addSubview
:
line
];
[
line
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
contentImageView
.
mas_top
).
offset
(
84
*
k6Scale
);
...
...
ColorfulSchool/ColorfulSchool/Classes/Vendor(三方)/SGQRCode/SGQRCodeObtain.h
View file @
e7706464
//
//
...
...
@@ -7,6 +7,7 @@
//
#import <UIKit/UIKit.h>
#import "EquipmentModel.h"
@class
SGQRCodeObtainConfigure
,
SGQRCodeObtain
;
typedef
void
(
^
SGQRCodeObtainScanResultBlock
)(
SGQRCodeObtain
*
obtain
,
NSString
*
result
);
...
...
@@ -15,6 +16,11 @@ typedef void(^SGQRCodeObtainAlbumDidCancelImagePickerControllerBlock)(SGQRCodeOb
typedef
void
(
^
SGQRCodeObtainAlbumResultBlock
)(
SGQRCodeObtain
*
obtain
,
NSString
*
result
);
@interface
SGQRCodeObtain
:
NSObject
/** 1.0的设备 */
@property
(
nonatomic
,
strong
)
equipmentItem
*
equipmentItem
;
/** 类方法创建 */
+
(
instancetype
)
QRCodeObtain
;
...
...
ColorfulSchool/ColorfulSchool/Classes/Vendor(三方)/SGQRCode/SGQRCodeObtain.m
View file @
e7706464
//
//
...
...
@@ -10,7 +10,7 @@
#import "SGQRCodeObtainConfigure.h"
#import <Photos/Photos.h>
#import "JXLayoutButton.h"
#import "SearchEquipmenController.h"
@interface
SGQRCodeObtain
()
<
AVCaptureMetadataOutputObjectsDelegate
,
AVCaptureVideoDataOutputSampleBufferDelegate
,
UINavigationControllerDelegate
,
UIImagePickerControllerDelegate
>
@property
(
nonatomic
,
weak
)
UIViewController
*
controller
;
@property
(
nonatomic
,
strong
)
SGQRCodeObtainConfigure
*
configure
;
...
...
@@ -182,6 +182,30 @@
make
.
centerX
.
equalTo
(
controller
.
view
);
}];
if
(
self
.
equipmentItem
)
{
/*
搜索按钮
*/
UIButton
*
searchBtn
=
[[
UIButton
alloc
]
init
];
[
searchBtn
setImage
:[
UIImage
imageNamed
:
@"扫描选择.png"
]
forState
:
UIControlStateNormal
];
@weakify
(
self
);
[[
searchBtn
rac_signalForControlEvents
:
UIControlEventTouchDown
]
subscribeNext
:
^
(
id
x
)
{
@strongify
(
self
);
SearchEquipmenController
*
view
=
[[
SearchEquipmenController
alloc
]
init
];
view
.
equipmentItem
=
self
.
equipmentItem
;
[
controller
.
navigationController
pushViewController
:
view
animated
:
YES
];
}];
[
controller
.
view
addSubview
:
searchBtn
];
[
searchBtn
mas_makeConstraints
:
^
(
MASConstraintMaker
*
make
)
{
make
.
top
.
equalTo
(
label2
.
mas_bottom
).
offset
(
15
*
k6Scale
);
make
.
width
.
mas_equalTo
(
150
*
k6Scale
);
make
.
height
.
mas_equalTo
(
25
*
k6Scale
);
make
.
centerX
.
equalTo
(
controller
.
view
.
mas_centerX
);
}];
}
UILabel
*
label
=
[[
UILabel
alloc
]
initWithFrame
:
CGRectMake
(
10
,
kTopHeight
+
100
*
k6Scale
+
kScreenWidth
*
0
.
7
,
[
UIScreen
mainScreen
].
bounds
.
size
.
width
-
20
,
80
)];
[
controller
.
view
addSubview
:
label
];
...
...
@@ -575,6 +599,7 @@ void soundCompleteCallback(SystemSoundID soundID, void *clientData){
}
}
-
(
void
)
closeFlashlight
{
self
.
lightBtn
.
selected
=
NO
;
AVCaptureDevice
*
captureDevice
=
[
AVCaptureDevice
defaultDeviceWithMediaType
:
AVMediaTypeVideo
];
if
([
captureDevice
hasTorch
])
{
[
captureDevice
lockForConfiguration
:
nil
];
...
...
ColorfulSchool/ColorfulSchool/Classes/Vendor(三方)/SGQRCode/ZXScannerViewController.h
View file @
e7706464
//
//
...
...
@@ -7,10 +7,12 @@
//
#import <UIKit/UIKit.h>
#import "EquipmentModel.h"
typedef
void
(
^
ScanResultBlock
)(
NSString
*
result
);
@interface
ZXScannerViewController
:
UIViewController
/** 1.0的设备 */
@property
(
nonatomic
,
strong
)
equipmentItem
*
equipmentItem
;
@property
(
copy
,
nonatomic
)
ScanResultBlock
scanResult
;
@end
ColorfulSchool/ColorfulSchool/Classes/Vendor(三方)/SGQRCode/ZXScannerViewController.m
View file @
e7706464
//
//
...
...
@@ -38,6 +38,7 @@
-
(
void
)
viewWillDisappear
:(
BOOL
)
animated
{
[
super
viewWillDisappear
:
animated
];
[
obtain
closeFlashlight
];
[
self
.
scanView
removeTimer
];
}
...
...
@@ -54,7 +55,7 @@
obtain
=
[
SGQRCodeObtain
QRCodeObtain
];
obtain
.
equipmentItem
=
self
.
equipmentItem
;
[
self
setupQRCodeScan
];
[
self
.
view
addSubview
:
self
.
scanView
];
// [self.view addSubview:self.promptLabel];
...
...
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