Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhongChaoMerchant_iOS
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
zhukai
zhongChaoMerchant_iOS
Commits
905d8be8
Commit
905d8be8
authored
Aug 20, 2019
by
ChenCD
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改,等级D,关于我们
parent
f9f1a5a9
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
188 additions
and
79 deletions
+188
-79
.DS_Store
ZhongChaoApp/.DS_Store
+0
-0
xcschememanagement.plist
...a/dongchen.xcuserdatad/xcschemes/xcschememanagement.plist
+79
-0
project.pbxproj
ZhongChaoApp/UniversalApp.xcodeproj/project.pbxproj
+2
-2
UniversalApp.xcscheme
...pp.xcodeproj/xcshareddata/xcschemes/UniversalApp.xcscheme
+1
-1
xcschememanagement.plist
...a/dongchen.xcuserdatad/xcschemes/xcschememanagement.plist
+19
-0
UserInterfaceState.xcuserstate
...rdata/dongchen.xcuserdatad/UserInterfaceState.xcuserstate
+0
-0
ZCLoginViewController.m
...dules/Login/Controller/Login[登录页]/ZCLoginViewController.m
+5
-3
ZCProblemDetailViewController.m
.../Controller/Problem[常见问题]/ZCProblemDetailViewController.m
+48
-22
ZCMineHeadView.m
...versalApp/Modules/Mine/View/Mine[个人中心视图]/ZCMineHeadView.m
+4
-1
1024x1024.png
...ng Flies/Assets.xcassets/AppIcon.appiconset/1024x1024.png
+0
-0
Contents.json
...ng Flies/Assets.xcassets/AppIcon.appiconset/Contents.json
+2
-46
Contents.json
...rting Flies/Assets.xcassets/个人中心/d.imageset/Contents.json
+24
-0
d@2x.png
...Supporting Flies/Assets.xcassets/个人中心/d.imageset/d@2x.png
+0
-0
d@3x.png
...Supporting Flies/Assets.xcassets/个人中心/d.imageset/d@3x.png
+0
-0
Info.plist
ZhongChaoApp/UniversalApp/Supporting Flies/Info.plist
+4
-4
No files found.
ZhongChaoApp/.DS_Store
View file @
905d8be8
No preview for this file type
ZhongChaoApp/Pods/Pods.xcodeproj/xcuserdata/dongchen.xcuserdatad/xcschemes/xcschememanagement.plist
0 → 100644
View file @
905d8be8
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
SchemeUserState
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
AFNetworking.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
4
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
HappyDNS.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
5
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
IQKeyboardManager.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
6
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
LBXScan.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
7
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
MBProgressHUD.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
9
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
MJRefresh.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
10
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
Masonry.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
8
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
PNChart.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
11
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
Pods-UniversalApp.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
12
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
Qiniu.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
13
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
SDWebImage.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
14
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
UICountingLabel.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
15
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
YTKNetwork.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
16
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
YYKit.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
17
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/plist
>
ZhongChaoApp/UniversalApp.xcodeproj/project.pbxproj
View file @
905d8be8
...
...
@@ -3019,7 +3019,7 @@
);
GCC_PREFIX_HEADER
=
"$(SRCROOT)/UniversalApp/Supporting Flies/PrefixHeader.pch"
;
INFOPLIST_FILE
=
"UniversalApp/Supporting Flies/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.4
;
IPHONEOS_DEPLOYMENT_TARGET
=
10.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LIBRARY_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
@@ -3095,7 +3095,7 @@
);
GCC_PREFIX_HEADER
=
"$(SRCROOT)/UniversalApp/Supporting Flies/PrefixHeader.pch"
;
INFOPLIST_FILE
=
"UniversalApp/Supporting Flies/Info.plist"
;
IPHONEOS_DEPLOYMENT_TARGET
=
8.4
;
IPHONEOS_DEPLOYMENT_TARGET
=
10.0
;
LD_RUNPATH_SEARCH_PATHS
=
"$(inherited) @executable_path/Frameworks"
;
LIBRARY_SEARCH_PATHS
=
(
"$(inherited)"
,
...
...
ZhongChaoApp/UniversalApp.xcodeproj/xcshareddata/xcschemes/UniversalApp.xcscheme
View file @
905d8be8
...
...
@@ -62,7 +62,7 @@
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration =
"
Debug
"
buildConfiguration =
"
Release
"
selectedDebuggerIdentifier =
"Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier =
"Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle =
"0"
...
...
ZhongChaoApp/UniversalApp.xcodeproj/xcuserdata/dongchen.xcuserdatad/xcschemes/xcschememanagement.plist
0 → 100644
View file @
905d8be8
<
?xml
v
e
rsion="
1
.
0
"
e
n
c
o
d
ing="UT
F
-
8
"?
>
<
!
D
O
C
TYP
E
plist
PU
B
LI
C
"-//
A
ppl
e
//
D
T
D
PLIST
1
.
0
//
E
N"
"http://www.
a
ppl
e
.
c
om/
D
T
D
s/Prop
e
rtyList-
1
.
0
.
d
t
d
"
>
<
plist
v
e
rsion="
1
.
0
"
>
<
d
i
c
t
>
<
k
e
y
>
SchemeUserState
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
PushService.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
2
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
k
e
y
>
UniversalApp.xcscheme_
^#
shared
#^
_
<
/k
e
y
>
<
d
i
c
t
>
<
k
e
y
>
orderHint
<
/k
e
y
>
<
int
e
g
e
r
>
3
<
/int
e
g
e
r
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/
d
i
c
t
>
<
/plist
>
ZhongChaoApp/UniversalApp.xcworkspace/xcuserdata/dongchen.xcuserdatad/UserInterfaceState.xcuserstate
0 → 100644
View file @
905d8be8
File added
ZhongChaoApp/UniversalApp/Modules/Login/Controller/Login[登录页]/ZCLoginViewController.m
View file @
905d8be8
//
//
...
...
@@ -54,9 +54,11 @@
// _userNameTextField.text = @"13076148199";
// _passwordTextField.text = @"123456789";
//
_userNameTextField
.
text
=
@"13711114545"
;
_passwordTextField
.
text
=
@"111111"
;
//
_userNameTextField.text = @"13711114545";
//
_passwordTextField.text = @"111111";
// _userNameTextField.text = @"13700007777";
// _passwordTextField.text = @"111111";
_userName
=
_userNameTextField
.
text
;
_password
=
_passwordTextField
.
text
;
}
...
...
ZhongChaoApp/UniversalApp/Modules/Mine/Controller/Problem[常见问题]/ZCProblemDetailViewController.m
View file @
905d8be8
//
//
...
...
@@ -8,36 +8,62 @@
#import "ZCProblemDetailViewController.h"
#import <WebKit/WebKit.h>
@interface
ZCProblemDetailViewController
()
<
WKUIDelegate
,
WKNavigationDelegate
>
@property
(
nonatomic
,
strong
)
WKWebView
*
webView
;
@end
@implementation
ZCProblemDetailViewController
-
(
void
)
viewDidLoad
{
[
super
viewDidLoad
];
[
self
addNavigationItemWithImageNames
:@[
@"navBackNor"
]
isLeft
:
YES
target
:
self
action
:
@selector
(
backBtnClicked
)
tags
:
nil
];
}
-
(
void
)
setHtmlStr
:
(
NSString
*
)
htmlStr
{
[
self
addNavigationItemWithImageNames
:@[
@"navBackNor"
]
isLeft
:
YES
target
:
self
action
:
@selector
(
backBtnClicked
)
tags
:
nil
];
NSLog
(
@"======----%@"
,
self
.
htmlStr
);
UIScrollView
*
scrollView
=
[[
UIScrollView
alloc
]
initWithFrame
:
self
.
view
.
bounds
];
YYLabel
*
textLbl
=
[[
YYLabel
alloc
]
initWithFrame
:
CGRectMake
(
15
,
15
,
self
.
view
.
width
-
30
,
0
)];
textLbl
.
numberOfLines
=
0
;
textLbl
.
textVerticalAlignment
=
YYTextVerticalAlignmentTop
;
NSMutableParagraphStyle
*
paragraphStyle
=
[
NSMutableParagraphStyle
new
];
paragraphStyle
.
lineSpacing
=
6
;
paragraphStyle
.
lineBreakMode
=
NSLineBreakByCharWrapping
;
NSDictionary
*
dict
=
@{
NSDocumentTypeDocumentAttribute
:
NSHTMLTextDocumentType
};
NSAttributedString
*
attributedString
=
[[
NSAttributedString
alloc
]
initWithData
:[
htmlStr
dataUsingEncoding
:
NSUnicodeStringEncoding
]
options
:
dict
documentAttributes
:
nil
error
:
nil
];
NSString
*
jScript
=
@"var meta = document.createElement('meta'); meta.setAttribute('name', 'viewport'); meta.setAttribute('content', 'width=device-width'); document.getElementsByTagName('head')[0].appendChild(meta);"
;
WKUserScript
*
wkUScript
=
[[
WKUserScript
alloc
]
initWithSource
:
jScript
injectionTime
:
WKUserScriptInjectionTimeAtDocumentEnd
forMainFrameOnly
:
YES
];
WKUserContentController
*
wkUController
=
[[
WKUserContentController
alloc
]
init
];
[
wkUController
addUserScript
:
wkUScript
];
WKWebViewConfiguration
*
wkWebConfig
=
[[
WKWebViewConfiguration
alloc
]
init
];
wkWebConfig
.
userContentController
=
wkUController
;
self
.
webView
=
[[
WKWebView
alloc
]
initWithFrame
:
self
.
view
.
bounds
configuration
:
wkWebConfig
];;
CGFloat
height
=
[
htmlStr
countHeightWithWidth
:
KScreenWidth
-
30
font
:
kFont
(
18
)
lineSpace
:
0
];
textLbl
.
height
=
height
;
if
(
height
>
self
.
view
.
height
-
30
)
{
scrollView
.
contentSize
=
CGSizeMake
(
0
,
height
);
}
self
.
webView
.
navigationDelegate
=
self
;
self
.
webView
.
UIDelegate
=
self
;
[
self
.
view
addSubview
:
self
.
webView
];
[
textLbl
setAttributedText
:
attributedString
];
[
self
.
view
addSubview
:
scrollView
];
[
scrollView
addSubview
:
textLbl
];
[
self
.
webView
loadHTMLString
:
self
.
htmlStr
baseURL
:
nil
];
}
-
(
void
)
webView
:
(
WKWebView
*
)
webView
didFinishNavigation
:
(
WKNavigation
*
)
navigation
{
[
self
.
webView
evaluateJavaScript
:
@"document.getElementsByTagName('body')[0].style.webkitTextSizeAdjust= '300%'"
completionHandler
:
nil
];
}
//-(void)setHtmlStr:(NSString *)htmlStr{
//
// UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds];
// YYLabel *textLbl = [[YYLabel alloc] initWithFrame:CGRectMake(15, 15, self.view.width-30,0)];
// textLbl.numberOfLines = 0;
// textLbl.textVerticalAlignment = YYTextVerticalAlignmentTop;
// NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new];
// paragraphStyle.lineSpacing = 6;
// paragraphStyle.lineBreakMode = NSLineBreakByCharWrapping;
// NSDictionary *dict = @{NSDocumentTypeDocumentAttribute:NSHTMLTextDocumentType};
// NSAttributedString *attributedString = [[NSAttributedString alloc] initWithData:[htmlStr dataUsingEncoding:NSUnicodeStringEncoding] options:dict documentAttributes:nil error:nil];
//
//
// CGFloat height = [htmlStr countHeightWithWidth:KScreenWidth-30 font:kFont(18) lineSpace:0];
// textLbl.height = height;
// if (height > self.view.height - 30) {
// scrollView.contentSize = CGSizeMake(0, height);
// }
//
// [textLbl setAttributedText:attributedString];
// [self.view addSubview:scrollView];
// [scrollView addSubview:textLbl];
//}
@end
ZhongChaoApp/UniversalApp/Modules/Mine/View/Mine[个人中心视图]/ZCMineHeadView.m
View file @
905d8be8
//
//
...
...
@@ -36,6 +36,9 @@
case
3
:
levelStr
=
@"c"
;
break
;
case
4
:
levelStr
=
@"d"
;
break
;
}
_levelIcon
.
image
=
[
UIImage
imageNamed
:
levelStr
];
}
...
...
ZhongChaoApp/UniversalApp/Supporting Flies/Assets.xcassets/AppIcon.appiconset/1024x1024.png
0 → 100644
View file @
905d8be8
33.5 KB
ZhongChaoApp/UniversalApp/Supporting Flies/Assets.xcassets/AppIcon.appiconset/Contents.json
View file @
905d8be8
...
...
@@ -49,53 +49,9 @@
"scale"
:
"3x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"20x20"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"20x20"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"29x29"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"29x29"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"40x40"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"40x40"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"76x76"
,
"scale"
:
"1x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"76x76"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ipad"
,
"size"
:
"83.5x83.5"
,
"scale"
:
"2x"
},
{
"idiom"
:
"ios-marketing"
,
"size"
:
"1024x1024"
,
"idiom"
:
"ios-marketing"
,
"filename"
:
"1024x1024.png"
,
"scale"
:
"1x"
}
],
...
...
ZhongChaoApp/UniversalApp/Supporting Flies/Assets.xcassets/个人中心/d.imageset/Contents.json
0 → 100644
View file @
905d8be8
{
{
"images"
:
[
{
"idiom"
:
"universal"
,
"scale"
:
"1x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"d@2x.png"
,
"scale"
:
"2x"
},
{
"idiom"
:
"universal"
,
"filename"
:
"d@3x.png"
,
"scale"
:
"3x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
ZhongChaoApp/UniversalApp/Supporting Flies/Assets.xcassets/个人中心/d.imageset/d@2x.png
0 → 100644
View file @
905d8be8
5.82 KB
ZhongChaoApp/UniversalApp/Supporting Flies/Assets.xcassets/个人中心/d.imageset/d@3x.png
0 → 100644
View file @
905d8be8
11.1 KB
ZhongChaoApp/UniversalApp/Supporting Flies/Info.plist
View file @
905d8be8
...
...
@@ -17,7 +17,7 @@
<
k
e
y
>
CFBundlePackageType
<
/k
e
y
>
<
string
>
APPL
<
/string
>
<
k
e
y
>
CFBundleShortVersionString
<
/k
e
y
>
<
string
>
1.
0
<
/string
>
<
string
>
1.
1
<
/string
>
<
k
e
y
>
CFBundleURLTypes
<
/k
e
y
>
<
a
rr
a
y
>
<
d
i
c
t
>
...
...
@@ -46,7 +46,7 @@
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
<
k
e
y
>
CFBundleVersion
<
/k
e
y
>
<
string
>
1
<
/string
>
<
string
>
1
.1
<
/string
>
<
k
e
y
>
LSApplicationQueriesSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
wechat
<
/string
>
...
...
@@ -92,6 +92,8 @@
<
string
>
众巢商家版需要您的授权才能访问通讯录信息
<
/string
>
<
k
e
y
>
NSLocationUsageDescription
<
/k
e
y
>
<
string
>
众巢商家版需要您的授权才能获取定位信息
<
/string
>
<
k
e
y
>
NSLocationWhenInUseUsageDescription
<
/k
e
y
>
<
string
>
众巢商家版需要您的授权才能在使用期间获取定位信息
<
/string
>
<
k
e
y
>
NSMicrophoneUsageDescription
<
/k
e
y
>
<
string
>
众巢商家版需要您的授权才能访问麦克风
<
/string
>
<
k
e
y
>
NSPhotoLibraryAddUsageDescription
<
/k
e
y
>
...
...
@@ -114,8 +116,6 @@
<
string
>
UIInterfaceOrientationLandscapeLeft
<
/string
>
<
string
>
UIInterfaceOrientationLandscapeRight
<
/string
>
<
/
a
rr
a
y
>
<
k
e
y
>
NSLocationWhenInUseUsageDescription
<
/k
e
y
>
<
string
>
众巢商家版需要您的授权才能在使用期间获取定位信息
<
/string
>
<
k
e
y
>
UISupportedInterfaceOrientations
~
ipad
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
UIInterfaceOrientationPortrait
<
/string
>
...
...
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