Commit 2ed63472 authored by lujunye's avatar lujunye

补充注释

parent b8531ea7
......@@ -5,7 +5,13 @@
// Created by junye lu on 2020/4/14.
// Copyright © 2020 junye lu. All rights reserved.
//
//融云账号&融云密码
//18924107259
//81338860geLI
//
//苹果账号&密码
//notice@gelifood.com
//81338860^geLi
import UIKit
import RongIMKit
......
......@@ -10,13 +10,17 @@ import UIKit
import IQKeyboardManagerSwift
@objc protocol GLAlertSelectViewDelegate {
@objc optional func GLAlertSelectViewClick(selectNum:NSString,view:GLAlertSelectView)
@objc optional func GLAlertMoreSelectViewClick(sender:NSArray,view:UIView)
@objc optional func GLAlertSelectViewClose(sender:UIButton)
//普通状态(单多选)
@objc optional func GLAlertSelectViewClick(selectNum:NSString,view:GLAlertSelectView)//单选
@objc optional func GLAlertMoreSelectViewClick(sender:NSArray,view:UIView)//多选
//通用
@objc optional func GLAlertSelectViewClose(sender:UIButton)//关闭
//库位专用
//删除
@objc optional func GLAlertSelectDelAction(sender:Array<Any>)
//编辑
@objc optional func GLAlertSelectEditAction(sender:Int)
//库位专用
@objc optional func KuWeiDataArr(sender:Array<Any>)
}
class GLAlertSelectView: UIView,UITableViewDelegate,UITableViewDataSource,TitleAndSelectCellDelegate,KuWeiCellCellDelegate{
......
......@@ -95,7 +95,7 @@
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
......@@ -8,11 +8,12 @@
import UIKit
@objc protocol CommendCellDelegate {
@objc optional func CommendCellSendStr(content:String)
@objc optional func CommendCellSendH(height:CGFloat)
@objc optional func CommendCellSendStr(content:String,cell:CommendCell)
@objc optional func CommendCellSendH(height:CGFloat,cell:CommendCell)
}
class CommendCell: UITableViewCell,AutoTextFieldDelegate{
var delegate:CommendCellDelegate?
@IBOutlet weak var editImg: UIImageView!
@IBOutlet weak var line: UIView!
@IBOutlet weak var placeLbl: UILabel!
@IBOutlet weak var titleLbl: UILabel!
......@@ -28,7 +29,7 @@ class CommendCell: UITableViewCell,AutoTextFieldDelegate{
@objc func tapAction(){
if autoTf == nil {
let textV = AutoTextField(frame: CGRect(x: titleLbl.frame.maxX+15, y: 13, width: fullScreenWidth-30-titleLbl.frame.maxX, height: 18.5), placeholder: "")
let textV = AutoTextField(frame: CGRect(x: titleLbl.frame.maxX+15, y: 13, width: fullScreenWidth - titleLbl.frame.maxX - editImg.bounds.size.width - 38, height: 18.5), placeholder: "")
textV.backgroundColor = UIColor.clear
textV.tfDelegate = self
textV.textColor = UIColor.black
......@@ -43,18 +44,17 @@ class CommendCell: UITableViewCell,AutoTextFieldDelegate{
}else{
placeLbl.isHidden = false
}
delegate?.CommendCellSendStr?(content: str)
delegate?.CommendCellSendStr?(content: str,cell:self)
}
func sendHeight(height: CGFloat) {
autoTf?.frame = CGRect(x: titleLbl.frame.maxX+15, y: 13, width: fullScreenWidth-30-titleLbl.frame.maxX, height: height)
autoTf?.frame = CGRect(x: titleLbl.frame.maxX+15, y: 13, width: fullScreenWidth-titleLbl.frame.maxX - editImg.bounds.size.width - 38, height: height)
titleLbl.snp.updateConstraints { (make) in
make.top.equalTo(autoTf!.snp_top)
make.left.equalTo(15)
make.right.equalTo(autoTf!.snp_left).offset(-15)
make.height.equalTo(18.5)
}
delegate?.CommendCellSendH?(height: height)
delegate?.CommendCellSendH?(height: height,cell:self)
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
......
......@@ -18,20 +18,13 @@
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="商品文案" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Mid-SG-EgI">
<rect key="frame" x="15" y="15" width="54" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="Iy4-9W-r0M"/>
<constraint firstAttribute="width" constant="54" id="L3p-RO-k6S"/>
</constraints>
<rect key="frame" x="15" y="15.5" width="54" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请输入商品文案" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="S58-2t-uxP">
<rect key="frame" x="84" y="15" width="299" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="a6L-cc-t4K"/>
</constraints>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" verticalHuggingPriority="251" text="请输入商品文案" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="S58-2t-uxP">
<rect key="frame" x="79" y="15.5" width="260" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
......@@ -40,23 +33,30 @@
<rect key="frame" x="15" y="46" width="383" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="NOp-ze-TNS"/>
<constraint firstAttribute="height" constant="1" id="s86-6l-Uie"/>
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="bianji" translatesAutoresizingMaskIntoConstraints="NO" id="6Ne-nS-Lsd">
<rect key="frame" x="349" y="7" width="34" height="33"/>
</imageView>
</subviews>
<constraints>
<constraint firstItem="S58-2t-uxP" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="8IR-MS-yh2"/>
<constraint firstItem="Mid-SG-EgI" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Dpk-qZ-nAj"/>
<constraint firstAttribute="trailing" secondItem="W34-St-iXm" secondAttribute="trailing" id="G7X-xt-Dt3"/>
<constraint firstItem="S58-2t-uxP" firstAttribute="leading" secondItem="Mid-SG-EgI" secondAttribute="trailing" constant="15" id="S9y-Hy-358"/>
<constraint firstItem="W34-St-iXm" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="ZsV-6P-jss"/>
<constraint firstItem="Mid-SG-EgI" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="jKX-cQ-WnO"/>
<constraint firstAttribute="bottom" secondItem="W34-St-iXm" secondAttribute="bottom" id="lvw-eS-fBm"/>
<constraint firstAttribute="trailing" secondItem="S58-2t-uxP" secondAttribute="trailing" constant="15" id="pJe-Zt-UoR"/>
<constraint firstItem="W34-St-iXm" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="EOY-Cn-ImR"/>
<constraint firstItem="S58-2t-uxP" firstAttribute="leading" secondItem="Mid-SG-EgI" secondAttribute="trailing" constant="10" id="IOa-81-GCI"/>
<constraint firstAttribute="trailing" secondItem="W34-St-iXm" secondAttribute="trailing" id="PHg-Eb-qsM"/>
<constraint firstAttribute="trailing" secondItem="6Ne-nS-Lsd" secondAttribute="trailing" constant="15" id="etZ-PX-yiw"/>
<constraint firstAttribute="bottom" secondItem="W34-St-iXm" secondAttribute="bottom" id="fim-KV-uL8"/>
<constraint firstItem="Mid-SG-EgI" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="hWR-BK-AJf"/>
<constraint firstItem="Mid-SG-EgI" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="p0n-C2-Ksj"/>
<constraint firstItem="6Ne-nS-Lsd" firstAttribute="centerY" secondItem="Mid-SG-EgI" secondAttribute="centerY" id="rwM-od-ety"/>
<constraint firstItem="6Ne-nS-Lsd" firstAttribute="leading" secondItem="S58-2t-uxP" secondAttribute="trailing" constant="10" id="taD-Aa-9Fs"/>
<constraint firstItem="S58-2t-uxP" firstAttribute="centerY" secondItem="Mid-SG-EgI" secondAttribute="centerY" id="vNo-bd-uqa"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="editImg" destination="6Ne-nS-Lsd" id="iqr-X8-YLO"/>
<outlet property="line" destination="W34-St-iXm" id="g7P-SI-NBa"/>
<outlet property="placeLbl" destination="S58-2t-uxP" id="vAI-GJ-LWk"/>
<outlet property="titleLbl" destination="Mid-SG-EgI" id="fkz-F3-jJH"/>
</connections>
......@@ -64,6 +64,7 @@
</tableViewCell>
</objects>
<resources>
<image name="bianji" width="17" height="16.5"/>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
......@@ -71,7 +72,7 @@
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......
......@@ -8,12 +8,12 @@
import UIKit
@objc protocol GuanLianKeHuCellDelegate {
@objc optional func btnSelect(sender:UIButton)
@objc optional func btnSelect(sender:UIButton,cell:GuanLianKeHuCell)
}
class GuanLianKeHuCell: UITableViewCell {
@IBAction func btnClick(_ sender: UIButton) {
delegate?.btnSelect?(sender: sender)
delegate?.btnSelect?(sender: sender,cell:self)
}
@IBOutlet weak var imgBtn: UIButton!
var delegate:GuanLianKeHuCellDelegate?
......
......@@ -107,7 +107,7 @@
</objects>
<resources>
<image name="bianji" width="17" height="16.5"/>
<image name="shanchu" width="15" height="15"/>
<image name="shanchu" width="17" height="17.5"/>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
......
......@@ -106,7 +106,7 @@
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.1803921568627451" green="0.1803921568627451" blue="0.1803921568627451" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" 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"/>
......
......@@ -40,7 +40,7 @@
</objects>
<resources>
<namedColor name="灰色字体颜色">
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -109,7 +109,7 @@
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
......@@ -12,8 +12,12 @@ import UIKit
@objc optional func XuanZeShangPinCellBtnADClick(sender:UIButton)
}
class XuanZeShangPinCell: UITableViewCell {
@IBOutlet weak var iconImg: UIImageView!
@IBOutlet weak var priceLbl: UILabel!
@IBOutlet weak var yuShouImg: UIImageView!
var delegate:XuanZeShangPinCellDelegate?
var idx:IndexPath?
@IBOutlet weak var lineView: UIView!
@IBAction func btnClickAction(_ sender: Any) {
delegate?.XuanZeShangPinCellBtnClick!(index:idx!)
}
......
......@@ -166,6 +166,17 @@
<constraint firstAttribute="height" constant="90" id="22L-sd-gRb"/>
<constraint firstAttribute="width" constant="90" id="ba6-wR-eLi"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="灰色分界线"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="0.5"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="六和川香鸡柳2.5kg/六和川香鸡" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vZs-Q1-4ZI">
<rect key="frame" x="115" y="15" width="245" height="18.5"/>
......@@ -213,10 +224,21 @@
<action selector="btnClickAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="lAu-Sj-JCd"/>
</connections>
</button>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="123" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="trg-dk-v2W">
<rect key="frame" x="338" y="89" width="22" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="yushou" translatesAutoresizingMaskIntoConstraints="NO" id="Rub-Pk-cR7">
<rect key="frame" x="37" y="15" width="68" height="36"/>
</imageView>
</subviews>
<constraints>
<constraint firstItem="uIB-c2-bcI" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="18B-pa-PXz"/>
<constraint firstAttribute="trailing" secondItem="1LA-II-o8c" secondAttribute="trailing" id="1dT-ZY-G0F"/>
<constraint firstItem="Rub-Pk-cR7" firstAttribute="trailing" secondItem="uIB-c2-bcI" secondAttribute="trailing" id="2dy-Kp-3vK"/>
<constraint firstItem="Rub-Pk-cR7" firstAttribute="top" secondItem="uIB-c2-bcI" secondAttribute="top" id="59H-NV-clE"/>
<constraint firstAttribute="bottom" secondItem="1LA-II-o8c" secondAttribute="bottom" id="7N0-sD-4CL"/>
<constraint firstItem="Mdz-mb-FFq" firstAttribute="centerY" secondItem="uIB-c2-bcI" secondAttribute="centerY" id="Afo-fi-cGL"/>
<constraint firstAttribute="trailing" secondItem="Mdz-mb-FFq" secondAttribute="trailing" constant="15" id="Ari-tm-ZOo"/>
......@@ -227,6 +249,8 @@
<constraint firstItem="7TH-eJ-iAq" firstAttribute="centerY" secondItem="Mdz-mb-FFq" secondAttribute="centerY" id="Skp-qw-W7b"/>
<constraint firstAttribute="trailing" secondItem="vZs-Q1-4ZI" secondAttribute="trailing" constant="15" id="T3U-k6-rEI"/>
<constraint firstItem="vZs-Q1-4ZI" firstAttribute="top" secondItem="uIB-c2-bcI" secondAttribute="top" id="Z14-9s-Tq3"/>
<constraint firstAttribute="trailing" secondItem="trg-dk-v2W" secondAttribute="trailing" constant="15" id="dRw-MS-1XT"/>
<constraint firstItem="trg-dk-v2W" firstAttribute="bottom" secondItem="uIB-c2-bcI" secondAttribute="bottom" id="dcr-SD-H3x"/>
<constraint firstItem="7gF-DF-0eb" firstAttribute="leading" secondItem="vZs-Q1-4ZI" secondAttribute="leading" id="g05-l1-Cbi"/>
<constraint firstAttribute="trailing" secondItem="uL5-74-gFt" secondAttribute="trailing" id="g7E-sv-cbD"/>
<constraint firstItem="1LA-II-o8c" firstAttribute="top" secondItem="uL5-74-gFt" secondAttribute="bottom" id="gUA-b6-Fpt"/>
......@@ -245,9 +269,13 @@
<outlet property="countTF" destination="Xzz-Ce-cFH" id="dkA-pf-Zyn"/>
<outlet property="detailLbl" destination="7gF-DF-0eb" id="IbC-uE-ohj"/>
<outlet property="detailLbl2" destination="WSO-2J-XFP" id="2Xr-Bm-Kqz"/>
<outlet property="iconImg" destination="uIB-c2-bcI" id="lq9-eJ-YGi"/>
<outlet property="lineView" destination="1LA-II-o8c" id="aK0-Cb-PdY"/>
<outlet property="nameLbl" destination="vZs-Q1-4ZI" id="X7U-kU-VSh"/>
<outlet property="priceLbl" destination="trg-dk-v2W" id="kzY-o0-2WS"/>
<outlet property="priceTF" destination="jP7-f2-sjI" id="x6R-5h-cov"/>
<outlet property="selectBtn" destination="Mdz-mb-FFq" id="wm1-L1-fpE"/>
<outlet property="yuShouImg" destination="Rub-Pk-cR7" id="8XF-VZ-5rv"/>
</connections>
<point key="canvasLocation" x="131.15942028985509" y="121.875"/>
</tableViewCell>
......@@ -256,6 +284,7 @@
<image name="daixuan" width="19" height="19"/>
<image name="jiahaoXG" width="12.5" height="12.5"/>
<image name="jianhaoXG" width="12.5" height="1.5"/>
<image name="yushou" width="34" height="18"/>
<image name="yuxuan" width="19" height="19"/>
<namedColor name="#999999">
<color red="0.60000002384185791" green="0.60000002384185791" blue="0.60000002384185791" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
......@@ -72,7 +72,7 @@
<resources>
<image name="xiala" width="9" height="4.5"/>
<namedColor name="标题字颜色">
<color red="0.1803921568627451" green="0.1803921568627451" blue="0.1803921568627451" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
......
......@@ -7,12 +7,28 @@
//
import UIKit
@objc protocol JiTuoWuXinXiViewDelegate {
}
class JiTuoWuXinXiView: UIView {
var contentView:UIView!
var delegate:JiTuoWuXinXiViewDelegate?
@IBOutlet weak var infoSw: UISwitch!
@IBOutlet weak var bottomView: UIView!
@IBOutlet weak var countTf: UITextField!
@IBOutlet weak var weightTf: UITextField!
@IBOutlet weak var gaoTf: UITextField!
@IBOutlet weak var kuanTf: UITextField!
@IBOutlet weak var changTf: UITextField!
@IBAction func jiaJianMethod(_ sender: UIButton) {
}
@IBAction func submitAction(_ sender: Any) {
}
@IBOutlet weak var tiJiTF: UITextField!
@IBOutlet weak var itemNameTF: UITextField!
func setUI(){
infoSw.transform = CGAffineTransform(scaleX: 0.8, y: 0.8)
let maskPath = UIBezierPath(roundedRect: bottomView.bounds,
......
......@@ -11,7 +11,14 @@
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="JiTuoWuXinXiView" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="bottomView" destination="rW2-Ka-gAx" id="QZC-w2-eDD"/>
<outlet property="changTf" destination="5E2-xz-YWP" id="PZv-hI-SaR"/>
<outlet property="countTf" destination="xT3-6M-vtU" id="3Qs-lY-VyP"/>
<outlet property="gaoTf" destination="Ccw-5O-TIs" id="4vD-69-zxj"/>
<outlet property="infoSw" destination="n6W-Cn-03r" id="7Cp-xO-kfJ"/>
<outlet property="itemNameTF" destination="jQJ-ZH-wxQ" id="sy3-Jc-pvu"/>
<outlet property="kuanTf" destination="VMY-3D-Df9" id="ycj-dg-1bV"/>
<outlet property="tiJiTF" destination="oYB-7R-ZKc" id="cwv-iS-Kfl"/>
<outlet property="weightTf" destination="dXi-t1-G5Y" id="ILG-HQ-Gme"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
......@@ -66,6 +73,9 @@
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="string" keyPath="titleFontName" value="PingFangSC"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submitAction:" destination="-1" eventType="touchUpInside" id="TdR-2t-Ltl"/>
</connections>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ufe-WI-qAR">
<rect key="frame" x="0.0" y="0.0" width="414" height="51"/>
......@@ -263,19 +273,25 @@
</textField>
<button opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bie-z4-ar6">
<rect key="frame" x="366.5" y="7.5" width="45" height="45"/>
<color key="backgroundColor" red="0.0" green="0.20784313730000001" blue="0.63137254899999995" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="J9A-AQ-UDh"/>
<constraint firstAttribute="width" constant="45" id="ani-NH-uQy"/>
</constraints>
<connections>
<action selector="jiaJianMethod:" destination="-1" eventType="touchUpInside" id="TAA-Mr-5ig"/>
</connections>
</button>
<button opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="O28-9q-hfK">
<button opaque="NO" alpha="0.5" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="O28-9q-hfK">
<rect key="frame" x="236.5" y="7.5" width="45" height="45"/>
<color key="backgroundColor" name="#F57575"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="05i-u6-nCU"/>
<constraint firstAttribute="width" constant="45" id="CzH-cm-uM9"/>
</constraints>
<connections>
<action selector="jiaJianMethod:" destination="-1" eventType="touchUpInside" id="4Xu-NC-Rf7"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="体积:(m³)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6FH-ec-Y1m">
<rect key="frame" x="15" y="21" width="234" height="18.5"/>
......@@ -401,7 +417,7 @@
</label>
<button opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="OY2-Kj-DtJ">
<rect key="frame" x="374" y="15" width="30" height="30"/>
<color key="backgroundColor" red="1" green="0.68026518489999999" blue="0.40248129399999999" alpha="1" colorSpace="calibratedRGB"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="6qt-S2-Th8"/>
<constraint firstAttribute="height" constant="30" id="lGM-HW-82S"/>
......@@ -409,7 +425,7 @@
</button>
<button opaque="NO" alpha="0.5" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3OQ-Ur-PSr">
<rect key="frame" x="244" y="15" width="30" height="30"/>
<color key="backgroundColor" name="密码错误字体颜色"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="eI4-bS-mqu"/>
<constraint firstAttribute="height" constant="30" id="sqJ-Ed-vN2"/>
......@@ -519,15 +535,9 @@
<resources>
<image name="jia " width="20" height="20"/>
<image name="jian" width="20" height="20"/>
<namedColor name="#F57575">
<color red="0.96100002527236938" green="0.45899999141693115" blue="0.45899999141693115" 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.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
......@@ -544,7 +554,7 @@
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
......@@ -127,6 +127,7 @@ class XiaYunDanViewController: BaseViewController,UITableViewDelegate,UITableVie
case 0:
if jtwxxView == nil {
let view = JiTuoWuXinXiView(frame: self.view.bounds)
self.view.addSubview(view)
jtwxxView = view
}
......
......@@ -12,28 +12,28 @@ import Photos
class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,CommendCellDelegate,TitleAndBtnCellDelegate,GLAlertSelectViewDelegate,GoodsClassViewControllerDelegate,PinPaiListViewControllerDelegate,AddImgCellDelegate,AddGuiGeCellDelegate,CreatNewSpecsViewControllerDelegate,ShangPinGguiGeCellDelegate,UICollectionViewDelegate,UICollectionViewDataSource,UICollectionViewDelegateFlowLayout,TitleAndSwitchCellDelegate{
var selectIdx:IndexPath?
var layout = UICollectionViewFlowLayout()
var glSelectView:GLAlertSelectView?
let titleArr = ["商品信息","商品图片","商品规格","预售设置","其它信息","商品详情"]
let spxxArr = ["商品名称","商品类型","商品分类","品牌","起卖数量","是否清真","是否询价"]
let tishixxArr:NSMutableArray = ["请输入商品名称","请选择商品类型","请选择商品分类","请选择品牌","请输入起卖数量"]
let tishixxArr1:NSMutableArray = ["请输入关键字","请输入物流费用","请选择国家","请选择商品状态","请选择运输方式"]
let sptpArr = ["商品封面图(限一张)","商品主图(限五张)"]
let qtxxArr = ["关键字","物流费用","国家","商品状态","运输方式"]
let ysszArr = ["用户付款是否需要审核","预设预付定金时间段","预设预付尾款时间段","预设预付尾款发货时间"]
let ysszHolder = ["0","请选择时段","请选择时段","0"]
var itemTypeArr = NSMutableArray()
var shangPinStatus = "99"
var shangPinStatusArr = ["热销","爆款","新品","促销","外采","团购"]
var yunShuType = "99"
var yunShuTypeArr = ["冷链","常温","热链"]
var layout = UICollectionViewFlowLayout()
var glSelectView:GLAlertSelectView?
var selectIdx:IndexPath?
var itemTypeArr = NSMutableArray()//多选
var isYuShou:Bool = false//是否预售
var shangPinStatus = "99"//商品状态
var yunShuType = "99"//运输类型
var maxFiveImgsArr = NSMutableArray()//多图
var singleImgArr = NSMutableArray()//单张图
//MARK:--保存按钮
@IBAction func submitAction(_ sender: Any) {
print("保存按钮submitAction")
......@@ -42,13 +42,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
@IBOutlet weak var listTbv: UITableView!
var cellHeight = 18.5
var contentStr:String = ""
var guiGeArr:NSMutableArray = []//根据规格资料数量控制右上角新增按钮是否显示
//
@IBOutlet weak var lgBtnLbl: UILabel!
var isYuShouShangPin:Bool?
var isYuShouShangPin:Bool?//是否为预售商品
var generalInfoModel : GeneralInfoModel? = nil
......@@ -64,7 +63,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}) { (error) in
}
isYuShouShangPin = true
//是否为预售商品
isYuShouShangPin = false
navbar.title = "商品详情"
self.view.addSubview(navbar)
......@@ -148,13 +148,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}else{
dict = guiGeArr.firstObject as! NSDictionary
}
print(selectIdx?.item)
cell.tempLbl.text = "冷藏:\(String(describing: dict["wenDu"]!))℃"
cell.weightLbl.text = "重量(kg):\(String(describing: dict["weight"]!))kg"
cell.guiGeLbl.text = "规格:\(String(describing: dict["guiGe"]!))kg/件"
cell.danWeiLbl.text = "单位:\(String(describing: dict["danWei"]!))"
cell.sellPriceLbl.text = "售价:¥\(dict["price"]!)"
// cell.itemIdx = dict["itemIdx"] as! Int
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "AddGuiGe") as! AddGuiGeCell
......@@ -240,7 +240,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
}
//header
//MARK: - tableview header
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
if section == 3 {
if isYuShouShangPin == false {
......@@ -309,7 +309,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
return 39
}
//footer
//MARK: - tableview footer
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let view = UIView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 10))
view.backgroundColor = UIColor(named: "app底色")
......@@ -335,10 +335,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
override func backAction() {
self.navigationController?.popViewController(animated: true)
}
//MARK: -- 选择填或跳转
//MARK: -- 点击按钮事件,跳转或者展示选择界面
func btnClick(content: String, cell: TitleAndBtnCell) {
if cell.nameLbl.text == "商品类型" {
if glSelectView == nil {
......@@ -400,7 +397,6 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
if cell.nameLbl.text == "预设预付尾款时间段" {
}
print(cell.nameLbl.text)
}
//MARK:---选择商品分类返回数据
func blackGoodsClass(sender: GoodsClassModel) {
......@@ -411,9 +407,8 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
print("选择品牌返回的数据=\(sender)")
}
//MARK: - GLAlertView(单选)下的页面
func GLAlertSelectViewClick(selectNum: NSString, view: GLAlertSelectView) {
print("单选",selectNum)
print(view.titleLbl.text)
switch view.titleLbl.text {
case "请选择商品类型":
......@@ -431,10 +426,9 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
glSelectView = nil
listTbv.reloadData()
}
var isYuShou:Bool = false
//MARK: - GLAlertView(多选)下的页面
func GLAlertMoreSelectViewClick(sender: NSArray, view:UIView) {
print("多选",sender)
itemTypeArr = sender as! NSMutableArray
let str = "\(sender.firstObject!)" as! NSString
if str != "99" {
......@@ -461,12 +455,13 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
glSelectView = nil
listTbv.reloadData()
}
//关闭alertview
func GLAlertSelectViewClose(sender: UIButton) {
glSelectView?.removeFromSuperview()
glSelectView = nil
}
var maxFiveImgsArr = NSMutableArray()
var singleImgArr = NSMutableArray()
//MARK: - 图片处理
func DelImgCellBtnClick(sender: UIButton, cell: AddImgCell) {
if cell.isSingle == true {
singleImgArr.removeObject(at: sender.tag)
......@@ -510,6 +505,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
}
}
}
//MARK: - 编辑规格
func ShangPinGguiGeCellEditAction(cell: ShangPinGguiGeCell) {
let vc = CreatNewSpecsViewController()
vc.barTitle = "编辑规格"
......@@ -542,7 +538,7 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
vc.delegate = self
self.navigationController?.pushViewController(vc, animated: true)
}
//MARK: - 删除规格
func CreatNewSpecsViewControllerDeleteAction() {
print("删除数据")
}
......@@ -550,12 +546,12 @@ class ProductDetailViewController: BaseViewController,UITableViewDelegate,UITabl
//
print("商品详情添加图片")
}
//MARK: - 新增规格
@objc func addGuiGe(){
print("新增规格")
let vc = CreatNewSpecsViewController()
vc.barTitle = "新增规格"
vc.delegate = self
print("abc == ",isYuShou)
vc.isYuShouSetting = isYuShou
vc.isNonYuShou = isYuShou
vc.datasArr = guiGeArr
......
......@@ -10,11 +10,11 @@ import UIKit
protocol PinPaiListViewControllerDelegate {
func blackSelectPinPaiData(sender:GeneralInfoBrandModel)
}
class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBarViewDelegate,UITableViewDelegate,UITableViewDataSource{
class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBarViewDelegate,UITableViewDelegate,UITableViewDataSource,TitleAndSelectCellDelegate{
var dataModelArray : Array<GeneralInfoBrandModel>? = []
var isSelectData : Bool = false
var delegate : PinPaiListViewControllerDelegate?
var selectIdx:Int?
@IBOutlet weak var sureTop: NSLayoutConstraint!
@IBOutlet weak var tableBottom: NSLayoutConstraint!
@IBOutlet weak var sureLbl: UILabel!
......@@ -52,7 +52,7 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
searchBr.delegate = self
searchBr.delegateL = self
listView.register(UINib(nibName: "TitleAndBtnCell", bundle: nil), forCellReuseIdentifier: "TitleAndBtnCell")
listView.register(UINib(nibName: "TitleAndSelectCell", bundle: nil), forCellReuseIdentifier: "TitleAndSelectCell")
// Do any additional setup after loading the view.
}
func rightBtnClick() {
......@@ -75,8 +75,13 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
return 12
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtnCell") as! TitleAndBtnCell
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndSelectCell") as! TitleAndSelectCell
cell.delegate = self
cell.tag = indexPath.row
if selectIdx == indexPath.row {
cell.titleLbl.textColor = UIColor(named: "蓝色字体颜色")
cell.selectBtn.isSelected = true
}
// let rowModel = dataModelArray![indexPath.row] as! GeneralInfoBrandModel
// cell.nameLbl.text = rowModel.brand_name
// cell.contentLbl.text = ""
......@@ -112,5 +117,21 @@ class PinPaiListViewController: BaseViewController,UISearchBarDelegate,SearchBar
}
}
//MARK:--自定义celldelegate
func TitleAndSelectCellClick(content: UIButton, cell: TitleAndSelectCell) {
print(cell.tag)
selectIdx = cell.tag
let cells = listView.visibleCells as! Array<TitleAndSelectCell>
for item in cells {
item.titleLbl.textColor = UIColor(named: "标题字颜色")
item.selectBtn.isSelected = false
if item == cell {
item.titleLbl.textColor = UIColor(named: "蓝色字体颜色")
item.selectBtn.isSelected = true
}
}
}
}
......@@ -8,9 +8,23 @@
import UIKit
import ViewAnimator
class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataSource{
@objc protocol GuanLianKehuVCDelegate {
@objc optional func btnSelect(keHuData:Any)
}
class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataSource,GuanLianKeHuCellDelegate{
var delegate:GuanLianKehuVCDelegate?
var selectIdx:Int?//暂代关联客户数据
@IBAction func submitAction(_ sender: Any) {
print("确定")
if selectIdx != nil{
delegate?.btnSelect?(keHuData: selectIdx)
self.navigationController?.popViewController(animated: true)
}else{
HUD.flash(.label("请选择关联客户"), delay: 1.2)
}
}
@IBOutlet weak var contentView: UIView!
override func viewDidLoad() {
super.viewDidLoad()
......@@ -19,7 +33,7 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
setTabv()
}
var tableV :UITableView!
private let animations = [AnimationType.from(direction: .bottom, offset: 150*glscale)]
func setTabv() {
tableV = UITableView()
......@@ -47,7 +61,8 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "GuanLianKeHuCell") as! GuanLianKeHuCell
cell.delegate = self
cell.tag = indexPath.row
return cell
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
......@@ -58,4 +73,16 @@ class GuanLianKehuVC: BaseViewController , UITableViewDelegate, UITableViewDataS
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 100*glscale
}
//MARK: - GuanLianKeHuCell delegate
func btnSelect(sender: UIButton,cell:GuanLianKeHuCell) {
let cells = tableV.visibleCells
for cel in cells {
let c = cel as! GuanLianKeHuCell
c.imgBtn.isSelected = false
if c == cell {
c.imgBtn.isSelected = true
selectIdx = c.tag
}
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
......@@ -38,6 +38,9 @@
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submitAction:" destination="-1" eventType="touchUpInside" id="i1h-Ro-dcZ"/>
</connections>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fUh-0E-kXZ">
<rect key="frame" x="0.0" y="862" width="414" height="50"/>
......
......@@ -10,51 +10,54 @@ import UIKit
import ViewAnimator
class ShowAlGoodsViewController: BaseViewController , UITableViewDelegate, UITableViewDataSource{
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "查看全部商品"
self.view.addSubview(navbar)
setTabv()
}
var tableV :UITableView!
private let animations = [AnimationType.from(direction: .bottom, offset: 150*glscale)]
func setTabv() {
tableV = UITableView()
view.addSubview(tableV);
tableV.snp.makeConstraints { (make) in
make.left.right.bottom.equalToSuperview()
make.top.equalTo(navbar.snp_bottom)
}
tableV.backgroundColor = UIColor.init(named: "白色背景色")
tableV.delegate = self
tableV.dataSource = self
tableV.separatorStyle = .none
private let animations = [AnimationType.from(direction: .bottom, offset: 150*glscale)]
func setTabv() {
tableV = UITableView()
view.addSubview(tableV);
tableV.snp.makeConstraints { (make) in
make.left.right.bottom.equalToSuperview()
make.top.equalTo(navbar.snp_bottom)
}
tableV.backgroundColor = UIColor.init(named: "白色背景色")
tableV.delegate = self
tableV.dataSource = self
tableV.separatorStyle = .none
//不是这个cell-是跟订单详情里面的商品 一样
tableV?.register(UINib(nibName: "ChangePriceNormalCell", bundle: nil), forCellReuseIdentifier: "ChangePriceNormalCell")
// tableV?.register(UINib(nibName: "ChangePriceNormalCell", bundle: nil), forCellReuseIdentifier: "ChangePriceNormalCell")
tableV?.register(UINib(nibName: "XuanZeShangPinCell", bundle: nil), forCellReuseIdentifier: "XuanZeShangPinCell")
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "ChangePriceNormalCell") as! ChangePriceNormalCell
return cell
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print(indexPath)
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 120*glscale
}
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "XuanZeShangPinCell") as! XuanZeShangPinCell
cell.selectBtn.isHidden = true
cell.detailLbl2.isHidden = true
return cell
}
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print(indexPath)
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 120*glscale
}
}
//
// HeaderOnlyTitleView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/14.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class HeaderOnlyTitleView: UIView {
var contentView:UIView!
@IBOutlet weak var nameLbl: UILabel!
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="HeaderOnlyTitleView" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="nameLbl" destination="cTI-ht-UY7" id="lzl-GW-IYx"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="375" height="39"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cTI-ht-UY7">
<rect key="frame" x="15" y="15" width="30" height="21"/>
<attributedString key="attributedText">
<fragment content="标题">
<attributes>
<color key="NSColor" name="标题字颜色"/>
<font key="NSFont" size="15" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="cTI-ht-UY7" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" constant="15" id="ZKc-V3-Cyi"/>
<constraint firstItem="cTI-ht-UY7" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="ooK-B0-hxK"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="133" y="138"/>
</view>
</objects>
<resources>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// OrderDViewFooterView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/14.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
@objc protocol OrderDViewFooterViewDelegate {
@objc optional func OrderDViewFooterViewBtnClick()
}
class OrderDViewFooterView: UIView {
var contentView:UIView!
var delegate:OrderDViewFooterViewDelegate?
@IBOutlet weak var nameLbl: UILabel!
//初始化时将xib中的view添加进来
@IBAction func pushAction(_ sender: Any) {
delegate?.OrderDViewFooterViewBtnClick?()
}
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="OrderDViewFooterView" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="nameLbl" destination="rj1-Gd-MWT" id="KSu-0f-TCJ"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="375" height="34"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="查看全部(共20个商品)" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rj1-Gd-MWT">
<rect key="frame" x="0.0" y="0.0" width="375" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="蓝色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Y9f-zb-HLE">
<rect key="frame" x="0.0" y="0.0" width="375" height="34"/>
<connections>
<action selector="pushAction:" destination="-1" eventType="touchUpInside" id="CgM-7b-gUF"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="Y9f-zb-HLE" secondAttribute="trailing" id="8xs-gb-RG2"/>
<constraint firstAttribute="bottom" secondItem="Y9f-zb-HLE" secondAttribute="bottom" id="WaI-Zw-HGe"/>
<constraint firstItem="Y9f-zb-HLE" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="YUZ-JY-agY"/>
<constraint firstItem="Y9f-zb-HLE" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="l9s-Wb-cxT"/>
<constraint firstItem="rj1-Gd-MWT" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="lgW-4x-UBl"/>
<constraint firstItem="rj1-Gd-MWT" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="oyd-48-QGP"/>
<constraint firstAttribute="trailing" secondItem="rj1-Gd-MWT" secondAttribute="trailing" id="yIC-RO-Ugz"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="133" y="138"/>
</view>
</objects>
<resources>
<namedColor name="蓝色字体颜色">
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// OrderDViewSumFooter.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/14.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class OrderDViewSumFooter: UIView {
var contentView:UIView!
@IBOutlet weak var priceLbl: UILabel!
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="OrderDViewSumFooter" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="priceLbl" destination="wyj-le-YWl" id="O2i-PV-aIt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="375" height="59"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dlu-Zi-usx">
<rect key="frame" x="0.0" y="0.0" width="375" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="4Wi-K2-KGT"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="price" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wyj-le-YWl">
<rect key="frame" x="329" y="1" width="31" height="48"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="#F57575"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="h2l-7X-TcJ">
<rect key="frame" x="263" y="1" width="66" height="48"/>
<attributedString key="attributedText">
<fragment content="订单合计:">
<attributes>
<color key="NSColor" name="标题字颜色"/>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="eXI-ce-2Rw">
<rect key="frame" x="0.0" y="49" width="375" height="10"/>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstAttribute="height" constant="10" id="gao-Fe-NMg"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="eXI-ce-2Rw" secondAttribute="bottom" id="1dD-aL-SFn"/>
<constraint firstItem="wyj-le-YWl" firstAttribute="top" secondItem="dlu-Zi-usx" secondAttribute="bottom" id="5iz-K6-D3i"/>
<constraint firstItem="dlu-Zi-usx" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="BT5-O0-2Cd"/>
<constraint firstAttribute="trailing" secondItem="wyj-le-YWl" secondAttribute="trailing" constant="15" id="Bv8-LM-xNP"/>
<constraint firstItem="eXI-ce-2Rw" firstAttribute="top" secondItem="h2l-7X-TcJ" secondAttribute="bottom" id="EtD-jS-3PS"/>
<constraint firstAttribute="trailing" secondItem="eXI-ce-2Rw" secondAttribute="trailing" id="Ik9-M3-NdD"/>
<constraint firstItem="h2l-7X-TcJ" firstAttribute="top" secondItem="dlu-Zi-usx" secondAttribute="bottom" id="Kxp-nu-1S8"/>
<constraint firstAttribute="trailing" secondItem="dlu-Zi-usx" secondAttribute="trailing" id="cjA-Z8-YVQ"/>
<constraint firstItem="eXI-ce-2Rw" firstAttribute="top" secondItem="wyj-le-YWl" secondAttribute="bottom" id="e01-qO-3Xy"/>
<constraint firstItem="dlu-Zi-usx" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="euK-Xb-DlQ"/>
<constraint firstItem="eXI-ce-2Rw" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="i1w-Y8-K2E"/>
<constraint firstItem="wyj-le-YWl" firstAttribute="leading" secondItem="h2l-7X-TcJ" secondAttribute="trailing" id="kqT-My-q0S"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-344.20289855072468" y="142.96875"/>
</view>
</objects>
<resources>
<namedColor name="#F57575">
<color red="0.96100002527236938" green="0.45899999141693115" blue="0.45899999141693115" 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.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>
</resources>
</document>
//
// TitleAndLblView.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/5/14.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class TitleAndLblView: UIView {
var contentView:UIView!
@IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var contentLbl: UILabel!
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="TitleAndLblView" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="contentLbl" destination="3w0-Kw-4SZ" id="By3-e9-dBy"/>
<outlet property="nameLbl" destination="1sO-Ny-zDO" id="yti-qp-uz3"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="iN0-l3-epB">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XAn-8Y-AsL">
<rect key="frame" x="0.0" y="48" width="375" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="3io-lf-h7U"/>
</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="1sO-Ny-zDO">
<rect key="frame" x="15" y="0.0" width="360" height="48"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="内容" textAlignment="right" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3w0-Kw-4SZ">
<rect key="frame" x="0.0" y="0.0" width="360" height="48"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="蓝色字体颜色"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="1sO-Ny-zDO" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="48M-fn-xFy"/>
<constraint firstItem="1sO-Ny-zDO" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="4eJ-2Y-0YX"/>
<constraint firstAttribute="bottom" secondItem="XAn-8Y-AsL" secondAttribute="bottom" id="9OK-M1-Vvv"/>
<constraint firstItem="XAn-8Y-AsL" firstAttribute="top" secondItem="1sO-Ny-zDO" secondAttribute="bottom" id="L8N-iU-GOX"/>
<constraint firstAttribute="trailing" secondItem="1sO-Ny-zDO" secondAttribute="trailing" id="VkG-yB-ZRY"/>
<constraint firstItem="3w0-Kw-4SZ" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Wr2-Lq-vJM"/>
<constraint firstItem="XAn-8Y-AsL" firstAttribute="top" secondItem="3w0-Kw-4SZ" secondAttribute="bottom" id="fxZ-fs-1wG"/>
<constraint firstAttribute="trailing" secondItem="3w0-Kw-4SZ" secondAttribute="trailing" constant="15" id="gW0-8L-BOg"/>
<constraint firstItem="3w0-Kw-4SZ" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="pOV-sh-scy"/>
<constraint firstAttribute="trailing" secondItem="XAn-8Y-AsL" secondAttribute="trailing" id="xRP-WF-Yzx"/>
<constraint firstItem="XAn-8Y-AsL" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="zbX-pS-ahp"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="133" y="138"/>
</view>
</objects>
<resources>
<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.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</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