Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
A
ALand
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
张杰
ALand
Commits
4b80ba98
Commit
4b80ba98
authored
Jul 08, 2016
by
Sandy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改微信分享key,店铺设置标题
parent
ba144473
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
3 deletions
+29
-3
AppDelegate.m
ALand/Application/AppDelegate.m
+1
-1
ShopWebViewController.m
ALand/CodeClass/Home/ViewController/ShopWebViewController.m
+19
-1
StoreManagermentViewController.xib
...oller/StoreManagerment/StoreManagermentViewController.xib
+8
-0
Info.plist
ALand/Info.plist
+1
-1
No files found.
ALand/Application/AppDelegate.m
View file @
4b80ba98
...
...
@@ -46,7 +46,7 @@
{
[
UMSocialData
setAppKey
:
@"573ed34ae0f55a408c000018"
];
[
UMSocialQQHandler
setQQWithAppId
:
@"100424468"
appKey
:
@"c7394704798a158208a74ab60104f0ba"
url
:
@"http://www.umeng.com/social"
];
[
UMSocialWechatHandler
setWXAppId
:
@"wx2
e218a9fb84928fa"
appSecret
:
@"400c1925383f36f7768de707c69035e2
"
url
:
@"http://www.umeng.com/social"
];
[
UMSocialWechatHandler
setWXAppId
:
@"wx2
1ffd2e2453cdb28"
appSecret
:
@"5ee296fd01e88f53b687a16da3850250
"
url
:
@"http://www.umeng.com/social"
];
[
MobClick
startWithAppkey
:
@"573ed34ae0f55a408c000018"
reportPolicy
:(
REALTIME
)
channelId
:
nil
];
...
...
ALand/CodeClass/Home/ViewController/ShopWebViewController.m
View file @
4b80ba98
...
...
@@ -8,7 +8,7 @@
#import "ShopWebViewController.h"
#import <WebKit/WebKit.h>
@interface
ShopWebViewController
()
<
WKNavigationDelegate
>
@interface
ShopWebViewController
()
<
WKNavigationDelegate
,
WKUIDelegate
>
@property
(
nonatomic
,
weak
)
WKWebView
*
webView
;
@property
(
nonatomic
,
weak
)
UIButton
*
backItem
;
@property
(
nonatomic
,
weak
)
UIButton
*
closeItem
;
...
...
@@ -24,6 +24,7 @@
[
webView
loadRequest
:[
NSURLRequest
requestWithURL
:[
NSURL
URLWithString
:
inviteWebUrl
]]];
self
.
webView
=
webView
;
webView
.
navigationDelegate
=
self
;
webView
.
UIDelegate
=
self
;
[
self
.
view
addSubview
:
webView
];
[
self
initNaviBar
];
...
...
@@ -57,6 +58,23 @@
}
-
(
void
)
webView
:
(
WKWebView
*
)
webView
runJavaScriptConfirmPanelWithMessage
:
(
NSString
*
)
message
initiatedByFrame
:
(
WKFrameInfo
*
)
frame
completionHandler
:
(
void
(
^
)(
BOOL
))
completionHandler
{
UIAlertController
*
alertController
=
[
UIAlertController
alertControllerWithTitle
:
message
message
:
nil
preferredStyle
:
UIAlertControllerStyleAlert
];
[
alertController
addAction
:[
UIAlertAction
actionWithTitle
:
@"确定"
style
:
UIAlertActionStyleDefault
handler
:
^
(
UIAlertAction
*
action
)
{
completionHandler
(
YES
);
}]];
[
alertController
addAction
:[
UIAlertAction
actionWithTitle
:
@"取消"
style
:
UIAlertActionStyleCancel
handler
:
^
(
UIAlertAction
*
action
){
completionHandler
(
NO
);
}]];
[
self
presentViewController
:
alertController
animated
:
YES
completion
:^
{}];
}
#pragma mark - clickedBackItem
-
(
void
)
clickedBackItem
:
(
UIBarButtonItem
*
)
btn
{
...
...
ALand/CodeClass/Home/ViewController/StoreManagerment/StoreManagermentViewController.xib
View file @
4b80ba98
...
...
@@ -95,6 +95,12 @@
<action
selector=
"actionBack:"
destination=
"-1"
eventType=
"touchUpInside"
id=
"yqn-yV-Y7U"
/>
</connections>
</button>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"店铺设置"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Zga-rH-9aX"
>
<rect
key=
"frame"
x=
"146"
y=
"27"
width=
"84"
height=
"26"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"21"
/>
<color
key=
"textColor"
red=
"0.20000000000000001"
green=
"0.20000000000000001"
blue=
"0.20000000000000001"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"0.34509803921568627"
green=
"0.75686274509803919"
blue=
"0.050980392156862744"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
...
...
@@ -106,12 +112,14 @@
<constraint
firstAttribute=
"height"
constant=
"149"
id=
"GV2-1Q-Ijp"
/>
<constraint
firstItem=
"Iih-6D-NVq"
firstAttribute=
"top"
secondItem=
"cCx-iM-GxW"
secondAttribute=
"top"
constant=
"20"
id=
"JXO-eW-nEm"
/>
<constraint
firstItem=
"hUK-HQ-XXe"
firstAttribute=
"leading"
secondItem=
"cCx-iM-GxW"
secondAttribute=
"leading"
id=
"Jwj-Yj-2V1"
/>
<constraint
firstItem=
"Iih-6D-NVq"
firstAttribute=
"centerY"
secondItem=
"Zga-rH-9aX"
secondAttribute=
"centerY"
id=
"NOt-L8-XmU"
/>
<constraint
firstItem=
"4Yy-CO-HtC"
firstAttribute=
"leading"
secondItem=
"PBT-3w-ecp"
secondAttribute=
"trailing"
constant=
"8"
id=
"NfU-92-PXZ"
/>
<constraint
firstItem=
"PBT-3w-ecp"
firstAttribute=
"leading"
secondItem=
"cCx-iM-GxW"
secondAttribute=
"leading"
constant=
"17"
id=
"Ntd-9j-am9"
/>
<constraint
firstItem=
"PBT-3w-ecp"
firstAttribute=
"leading"
secondItem=
"cCx-iM-GxW"
secondAttribute=
"leading"
constant=
"18"
id=
"Php-3h-4HB"
/>
<constraint
firstItem=
"PBT-3w-ecp"
firstAttribute=
"leading"
secondItem=
"cCx-iM-GxW"
secondAttribute=
"leading"
constant=
"17"
id=
"QXy-R3-P0b"
/>
<constraint
firstItem=
"R3l-SJ-mVe"
firstAttribute=
"leading"
secondItem=
"4Yy-CO-HtC"
secondAttribute=
"trailing"
constant=
"1"
id=
"XEe-Qm-ii1"
/>
<constraint
firstItem=
"hUK-HQ-XXe"
firstAttribute=
"top"
secondItem=
"cCx-iM-GxW"
secondAttribute=
"top"
id=
"Yek-FD-W0b"
/>
<constraint
firstItem=
"Zga-rH-9aX"
firstAttribute=
"centerX"
secondItem=
"cCx-iM-GxW"
secondAttribute=
"centerX"
id=
"axV-DS-U7f"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"4Yy-CO-HtC"
secondAttribute=
"bottom"
constant=
"57"
id=
"cby-QI-yPW"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"PBT-3w-ecp"
secondAttribute=
"bottom"
constant=
"14"
id=
"kiK-Uy-3cZ"
/>
<constraint
firstItem=
"asy-i8-hFm"
firstAttribute=
"leading"
secondItem=
"PBT-3w-ecp"
secondAttribute=
"trailing"
constant=
"8"
id=
"mGi-eg-U9m"
/>
...
...
ALand/Info.plist
View file @
4b80ba98
...
...
@@ -37,7 +37,7 @@
<
string
>
Editor
<
/string
>
<
k
e
y
>
CFBundleURLSchemes
<
/k
e
y
>
<
a
rr
a
y
>
<
string
>
wx2
e218a9fb84928fa
<
/string
>
<
string
>
wx2
1ffd2e2453cdb28
<
/string
>
<
/
a
rr
a
y
>
<
/
d
i
c
t
>
<
/
a
rr
a
y
>
...
...
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