Commit 4b80ba98 authored by Sandy's avatar Sandy

修改微信分享key,店铺设置标题

parent ba144473
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
{ {
[UMSocialData setAppKey:@"573ed34ae0f55a408c000018"]; [UMSocialData setAppKey:@"573ed34ae0f55a408c000018"];
[UMSocialQQHandler setQQWithAppId:@"100424468" appKey:@"c7394704798a158208a74ab60104f0ba" url:@"http://www.umeng.com/social"]; [UMSocialQQHandler setQQWithAppId:@"100424468" appKey:@"c7394704798a158208a74ab60104f0ba" url:@"http://www.umeng.com/social"];
[UMSocialWechatHandler setWXAppId:@"wx2e218a9fb84928fa" appSecret:@"400c1925383f36f7768de707c69035e2" url:@"http://www.umeng.com/social"]; [UMSocialWechatHandler setWXAppId:@"wx21ffd2e2453cdb28" appSecret:@"5ee296fd01e88f53b687a16da3850250" url:@"http://www.umeng.com/social"];
[MobClick startWithAppkey:@"573ed34ae0f55a408c000018" reportPolicy:(REALTIME) channelId:nil]; [MobClick startWithAppkey:@"573ed34ae0f55a408c000018" reportPolicy:(REALTIME) channelId:nil];
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
#import "ShopWebViewController.h" #import "ShopWebViewController.h"
#import <WebKit/WebKit.h> #import <WebKit/WebKit.h>
@interface ShopWebViewController ()<WKNavigationDelegate> @interface ShopWebViewController ()<WKNavigationDelegate, WKUIDelegate>
@property (nonatomic, weak) WKWebView * webView; @property (nonatomic, weak) WKWebView * webView;
@property (nonatomic, weak) UIButton * backItem; @property (nonatomic, weak) UIButton * backItem;
@property (nonatomic, weak) UIButton * closeItem; @property (nonatomic, weak) UIButton * closeItem;
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:inviteWebUrl]]]; [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:inviteWebUrl]]];
self.webView = webView; self.webView = webView;
webView.navigationDelegate = self; webView.navigationDelegate = self;
webView.UIDelegate = self;
[self.view addSubview:webView]; [self.view addSubview:webView];
[self initNaviBar]; [self initNaviBar];
...@@ -57,6 +58,23 @@ ...@@ -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 #pragma mark - clickedBackItem
- (void)clickedBackItem:(UIBarButtonItem *)btn{ - (void)clickedBackItem:(UIBarButtonItem *)btn{
......
...@@ -95,6 +95,12 @@ ...@@ -95,6 +95,12 @@
<action selector="actionBack:" destination="-1" eventType="touchUpInside" id="yqn-yV-Y7U"/> <action selector="actionBack:" destination="-1" eventType="touchUpInside" id="yqn-yV-Y7U"/>
</connections> </connections>
</button> </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> </subviews>
<color key="backgroundColor" red="0.34509803921568627" green="0.75686274509803919" blue="0.050980392156862744" alpha="1" colorSpace="calibratedRGB"/> <color key="backgroundColor" red="0.34509803921568627" green="0.75686274509803919" blue="0.050980392156862744" alpha="1" colorSpace="calibratedRGB"/>
<constraints> <constraints>
...@@ -106,12 +112,14 @@ ...@@ -106,12 +112,14 @@
<constraint firstAttribute="height" constant="149" id="GV2-1Q-Ijp"/> <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="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="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="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="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="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="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="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="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="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 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"/> <constraint firstItem="asy-i8-hFm" firstAttribute="leading" secondItem="PBT-3w-ecp" secondAttribute="trailing" constant="8" id="mGi-eg-U9m"/>
......
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<string>Editor</string> <string>Editor</string>
<key>CFBundleURLSchemes</key> <key>CFBundleURLSchemes</key>
<array> <array>
<string>wx2e218a9fb84928fa</string> <string>wx21ffd2e2453cdb28</string>
</array> </array>
</dict> </dict>
</array> </array>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment