From 99094ddb08b6d15c057306c460cb1bbdf331d9e4 Mon Sep 17 00:00:00 2001
From: lee <627051222@qq.com>
Date: Thu, 20 Jul 2017 18:13:01 +0800
Subject: [PATCH] u shopcart click

---
 iCemarose/Class/UI/ShopCart/Cell/KWMShopCarCell.xib | 6 +++---
 iCemarose/Class/UI/ShopCart/KWMShopCartVC.m         | 8 ++++++++
 iCemarose/Class/UI/ShopCart/ShopCart.storyboard     | 6 +++---
 iCemarose/Info.plist                                | 2 +-
 4 files changed, 15 insertions(+), 7 deletions(-)

diff --git a/iCemarose/Class/UI/ShopCart/Cell/KWMShopCarCell.xib b/iCemarose/Class/UI/ShopCart/Cell/KWMShopCarCell.xib
index c0235fc..fa1a4bc 100644
--- a/iCemarose/Class/UI/ShopCart/Cell/KWMShopCarCell.xib
+++ b/iCemarose/Class/UI/ShopCart/Cell/KWMShopCarCell.xib
@@ -1,17 +1,17 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12118" systemVersion="16A323" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="12120" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina4_7" orientation="portrait">
         <adaptation id="fullscreen"/>
     </device>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12086"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
     <objects>
         <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
         <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
-        <tableViewCell contentMode="scaleToFill" restorationIdentifier="KWMShopCarCell" selectionStyle="default" indentationWidth="10" reuseIdentifier="KWMShopCarCell" id="KGk-i7-Jjw" customClass="KWMShopCarCell">
+        <tableViewCell contentMode="scaleToFill" restorationIdentifier="KWMShopCarCell" selectionStyle="none" indentationWidth="10" reuseIdentifier="KWMShopCarCell" id="KGk-i7-Jjw" customClass="KWMShopCarCell">
             <rect key="frame" x="0.0" y="0.0" width="375" height="180"/>
             <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
             <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
diff --git a/iCemarose/Class/UI/ShopCart/KWMShopCartVC.m b/iCemarose/Class/UI/ShopCart/KWMShopCartVC.m
index cddf5c1..4244e44 100644
--- a/iCemarose/Class/UI/ShopCart/KWMShopCartVC.m
+++ b/iCemarose/Class/UI/ShopCart/KWMShopCartVC.m
@@ -91,6 +91,14 @@
     return shopCartCell;
 }
 
+- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
+    KWMShopCartModel *model = [_shopCartList objectAtIndex:indexPath.row];
+    NSString *handle = model.shopCartDict[@"handle"];
+    if (handle) {
+        [self openURLWithString:[NSString stringWithFormat:@"https://cemarose.myshopify.com/products/%@",handle]];
+    }
+}
+
 //点击随意逛逛
 - (IBAction)onClickRandomBtn:(id)sender {
     NSLog(@"点击了随意逛逛");
diff --git a/iCemarose/Class/UI/ShopCart/ShopCart.storyboard b/iCemarose/Class/UI/ShopCart/ShopCart.storyboard
index aa60ec4..8394f64 100644
--- a/iCemarose/Class/UI/ShopCart/ShopCart.storyboard
+++ b/iCemarose/Class/UI/ShopCart/ShopCart.storyboard
@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12121" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
+<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="12120" systemVersion="16F73" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
     <device id="retina4_7" orientation="portrait">
         <adaptation id="fullscreen"/>
     </device>
     <dependencies>
         <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12089"/>
+        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="12088"/>
         <capability name="Constraints with non-1.0 multipliers" minToolsVersion="5.1"/>
         <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
     </dependencies>
@@ -22,7 +22,7 @@
                         <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
                         <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
                         <subviews>
-                            <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Dak-2L-vlZ">
+                            <tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="none" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="Dak-2L-vlZ">
                                 <rect key="frame" x="0.0" y="0.0" width="375" height="549"/>
                                 <color key="backgroundColor" red="0.95686274509803915" green="0.96078431372549022" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
                                 <color key="sectionIndexBackgroundColor" red="0.95686274509803915" green="0.96078431372549022" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
diff --git a/iCemarose/Info.plist b/iCemarose/Info.plist
index ee02ced..54d5eee 100644
--- a/iCemarose/Info.plist
+++ b/iCemarose/Info.plist
@@ -56,7 +56,7 @@
 		</dict>
 	</array>
 	<key>CFBundleVersion</key>
-	<string>2017071917</string>
+	<string>2017072018</string>
 	<key>ITSAppUsesNonExemptEncryption</key>
 	<false/>
 	<key>LSApplicationQueriesSchemes</key>
--
libgit2 0.26.0