Commit 10567670 authored by lujunye's avatar lujunye

优化cell显示

parent d291a3c2
...@@ -189,11 +189,11 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc ...@@ -189,11 +189,11 @@ class OrderListVC: BaseViewController, UITableViewDelegate, UITableViewDataSourc
// cell.leftIcon.isHidden = true // cell.leftIcon.isHidden = true
// cell.nameLblLeft.constant = -15 // cell.nameLblLeft.constant = -15
if rowModel.cus_name != nil { if rowModel.cus_name != nil {
cell.nameLbl.text = rowModel.cus_name cell.nameLbl.text = rowModel.cus_name!
}else{ }else{
cell.nameLbl.text = rowModel.user_name cell.nameLbl.text = rowModel.user_name!
} }
cell.orderNumerLbl.text = rowModel.order_sn cell.orderNumerLbl.text = rowModel.order_sn!
cell.statusLbl.text = orderStatusStrByInt(statusNumber: rowModel.order_status!) cell.statusLbl.text = orderStatusStrByInt(statusNumber: rowModel.order_status!)
cell.countLbl.text = "\(rowModel.goods_number!)" cell.countLbl.text = "\(rowModel.goods_number!)"
cell.priceLbl.text = rowModel.sum_amount cell.priceLbl.text = rowModel.sum_amount
......
...@@ -37,8 +37,12 @@ ...@@ -37,8 +37,12 @@
<constraint firstAttribute="height" constant="17.5" id="q0W-cG-7kX"/> <constraint firstAttribute="height" constant="17.5" id="q0W-cG-7kX"/>
</constraints> </constraints>
</imageView> </imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="标题" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CPQ-JB-dO9"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="321312" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="CPQ-JB-dO9">
<rect key="frame" x="35" y="16" width="27" height="16"/> <rect key="frame" x="35" y="16" width="44" height="16"/>
<constraints>
<constraint firstAttribute="width" relation="lessThanOrEqual" constant="70" id="Jno-Ez-xfr"/>
<constraint firstAttribute="width" relation="greaterThanOrEqual" constant="40" id="h2R-4R-NZP"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/> <fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/> <color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
...@@ -168,8 +172,8 @@ ...@@ -168,8 +172,8 @@
</userDefinedRuntimeAttribute> </userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes> </userDefinedRuntimeAttributes>
</label> </label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UuD-5H-NJZ"> <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="4323434234r234242424" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UuD-5H-NJZ">
<rect key="frame" x="299" y="16" width="33" height="16"/> <rect key="frame" x="174" y="16" width="158" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/> <fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/> <color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/> <nil key="highlightedColor"/>
...@@ -180,18 +184,19 @@ ...@@ -180,18 +184,19 @@
<constraint firstItem="ZEQ-bR-jNZ" firstAttribute="leading" secondItem="xNb-6a-mWT" secondAttribute="leading" id="3H6-Mf-efn"/> <constraint firstItem="ZEQ-bR-jNZ" firstAttribute="leading" secondItem="xNb-6a-mWT" secondAttribute="leading" id="3H6-Mf-efn"/>
<constraint firstItem="HVh-eU-WcT" firstAttribute="top" secondItem="xNb-6a-mWT" secondAttribute="top" constant="15" id="3vl-Na-tUS"/> <constraint firstItem="HVh-eU-WcT" firstAttribute="top" secondItem="xNb-6a-mWT" secondAttribute="top" constant="15" id="3vl-Na-tUS"/>
<constraint firstItem="wn2-a8-osu" firstAttribute="top" secondItem="ZEQ-bR-jNZ" secondAttribute="bottom" id="4nM-v6-4eY"/> <constraint firstItem="wn2-a8-osu" firstAttribute="top" secondItem="ZEQ-bR-jNZ" secondAttribute="bottom" id="4nM-v6-4eY"/>
<constraint firstItem="CPQ-JB-dO9" firstAttribute="centerY" secondItem="HVh-eU-WcT" secondAttribute="centerY" id="6qc-GO-WUG"/> <constraint firstItem="UuD-5H-NJZ" firstAttribute="leading" relation="greaterThanOrEqual" secondItem="CPQ-JB-dO9" secondAttribute="trailing" constant="10" id="ADQ-aj-VhR"/>
<constraint firstItem="CPQ-JB-dO9" firstAttribute="leading" secondItem="HVh-eU-WcT" secondAttribute="trailing" constant="5" id="F2c-jm-aNc"/> <constraint firstItem="UuD-5H-NJZ" firstAttribute="centerY" secondItem="HVh-eU-WcT" secondAttribute="centerY" id="GE2-bZ-CEn"/>
<constraint firstItem="UuD-5H-NJZ" firstAttribute="centerY" secondItem="CPQ-JB-dO9" secondAttribute="centerY" id="GE2-bZ-CEn"/>
<constraint firstAttribute="trailing" secondItem="UuD-5H-NJZ" secondAttribute="trailing" constant="15" id="Gbe-hd-ENe"/> <constraint firstAttribute="trailing" secondItem="UuD-5H-NJZ" secondAttribute="trailing" constant="15" id="Gbe-hd-ENe"/>
<constraint firstItem="HVh-eU-WcT" firstAttribute="leading" secondItem="xNb-6a-mWT" secondAttribute="leading" constant="15" id="I5S-Pm-VYW"/> <constraint firstItem="HVh-eU-WcT" firstAttribute="leading" secondItem="xNb-6a-mWT" secondAttribute="leading" constant="15" id="I5S-Pm-VYW"/>
<constraint firstAttribute="trailing" secondItem="7hI-Mv-St2" secondAttribute="trailing" id="OFd-nP-Oac"/> <constraint firstAttribute="trailing" secondItem="7hI-Mv-St2" secondAttribute="trailing" id="OFd-nP-Oac"/>
<constraint firstAttribute="trailing" secondItem="ekx-rs-uaM" secondAttribute="trailing" constant="15" id="Ou3-Ad-CKj"/> <constraint firstAttribute="trailing" secondItem="ekx-rs-uaM" secondAttribute="trailing" constant="15" id="Ou3-Ad-CKj"/>
<constraint firstAttribute="bottom" secondItem="wn2-a8-osu" secondAttribute="bottom" id="RkH-CY-G70"/> <constraint firstAttribute="bottom" secondItem="wn2-a8-osu" secondAttribute="bottom" id="RkH-CY-G70"/>
<constraint firstItem="CPQ-JB-dO9" firstAttribute="centerY" secondItem="HVh-eU-WcT" secondAttribute="centerY" id="SAL-fU-SIA"/>
<constraint firstAttribute="trailing" secondItem="Zir-Fk-Cq5" secondAttribute="trailing" constant="15" id="STv-nb-6Vw"/> <constraint firstAttribute="trailing" secondItem="Zir-Fk-Cq5" secondAttribute="trailing" constant="15" id="STv-nb-6Vw"/>
<constraint firstItem="wn2-a8-osu" firstAttribute="leading" secondItem="xNb-6a-mWT" secondAttribute="leading" id="WxW-JQ-CYI"/> <constraint firstItem="wn2-a8-osu" firstAttribute="leading" secondItem="xNb-6a-mWT" secondAttribute="leading" id="WxW-JQ-CYI"/>
<constraint firstItem="ekx-rs-uaM" firstAttribute="centerY" secondItem="CPQ-JB-dO9" secondAttribute="centerY" id="jha-tT-l79"/> <constraint firstItem="CPQ-JB-dO9" firstAttribute="leading" secondItem="HVh-eU-WcT" secondAttribute="trailing" constant="5" id="aZJ-Hv-anu"/>
<constraint firstItem="Zir-Fk-Cq5" firstAttribute="centerY" secondItem="CPQ-JB-dO9" secondAttribute="centerY" id="pOY-qL-gXq"/> <constraint firstItem="ekx-rs-uaM" firstAttribute="centerY" secondItem="HVh-eU-WcT" secondAttribute="centerY" id="jha-tT-l79"/>
<constraint firstItem="Zir-Fk-Cq5" firstAttribute="centerY" secondItem="HVh-eU-WcT" secondAttribute="centerY" id="pOY-qL-gXq"/>
<constraint firstAttribute="trailing" secondItem="ZEQ-bR-jNZ" secondAttribute="trailing" id="qLc-bo-y4p"/> <constraint firstAttribute="trailing" secondItem="ZEQ-bR-jNZ" secondAttribute="trailing" id="qLc-bo-y4p"/>
<constraint firstItem="ZEQ-bR-jNZ" firstAttribute="top" secondItem="7hI-Mv-St2" secondAttribute="bottom" id="tlx-vS-U17"/> <constraint firstItem="ZEQ-bR-jNZ" firstAttribute="top" secondItem="7hI-Mv-St2" secondAttribute="bottom" id="tlx-vS-U17"/>
<constraint firstItem="7hI-Mv-St2" firstAttribute="top" secondItem="HVh-eU-WcT" secondAttribute="bottom" constant="15" id="tp0-bW-35O"/> <constraint firstItem="7hI-Mv-St2" firstAttribute="top" secondItem="HVh-eU-WcT" secondAttribute="bottom" constant="15" id="tp0-bW-35O"/>
...@@ -224,7 +229,6 @@ ...@@ -224,7 +229,6 @@
<outlet property="leftIcon" destination="HVh-eU-WcT" id="dMO-qL-wPe"/> <outlet property="leftIcon" destination="HVh-eU-WcT" id="dMO-qL-wPe"/>
<outlet property="listBgView" destination="ZEQ-bR-jNZ" id="tlg-VJ-Qsv"/> <outlet property="listBgView" destination="ZEQ-bR-jNZ" id="tlg-VJ-Qsv"/>
<outlet property="nameLbl" destination="CPQ-JB-dO9" id="iu0-NX-a71"/> <outlet property="nameLbl" destination="CPQ-JB-dO9" id="iu0-NX-a71"/>
<outlet property="nameLblLeft" destination="F2c-jm-aNc" id="HWs-sw-XVh"/>
<outlet property="orderNumberRight" destination="Gbe-hd-ENe" id="Ss7-Kf-hKd"/> <outlet property="orderNumberRight" destination="Gbe-hd-ENe" id="Ss7-Kf-hKd"/>
<outlet property="orderNumerLbl" destination="UuD-5H-NJZ" id="sef-jY-IB7"/> <outlet property="orderNumerLbl" destination="UuD-5H-NJZ" id="sef-jY-IB7"/>
<outlet property="priceLbl" destination="gXv-WF-NRU" id="VRb-af-Nta"/> <outlet property="priceLbl" destination="gXv-WF-NRU" id="VRb-af-Nta"/>
......
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