Commit 227e14f1 authored by lujunye's avatar lujunye

新增、编辑品牌

parent 8231d84b
......@@ -71,6 +71,12 @@
E09F4C9E2452BEBB00BE033D /* JiPaiFangShiViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E09F4C9C2452BEBB00BE033D /* JiPaiFangShiViewController.xib */; };
E09F4CA22452D18800BE033D /* ZengZhiServicesViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E09F4CA02452D18800BE033D /* ZengZhiServicesViewController.swift */; };
E09F4CA32452D18800BE033D /* ZengZhiServicesViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E09F4CA12452D18800BE033D /* ZengZhiServicesViewController.xib */; };
E0A2E815245527CB00D6DB34 /* OrderSuccessViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A2E813245527CB00D6DB34 /* OrderSuccessViewController.swift */; };
E0A2E816245527CB00D6DB34 /* OrderSuccessViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A2E814245527CB00D6DB34 /* OrderSuccessViewController.xib */; };
E0A2E81A24552E3C00D6DB34 /* XinZengPinPaiViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A2E81824552E3C00D6DB34 /* XinZengPinPaiViewController.swift */; };
E0A2E81B24552E3C00D6DB34 /* XinZengPinPaiViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A2E81924552E3C00D6DB34 /* XinZengPinPaiViewController.xib */; };
E0A2E81E24552F0A00D6DB34 /* TilteAndTextViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A2E81C24552F0A00D6DB34 /* TilteAndTextViewCell.swift */; };
E0A2E81F24552F0A00D6DB34 /* TilteAndTextViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A2E81D24552F0A00D6DB34 /* TilteAndTextViewCell.xib */; };
E0A7548A244A8F0F00A84B67 /* CheckWareHourseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */; };
E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */; };
E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0B6036C244D376900A56B38 /* KuWeiCell.swift */; };
......@@ -293,6 +299,12 @@
E09F4C9C2452BEBB00BE033D /* JiPaiFangShiViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = JiPaiFangShiViewController.xib; sourceTree = "<group>"; };
E09F4CA02452D18800BE033D /* ZengZhiServicesViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ZengZhiServicesViewController.swift; sourceTree = "<group>"; };
E09F4CA12452D18800BE033D /* ZengZhiServicesViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ZengZhiServicesViewController.xib; sourceTree = "<group>"; };
E0A2E813245527CB00D6DB34 /* OrderSuccessViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderSuccessViewController.swift; sourceTree = "<group>"; };
E0A2E814245527CB00D6DB34 /* OrderSuccessViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OrderSuccessViewController.xib; sourceTree = "<group>"; };
E0A2E81824552E3C00D6DB34 /* XinZengPinPaiViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XinZengPinPaiViewController.swift; sourceTree = "<group>"; };
E0A2E81924552E3C00D6DB34 /* XinZengPinPaiViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = XinZengPinPaiViewController.xib; sourceTree = "<group>"; };
E0A2E81C24552F0A00D6DB34 /* TilteAndTextViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TilteAndTextViewCell.swift; sourceTree = "<group>"; };
E0A2E81D24552F0A00D6DB34 /* TilteAndTextViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TilteAndTextViewCell.xib; sourceTree = "<group>"; };
E0A75488244A8F0F00A84B67 /* CheckWareHourseViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CheckWareHourseViewController.swift; sourceTree = "<group>"; };
E0A75489244A8F0F00A84B67 /* CheckWareHourseViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CheckWareHourseViewController.xib; sourceTree = "<group>"; };
E0B6036C244D376900A56B38 /* KuWeiCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = KuWeiCell.swift; sourceTree = "<group>"; };
......@@ -629,6 +641,7 @@
E042F72B245272AC00CDFA12 /* 代客下单 */ = {
isa = PBXGroup;
children = (
E0A2E8122455279100D6DB34 /* 下单成功(待处理) */,
E09F4C9F2452D13F00BE033D /* 增值服务 */,
E09F4C9A2452BEA000BE033D /* 寄派方式 */,
E042F72C245272C000CDFA12 /* 下运单 */,
......@@ -763,6 +776,7 @@
E09B03AD2445B0BA00211A51 /* ViewController */ = {
isa = PBXGroup;
children = (
E0A2E81724552E1900D6DB34 /* 新增、编辑品牌 */,
E042F72B245272AC00CDFA12 /* 代客下单 */,
F961D2722450373B007FBE70 /* 订单列表 */,
E0F97B05245161E6001BD600 /* 商品详情 */,
......@@ -840,6 +854,24 @@
path = "增值服务";
sourceTree = "<group>";
};
E0A2E8122455279100D6DB34 /* 下单成功(待处理) */ = {
isa = PBXGroup;
children = (
E0A2E813245527CB00D6DB34 /* OrderSuccessViewController.swift */,
E0A2E814245527CB00D6DB34 /* OrderSuccessViewController.xib */,
);
path = "下单成功(待处理)";
sourceTree = "<group>";
};
E0A2E81724552E1900D6DB34 /* 新增、编辑品牌 */ = {
isa = PBXGroup;
children = (
E0A2E81824552E3C00D6DB34 /* XinZengPinPaiViewController.swift */,
E0A2E81924552E3C00D6DB34 /* XinZengPinPaiViewController.xib */,
);
path = "新增、编辑品牌";
sourceTree = "<group>";
};
E0A75479244A894200A84B67 /* 新增、编辑(查看)仓库 */ = {
isa = PBXGroup;
children = (
......@@ -990,6 +1022,8 @@
E042F73F24528CD500CDFA12 /* TitleAndOnlyBtnCell.xib */,
E0273DDB24551D4500B3FCAE /* OnlyLabelCell.swift */,
E0273DDC24551D4500B3FCAE /* OnlyLabelCell.xib */,
E0A2E81C24552F0A00D6DB34 /* TilteAndTextViewCell.swift */,
E0A2E81D24552F0A00D6DB34 /* TilteAndTextViewCell.xib */,
);
path = Cell;
sourceTree = "<group>";
......@@ -1284,6 +1318,7 @@
E09B03C12445B96500211A51 /* FgPassViewController.xib in Resources */,
E0D197C7244845FD002B080C /* PersonCenterViewController.xib in Resources */,
E02DDD83244FD15B00ABB707 /* TitleAndSwitchHeaderView.xib in Resources */,
E0A2E816245527CB00D6DB34 /* OrderSuccessViewController.xib in Resources */,
F950FDB12451811A00C40530 /* TitleAndSelCalendarView.xib in Resources */,
E0B6036F244D376900A56B38 /* KuWeiCell.xib in Resources */,
E0273DDA24551B6D00B3FCAE /* SendTimeSelectView.xib in Resources */,
......@@ -1302,6 +1337,7 @@
F961D26924500550007FBE70 /* HeaderSelectView.xib in Resources */,
E088CC942447124D000DAA8A /* BindViewController.xib in Resources */,
E0F97B092451620B001BD600 /* ProductDetailViewController.xib in Resources */,
E0A2E81F24552F0A00D6DB34 /* TilteAndTextViewCell.xib in Resources */,
E0F97B0D24516B1F001BD600 /* AddImgCell.xib in Resources */,
E0D197D6244860B1002B080C /* BlueToothCell.xib in Resources */,
F95567A82453DA86009674AB /* WarehoseMangementListVC.xib in Resources */,
......@@ -1326,6 +1362,7 @@
E02DDD9A24501A5B00ABB707 /* DelGuiGeCell.xib in Resources */,
E00D85E8244561FE00F5F816 /* Preview Assets.xcassets in Resources */,
E02DDD962450106C00ABB707 /* PuTongJieTiCell.xib in Resources */,
E0A2E81B24552E3C00D6DB34 /* XinZengPinPaiViewController.xib in Resources */,
E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */,
F95D9B5024484FAE0080D6E3 /* GeliAlertView.xib in Resources */,
E0DDCB1E244AE81800DF54C7 /* GuanLianKeHuCell.xib in Resources */,
......@@ -1409,6 +1446,7 @@
F933F6D22452DAE100189561 /* TabBarContentClassView.swift in Sources */,
F933F6C82452C68B00189561 /* PKHUDTextView.swift in Sources */,
E0B6036E244D376900A56B38 /* KuWeiCell.swift in Sources */,
E0A2E815245527CB00D6DB34 /* OrderSuccessViewController.swift in Sources */,
E0D197BA2448431C002B080C /* BabyDefine.m in Sources */,
F961D264244FD744007FBE70 /* SearchBarView.swift in Sources */,
F950FDE124518B9500C40530 /* FSCalendarConstants.m in Sources */,
......@@ -1464,6 +1502,7 @@
E0D4166424483058008DCAB4 /* ChangePassViewController.swift in Sources */,
F933F6C12452C68B00189561 /* PKHUDAnimation.swift in Sources */,
E0C4F4A7244EC82A00CC7E2F /* TitleAndBtnCell.swift in Sources */,
E0A2E81A24552E3C00D6DB34 /* XinZengPinPaiViewController.swift in Sources */,
E0273DDD24551D4500B3FCAE /* OnlyLabelCell.swift in Sources */,
F950FDD724518B9500C40530 /* FSCalendarCollectionView.m in Sources */,
E09B03C62445BF6700211A51 /* NavBarView.swift in Sources */,
......@@ -1480,6 +1519,7 @@
F961D271245016B7007FBE70 /* SelectContentView.swift in Sources */,
F933F6C02452C68B00189561 /* PKHUDSystemActivityIndicatorView.swift in Sources */,
E08B0674244A98B2001D2E01 /* WareHouseSpCell.swift in Sources */,
E0A2E81E24552F0A00D6DB34 /* TilteAndTextViewCell.swift in Sources */,
E0D197CA24484D90002B080C /* PersonCenterCell.swift in Sources */,
E0C4F4B5244EE9EE00CC7E2F /* YuShouCell.swift in Sources */,
F933F6C52452C68B00189561 /* PKHUDSuccessView.swift in Sources */,
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"idiom" : "universal",
"filename" : "wancheng@2x.png",
"scale" : "2x"
},
{
"idiom" : "universal",
"filename" : "wancheng@3x.png",
"scale" : "3x"
}
],
"info" : {
"version" : 1,
"author" : "xcode"
}
}
\ No newline at end of file
......@@ -95,13 +95,13 @@
<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"/>
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -65,13 +65,13 @@
</objects>
<resources>
<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.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"/>
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -270,13 +270,13 @@
<color red="0.2199999988079071" green="0.45500001311302185" blue="0.82700002193450928" 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.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"/>
<color red="0.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
......@@ -150,13 +150,13 @@
</objects>
<resources>
<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.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// TilteAndTextViewCell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/26.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
@objc protocol TilteAndTextViewCellDelegate {
@objc optional func TilteAndTextViewCellResponseStr(str:String)
}
class TilteAndTextViewCell: UITableViewCell,UITextViewDelegate{
var delegate:TilteAndTextViewCellDelegate?
func textViewDidChange(_ textView: UITextView) {
if textView.text.count > 0 {
holderLbl.isHidden = true
}else{
holderLbl.isHidden = false
}
delegate?.TilteAndTextViewCellResponseStr?(str: textView.text)
}
@IBOutlet weak var textView: UITextView!
@IBOutlet weak var titleLbl: UILabel!
@IBOutlet weak var holderLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
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="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina4_7" orientation="portrait" appearance="light"/>
<dependencies>
<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"/>
</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" id="KGk-i7-Jjw" customClass="TilteAndTextViewCell" customModule="GeliBusinessPlatform" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="173.5"/>
<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="173.5"/>
<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="1oL-Fz-Jsb">
<rect key="frame" x="15" y="11" width="345" height="18.5"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="7YW-SJ-U09"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="g5v-ec-LNn">
<rect key="frame" x="15" y="39.5" width="345" height="119"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="简述品牌体征。" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jfp-Va-GKb">
<rect key="frame" x="15" y="10" width="330" height="15"/>
<constraints>
<constraint firstAttribute="height" constant="15" id="07H-XO-7SO"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="2Qv-0h-8gG">
<rect key="frame" x="5" y="0.0" width="335" height="119"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="textColor" name="标题字颜色"/>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
<connections>
<outlet property="delegate" destination="-1" id="aTe-hf-kHA"/>
</connections>
</textView>
</subviews>
<color key="backgroundColor" name="搜索框背景色"/>
<constraints>
<constraint firstItem="jfp-Va-GKb" firstAttribute="top" secondItem="g5v-ec-LNn" secondAttribute="top" constant="10" id="Lge-cN-Mfg"/>
<constraint firstAttribute="trailing" secondItem="2Qv-0h-8gG" secondAttribute="trailing" constant="5" id="N2I-15-Us6"/>
<constraint firstItem="jfp-Va-GKb" firstAttribute="leading" secondItem="g5v-ec-LNn" secondAttribute="leading" constant="15" id="Q2E-GN-C3t"/>
<constraint firstAttribute="trailing" secondItem="jfp-Va-GKb" secondAttribute="trailing" id="YgD-yz-cFu"/>
<constraint firstItem="2Qv-0h-8gG" firstAttribute="top" secondItem="g5v-ec-LNn" secondAttribute="top" id="Z14-GB-oui"/>
<constraint firstItem="2Qv-0h-8gG" firstAttribute="leading" secondItem="g5v-ec-LNn" secondAttribute="leading" constant="5" id="bra-Pd-heh"/>
<constraint firstAttribute="bottom" secondItem="2Qv-0h-8gG" secondAttribute="bottom" id="q9C-1g-74x"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="g5v-ec-LNn" secondAttribute="trailing" constant="15" id="67G-IT-x9J"/>
<constraint firstItem="g5v-ec-LNn" firstAttribute="top" secondItem="1oL-Fz-Jsb" secondAttribute="bottom" constant="10" id="J88-2f-o3j"/>
<constraint firstAttribute="bottom" secondItem="g5v-ec-LNn" secondAttribute="bottom" constant="15" id="NxU-Pg-qEC"/>
<constraint firstItem="1oL-Fz-Jsb" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="topMargin" id="SSz-We-M7e"/>
<constraint firstAttribute="trailingMargin" secondItem="1oL-Fz-Jsb" secondAttribute="trailing" id="cpc-fF-i6o"/>
<constraint firstItem="1oL-Fz-Jsb" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leadingMargin" id="dyC-4N-7mH"/>
<constraint firstItem="g5v-ec-LNn" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="mbq-2B-H9b"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="holderLbl" destination="jfp-Va-GKb" id="emk-35-MDq"/>
<outlet property="textView" destination="2Qv-0h-8gG" id="SGC-ro-aIu"/>
<outlet property="titleLbl" destination="1oL-Fz-Jsb" id="dUz-oN-5hk"/>
</connections>
<point key="canvasLocation" x="132" y="121.4392803598201"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="搜索框背景色">
<color red="0.9137254901960784" green="0.90588235294117647" blue="0.92941176470588238" 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.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -56,13 +56,13 @@
</objects>
<resources>
<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.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -58,7 +58,7 @@
</objects>
<resources>
<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.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
//
// OrderSuccessViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/26.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class OrderSuccessViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource {
@IBOutlet weak var listView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
listView.separatorStyle = .none
listView.register(UINib(nibName: "AdressSelectCell", bundle: nil), forCellReuseIdentifier: "AdressSelect")
// Do any additional setup after loading the view.
}
//MARK: - Cell delegate
func numberOfSections(in tableView: UITableView) -> Int {
return 2
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if section == 0 {
return 2
}
return 10
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// if indexPath.section == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "AdressSelect") as! AdressSelectCell
return cell
// }
}
}
<?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" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_5" orientation="portrait" appearance="light"/>
<dependencies>
<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"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="OrderSuccessViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="listView" destination="9eV-DG-z7D" id="x89-wD-gtT"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OyY-Dh-9kh">
<rect key="frame" x="0.0" y="44" width="414" height="818"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="K4b-hH-Nzs">
<rect key="frame" x="0.0" y="0.0" width="414" height="818"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="d9e-wm-AdF">
<rect key="frame" x="0.0" y="0.0" width="414" height="155"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wancheng" translatesAutoresizingMaskIntoConstraints="NO" id="kLz-5H-Xs4">
<rect key="frame" x="175" y="24" width="64" height="64"/>
<constraints>
<constraint firstAttribute="height" constant="64" id="VdM-nG-I66">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint firstAttribute="width" constant="64" id="ueY-gm-8kM">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="下单成功" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4XU-qW-23c">
<rect key="frame" x="0.0" y="96" width="414" height="26.666666666666671"/>
<constraints>
<constraint firstAttribute="height" constant="26.5" id="C13-qT-1zv"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="19"/>
<color key="textColor" name="蓝色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="运单号:京东冷链JD6461616510" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LZU-Yf-B8E">
<rect key="frame" x="108" y="127.66666666666664" width="198" height="18.333333333333329"/>
<constraints>
<constraint firstAttribute="height" constant="18.5" id="5z7-4v-FMU"/>
<constraint firstAttribute="width" constant="198" id="Na6-wv-oc5"/>
</constraints>
<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="1Hk-eW-BIj">
<rect key="frame" x="311" y="127.66666666666666" width="30" height="18"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="JjD-sb-TlR"/>
<constraint firstAttribute="height" constant="18" id="qbK-Hd-esa"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="10"/>
<state key="normal" title="复制">
<color key="titleColor" name="标题字颜色"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="多选按钮字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="4XU-qW-23c" secondAttribute="trailing" id="Djo-C4-cBF"/>
<constraint firstItem="kLz-5H-Xs4" firstAttribute="top" secondItem="d9e-wm-AdF" secondAttribute="top" constant="24" id="F5J-sL-UeB"/>
<constraint firstItem="1Hk-eW-BIj" firstAttribute="leading" secondItem="LZU-Yf-B8E" secondAttribute="trailing" constant="5" id="FzA-sT-7vy"/>
<constraint firstItem="LZU-Yf-B8E" firstAttribute="centerX" secondItem="d9e-wm-AdF" secondAttribute="centerX" id="Lx3-AE-iSc"/>
<constraint firstItem="1Hk-eW-BIj" firstAttribute="centerY" secondItem="LZU-Yf-B8E" secondAttribute="centerY" id="TNE-sL-rLG"/>
<constraint firstItem="kLz-5H-Xs4" firstAttribute="centerX" secondItem="d9e-wm-AdF" secondAttribute="centerX" id="bd1-Jp-SxN"/>
<constraint firstAttribute="height" constant="155" id="kDO-eB-woY">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint firstItem="4XU-qW-23c" firstAttribute="centerX" secondItem="d9e-wm-AdF" secondAttribute="centerX" id="pcB-Bh-pgj"/>
<constraint firstItem="4XU-qW-23c" firstAttribute="top" secondItem="kLz-5H-Xs4" secondAttribute="bottom" constant="8" id="r3B-rY-f7j"/>
<constraint firstItem="LZU-Yf-B8E" firstAttribute="top" secondItem="4XU-qW-23c" secondAttribute="bottom" constant="5" id="rxn-bk-Rhp"/>
<constraint firstItem="4XU-qW-23c" firstAttribute="leading" secondItem="d9e-wm-AdF" secondAttribute="leading" id="ud1-P9-ND8"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" scrollEnabled="NO" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="9eV-DG-z7D">
<rect key="frame" x="0.0" y="155" width="414" height="338"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="338" id="ipQ-yw-UzV">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<connections>
<outlet property="dataSource" destination="-1" id="jXY-H0-2Wq"/>
<outlet property="delegate" destination="-1" id="XH5-kh-ACT"/>
</connections>
</tableView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" hasAttributedTitle="YES" translatesAutoresizingMaskIntoConstraints="NO" id="Keq-VQ-0FG">
<rect key="frame" x="116" y="508.00000000000006" width="82" height="32.666666666666686"/>
<constraints>
<constraint firstAttribute="height" constant="32.5" id="3tO-Jc-add"/>
<constraint firstAttribute="width" constant="82" id="yLD-e9-6c8"/>
</constraints>
<state key="normal">
<attributedString key="attributedTitle">
<fragment content="继续下单">
<attributes>
<color key="NSColor" name="蓝色字体颜色"/>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16.25"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="蓝色字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" hasAttributedTitle="YES" translatesAutoresizingMaskIntoConstraints="NO" id="5a3-g2-oFO">
<rect key="frame" x="216" y="508.00000000000006" width="82" height="32.666666666666686"/>
<constraints>
<constraint firstAttribute="width" constant="82" id="E7A-w3-sQg"/>
<constraint firstAttribute="height" constant="32.5" id="SWX-LM-lv7"/>
</constraints>
<state key="normal">
<attributedString key="attributedTitle">
<fragment content="运单详情">
<attributes>
<color key="NSColor" name="蓝色字体颜色"/>
<font key="NSFont" size="13" name="PingFangSC-Medium"/>
</attributes>
</fragment>
</attributedString>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16.25"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="蓝色字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="1"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Goh-JW-j1Y">
<rect key="frame" x="177" y="548.66666666666663" width="60" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="Tjj-A7-e4f"/>
<constraint firstAttribute="width" constant="60" id="YhK-TA-ZUK"/>
</constraints>
<fontDescription key="fontDescription" type="system" pointSize="11"/>
<state key="normal" title="运单列表"/>
</button>
</subviews>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="d9e-wm-AdF" secondAttribute="trailing" id="1IH-gZ-DMz"/>
<constraint firstItem="Keq-VQ-0FG" firstAttribute="centerX" secondItem="K4b-hH-Nzs" secondAttribute="centerX" constant="-50" id="2x0-Nh-1f2"/>
<constraint firstItem="9eV-DG-z7D" firstAttribute="top" secondItem="d9e-wm-AdF" secondAttribute="bottom" id="B2u-NG-n46"/>
<constraint firstItem="Goh-JW-j1Y" firstAttribute="centerX" secondItem="K4b-hH-Nzs" secondAttribute="centerX" id="Dxw-B5-PME"/>
<constraint firstItem="5a3-g2-oFO" firstAttribute="centerX" secondItem="K4b-hH-Nzs" secondAttribute="centerX" constant="50" id="FYm-az-cTG"/>
<constraint firstAttribute="width" constant="414" id="Gxx-BK-HGF"/>
<constraint firstItem="5a3-g2-oFO" firstAttribute="centerY" secondItem="Keq-VQ-0FG" secondAttribute="centerY" id="Kan-DE-ZGH"/>
<constraint firstItem="Goh-JW-j1Y" firstAttribute="top" secondItem="Keq-VQ-0FG" secondAttribute="bottom" constant="8" symbolic="YES" id="NQr-P4-rke"/>
<constraint firstItem="9eV-DG-z7D" firstAttribute="leading" secondItem="K4b-hH-Nzs" secondAttribute="leading" id="Oir-C7-A4f"/>
<constraint firstAttribute="trailing" secondItem="9eV-DG-z7D" secondAttribute="trailing" id="cjr-X4-BPW"/>
<constraint firstItem="d9e-wm-AdF" firstAttribute="top" secondItem="K4b-hH-Nzs" secondAttribute="top" id="gVU-WU-duI"/>
<constraint firstAttribute="height" constant="818" id="hbe-G9-6a3"/>
<constraint firstItem="Keq-VQ-0FG" firstAttribute="top" secondItem="9eV-DG-z7D" secondAttribute="bottom" constant="15" id="n4h-i4-PcF"/>
<constraint firstItem="d9e-wm-AdF" firstAttribute="leading" secondItem="K4b-hH-Nzs" secondAttribute="leading" id="tvQ-Ee-iiB"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="K4b-hH-Nzs" firstAttribute="top" secondItem="OyY-Dh-9kh" secondAttribute="top" id="2dI-hE-uJr"/>
<constraint firstAttribute="bottom" secondItem="K4b-hH-Nzs" secondAttribute="bottom" constant="-690" id="TBG-7D-Yms"/>
<constraint firstItem="K4b-hH-Nzs" firstAttribute="leading" secondItem="OyY-Dh-9kh" secondAttribute="leading" id="lz9-ya-0hc"/>
<constraint firstAttribute="trailing" secondItem="K4b-hH-Nzs" secondAttribute="trailing" constant="-174" id="wA6-RQ-zTb"/>
</constraints>
<viewLayoutGuide key="contentLayoutGuide" id="k2Q-aP-J9X"/>
<viewLayoutGuide key="frameLayoutGuide" id="gEb-f3-xrK"/>
</scrollView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="OyY-Dh-9kh" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="OfH-7n-Ulo"/>
<constraint firstItem="OyY-Dh-9kh" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="m6a-Qr-IlD"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="OyY-Dh-9kh" secondAttribute="trailing" id="sCe-25-mUG"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="OyY-Dh-9kh" secondAttribute="bottom" id="vgW-bw-ERA"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="132" y="122"/>
</view>
</objects>
<resources>
<image name="wancheng" width="64" height="64"/>
<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.41200000047683716" green="0.41200000047683716" blue="0.41200000047683716" 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.40000000596046448" green="0.40000000596046448" blue="0.40000000596046448" 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>
<namedColor name="蓝色字体颜色">
<color red="0.27799999713897705" green="0.56099998950958252" blue="0.88999998569488525" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
//
// XinZengPinPaiViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/26.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
import LGButton
class XinZengPinPaiViewController: BaseViewController,UITableViewDataSource,UITableViewDelegate {
let titleArr = ["品牌名称","品牌图标","站点地址","品牌描述"]
let holderArr = ["请输入品牌名称","0","请输入站点地址如:www.gelifood.com","0"]
@IBOutlet weak var btmBtn: LGButton!
@IBOutlet weak var listView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "新增品牌"
// if 编辑状态 {
// navbar.rightTitle = "删除"
// }
self.view.addSubview(navbar)
listView.snp.makeConstraints { (make) in
make.top.equalTo(NavCGRect.height)
make.left.right.equalTo(0)
make.height.equalTo(323.5*glscale)
}
listView.separatorStyle = .none
listView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTF")
listView.register(UINib(nibName: "TitleAndBtnCell", bundle: nil), forCellReuseIdentifier: "TitleAndBtn")
listView.register(UINib(nibName: "TilteAndTextViewCell", bundle: nil), forCellReuseIdentifier: "TilteAndTextView")
// Do any additional setup after loading the view.
}
func rightBtnClick() {
}
@IBAction func btnAction(_ sender: Any) {
}
//MARK: - cell delegate
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.row == 3 {
return 173.5*glscale
}
return 49*glscale
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return titleArr.count
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
switch indexPath.row {
case 0,2:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTF") as! TitleAndTFCell
cell.nameLbl.text = titleArr[indexPath.row]
cell.textTF.placeholder = holderArr[indexPath.row]
return cell
case 1:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtn") as! TitleAndBtnCell
cell.nameLbl.text = titleArr[indexPath.row]
cell.contentLbl.text = "上传图片"
return cell
default:
let cell = tableView.dequeueReusableCell(withIdentifier: "TilteAndTextView") as! TilteAndTextViewCell
cell.titleLbl.text = titleArr[indexPath.row]
cell.holderLbl.text = "简述品牌体征。"
return cell
}
}
}
<?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" useSafeAreas="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="Safe area layout guides" 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="XinZengPinPaiViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="btmBtn" destination="VRt-yh-sGk" id="QdF-uM-xjp"/>
<outlet property="listView" destination="rtS-FJ-o0e" id="FDx-iO-Tzh"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VRt-yh-sGk" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="TIT-ry-y3p">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
<userDefinedRuntimeAttribute type="string" keyPath="titleString" value="提交审核"/>
<userDefinedRuntimeAttribute type="number" keyPath="titleFontSize">
<real key="value" value="17"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="btnAction:" destination="-1" eventType="touchUpInside" id="hTp-G3-zom"/>
</connections>
</view>
<view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="KJ5-jm-La7" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="862" width="414" height="60"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="60" id="i6I-fQ-KeO">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
</userDefinedRuntimeAttributes>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="rtS-FJ-o0e">
<rect key="frame" x="0.0" y="44" width="414" height="323.5"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="323.5" id="Iz2-Nb-wK2">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
</constraints>
<connections>
<outlet property="dataSource" destination="-1" id="fvT-jc-s0a"/>
<outlet property="delegate" destination="-1" id="vyl-Yl-QqR"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="KJ5-jm-La7" secondAttribute="trailing" id="Bf1-gZ-ufX"/>
<constraint firstItem="KJ5-jm-La7" firstAttribute="top" secondItem="VRt-yh-sGk" secondAttribute="bottom" id="KNC-7h-7cF"/>
<constraint firstItem="rtS-FJ-o0e" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="Mdp-wM-HJg"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="rtS-FJ-o0e" secondAttribute="trailing" id="QSH-9B-9Y9"/>
<constraint firstItem="KJ5-jm-La7" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="bvg-Mz-VVl"/>
<constraint firstItem="rtS-FJ-o0e" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="crK-Dr-MCm"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="VRt-yh-sGk" secondAttribute="bottom" id="hSN-Gn-gne"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="VRt-yh-sGk" secondAttribute="trailing" id="psI-hN-ptf"/>
<constraint firstItem="VRt-yh-sGk" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="sIf-wI-EsY"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="131.8840579710145" y="121.875"/>
</view>
</objects>
<resources>
<namedColor name="按钮渐变色上">
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27450980392156865" green="0.5607843137254902" blue="0.88627450980392153" 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