Commit 038f1a31 authored by lujunye's avatar lujunye

新增分销cell

parent 48388f9b
//
// GYS_FX_ProductCellTableViewCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/11/2.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class GYS_FX_ProductCellTableViewCell: UITableViewCell {
@IBOutlet weak var old_price_Lbl: UILabel!
@IBOutlet weak var new_price_Lbl: UILabel!
@IBOutlet weak var store_Lbl: NSLayoutConstraint!
@IBOutlet weak var sell_total_Lbl: UILabel!
@IBOutlet weak var title_Lbl: UILabel!
@IBOutlet weak var FX_Percent_Lbl: UILabel!
@IBOutlet weak var item_Icon_Img: UIImageView!
@IBOutlet weak var submit_Btn_W: NSLayoutConstraint!
@IBOutlet weak var submitBtn: UIButton!
@IBOutlet weak var leftValue: NSLayoutConstraint!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
self.selectionStyle = .none
submitBtn.titleLabel?.numberOfLines = 0
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17125"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<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" selectionStyle="default" indentationWidth="10" rowHeight="176" id="KGk-i7-Jjw" customClass="GYS_FX_ProductCellTableViewCell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="125"/>
<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">
<rect key="frame" x="0.0" y="0.0" width="375" height="125"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="z5k-CZ-aID">
<rect key="frame" x="0.0" y="5" width="375" height="120"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="WYJ-BO-wv9">
<rect key="frame" x="15" y="15" width="90" height="90"/>
<constraints>
<constraint firstAttribute="height" constant="90" id="FbG-Ua-sdf"/>
<constraint firstAttribute="width" constant="90" id="c5f-GK-N5a"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="灰色分界线"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Cae-xu-msI">
<rect key="frame" x="317" y="0.0" width="50" height="120"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="TbZ-Ta-i8s"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<state key="normal" title="取消铺货"/>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rhK-mv-sfb">
<rect key="frame" x="15" y="80" width="90" height="25"/>
<color key="backgroundColor" name="#E37847"/>
<constraints>
<constraint firstAttribute="height" constant="25" id="yrt-GT-feS"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="app底色"/>
<color key="highlightedColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ugc-WK-r7L">
<rect key="frame" x="308" y="35.5" width="1" height="49"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="sck-Iy-dxz"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="标题" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="io4-Mx-VZ7">
<rect key="frame" x="115" y="15" width="171" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="3Am-JJ-32G"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="销量" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kGs-Qz-GbO">
<rect key="frame" x="115" y="41.5" width="22.5" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="52e-kt-Shd"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="库存" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="k6M-ar-xGi">
<rect key="frame" x="152.5" y="41.5" width="22.5" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="bMf-ZV-S57"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="分销价" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="N0T-3l-rU8">
<rect key="frame" x="115" y="92" width="39.5" height="13"/>
<constraints>
<constraint firstAttribute="height" constant="13" id="gG9-lj-bd4"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="密码错误字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="原价" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Bjz-wA-QCI">
<rect key="frame" x="159.5" y="91" width="22.5" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="QHA-N0-RpE"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tnU-5r-Jfg">
<rect key="frame" x="159.5" y="98" width="22.5" height="1"/>
<color key="backgroundColor" name="标题字颜色"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="9xG-aS-jTC"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="kGs-Qz-GbO" firstAttribute="top" secondItem="io4-Mx-VZ7" secondAttribute="bottom" constant="8" id="2bi-hC-gxR"/>
<constraint firstItem="ugc-WK-r7L" firstAttribute="top" secondItem="z5k-CZ-aID" secondAttribute="top" constant="35.5" id="4Tt-au-IaX"/>
<constraint firstItem="tnU-5r-Jfg" firstAttribute="leading" secondItem="Bjz-wA-QCI" secondAttribute="leading" id="4la-xp-itU"/>
<constraint firstItem="WYJ-BO-wv9" firstAttribute="bottom" secondItem="rhK-mv-sfb" secondAttribute="bottom" id="4yi-D5-79g"/>
<constraint firstItem="N0T-3l-rU8" firstAttribute="leading" secondItem="kGs-Qz-GbO" secondAttribute="leading" id="BTT-AX-VlA"/>
<constraint firstItem="k6M-ar-xGi" firstAttribute="centerY" secondItem="kGs-Qz-GbO" secondAttribute="centerY" id="Bmr-gT-HR1"/>
<constraint firstItem="io4-Mx-VZ7" firstAttribute="leading" secondItem="WYJ-BO-wv9" secondAttribute="trailing" constant="10" id="Ert-DX-C3f"/>
<constraint firstItem="rhK-mv-sfb" firstAttribute="leading" secondItem="WYJ-BO-wv9" secondAttribute="leading" id="IdF-ux-32c"/>
<constraint firstItem="WYJ-BO-wv9" firstAttribute="centerY" secondItem="z5k-CZ-aID" secondAttribute="centerY" id="Ith-sK-xsY"/>
<constraint firstItem="Bjz-wA-QCI" firstAttribute="leading" secondItem="N0T-3l-rU8" secondAttribute="trailing" constant="5" id="PCW-eK-l4P"/>
<constraint firstAttribute="bottom" secondItem="Cae-xu-msI" secondAttribute="bottom" id="Pwh-rs-fzH"/>
<constraint firstItem="WYJ-BO-wv9" firstAttribute="trailing" secondItem="rhK-mv-sfb" secondAttribute="trailing" id="Tbc-5K-frG"/>
<constraint firstItem="k6M-ar-xGi" firstAttribute="leading" secondItem="kGs-Qz-GbO" secondAttribute="trailing" constant="15" id="W9i-a3-bdF"/>
<constraint firstItem="Cae-xu-msI" firstAttribute="top" secondItem="z5k-CZ-aID" secondAttribute="top" id="XQw-06-jup"/>
<constraint firstItem="ugc-WK-r7L" firstAttribute="leading" secondItem="io4-Mx-VZ7" secondAttribute="trailing" constant="22" id="YbT-qQ-Pp0"/>
<constraint firstItem="WYJ-BO-wv9" firstAttribute="leading" secondItem="z5k-CZ-aID" secondAttribute="leading" constant="15" id="bhe-aV-oZ3"/>
<constraint firstItem="Bjz-wA-QCI" firstAttribute="centerY" secondItem="N0T-3l-rU8" secondAttribute="centerY" id="d19-sX-x40"/>
<constraint firstItem="tnU-5r-Jfg" firstAttribute="centerY" secondItem="Bjz-wA-QCI" secondAttribute="centerY" id="gZy-K3-IWH"/>
<constraint firstItem="tnU-5r-Jfg" firstAttribute="centerX" secondItem="Bjz-wA-QCI" secondAttribute="centerX" id="j6Y-TW-hWj"/>
<constraint firstItem="N0T-3l-rU8" firstAttribute="bottom" secondItem="rhK-mv-sfb" secondAttribute="bottom" id="nWw-HI-LFc"/>
<constraint firstItem="kGs-Qz-GbO" firstAttribute="leading" secondItem="io4-Mx-VZ7" secondAttribute="leading" id="oGw-y5-d27"/>
<constraint firstItem="Cae-xu-msI" firstAttribute="leading" secondItem="ugc-WK-r7L" secondAttribute="trailing" constant="8" id="oa0-Dd-Byp"/>
<constraint firstItem="Bjz-wA-QCI" firstAttribute="trailing" secondItem="tnU-5r-Jfg" secondAttribute="trailing" id="qbA-7Z-RKC"/>
<constraint firstAttribute="trailing" secondItem="Cae-xu-msI" secondAttribute="trailing" constant="8" id="sA8-84-yMl"/>
<constraint firstAttribute="bottom" secondItem="ugc-WK-r7L" secondAttribute="bottom" constant="35.5" id="wOK-CV-7oB"/>
<constraint firstItem="io4-Mx-VZ7" firstAttribute="top" secondItem="WYJ-BO-wv9" secondAttribute="top" id="zvR-vv-y64"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="z5k-CZ-aID" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="5" id="93A-sx-62m"/>
<constraint firstItem="z5k-CZ-aID" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="Hm5-HY-mc7"/>
<constraint firstAttribute="trailing" secondItem="z5k-CZ-aID" secondAttribute="trailing" id="QlL-HX-GPj"/>
<constraint firstAttribute="bottom" secondItem="z5k-CZ-aID" secondAttribute="bottom" id="XjJ-nm-8dX"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="FX_Percent_Lbl" destination="rhK-mv-sfb" id="2jQ-Xp-BSC"/>
<outlet property="item_Icon_Img" destination="WYJ-BO-wv9" id="vgb-ui-8ct"/>
<outlet property="leftValue" destination="Hm5-HY-mc7" id="USY-ug-Pjx"/>
<outlet property="new_price_Lbl" destination="N0T-3l-rU8" id="Phq-aR-dw2"/>
<outlet property="old_price_Lbl" destination="Bjz-wA-QCI" id="QpF-xT-Cmt"/>
<outlet property="sell_total_Lbl" destination="kGs-Qz-GbO" id="aV5-7D-azv"/>
<outlet property="store_Lbl" destination="Bmr-gT-HR1" id="uG3-YW-WfA"/>
<outlet property="submitBtn" destination="Cae-xu-msI" id="2xy-ux-krI"/>
<outlet property="submit_Btn_W" destination="TbZ-Ta-i8s" id="FMB-6V-kPg"/>
<outlet property="title_Lbl" destination="io4-Mx-VZ7" id="Usl-Mp-pm1"/>
</connections>
<point key="canvasLocation" x="260.14492753623188" y="119.53125"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="#E37847">
<color red="0.88999998569488525" green="0.47099998593330383" blue="0.27799999713897705" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="密码错误字体颜色">
<color red="0.88999998569488525" green="0.27799999713897705" blue="0.27799999713897705" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
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