Commit 31ddb37d authored by 刘俊宏's avatar 刘俊宏

跳转商品分类Cell的ui

parent f072bf03
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<autoresizingMask key="autoresizingMask"/> <autoresizingMask key="autoresizingMask"/>
<subviews> <subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nBn-qe-PSC"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nBn-qe-PSC">
<rect key="frame" x="15" y="48" width="360" height="1"/> <rect key="frame" x="40" y="48" width="335" height="1"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="1" id="5gC-ff-FPN"/> <constraint firstAttribute="height" constant="1" id="5gC-ff-FPN"/>
...@@ -36,13 +36,13 @@ ...@@ -36,13 +36,13 @@
</subviews> </subviews>
<color key="backgroundColor" name="分类Cell背景色"/> <color key="backgroundColor" name="分类Cell背景色"/>
<constraints> <constraints>
<constraint firstItem="nBn-qe-PSC" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="8Uf-Le-cBK"/>
<constraint firstItem="QuV-c4-Eqm" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="40" id="BBA-3E-o65"/> <constraint firstItem="QuV-c4-Eqm" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="40" id="BBA-3E-o65"/>
<constraint firstAttribute="bottom" secondItem="nBn-qe-PSC" secondAttribute="bottom" id="D3Z-iL-5Pp"/> <constraint firstAttribute="bottom" secondItem="nBn-qe-PSC" secondAttribute="bottom" id="D3Z-iL-5Pp"/>
<constraint firstAttribute="trailing" secondItem="QuV-c4-Eqm" secondAttribute="trailing" id="XjE-Nj-mIz"/> <constraint firstAttribute="trailing" secondItem="QuV-c4-Eqm" secondAttribute="trailing" id="XjE-Nj-mIz"/>
<constraint firstItem="uwp-3N-xwZ" firstAttribute="centerY" secondItem="QuV-c4-Eqm" secondAttribute="centerY" id="bTm-qV-KOP"/> <constraint firstItem="uwp-3N-xwZ" firstAttribute="centerY" secondItem="QuV-c4-Eqm" secondAttribute="centerY" id="bTm-qV-KOP"/>
<constraint firstItem="QuV-c4-Eqm" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="dfv-qv-WTO"/> <constraint firstItem="QuV-c4-Eqm" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="dfv-qv-WTO"/>
<constraint firstAttribute="trailing" secondItem="uwp-3N-xwZ" secondAttribute="trailing" constant="15" id="eix-ed-vK0"/> <constraint firstAttribute="trailing" secondItem="uwp-3N-xwZ" secondAttribute="trailing" constant="15" id="eix-ed-vK0"/>
<constraint firstItem="nBn-qe-PSC" firstAttribute="leading" secondItem="QuV-c4-Eqm" secondAttribute="leading" id="foN-Sk-hRP"/>
<constraint firstAttribute="trailing" secondItem="nBn-qe-PSC" secondAttribute="trailing" id="mno-LZ-yHw"/> <constraint firstAttribute="trailing" secondItem="nBn-qe-PSC" secondAttribute="trailing" id="mno-LZ-yHw"/>
<constraint firstItem="nBn-qe-PSC" firstAttribute="top" secondItem="QuV-c4-Eqm" secondAttribute="bottom" id="tF5-Po-dnO"/> <constraint firstItem="nBn-qe-PSC" firstAttribute="top" secondItem="QuV-c4-Eqm" secondAttribute="bottom" id="tF5-Po-dnO"/>
</constraints> </constraints>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<rect key="frame" x="341" y="15" width="19" height="19"/> <rect key="frame" x="341" y="15" width="19" height="19"/>
</imageView> </imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SfC-2S-YPK"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SfC-2S-YPK">
<rect key="frame" x="15" y="48" width="360" height="1"/> <rect key="frame" x="75" y="48" width="300" height="1"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/> <color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="1" id="B43-AZ-cpc"/> <constraint firstAttribute="height" constant="1" id="B43-AZ-cpc"/>
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
<constraint firstAttribute="bottom" secondItem="82I-NG-ea8" secondAttribute="bottom" id="JSt-Om-bYm"/> <constraint firstAttribute="bottom" secondItem="82I-NG-ea8" secondAttribute="bottom" id="JSt-Om-bYm"/>
<constraint firstItem="82I-NG-ea8" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="75" id="UPU-yV-uNp"/> <constraint firstItem="82I-NG-ea8" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="75" id="UPU-yV-uNp"/>
<constraint firstAttribute="bottom" secondItem="SfC-2S-YPK" secondAttribute="bottom" id="VJ3-L9-F2F"/> <constraint firstAttribute="bottom" secondItem="SfC-2S-YPK" secondAttribute="bottom" id="VJ3-L9-F2F"/>
<constraint firstItem="SfC-2S-YPK" firstAttribute="leading" secondItem="82I-NG-ea8" secondAttribute="leading" id="ZfN-kc-mVn"/>
<constraint firstAttribute="trailing" secondItem="4da-tb-aTt" secondAttribute="trailing" constant="15" id="fKX-Hk-WnR"/> <constraint firstAttribute="trailing" secondItem="4da-tb-aTt" secondAttribute="trailing" constant="15" id="fKX-Hk-WnR"/>
<constraint firstItem="SfC-2S-YPK" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="i9H-nA-jJN"/>
</constraints> </constraints>
</tableViewCellContentView> </tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/> <viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
......
...@@ -17,7 +17,7 @@ class GoodsClassViewController: BaseViewController , UITableViewDelegate, UITabl ...@@ -17,7 +17,7 @@ class GoodsClassViewController: BaseViewController , UITableViewDelegate, UITabl
self.view.addSubview(navbar) self.view.addSubview(navbar)
for i in 0..<5 { for i in 0..<5 {
let model_1 = GoodsClassModel() let model_1 = GoodsClassModel()
model_1.name = "商品=\(i)" model_1.name = "第一级商品=\(i)"
model_1.isExpand = false model_1.isExpand = false
model_1.isCanExpand = false model_1.isCanExpand = false
model_1.isCanSelect = false model_1.isCanSelect = false
...@@ -28,7 +28,7 @@ class GoodsClassViewController: BaseViewController , UITableViewDelegate, UITabl ...@@ -28,7 +28,7 @@ class GoodsClassViewController: BaseViewController , UITableViewDelegate, UITabl
model_1.isCanExpand = true model_1.isCanExpand = true
for j in 0..<3 { for j in 0..<3 {
let model_2 = GoodsClassModel() let model_2 = GoodsClassModel()
model_2.name = "第二商品=\(j)" model_2.name = "第二商品=\(j)"
model_2.isExpand = false model_2.isExpand = false
model_2.isCanExpand = false model_2.isCanExpand = false
model_2.isCanSelect = false model_2.isCanSelect = false
...@@ -40,7 +40,7 @@ class GoodsClassViewController: BaseViewController , UITableViewDelegate, UITabl ...@@ -40,7 +40,7 @@ class GoodsClassViewController: BaseViewController , UITableViewDelegate, UITabl
model_2.isCanExpand = true model_2.isCanExpand = true
for k in 0..<2 { for k in 0..<2 {
let model_3 = GoodsClassModel() let model_3 = GoodsClassModel()
model_3.name = "第三商品=\(k)" model_3.name = "第三商品=\(k)"
model_3.isExpand = false model_3.isExpand = false
model_3.isCanExpand = false model_3.isCanExpand = false
model_3.isCanSelect = true model_3.isCanSelect = true
......
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