Commit 2ed63472 authored by lujunye's avatar lujunye

补充注释

parent b8531ea7
......@@ -33,6 +33,14 @@
E01EA1A1245A5D6B00F019D5 /* YunDanXiangQingViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E01EA19F245A5D6B00F019D5 /* YunDanXiangQingViewController.xib */; };
E01EA1A4245A60E000F019D5 /* XiaDanChengGongViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E01EA1A2245A60E000F019D5 /* XiaDanChengGongViewController.swift */; };
E01EA1A5245A60E000F019D5 /* XiaDanChengGongViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E01EA1A3245A60E000F019D5 /* XiaDanChengGongViewController.xib */; };
E0206327246CD84A007A40C4 /* TitleAndLblView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0206326246CD84A007A40C4 /* TitleAndLblView.swift */; };
E0206329246CD855007A40C4 /* TitleAndLblView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0206328246CD855007A40C4 /* TitleAndLblView.xib */; };
E020632B246CDD36007A40C4 /* OrderDViewFooterView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E020632A246CDD36007A40C4 /* OrderDViewFooterView.swift */; };
E020632D246CDD3F007A40C4 /* OrderDViewFooterView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E020632C246CDD3F007A40C4 /* OrderDViewFooterView.xib */; };
E020632F246CE2F9007A40C4 /* OrderDViewSumFooter.swift in Sources */ = {isa = PBXBuildFile; fileRef = E020632E246CE2F9007A40C4 /* OrderDViewSumFooter.swift */; };
E0206331246CE303007A40C4 /* OrderDViewSumFooter.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0206330246CE303007A40C4 /* OrderDViewSumFooter.xib */; };
E0206333246CE450007A40C4 /* HeaderOnlyTitleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0206332246CE450007A40C4 /* HeaderOnlyTitleView.swift */; };
E0206335246CE45A007A40C4 /* HeaderOnlyTitleView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0206334246CE45A007A40C4 /* HeaderOnlyTitleView.xib */; };
E0273DD824551B4C00B3FCAE /* SendTimeSelectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0273DD724551B4C00B3FCAE /* SendTimeSelectView.swift */; };
E0273DDA24551B6D00B3FCAE /* SendTimeSelectView.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0273DD924551B6D00B3FCAE /* SendTimeSelectView.xib */; };
E0273DDD24551D4500B3FCAE /* OnlyLabelCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0273DDB24551D4500B3FCAE /* OnlyLabelCell.swift */; };
......@@ -150,6 +158,8 @@
E08A7AE124652E2C00F934F2 /* BingDingKeHuViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E08A7ADF24652E2C00F934F2 /* BingDingKeHuViewController.xib */; };
E08B0674244A98B2001D2E01 /* WareHouseSpCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E08B0672244A98B2001D2E01 /* WareHouseSpCell.swift */; };
E08B0675244A98B2001D2E01 /* WareHouseSpCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E08B0673244A98B2001D2E01 /* WareHouseSpCell.xib */; };
E099B588246BF8FA009F587F /* OrderDViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E099B586246BF8FA009F587F /* OrderDViewController.swift */; };
E099B589246BF8FA009F587F /* OrderDViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E099B587246BF8FA009F587F /* OrderDViewController.xib */; };
E09B03A12445AF7100211A51 /* Define.swift in Sources */ = {isa = PBXBuildFile; fileRef = E09B03A02445AF7100211A51 /* Define.swift */; };
E09B03A32445AF9500211A51 /* NetworkRequest.swift in Sources */ = {isa = PBXBuildFile; fileRef = E09B03A22445AF9500211A51 /* NetworkRequest.swift */; };
E09B03A72445B04E00211A51 /* BaseViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E09B03A52445B04D00211A51 /* BaseViewController.swift */; };
......@@ -217,8 +227,6 @@
E0C4F4B6244EE9EE00CC7E2F /* YuShouCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0C4F4B4244EE9EE00CC7E2F /* YuShouCell.xib */; };
E0C4F4BD244EF53D00CC7E2F /* BindStepTwoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0C4F4BB244EF53D00CC7E2F /* BindStepTwoViewController.swift */; };
E0C4F4BE244EF53D00CC7E2F /* BindStepTwoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0C4F4BC244EF53D00CC7E2F /* BindStepTwoViewController.xib */; };
E0C9EF12244E922200277435 /* OrderDViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0C9EF10244E922200277435 /* OrderDViewController.swift */; };
E0C9EF13244E922200277435 /* OrderDViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0C9EF11244E922200277435 /* OrderDViewController.xib */; };
E0D197BA2448431C002B080C /* BabyDefine.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197A92448431B002B080C /* BabyDefine.m */; };
E0D197BB2448431C002B080C /* BabyCallback.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197AB2448431B002B080C /* BabyCallback.m */; };
E0D197BC2448431C002B080C /* BabyPeripheralManager.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197AD2448431B002B080C /* BabyPeripheralManager.m */; };
......@@ -492,6 +500,14 @@
E01EA19F245A5D6B00F019D5 /* YunDanXiangQingViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = YunDanXiangQingViewController.xib; sourceTree = "<group>"; };
E01EA1A2245A60E000F019D5 /* XiaDanChengGongViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XiaDanChengGongViewController.swift; sourceTree = "<group>"; };
E01EA1A3245A60E000F019D5 /* XiaDanChengGongViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = XiaDanChengGongViewController.xib; sourceTree = "<group>"; };
E0206326246CD84A007A40C4 /* TitleAndLblView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TitleAndLblView.swift; sourceTree = "<group>"; };
E0206328246CD855007A40C4 /* TitleAndLblView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = TitleAndLblView.xib; sourceTree = "<group>"; };
E020632A246CDD36007A40C4 /* OrderDViewFooterView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderDViewFooterView.swift; sourceTree = "<group>"; };
E020632C246CDD3F007A40C4 /* OrderDViewFooterView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OrderDViewFooterView.xib; sourceTree = "<group>"; };
E020632E246CE2F9007A40C4 /* OrderDViewSumFooter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderDViewSumFooter.swift; sourceTree = "<group>"; };
E0206330246CE303007A40C4 /* OrderDViewSumFooter.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OrderDViewSumFooter.xib; sourceTree = "<group>"; };
E0206332246CE450007A40C4 /* HeaderOnlyTitleView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeaderOnlyTitleView.swift; sourceTree = "<group>"; };
E0206334246CE45A007A40C4 /* HeaderOnlyTitleView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HeaderOnlyTitleView.xib; sourceTree = "<group>"; };
E0273DD724551B4C00B3FCAE /* SendTimeSelectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SendTimeSelectView.swift; sourceTree = "<group>"; };
E0273DD924551B6D00B3FCAE /* SendTimeSelectView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SendTimeSelectView.xib; sourceTree = "<group>"; };
E0273DDB24551D4500B3FCAE /* OnlyLabelCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OnlyLabelCell.swift; sourceTree = "<group>"; };
......@@ -610,6 +626,8 @@
E08A7ADF24652E2C00F934F2 /* BingDingKeHuViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = BingDingKeHuViewController.xib; sourceTree = "<group>"; };
E08B0672244A98B2001D2E01 /* WareHouseSpCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WareHouseSpCell.swift; sourceTree = "<group>"; };
E08B0673244A98B2001D2E01 /* WareHouseSpCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WareHouseSpCell.xib; sourceTree = "<group>"; };
E099B586246BF8FA009F587F /* OrderDViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderDViewController.swift; sourceTree = "<group>"; };
E099B587246BF8FA009F587F /* OrderDViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OrderDViewController.xib; sourceTree = "<group>"; };
E09B03A02445AF7100211A51 /* Define.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Define.swift; sourceTree = "<group>"; };
E09B03A22445AF9500211A51 /* NetworkRequest.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NetworkRequest.swift; sourceTree = "<group>"; };
E09B03A52445B04D00211A51 /* BaseViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BaseViewController.swift; sourceTree = "<group>"; };
......@@ -677,8 +695,6 @@
E0C4F4B4244EE9EE00CC7E2F /* YuShouCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = YuShouCell.xib; sourceTree = "<group>"; };
E0C4F4BB244EF53D00CC7E2F /* BindStepTwoViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BindStepTwoViewController.swift; sourceTree = "<group>"; };
E0C4F4BC244EF53D00CC7E2F /* BindStepTwoViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = BindStepTwoViewController.xib; sourceTree = "<group>"; };
E0C9EF10244E922200277435 /* OrderDViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OrderDViewController.swift; sourceTree = "<group>"; };
E0C9EF11244E922200277435 /* OrderDViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OrderDViewController.xib; sourceTree = "<group>"; };
E0D197A82448431B002B080C /* BabyCentralManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BabyCentralManager.h; sourceTree = "<group>"; };
E0D197A92448431B002B080C /* BabyDefine.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = BabyDefine.m; sourceTree = "<group>"; };
E0D197AA2448431B002B080C /* BabyOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BabyOptions.h; sourceTree = "<group>"; };
......@@ -1148,8 +1164,16 @@
E022E131244D80EA00FEF5F7 /* 订单详情 */ = {
isa = PBXGroup;
children = (
E0C9EF10244E922200277435 /* OrderDViewController.swift */,
E0C9EF11244E922200277435 /* OrderDViewController.xib */,
E099B586246BF8FA009F587F /* OrderDViewController.swift */,
E099B587246BF8FA009F587F /* OrderDViewController.xib */,
E0206326246CD84A007A40C4 /* TitleAndLblView.swift */,
E0206328246CD855007A40C4 /* TitleAndLblView.xib */,
E020632A246CDD36007A40C4 /* OrderDViewFooterView.swift */,
E020632C246CDD3F007A40C4 /* OrderDViewFooterView.xib */,
E020632E246CE2F9007A40C4 /* OrderDViewSumFooter.swift */,
E0206330246CE303007A40C4 /* OrderDViewSumFooter.xib */,
E0206332246CE450007A40C4 /* HeaderOnlyTitleView.swift */,
E0206334246CE45A007A40C4 /* HeaderOnlyTitleView.xib */,
);
path = "订单详情";
sourceTree = "<group>";
......@@ -2422,7 +2446,6 @@
E0D197D024485649002B080C /* BluetoothConnectViewController.xib in Resources */,
F969BF1F244EE67900C79953 /* GoodsManageListVC.xib in Resources */,
E0F97B112451728D001BD600 /* AddGuiGeCell.xib in Resources */,
E0C9EF13244E922200277435 /* OrderDViewController.xib in Resources */,
F94A316024629DDD00FEC38E /* WorkBannerTableViewCell.xib in Resources */,
F95567AC2453E40B009674AB /* OrderListViewController.xib in Resources */,
E00E48C72457C99900F16545 /* KuCunShangPinXQViewController.xib in Resources */,
......@@ -2442,6 +2465,7 @@
E0F97B0D24516B1F001BD600 /* AddImgCell.xib in Resources */,
E0D197D6244860B1002B080C /* BlueToothCell.xib in Resources */,
E08A7AE124652E2C00F934F2 /* BingDingKeHuViewController.xib in Resources */,
E0206335246CE45A007A40C4 /* HeaderOnlyTitleView.xib in Resources */,
E0A409D524640B8300CFF109 /* DZGLViewController.xib in Resources */,
E0F1BE382469220D003015B2 /* RongSticker.bundle in Resources */,
F95567A82453DA86009674AB /* WarehoseMangementListVC.xib in Resources */,
......@@ -2467,6 +2491,7 @@
F95D9CA524493E840080D6E3 /* ShopInfoViewController.xib in Resources */,
F961D26F245015D6007FBE70 /* SelectContentView.xib in Resources */,
F96E9D60246657B500B5B94A /* HGImage.xcassets in Resources */,
E0206329246CD855007A40C4 /* TitleAndLblView.xib in Resources */,
E0F1BE3B2469220D003015B2 /* Emoji.plist in Resources */,
F961D27524503CCF007FBE70 /* OrderSelectMoreView.xib in Resources */,
E042F74524529B8500CDFA12 /* JiTuoWuXinXiView.xib in Resources */,
......@@ -2476,6 +2501,7 @@
F969BF08244EC38000C79953 /* GoodsCollectionViewCell.xib in Resources */,
E0D4166524483058008DCAB4 /* ChangePassViewController.xib in Resources */,
F95A9ED9245520E500867849 /* OrderListVC.xib in Resources */,
E099B589246BF8FA009F587F /* OrderDViewController.xib in Resources */,
E0BE8A91245A9B9600E80134 /* YingFuZhangKuanCell.xib in Resources */,
E02DDD9A24501A5B00ABB707 /* DelGuiGeCell.xib in Resources */,
E00D85E8244561FE00F5F816 /* Preview Assets.xcassets in Resources */,
......@@ -2498,6 +2524,7 @@
E0D46C5724503EC50087B564 /* TitleAndSelectCell.xib in Resources */,
E0F1BE432469220D003015B2 /* RCConfig.plist in Resources */,
E0A2E82C24555D8600D6DB34 /* KuCunXiangQingCell.xib in Resources */,
E020632D246CDD3F007A40C4 /* OrderDViewFooterView.xib in Resources */,
E0F3C2CC24590C86006F0D1F /* XinZengAndBianJiKeHuViewController.xib in Resources */,
E02C88272456B24F00925766 /* WuLiuGenZongViewController.xib in Resources */,
E0C4F4A8244EC82A00CC7E2F /* TitleAndBtnCell.xib in Resources */,
......@@ -2513,6 +2540,7 @@
E0337EEE2464EED000952EF4 /* PinPaiListViewController.xib in Resources */,
E0273DDE24551D4500B3FCAE /* OnlyLabelCell.xib in Resources */,
E00D85E5244561FE00F5F816 /* Assets.xcassets in Resources */,
E0206331246CE303007A40C4 /* OrderDViewSumFooter.xib in Resources */,
E0A320C72456D01D00AF321C /* DaiKeXiaDanFooterView.xib in Resources */,
F94A315824628AC600FEC38E /* WorkItemCollectionViewCell.xib in Resources */,
);
......@@ -2609,6 +2637,7 @@
F956D5B2246A2D9C003FF510 /* LMNDraft.m in Sources */,
E09B03B62445B85A00211A51 /* LoginViewController.swift in Sources */,
E02FD9FA24557E8600E10E27 /* XinZengDiZhiViewController.swift in Sources */,
E020632B246CDD36007A40C4 /* OrderDViewFooterView.swift in Sources */,
F950FDDE24518B9500C40530 /* FSCalendarWeekdayView.m in Sources */,
E0BE8A7F245A740600E80134 /* ChengGongCell.swift in Sources */,
E02DDD90244FE54C00ABB707 /* NewCreateHeader.swift in Sources */,
......@@ -2639,6 +2668,7 @@
E0F97B1A2451951D001BD600 /* ShangPinGguiGeCell.swift in Sources */,
E02FD9F62455790800E10E27 /* DiZhiGuanLiCell.swift in Sources */,
E0B946272456775000FBEC9A /* DaiKeXiaDanGouWuCell.swift in Sources */,
E0206333246CE450007A40C4 /* HeaderOnlyTitleView.swift in Sources */,
F950FDDB24518B9500C40530 /* FSCalendarStickyHeader.m in Sources */,
F95A9EE924558B8800867849 /* ShowAlGoodsViewController.swift in Sources */,
E09B03C32445BD9500211A51 /* NavViewController.swift in Sources */,
......@@ -2663,6 +2693,7 @@
F96E9D5B246656A700B5B94A /* HGImageCollectionViewCell.swift in Sources */,
E0D197C02448431C002B080C /* BabyCentralManager.m in Sources */,
F956D5A9246A2D9C003FF510 /* LMNLineChain.m in Sources */,
E020632F246CE2F9007A40C4 /* OrderDViewSumFooter.swift in Sources */,
F95D9CA424493E840080D6E3 /* ShopInfoViewController.swift in Sources */,
F9171EFC245128B200359C2B /* Interface.swift in Sources */,
E0F97B082451620B001BD600 /* ProductDetailViewController.swift in Sources */,
......@@ -2705,7 +2736,6 @@
E09B03C62445BF6700211A51 /* NavBarView.swift in Sources */,
E0A409D02464041200CFF109 /* ThirdCell.swift in Sources */,
F956D59F246A2D9C003FF510 /* LMNPhotoCollectionCell.m in Sources */,
E0C9EF12244E922200277435 /* OrderDViewController.swift in Sources */,
F950FDE424518B9500C40530 /* FSCalendarTransitionCoordinator.m in Sources */,
E0BE8A90245A9B9600E80134 /* YingFuZhangKuanCell.swift in Sources */,
E06524ED2458008900CA22E2 /* RuKuViewController.swift in Sources */,
......@@ -2754,6 +2784,7 @@
E0D197C22448431C002B080C /* BabyRhythm.m in Sources */,
F956D5A1246A2D9C003FF510 /* LMNToolBar.m in Sources */,
F950FDDC24518B9500C40530 /* FSCalendar.m in Sources */,
E0206327246CD84A007A40C4 /* TitleAndLblView.swift in Sources */,
F950FDD824518B9500C40530 /* FSCalendarDelegationProxy.m in Sources */,
E01EA1A0245A5D6B00F019D5 /* YunDanXiangQingViewController.swift in Sources */,
F956D5A0246A2D9C003FF510 /* LMNImageView.m in Sources */,
......@@ -2764,6 +2795,7 @@
E03549A8245820C2008BD021 /* PiCiXuanZeCell.swift in Sources */,
F956D59E246A2D9C003FF510 /* LMNTextStorage+Export.m in Sources */,
E0337EF12464F69000952EF4 /* YingFuZKListViewController.swift in Sources */,
E099B588246BF8FA009F587F /* OrderDViewController.swift in Sources */,
F933F6CE2452C68B00189561 /* PKHUDSquareBaseView.swift in Sources */,
E06524F524580BB600CA22E2 /* BaoZhiQiCell.swift in Sources */,
E0BE8AA4245AA31400E80134 /* YingFuZhangKuanXQViewController.swift in Sources */,
......
......@@ -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
}
}
}
}
......@@ -10,10 +10,10 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="CreatNewSpecsViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="bottomBtn" destination="dGJ-ea-Bx5" id="VIT-dc-ndT"/>
<outlet property="bottomBtn" destination="Y0N-V9-rbQ" id="cyL-aV-aEN"/>
<outlet property="listTbv" destination="bSh-mx-Kzg" id="xwd-1s-qv3"/>
<outlet property="topBarView" destination="58G-5f-0zb" id="HDH-SB-fbX"/>
<outlet property="topBarViewH" destination="Ye0-LU-7fR" id="twP-bS-cfD"/>
<outlet property="topBarViewH" destination="BMm-7O-bZv" id="ygO-Sq-gGh"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
......@@ -22,39 +22,24 @@
<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="dGJ-ea-Bx5" 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="TYQ-WT-LRq"/>
</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>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="bSh-mx-Kzg">
<rect key="frame" x="0.0" y="85" width="414" height="728"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<action selector="saveAction:" destination="-1" eventType="touchUpInside" id="XQQ-ow-RNc"/>
<outlet property="dataSource" destination="-1" id="Qbd-QF-oNN"/>
<outlet property="delegate" destination="-1" id="Ogi-cZ-Pq2"/>
</connections>
</view>
<view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8JZ-TM-4Gj" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="862" width="414" height="40"/>
</tableView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="58G-5f-0zb">
<rect key="frame" x="0.0" y="44" width="414" height="41"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="xOF-sg-cpN">
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isAdaptateScreen" value="YES"/>
</userDefinedRuntimeAttributes>
</constraint>
<constraint firstAttribute="height" constant="41" id="BMm-7O-bZv"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Y0N-V9-rbQ" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="按钮渐变色上"/>
......@@ -64,38 +49,43 @@
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
</userDefinedRuntimeAttributes>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="grouped" separatorStyle="none" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="bSh-mx-Kzg">
<rect key="frame" x="0.0" y="85" width="414" height="728"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="Qbd-QF-oNN"/>
<outlet property="delegate" destination="-1" id="Ogi-cZ-Pq2"/>
<action selector="saveAction:" destination="-1" eventType="touchUpInside" id="fiQ-3U-dYW"/>
</connections>
</tableView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="58G-5f-0zb">
<rect key="frame" x="0.0" y="44" width="414" height="41"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" usesAttributedText="YES" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cfi-M7-imX">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<constraints>
<constraint firstAttribute="height" constant="41" id="Ye0-LU-7fR"/>
<constraint firstAttribute="height" constant="49" id="vek-sO-irU"/>
</constraints>
</view>
<attributedString key="attributedText">
<fragment content="保存">
<attributes>
<color key="NSColor" name="白色背景色"/>
<font key="NSFont" size="17" name="PingFangSC-Medium"/>
<paragraphStyle key="NSParagraphStyle" alignment="center" lineBreakMode="wordWrapping" baseWritingDirection="natural" tighteningFactorForTruncation="0.0"/>
</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="bSh-mx-Kzg" firstAttribute="top" secondItem="58G-5f-0zb" secondAttribute="bottom" id="0nZ-9Z-pB5"/>
<constraint firstAttribute="trailing" secondItem="8JZ-TM-4Gj" secondAttribute="trailing" id="5nJ-hq-GzC"/>
<constraint firstItem="58G-5f-0zb" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="Ugd-D3-SaD"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="dGJ-ea-Bx5" secondAttribute="trailing" id="UjZ-PD-0IP"/>
<constraint firstItem="8JZ-TM-4Gj" firstAttribute="top" secondItem="dGJ-ea-Bx5" secondAttribute="bottom" id="Wcn-RI-W8x"/>
<constraint firstItem="bSh-mx-Kzg" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="cMo-sP-4qP"/>
<constraint firstItem="58G-5f-0zb" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="gRq-Fw-2ah"/>
<constraint firstItem="dGJ-ea-Bx5" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="jYa-O4-JEm"/>
<constraint firstItem="dGJ-ea-Bx5" firstAttribute="top" secondItem="bSh-mx-Kzg" secondAttribute="bottom" id="mTs-nP-5KO"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="58G-5f-0zb" secondAttribute="trailing" id="mzN-8N-ZCY"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="dGJ-ea-Bx5" secondAttribute="bottom" id="oYF-GV-YdD"/>
<constraint firstItem="8JZ-TM-4Gj" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="vF1-xh-KYL"/>
<constraint firstItem="bSh-mx-Kzg" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="zF5-sH-eFq"/>
<constraint firstItem="bSh-mx-Kzg" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="0nt-b8-Sre"/>
<constraint firstItem="58G-5f-0zb" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="1YJ-ND-QVR"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="cfi-M7-imX" secondAttribute="trailing" id="5dy-l6-scy"/>
<constraint firstItem="58G-5f-0zb" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="8V4-Vr-UjZ"/>
<constraint firstItem="58G-5f-0zb" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="Fkv-wG-QO1"/>
<constraint firstAttribute="bottom" secondItem="Y0N-V9-rbQ" secondAttribute="bottom" id="GdH-21-yUL"/>
<constraint firstItem="cfi-M7-imX" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="L8O-So-ddU"/>
<constraint firstItem="Y0N-V9-rbQ" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="O6r-d7-PpH"/>
<constraint firstItem="Y0N-V9-rbQ" firstAttribute="top" secondItem="bSh-mx-Kzg" secondAttribute="bottom" id="YwI-Nu-ale"/>
<constraint firstItem="Y0N-V9-rbQ" firstAttribute="top" secondItem="cfi-M7-imX" secondAttribute="top" id="bQH-BC-2BU"/>
<constraint firstItem="bSh-mx-Kzg" firstAttribute="top" secondItem="58G-5f-0zb" secondAttribute="bottom" id="bTK-W9-Ace"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Y0N-V9-rbQ" secondAttribute="trailing" id="fD8-GK-OC0"/>
<constraint firstItem="bSh-mx-Kzg" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="gaf-gS-JMH"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="cfi-M7-imX" secondAttribute="bottom" id="rRB-0C-Jn7"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="131.8840579710145" y="129.91071428571428"/>
......@@ -111,5 +101,8 @@
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -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>
......@@ -2,1153 +2,393 @@
// OrderDViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/21.
// Created by junye lu on 2020/5/13.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class OrderDViewController: BaseViewController {
var orderId : Int = 0
@IBOutlet weak var bottomView: UIView!
@IBOutlet weak var scrollView: UIScrollView!
class OrderDViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource,TitleAndBtnCellDelegate,GuanLianKehuVCDelegate,OrderDViewFooterViewDelegate,TitleAndTFCellDelegate,CommendCellDelegate{
var clientLbl:UILabel? //客户名称
var statusLbl:UILabel? //订单状态:待付款
//MARK: - 订单状态
var djLbl:UILabel?//定金
var wkLbl:UILabel?//尾款
var sphjLbl:UILabel?//商品合计
var wlfyLbl:UILabel?//物流费用
var qtfyLbl:UILabel?//其他费用
//MARK: - 订单信息
var orderNumLbl:UILabel?//订单编号
var orderTimeLbl:UILabel?//下单时间
var orderSourceLbl:UILabel?//订单来源
var yunDanHaoTF:UITextField?//输入运单号
var wuLiuGongSiTF:UITextField?//请输入物流公司
var payTypeLbl:UILabel?//支付方式
var payStatusLbl:UILabel?//支付状态
var contentLbl:UILabel?//买家留言
var dingDanBeiZhuTF:UITextField?//请输入留言信息
//MARK: - 收货信息
var receiverLbl:UILabel?//收货人
var phoneNumLbl:UILabel?//手机号码
var addressLbl:UILabel?//地址
var totalPriceLbl:UILabel?//总费用
var orderId:Int? //订单编号
var isYuShou:Bool = false //是否预售
var dataArr:NSArray = ["a","b"] //订单产品数据
var btmBtnsTitleArr:NSArray = ["修改价格","打印","确认订单"]//底栏按钮数据
var firstImg:UIImageView?//第1个商品图片
var firstItemLbl:UILabel?//第1个商品名称
var firstDetailLbl:UILabel?//第1个商品详情
var firstPriceLbl:UILabel?//第1个商品价格
let yuShouTitleArr = ["定金:","尾款:","商品合计:","物流费用:","其它费用:"]
let nonYuShouTitleArr = ["商品合计:","物流费用:","其它费用:"]
var secondImg:UIImageView?//第2个商品图片
var secondItemLbl:UILabel?//第2个商品名称
var secondDetailLbl:UILabel?//第2个商品详情
var secondPriceLbl:UILabel?//第2个商品价格
let YuShouPart3Arr = ["订单编号","下单时间","订单来源","提货方式","运单号","物流公司","支付方式","支付状态","买家留言","订单备注"]
let nonYuShouPart3Arr = ["收货人","联系电话","地址"]
@IBOutlet weak var btmViewH: NSLayoutConstraint!
@IBOutlet weak var bottomView: UIView!
@IBOutlet weak var listView: UITableView!
//是否预售
var isBooking:Bool = false
//测试数据
var listArray = ["a","b","c"]
let btmBtnTitleArray = ["修改价格","打印","确认订单","取消订单"]
//MARK:--加载数据
func loadData() {
let UserToken = UserDefaults.standard.value(forKey: "user_token")
orderDetail(["user_token":UserToken as Any,"order_id":orderId], success: { (data) in
}) { (error) in
}
}
var cell4Height = 18.5
var cell5Height = 18.5
var cell9Height = 18.5
var cellH:CGFloat = 30.5
override func viewDidLoad() {
super.viewDidLoad()
loadData()
navbar.title = "订单详情"
self.view.addSubview(navbar)
self.setBottomBtn(sender: bottomView)
scrollView.snp.makeConstraints { (make) in
make.top.equalTo(NavCGRect.height)
make.left.right.equalTo(0)
make.bottom.equalTo(bottomView.snp_top)
}
let partFirst = self.setPartFirst()
let partSecond = self.setPartSecond(partFirst: partFirst)
let partThird = self.setPartThird(partSecond: partSecond)
self.setPartForth(partThird: partThird)
//是否预售。
// isBooking 仅会出现一个商品
// listArray.count 根据数量判断显示
SetTopFrameView(view: listView, btmView: bottomView)
// Do any additional setup after loading the view.
}
//MARK: - 详情第四栏
func setPartForth(partThird:UIView){
let partForth = UIView()
partForth.backgroundColor = UIColor.white
scrollView.addSubview(partForth)
partForth.snp.makeConstraints { (make) in
make.top.equalTo(partThird.snp_bottom).offset(10)
make.left.equalTo(0)
make.width.equalTo(fullScreenWidth)
make.height.equalTo(485)
make.bottom.equalTo(scrollView.snp_bottom)//scrollview滚动必要代码
}
let title = UILabel()
partForth.addSubview(title)
title.text = "订单信息"
title.font = UIFont.systemFont(ofSize: 15)
title.textColor = UIColor(named: "标题字颜色")
title.snp.makeConstraints { (make) in
make.top.right.equalTo(15)
make.left.equalTo(15)
make.height.equalTo(21)
}
let t1 = UILabel()
partForth.addSubview(t1)
t1.text = "订单编号:"
t1.font = UIFont.systemFont(ofSize: 13)
t1.textColor = UIColor(named: "标题字颜色")
t1.snp.makeConstraints { (make) in
make.top.equalTo(title.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let c1 = UILabel()
partForth.addSubview(c1)
orderNumLbl = c1
c1.text = "5546541211221121"
c1.textAlignment = .right
c1.font = UIFont.systemFont(ofSize: 13)
c1.textColor = UIColor(named: "标题字颜色")
c1.snp.makeConstraints { (make) in
make.centerY.equalTo(t1.snp_centerY)
make.left.right.equalTo(-15)
make.height.equalTo(18.5)
}
let l1 = UIView()
partForth.addSubview(l1)
l1.backgroundColor = UIColor(named: "灰色分界线")
l1.snp.makeConstraints { (make) in
make.top.equalTo(c1.snp_bottom).offset(15)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t2 = UILabel()
partForth.addSubview(t2)
t2.text = "下单时间:"
t2.font = UIFont.systemFont(ofSize: 13)
t2.textColor = UIColor(named: "标题字颜色")
t2.snp.makeConstraints { (make) in
make.top.equalTo(l1.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let c2 = UILabel()
partForth.addSubview(c2)
orderTimeLbl = c2
c2.text = "2020.04.25 14:16:32"
c2.textAlignment = .right
c2.font = UIFont.systemFont(ofSize: 13)
c2.textColor = UIColor(named: "标题字颜色")
c2.snp.makeConstraints { (make) in
make.centerY.equalTo(t2.snp_centerY)
make.left.right.equalTo(-15)
make.height.equalTo(18.5)
}
let l2 = UIView()
partForth.addSubview(l2)
l2.backgroundColor = UIColor(named: "灰色分界线")
l2.snp.makeConstraints { (make) in
make.top.equalTo(c2.snp_bottom).offset(15)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t3 = UILabel()
partForth.addSubview(t3)
t3.text = "订单来源:"
t3.font = UIFont.systemFont(ofSize: 13)
t3.textColor = UIColor(named: "标题字颜色")
t3.snp.makeConstraints { (make) in
make.top.equalTo(l2.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let c3 = UILabel()
partForth.addSubview(c3)
orderSourceLbl = c3
c3.text = "小程序"
c3.textAlignment = .right
c3.font = UIFont.systemFont(ofSize: 13)
c3.textColor = UIColor(named: "标题字颜色")
c3.snp.makeConstraints { (make) in
make.centerY.equalTo(t3.snp_centerY)
make.left.right.equalTo(-15)
make.height.equalTo(18.5)
}
let l3 = UIView()
partForth.addSubview(l3)
l3.backgroundColor = UIColor(named: "灰色分界线")
l3.snp.makeConstraints { (make) in
make.top.equalTo(c3.snp_bottom).offset(15)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t4 = UILabel()
partForth.addSubview(t4)
t4.text = "运单号"
t4.font = UIFont.systemFont(ofSize: 13)
t4.textColor = UIColor(named: "标题字颜色")
t4.snp.makeConstraints { (make) in
make.top.equalTo(l3.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let yunDanHaoTF = UITextField()
yunDanHaoTF.textAlignment = .right
yunDanHaoTF.textColor = UIColor(named: "标题字颜色")
yunDanHaoTF.placeholder = "请输入物流单号"
yunDanHaoTF.borderStyle = .none
yunDanHaoTF.addTarget(self, action: #selector(inputAction(sender:)), for: .allEditingEvents)
yunDanHaoTF.font = UIFont.systemFont(ofSize: 13)
partForth.addSubview(yunDanHaoTF)
self.yunDanHaoTF = yunDanHaoTF
yunDanHaoTF.snp.makeConstraints { (make) in
make.right.equalTo(-41.5)
make.centerY.equalTo(t4.snp_centerY)
make.height.equalTo(47)
}
let img1 = UIImageView()
img1.image = UIImage(named: "bianji")
partForth.addSubview(img1)
img1.snp.makeConstraints { (make) in
make.right.equalTo(-14)
make.centerY.equalTo(t4.snp_centerY)
make.height.equalTo(17)
make.width.equalTo(17.5)
}
let l4 = UIView()
partForth.addSubview(l4)
l4.backgroundColor = UIColor(named: "灰色分界线")
l4.snp.makeConstraints { (make) in
make.top.equalTo(yunDanHaoTF.snp_bottom)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t5 = UILabel()
partForth.addSubview(t5)
t5.text = "物流公司"
t5.font = UIFont.systemFont(ofSize: 13)
t5.textColor = UIColor(named: "标题字颜色")
t5.snp.makeConstraints { (make) in
make.top.equalTo(l4.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let wuLiuGongSiTF = UITextField()
wuLiuGongSiTF.textAlignment = .right
wuLiuGongSiTF.textColor = UIColor(named: "标题字颜色")
wuLiuGongSiTF.placeholder = "请输入物流公司"
wuLiuGongSiTF.borderStyle = .none
wuLiuGongSiTF.addTarget(self, action: #selector(inputAction(sender:)), for: .allEditingEvents)
wuLiuGongSiTF.font = UIFont.systemFont(ofSize: 13)
partForth.addSubview(wuLiuGongSiTF)
self.wuLiuGongSiTF = wuLiuGongSiTF
wuLiuGongSiTF.snp.makeConstraints { (make) in
make.right.equalTo(-41.5)
make.centerY.equalTo(t5.snp_centerY)
make.height.equalTo(47)
}
let img2 = UIImageView()
img2.image = UIImage(named: "bianji")
partForth.addSubview(img2)
img2.snp.makeConstraints { (make) in
make.right.equalTo(-14)
make.centerY.equalTo(t5.snp_centerY)
make.height.equalTo(17)
make.width.equalTo(17.5)
}
let l5 = UIView()
partForth.addSubview(l5)
l5.backgroundColor = UIColor(named: "灰色分界线")
l5.snp.makeConstraints { (make) in
make.top.equalTo(wuLiuGongSiTF.snp_bottom)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t6 = UILabel()
partForth.addSubview(t6)
t6.text = "支付方式"
t6.font = UIFont.systemFont(ofSize: 13)
t6.textColor = UIColor(named: "标题字颜色")
t6.snp.makeConstraints { (make) in
make.top.equalTo(l5.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let c4 = UILabel()
c4.textAlignment = .right
c4.textColor = UIColor(named: "灰色字体颜色")
c4.text = "未支付"
c4.font = UIFont.systemFont(ofSize: 13)
partForth.addSubview(c4)
payTypeLbl = c4
c4.snp.makeConstraints { (make) in
make.left.right.equalTo(-32)
make.centerY.equalTo(t6.snp_centerY)
make.height.equalTo(18.5)
}
listView.separatorStyle = .none
listView.register(UINib(nibName: "TitleAndBtnCell", bundle: nil), forCellReuseIdentifier: "TitleAndBtnCell")
listView.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
listView.register(UINib(nibName: "XuanZeShangPinCell", bundle: nil), forCellReuseIdentifier: "XuanZeShangPinCell")
listView.register(UINib(nibName: "CommendCell", bundle: nil), forCellReuseIdentifier: "CommendCell")
let img3 = UIImageView()
img3.image = UIImage(named: "jinruDetail")
partForth.addSubview(img3)
img3.snp.makeConstraints { (make) in
make.right.equalTo(-14)
make.centerY.equalTo(t6.snp_centerY)
make.height.equalTo(9)
make.width.equalTo(5)
}
let btn1 = UIButton()
partForth.addSubview(btn1)
btn1.addTarget(self, action: #selector(btnClickAction(sender:)), for: .touchUpInside)
btn1.tag = 0
btn1.snp.makeConstraints { (make) in
make.centerY.equalTo(img3.snp_centerY)
make.left.equalTo(c4.snp.right)
make.height.width.equalTo(47)
}
let l6 = UIView()
partForth.addSubview(l6)
l6.backgroundColor = UIColor(named: "灰色分界线")
l6.snp.makeConstraints { (make) in
make.top.equalTo(btn1.snp_bottom)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t7 = UILabel()
partForth.addSubview(t7)
t7.text = "支付状态"
t7.font = UIFont.systemFont(ofSize: 13)
t7.textColor = UIColor(named: "标题字颜色")
t7.snp.makeConstraints { (make) in
make.top.equalTo(l6.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let c5 = UILabel()
c5.textAlignment = .right
c5.textColor = UIColor(named: "灰色字体颜色")
c5.text = "未付款"
c5.font = UIFont.systemFont(ofSize: 13)
partForth.addSubview(c5)
payStatusLbl = c5
c5.snp.makeConstraints { (make) in
make.left.right.equalTo(-32)
make.centerY.equalTo(t7.snp_centerY)
make.height.equalTo(18.5)
}
let img4 = UIImageView()
img4.image = UIImage(named: "jinruDetail")
partForth.addSubview(img4)
img4.snp.makeConstraints { (make) in
make.right.equalTo(-14)
make.centerY.equalTo(t7.snp_centerY)
make.height.equalTo(9)
make.width.equalTo(5)
}
let btn2 = UIButton()
partForth.addSubview(btn2)
btn2.addTarget(self, action: #selector(btnClickAction(sender:)), for: .touchUpInside)
btn2.tag = 1
btn2.snp.makeConstraints { (make) in
make.centerY.equalTo(img4.snp_centerY)
make.left.equalTo(c5.snp.right)
make.height.width.equalTo(47)
}
let l7 = UIView()
partForth.addSubview(l7)
l7.backgroundColor = UIColor(named: "灰色分界线")
l7.snp.makeConstraints { (make) in
make.top.equalTo(btn2.snp_bottom)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t8 = UILabel()
partForth.addSubview(t8)
t8.text = "买家留言"
t8.font = UIFont.systemFont(ofSize: 13)
t8.textColor = UIColor(named: "标题字颜色")
t8.snp.makeConstraints { (make) in
make.top.equalTo(l7.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let c6 = UILabel()
c6.numberOfLines = 0
partForth.addSubview(c6)
c6.text = "轻拿轻放,谢谢轻拿轻放,谢谢轻拿轻放,谢谢轻拿轻放,谢谢轻拿轻放,谢谢轻拿轻放,谢谢轻拿轻放,谢谢轻拿轻放,谢谢轻拿轻放,谢谢"
c6.textAlignment = .right
c6.font = UIFont.systemFont(ofSize: 13)
c6.textColor = UIColor(named: "标题字颜色")
c6.snp.makeConstraints { (make) in
make.top.equalTo(l7.snp_bottom).offset(3)
make.right.equalTo(-15)
make.height.equalTo(45)
make.width.equalTo(fullScreenWidth*0.5)
}
contentLbl = c6
let l8 = UIView()
partForth.addSubview(l8)
l8.backgroundColor = UIColor(named: "灰色分界线")
l8.snp.makeConstraints { (make) in
make.top.equalTo(c6.snp_bottom).offset(3)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t9 = UILabel()
partForth.addSubview(t9)
t9.text = "物流公司"
t9.font = UIFont.systemFont(ofSize: 13)
t9.textColor = UIColor(named: "标题字颜色")
t9.snp.makeConstraints { (make) in
make.top.equalTo(l8.snp_bottom).offset(15)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let dingDanBeiZhuTF = UITextField()
dingDanBeiZhuTF.textAlignment = .right
dingDanBeiZhuTF.textColor = UIColor(named: "标题字颜色")
dingDanBeiZhuTF.placeholder = "请输入留言信息"
dingDanBeiZhuTF.borderStyle = .none
dingDanBeiZhuTF.addTarget(self, action: #selector(inputAction(sender:)), for: .allEditingEvents)
dingDanBeiZhuTF.font = UIFont.systemFont(ofSize: 13)
partForth.addSubview(dingDanBeiZhuTF)
self.dingDanBeiZhuTF = dingDanBeiZhuTF
dingDanBeiZhuTF.snp.makeConstraints { (make) in
make.right.equalTo(-41.5)
make.centerY.equalTo(t9.snp_centerY)
make.height.equalTo(47)
}
let img5 = UIImageView()
img5.image = UIImage(named: "bianji")
partForth.addSubview(img5)
img5.snp.makeConstraints { (make) in
make.right.equalTo(-14)
make.centerY.equalTo(t9.snp_centerY)
make.height.equalTo(17)
make.width.equalTo(17.5)
if btmBtnsTitleArr.count == 0 {
btmViewH.constant = 0
}else{
for i in 0 ..< btmBtnsTitleArr.count{
let title = btmBtnsTitleArr[i] as! String
let width = fullScreenWidth / CGFloat(btmBtnsTitleArr.count)
let btn = UIButton(frame: CGRect(x: CGFloat(i) * width, y: 0, width: width, height: bottomView.bounds.size.height))
btn.setTitleColor(UIColor(named: "蓝色字体颜色"), for: .normal)
btn.titleLabel?.font = UIFont.boldSystemFont(ofSize: 13)
btn.setTitle(title, for: .normal)
btn.addTarget(self, action: #selector(bottomBtnClick(sender:)), for: .touchUpInside)
bottomView.addSubview(btn)
}
}
}
@objc func btnClickAction(sender:UIButton){
print(sender.tag)
}
//MARK: -运单号、物流公司、订单备注(输入方法)
@objc func inputAction(sender:UITextField){
print(sender.text)
//MARK: - 自定义方法
@objc func bottomBtnClick(sender:UIButton){
print(sender.titleLabel?.text)
}
//MARK: -详情第三栏
func setPartThird(partSecond:UIView)->UIView{
let partThird = UIView()
partThird.backgroundColor = UIColor.white
scrollView.addSubview(partThird)
partThird.snp.makeConstraints { (make) in
make.top.equalTo(partSecond.snp_bottom).offset(20)
make.left.equalTo(0)
make.width.equalTo(fullScreenWidth)
make.height.equalTo(185)
}
let title = UILabel()
partThird.addSubview(title)
title.text = "收货信息"
title.font = UIFont.systemFont(ofSize: 15)
title.textColor = UIColor(named: "标题字颜色")
title.snp.makeConstraints { (make) in
make.top.right.equalTo(15)
make.left.equalTo(15)
make.height.equalTo(21)
}
let t1 = UILabel()
partThird.addSubview(t1)
t1.text = "收货人"
t1.font = UIFont.systemFont(ofSize: 13)
t1.textColor = UIColor(named: "标题字颜色")
t1.snp.makeConstraints { (make) in
make.top.equalTo(title.snp_bottom).offset(19)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let receiver = UILabel()
partThird.addSubview(receiver)
receiver.textAlignment = .right
receiver.text = "梁小锋"
receiver.font = UIFont.systemFont(ofSize: 13)
receiver.textColor = UIColor(named: "标题字颜色")
receiver.snp.makeConstraints { (make) in
make.top.equalTo(title.snp_bottom).offset(21)
make.left.right.equalTo(-15)
make.height.equalTo(18.5)
}
receiverLbl = receiver
let l1 = UIView()
partThird.addSubview(l1)
l1.backgroundColor = UIColor(named: "灰色分界线")
l1.snp.makeConstraints { (make) in
make.top.equalTo(receiver.snp_bottom).offset(14)
make.left.right.equalTo(15)
make.height.equalTo(1)
}
let t2 = UILabel()
partThird.addSubview(t2)
t2.text = "联系电话"
t2.font = UIFont.systemFont(ofSize: 13)
t2.textColor = UIColor(named: "标题字颜色")
t2.snp.makeConstraints { (make) in
make.top.equalTo(l1.snp_bottom).offset(14)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
}
let phoneL = UILabel()
partThird.addSubview(phoneL)
phoneL.textAlignment = .right
phoneL.text = "15577124121"
phoneL.font = UIFont.systemFont(ofSize: 13)
phoneL.textColor = UIColor(named: "标题字颜色")
phoneL.snp.makeConstraints { (make) in
make.centerY.equalTo(t2.snp_centerY)
make.left.equalTo(15)
make.right.equalTo(-15)
make.height.equalTo(18.5)
}
phoneNumLbl = phoneL
let l2 = UIView()
partThird.addSubview(l2)
l2.backgroundColor = UIColor(named: "灰色分界线")
l2.snp.makeConstraints { (make) in
make.top.equalTo(phoneL.snp_bottom).offset(14)
make.left.right.equalTo(15)
make.height.equalTo(1)
}
let t3 = UILabel()
partThird.addSubview(t3)
t3.text = "地址"
t3.font = UIFont.systemFont(ofSize: 13)
t3.textColor = UIColor(named: "标题字颜色")
t3.snp.makeConstraints { (make) in
make.top.equalTo(l2.snp_bottom).offset(14)
make.left.right.equalTo(15)
make.height.equalTo(18.5)
//MARK: - header delegate
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
switch section {
case 1:
return 49
case 2:
return 1
case 3:
return 39
case 4:
return 39
default:
return 10
}
let addressL = UILabel()
partThird.addSubview(addressL)
addressL.textAlignment = .right
addressL.text = "广东省广州市荔湾区福利大厦2105号"
addressL.font = UIFont.systemFont(ofSize: 13)
addressL.textColor = UIColor(named: "标题字颜色")
addressL.snp.makeConstraints { (make) in
make.centerY.equalTo(t3.snp_centerY)
make.left.equalTo(15)
make.right.equalTo(-15)
make.height.equalTo(18.5)
}
addressLbl = addressL
return partThird
}
//MARK: -详情第二栏
func setPartSecond(partFirst:UIView)->UIView{
let partSecond = UIView()
partSecond.backgroundColor = UIColor.white
scrollView.addSubview(partSecond)
partSecond.snp.makeConstraints { (make) in
make.top.equalTo(partFirst.snp_bottom).offset(10)
make.left.equalTo(0)
make.width.equalTo(fullScreenWidth)
make.height.equalTo(524.5)
// make.bottom.equalTo(scrollView.snp_bottom)//scrollview滚动必要代码
}
let title = UILabel()
partSecond.addSubview(title)
title.font = UIFont.systemFont(ofSize: 13)
title.textColor = UIColor(named: "标题字颜色")
title.text = "订单状态"
title.snp.makeConstraints { (make) in
make.top.right.equalTo(0)
make.left.equalTo(15)
make.height.equalTo(48)
}
let status = UILabel()
partSecond.addSubview(status)
status.font = UIFont.systemFont(ofSize: 13)
status.textAlignment = .right
status.textColor = UIColor(named: "按钮渐变色下,字体颜色")
status.text = "待付款"
status.snp.makeConstraints { (make) in
make.right.equalTo(-15)
make.top.left.equalTo(0)
make.height.equalTo(48)
}
statusLbl = status
let line = UIView()
line.backgroundColor = UIColor(named: "灰色分界线")
partSecond.addSubview(line)
line.snp.makeConstraints { (make) in
make.top.equalTo(status.snp_bottom)
make.left.right.equalTo(0)
make.height.equalTo(1)
}
let viewT = UIView()
partSecond.addSubview(viewT)
viewT.snp.makeConstraints { (make) in
make.top.equalTo(line.snp_bottom)
make.left.right.equalTo(0)
make.height.equalTo(120)
}
let imgFirst = UIImageView()
imgFirst.layer.cornerRadius = 3
imgFirst.layer.masksToBounds = true
imgFirst.layer.borderWidth = 1
imgFirst.layer.borderColor = UIColor(named: "灰色分界线")?.cgColor
viewT.addSubview(imgFirst)
imgFirst.snp.makeConstraints { (make) in
make.left.top.equalTo(15)
make.width.height.equalTo(90)
}
firstImg = imgFirst
let firTitLbl = UILabel()
viewT.addSubview(firTitLbl)
let paraph = NSMutableParagraphStyle()
paraph.lineSpacing = 4
let attributes = [NSAttributedString.Key.font:UIFont.systemFont(ofSize: 15),
NSAttributedString.Key.paragraphStyle: paraph]
firTitLbl.attributedText = NSAttributedString(string: "六和川香鸡柳2.5kg/新疆和六和川香鸡柳2.5kg/新疆和", attributes: attributes)
firTitLbl.font = UIFont.systemFont(ofSize: 13)
firTitLbl.textColor = UIColor(named: "标题字颜色")
firTitLbl.numberOfLines = 0
firstItemLbl = firTitLbl
let size = self.getStringSize(str: firTitLbl.attributedText!)
firTitLbl.snp.makeConstraints { (make) in
make.top.equalTo(15)
make.left.equalTo(imgFirst.snp_right).offset(10)
make.right.equalTo(-24.5)
make.height.equalTo(size.height+2)
}
let firDetailLbl = UILabel()
firDetailLbl.font = UIFont.systemFont(ofSize: 11)
firDetailLbl.textColor = UIColor(named: "灰色字体颜色")
firDetailLbl.text = "5kg/箱/袋"
firstDetailLbl = firDetailLbl
viewT.addSubview(firDetailLbl)
firDetailLbl.snp.makeConstraints { (make) in
make.left.equalTo(imgFirst.snp_right).offset(10)
make.top.equalTo(firTitLbl.snp_bottom).offset(15)
make.height.equalTo(15)
make.right.equalTo(-15)
}
let firPriceLbl = UILabel()
viewT.addSubview(firPriceLbl)
firPriceLbl.text = "¥40.00"
firPriceLbl.textAlignment = .right
firPriceLbl.font = UIFont.systemFont(ofSize: 13)
firPriceLbl.textColor = UIColor(named: "标题字颜色")
firstPriceLbl = firPriceLbl
firPriceLbl.snp.makeConstraints { (make) in
make.bottom.equalTo(imgFirst.snp_bottom)
make.right.equalTo(-15)
make.left.equalTo(10)
make.height.equalTo(18.5)
}
let lineF = UIView()
viewT.addSubview(lineF)
lineF.backgroundColor = UIColor(named: "灰色分界线")
lineF.snp.makeConstraints { (make) in
make.top.equalTo(firPriceLbl.snp_bottom).offset(14.5)
make.left.right.equalTo(0)
make.height.equalTo(1)
}
if isBooking {//预售
let bookImg = UIImageView()
imgFirst.addSubview(bookImg)
bookImg.image = UIImage(named: "yushou")
bookImg.snp.makeConstraints { (make) in
make.top.right.equalTo(0)
make.height.equalTo(18)
make.width.equalTo(34)
}
let t1 = UILabel()
viewT.addSubview(t1)
t1.text = "定金:"
t1.font = UIFont.systemFont(ofSize: 13)
t1.textColor = UIColor(named: "标题字颜色")
t1.snp.makeConstraints { (make) in
make.top.equalTo(lineF.snp_bottom).offset(15)
make.left.equalTo(15)
make.height.equalTo(18.5)
make.width.equalTo(100)
}
let dingJinLbl = UILabel()
viewT.addSubview(dingJinLbl)
dingJinLbl.text = "(已付) ¥2000.00"
dingJinLbl.font = UIFont.systemFont(ofSize: 13)
dingJinLbl.textAlignment = .right
dingJinLbl.textColor = UIColor(named: "标题字颜色")
djLbl = dingJinLbl
dingJinLbl.snp.makeConstraints { (make) in
make.centerY.equalTo(t1.snp_centerY)
make.right.equalTo(-15)
make.left.equalTo(15)
make.height.equalTo(18.5)
}
let l1 = UIView()
viewT.addSubview(l1)
l1.backgroundColor = UIColor(named: "灰色分界线")
l1.snp.makeConstraints { (make) in
make.top.equalTo(dingJinLbl.snp_bottom).offset(15.5)
make.left.right.equalTo(15)
make.height.equalTo(1)
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView()
switch section {
case 1:
let view = TitleAndLblView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 49))
view.nameLbl.text = "订单状态"
//订单状态
view.contentLbl.text = "待付款"
return view
case 3:
let view = HeaderOnlyTitleView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 39))
if isYuShou {
view.nameLbl.text = "收货信息"
}else{
view.nameLbl.text = "订单信息"
}
let t2 = UILabel()
viewT.addSubview(t2)
t2.text = "尾款:"
t2.font = UIFont.systemFont(ofSize: 13)
t2.textColor = UIColor(named: "标题字颜色")
t2.snp.makeConstraints { (make) in
make.top.equalTo(l1.snp_bottom).offset(15)
make.left.equalTo(15)
make.height.equalTo(18.5)
make.width.equalTo(100)
return view
case 4:
let view = HeaderOnlyTitleView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 39))
view.nameLbl.text = "订单信息"
return view
default:
break
}
return view
}
//MARK: - footer delegate
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
switch section {
case 1:
if isYuShou == false {
if dataArr.count > 2 {
return 33.5
}else{
return 0.01
}
}else{
return 0.01
}
let weiKuanLbl = UILabel()
viewT.addSubview(weiKuanLbl)
weiKuanLbl.text = "¥9052.00"
weiKuanLbl.font = UIFont.systemFont(ofSize: 13)
weiKuanLbl.textAlignment = .right
weiKuanLbl.textColor = UIColor(named: "标题字颜色")
wkLbl = weiKuanLbl
weiKuanLbl.snp.makeConstraints { (make) in
make.centerY.equalTo(t2.snp_centerY)
make.right.equalTo(-15)
make.left.equalTo(15)
make.height.equalTo(18.5)
case 2:
return 59
default:
break
}
return 10
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
let view = UIView()
switch section {
case 1:
if isYuShou == false {
if dataArr.count > 2 {
let view = OrderDViewFooterView(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 33.5))
view.delegate = self
view.nameLbl.text = "查看全部(共\(dataArr.count)个商品)"
return view
}
}
case 2:
let view = OrderDViewSumFooter(frame: CGRect(x: 0, y: 0, width: fullScreenWidth, height: 59))
return view
default:
break
}
return view
}
//MARK: - section delegate
func numberOfSections(in tableView: UITableView) -> Int {
if isYuShou {
return 4
}else{
return 5
}
}
//MARK: - cell delegate
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtnCell") as! TitleAndBtnCell
cell.delegate = self
switch indexPath.section {
case 0:
cell.nameLbl.text = "关联客户"
cell.contentLbl.text = "请选择关联客户"
let l2 = UIView()
viewT.addSubview(l2)
l2.backgroundColor = UIColor(named: "灰色分界线")
l2.snp.makeConstraints { (make) in
make.top.equalTo(weiKuanLbl.snp_bottom).offset(15.5)
make.left.right.equalTo(15)
make.height.equalTo(1)
break
case 1:
let cell = tableView.dequeueReusableCell(withIdentifier: "XuanZeShangPinCell") as! XuanZeShangPinCell
cell.priceLbl.isHidden = false
cell.detailLbl2.isHidden = true
cell.selectBtn.isHidden = true
if isYuShou {
cell.yuShouImg.isHidden = false
}
viewT.snp.updateConstraints { (make) in
make.top.equalTo(line.snp_bottom)
make.left.right.equalTo(0)
make.height.equalTo(220)
if indexPath.row == 1 {
cell.lineView.isHidden = true
}
}else{//非预售
if listArray.count >= 2 {//刚好2个
let imgSecond = UIImageView()
imgSecond.layer.cornerRadius = 3
imgSecond.layer.masksToBounds = true
imgSecond.layer.borderWidth = 1
imgSecond.layer.borderColor = UIColor(named: "灰色分界线")?.cgColor
viewT.addSubview(imgSecond)
imgSecond.snp.makeConstraints { (make) in
make.top.equalTo(lineF.snp_bottom).offset(15)
make.left.equalTo(15)
make.width.height.equalTo(90)
}
secondImg = imgSecond
let secTitLbl = UILabel()
viewT.addSubview(secTitLbl)
secTitLbl.attributedText = NSAttributedString(string: "六和川香鸡柳2.5kg/新疆和六和川香鸡柳2.5kg/新疆和", attributes: attributes)
secTitLbl.font = UIFont.systemFont(ofSize: 13)
secTitLbl.textColor = UIColor(named: "标题字颜色")
secTitLbl.numberOfLines = 0
secondItemLbl = secTitLbl
let size = self.getStringSize(str: secTitLbl.attributedText!)
secTitLbl.snp.makeConstraints { (make) in
make.top.equalTo(lineF.snp_bottom).offset(15)
make.left.equalTo(imgSecond.snp_right).offset(10)
make.right.equalTo(-24.5)
make.height.equalTo(size.height+2)
}
let secDetailLbl = UILabel()
secDetailLbl.font = UIFont.systemFont(ofSize: 11)
secDetailLbl.textColor = UIColor(named: "灰色字体颜色")
secDetailLbl.text = "5kg/箱/袋"
secondDetailLbl = secDetailLbl
viewT.addSubview(secDetailLbl)
secDetailLbl.snp.makeConstraints { (make) in
make.left.equalTo(imgSecond.snp_right).offset(10)
make.top.equalTo(secTitLbl.snp_bottom).offset(15)
make.height.equalTo(15)
make.right.equalTo(-15)
return cell
case 2:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.isUserInteractionEnabled = false
if isYuShou {
cell.nameLbl.text = yuShouTitleArr[indexPath.row]
cell.textTF.text = yuShouTitleArr[indexPath.row]
cell.delegate = self
if indexPath.row == yuShouTitleArr.count - 1 {
cell.line.isHidden = true
}
let secPriceLbl = UILabel()
viewT.addSubview(secPriceLbl)
secPriceLbl.text = "¥40.00"
secPriceLbl.textAlignment = .right
secPriceLbl.font = UIFont.systemFont(ofSize: 13)
secPriceLbl.textColor = UIColor(named: "标题字颜色")
secondPriceLbl = secPriceLbl
secPriceLbl.snp.makeConstraints { (make) in
make.bottom.equalTo(imgSecond.snp_bottom)
make.right.equalTo(-15)
make.left.equalTo(10)
make.height.equalTo(18.5)
}
viewT.snp.updateConstraints { (make) in
make.top.equalTo(line.snp_bottom)
make.left.right.equalTo(0)
make.height.equalTo(240)
}else{
cell.nameLbl.text = nonYuShouTitleArr[indexPath.row]
cell.textTF.text = nonYuShouTitleArr[indexPath.row]
cell.delegate = self
if indexPath.row == nonYuShouTitleArr.count - 1 {
cell.line.isHidden = true
}
if listArray.count > 2 {
let btn = UIButton()
viewT.addSubview(btn)
btn.setTitle("查看全部(共\(listArray.count)个商品)", for: .normal)
btn.setTitleColor(UIColor(named: "按钮渐变色下,字体颜色"), for: .normal)
btn.titleLabel?.font = UIFont.systemFont(ofSize: 13)
btn.addTarget(self, action: #selector(showDetailList), for: .touchUpInside)
btn.snp.makeConstraints { (make) in
make.top.equalTo(imgSecond.snp_bottom).offset(15)
make.right.left.equalTo(0)
make.height.equalTo(34.5)
}
return cell
case 3:
if isYuShou {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.isUserInteractionEnabled = false
cell.nameLbl.text = YuShouPart3Arr[indexPath.row]
cell.textTF.text = YuShouPart3Arr[indexPath.row]
return cell
}else{
if indexPath.row == 4 || indexPath.row == 5 || indexPath.row == 9 {
let cell = tableView.dequeueReusableCell(withIdentifier: "CommendCell") as! CommendCell
cell.tag = indexPath.row
cell.delegate = self
cell.titleLbl.text = YuShouPart3Arr[indexPath.row]
switch indexPath.row {
case 4:cell.placeLbl.text = "请输入物流单号"
break
case 5:cell.placeLbl.text = "请输入物流公司"
break
case 9:cell.placeLbl.text = "请输入留言信息"
break
default:
break
}
viewT.snp.updateConstraints { (make) in
make.top.equalTo(line.snp_bottom)
make.left.right.equalTo(0)
make.height.equalTo(274.5)
return cell
}
if indexPath.row == 6 || indexPath.row == 7 {
cell.nameLbl.text = YuShouPart3Arr[indexPath.row]
switch indexPath.row {
case 6:
cell.contentLbl.text = "未支付"
break
case 7:
cell.contentLbl.text = "未付款"
break
default:
break
}
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.isUserInteractionEnabled = false
cell.nameLbl.text = YuShouPart3Arr[indexPath.row]
cell.textTF.text = YuShouPart3Arr[indexPath.row]
return cell
}
}
let t1 = UILabel()
partSecond.addSubview(t1)
t1.text = "商品合计"
t1.font = UIFont.systemFont(ofSize: 13)
t1.textColor = UIColor(named: "标题字颜色")
t1.snp.makeConstraints { (make) in
make.top.equalTo(viewT.snp_bottom).offset(15)
make.left.equalTo(15)
make.height.equalTo(18.5)
make.width.equalTo(100)
}
let sphjLbl = UILabel()
partSecond.addSubview(sphjLbl)
sphjLbl.text = "¥6251.00"
sphjLbl.font = UIFont.systemFont(ofSize: 13)
sphjLbl.textAlignment = .right
sphjLbl.textColor = UIColor(named: "标题字颜色")
self.sphjLbl = sphjLbl
sphjLbl.snp.makeConstraints { (make) in
make.centerY.equalTo(t1.snp_centerY)
make.right.equalTo(-15)
make.left.equalTo(15)
make.height.equalTo(18.5)
}
let l1 = UIView()
partSecond.addSubview(l1)
l1.backgroundColor = UIColor(named: "灰色分界线")
l1.snp.makeConstraints { (make) in
make.top.equalTo(sphjLbl.snp_bottom).offset(15.5)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t2 = UILabel()
partSecond.addSubview(t2)
t2.text = "物流费用"
t2.font = UIFont.systemFont(ofSize: 13)
t2.textColor = UIColor(named: "标题字颜色")
t2.snp.makeConstraints { (make) in
make.top.equalTo(l1.snp_bottom).offset(15)
make.left.equalTo(15)
make.height.equalTo(18.5)
make.width.equalTo(100)
}
let wlfyLbl = UILabel()
partSecond.addSubview(wlfyLbl)
wlfyLbl.text = "¥651.00"
wlfyLbl.font = UIFont.systemFont(ofSize: 13)
wlfyLbl.textAlignment = .right
wlfyLbl.textColor = UIColor(named: "标题字颜色")
self.wlfyLbl = wlfyLbl
wlfyLbl.snp.makeConstraints { (make) in
make.centerY.equalTo(t2.snp_centerY)
make.right.equalTo(-15)
make.left.equalTo(15)
make.height.equalTo(18.5)
}
let l2 = UIView()
partSecond.addSubview(l2)
l2.backgroundColor = UIColor(named: "灰色分界线")
l2.snp.makeConstraints { (make) in
make.top.equalTo(wlfyLbl.snp_bottom).offset(15.5)
make.left.equalTo(15)
make.height.right.equalTo(1)
}
let t3 = UILabel()
partSecond.addSubview(t3)
t3.text = "其他费用"
t3.font = UIFont.systemFont(ofSize: 13)
t3.textColor = UIColor(named: "标题字颜色")
t3.snp.makeConstraints { (make) in
make.top.equalTo(l2.snp_bottom).offset(15)
make.left.equalTo(15)
make.height.equalTo(18.5)
make.width.equalTo(100)
}
let qtfyLbl = UILabel()
partSecond.addSubview(qtfyLbl)
qtfyLbl.text = "¥400.50"
qtfyLbl.font = UIFont.systemFont(ofSize: 13)
qtfyLbl.textAlignment = .right
qtfyLbl.textColor = UIColor(named: "标题字颜色")
self.qtfyLbl = qtfyLbl
qtfyLbl.snp.makeConstraints { (make) in
make.centerY.equalTo(t3.snp_centerY)
make.right.equalTo(-15)
make.left.equalTo(15)
make.height.equalTo(18.5)
}
let l3 = UIView()
partSecond.addSubview(l3)
l3.backgroundColor = UIColor(named: "灰色分界线")
l3.snp.makeConstraints { (make) in
make.top.equalTo(qtfyLbl.snp_bottom).offset(15.5)
make.left.right.equalTo(0)
make.height.equalTo(1)
}
let bView = UIView()
partSecond.addSubview(bView)
bView.snp.makeConstraints { (make) in
make.height.equalTo(49)
make.left.right.equalTo(0)
make.top.equalTo(l3.snp_bottom)
}
let totalPLbl = UILabel()
bView.addSubview(totalPLbl)
totalPriceLbl = totalPLbl
totalPLbl.text = "¥814234.00"
totalPLbl.font = UIFont.systemFont(ofSize: 13)
totalPLbl.textAlignment = .right
totalPLbl.textColor = UIColor(named: "按钮渐变色下,字体颜色")
self.wlfyLbl = totalPLbl
totalPLbl.sizeToFit()
totalPLbl.snp.makeConstraints { (make) in
make.right.equalTo(-15)
make.width.equalTo(totalPLbl.frame.size.width)
make.bottom.top.equalTo(0)
}
let t99 = UILabel()
bView.addSubview(t99)
t99.text = "订单合计:"
t99.font = UIFont.systemFont(ofSize: 13)
t99.textAlignment = .right
t99.textColor = UIColor(named: "标题字颜色")
t99.snp.makeConstraints { (make) in
make.right.equalTo(totalPLbl.snp_left)
make.left.equalTo(0)
make.bottom.top.equalTo(0)
}
var totalH = 0.0
if isBooking {
totalH = 470
}else{
if listArray.count >= 2 {
totalH = 490
if listArray.count > 2 {
totalH = 524.5
case 4:
if indexPath.row == 4 || indexPath.row == 5 || indexPath.row == 9 {
let cell = tableView.dequeueReusableCell(withIdentifier: "CommendCell") as! CommendCell
cell.delegate = self
cell.tag = indexPath.row
cell.titleLbl.text = YuShouPart3Arr[indexPath.row]
switch indexPath.row {
case 4:cell.placeLbl.text = "请输入物流单号"
break
case 5:cell.placeLbl.text = "请输入物流公司"
break
case 9:cell.placeLbl.text = "请输入留言信息"
break
default:
break
}
}else{
totalH = 371
return cell
}
}
partSecond.snp.updateConstraints { (make) in
make.top.equalTo(partFirst.snp_bottom).offset(10)
make.left.equalTo(0)
make.width.equalTo(fullScreenWidth)
make.height.equalTo(totalH)
}
return partSecond
if indexPath.row == 6 || indexPath.row == 7 {
cell.nameLbl.text = YuShouPart3Arr[indexPath.row]
switch indexPath.row {
case 6:
cell.contentLbl.text = "未支付"
break
case 7:
cell.contentLbl.text = "未付款"
break
default:
break
}
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.isUserInteractionEnabled = false
cell.nameLbl.text = YuShouPart3Arr[indexPath.row]
cell.textTF.text = YuShouPart3Arr[indexPath.row]
return cell
default:
break
}
return cell
}
//MARK: -详情第一栏
func setPartFirst()->UIView{
let partFirst = UIView()
partFirst.backgroundColor = UIColor.white
scrollView.addSubview(partFirst)
partFirst.snp.makeConstraints { (make) in
make.top.equalTo(10)
make.left.equalTo(0)
make.width.equalTo(fullScreenWidth)
make.height.equalTo(49)
}
let title = UILabel()
partFirst.addSubview(title)
title.font = UIFont.systemFont(ofSize: 13)
title.textColor = UIColor(named: "标题字颜色")
title.text = "关联客户"
title.snp.makeConstraints { (make) in
make.top.bottom.right.equalTo(0)
make.left.equalTo(15)
}
let img = UIImageView()
img.image = UIImage(named: "jinruDetail")
partFirst.addSubview(img)
img.snp.makeConstraints { (make) in
make.width.equalTo(6)
make.height.equalTo(9)
make.centerY.equalTo(partFirst.snp_centerY)
make.right.equalTo(-15)
}
let detail = UILabel()
partFirst.addSubview(detail)
detail.font = UIFont.systemFont(ofSize: 13)
detail.textColor = UIColor(named: "灰色字体颜色")
detail.text = "请选择关联客户"
detail.textAlignment = .right
detail.snp.makeConstraints { (make) in
make.top.bottom.equalTo(0)
make.left.equalTo(15)
make.right.equalTo(img.snp_left).offset(-9)
}
clientLbl = detail
let btn = UIButton()
partFirst.addSubview(btn)
btn.addTarget(self, action: #selector(selectClint), for: .touchUpInside)
btn.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalTo(0)
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
switch indexPath.section {
case 1:
return 120
case 3:
switch indexPath.row {
case 4:
print(cell4Height)
return CGFloat(cell4Height)+cellH
case 5:
return CGFloat(cell5Height)+cellH
case 9:
return CGFloat(cell9Height)+cellH
default:
break
}
case 4:
switch indexPath.row {
case 4:
return CGFloat(cell4Height)+cellH
case 5:
return CGFloat(cell5Height)+cellH
case 9:
return CGFloat(cell9Height)+cellH
default:
break
}
default:
break
}
return partFirst
return 49
}
//底栏按钮
func setBottomBtn(sender:UIView){
let x = fullScreenWidth / CGFloat(btmBtnTitleArray.count)
for index in 0 ..< btmBtnTitleArray.count {
let btn = UIButton(frame: CGRect(x: CGFloat(index) * x, y: 0, width: x, height: 49))
btn.tag = index
btn.titleLabel?.font = UIFont.systemFont(ofSize: 13)
btn.setTitle(btmBtnTitleArray[index], for: .normal)
btn.setTitleColor(UIColor(named: "按钮渐变色下,字体颜色"), for: .normal)
btn.addTarget(self, action: #selector(bottomButtonClickAction(sender:)), for: .touchUpInside)
sender.addSubview(btn)
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
switch section {
case 0:return 1
case 1:
if isYuShou{
return 1
}else{
var num = 0
if dataArr.count < 2 {
num = dataArr.count
}else{
num = 2
}
return num
}
case 2:
if isYuShou{
return 5
}else{
return 3
}
case 3:
if isYuShou{
return 10
}else{
return 3
}
case 4:
return 10
default:
return 10
}
}
//MARK:--跳转关联客户选择
@objc func selectClint(){
print("selectClint")
let vc = GuanLianKehuVC()
self.navigationController?.pushViewController(vc, animated: true)
//MARK: - 自定义 delegate
func CommendCellSendH(height: CGFloat,cell:CommendCell) {
switch cell.tag {
case 4:
cell4Height = Double(height)
break
case 5:
cell5Height = Double(height)
break
case 9:
cell9Height = Double(height)
break
default:
break
}
listView.beginUpdates()
listView.endUpdates()
}
//MARK: - 方法
func getStringSize(str:NSAttributedString)->CGSize{
let frameSetterRef = CTFramesetterCreateWithAttributedString(str)
let cfRange = CFRangeMake(0, 0)
let maxSize = CGSize(width: fullScreenWidth - 139.5, height: CGFloat.greatestFiniteMagnitude)
let size = CTFramesetterSuggestFrameSizeWithConstraints(frameSetterRef, cfRange, nil, maxSize, nil)
return size
func CommendCellSendStr(content: String,cell:CommendCell) {
print("CommendCellSendStr")
}
//MARK:--查看全部商品
@objc func showDetailList(){
print("showDetailList")
func OrderDViewFooterViewBtnClick() {
print("查看全部商品")
let vc = ShowAlGoodsViewController()
self.navigationController?.pushViewController(vc, animated: true)
}
//MARK:--底部按钮代理
@objc func bottomButtonClickAction(sender:UIButton){
print(sender.tag)
//预售商品价格
let vc = XiuGaiYuShouJiaViewController()
self.navigationController?.pushViewController(vc, animated: true)
//普通商品修改价格
// let vc = ChangeGoodsPriceVC()
// self.navigationController?.pushViewController(vc, animated: true)
func btnSelect(keHuData:Any) {
print("选择的关联客户",keHuData)
}
func btnClick(content: String, cell: TitleAndBtnCell) {
switch cell.nameLbl.text {
case "关联客户":
let vc = GuanLianKehuVC()
vc.delegate = self
self.navigationController?.pushViewController(vc, animated: true)
break
case "支付方式":
print("abc")
break
case "支付状态":
print("123")
break
default:
break
}
}
}
<?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"/>
......@@ -10,8 +10,9 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="OrderDViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="bottomView" destination="Jem-Gu-j7D" id="tKZ-oh-fon"/>
<outlet property="scrollView" destination="4uA-rD-k2j" id="bKZ-PC-RX8"/>
<outlet property="bottomView" destination="uzE-Ha-UZM" id="KNM-2q-cr7"/>
<outlet property="btmViewH" destination="Scu-he-Peb" id="6AX-79-BBC"/>
<outlet property="listView" destination="Ynh-hV-MLH" id="c3b-QY-jsW"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
......@@ -20,81 +21,47 @@
<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="wbd-9Z-bEE">
<rect key="frame" x="0.0" y="862" width="414" height="40"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="n9R-tn-hVY">
<rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="7MW-Rh-NM6"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Jem-Gu-j7D">
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="uzE-Ha-UZM">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="B8o-q3-gft">
<rect key="frame" x="0.0" y="0.0" width="414" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="LYO-fR-p1o"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" name="白色背景色"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="B8o-q3-gft" firstAttribute="top" secondItem="Jem-Gu-j7D" secondAttribute="top" id="RCR-Q9-a6n"/>
<constraint firstItem="B8o-q3-gft" firstAttribute="leading" secondItem="Jem-Gu-j7D" secondAttribute="leading" id="Zc1-DV-uD0"/>
<constraint firstAttribute="trailing" secondItem="B8o-q3-gft" secondAttribute="trailing" id="gn5-oa-9pA"/>
<constraint firstAttribute="height" constant="49" id="vdo-gl-g7M"/>
<constraint firstAttribute="height" constant="49" id="Scu-he-Peb"/>
</constraints>
</view>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4uA-rD-k2j">
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="Ynh-hV-MLH">
<rect key="frame" x="0.0" y="44" width="414" height="769"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8Uj-pG-okf">
<rect key="frame" x="0.0" y="0.0" width="414" height="769"/>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstAttribute="height" constant="769" id="VeB-LC-3K4"/>
</constraints>
</view>
</subviews>
<color key="tintColor" name="app底色"/>
<constraints>
<constraint firstItem="8Uj-pG-okf" firstAttribute="leading" secondItem="4uA-rD-k2j" secondAttribute="leading" id="9MI-4o-jrf"/>
<constraint firstItem="8Uj-pG-okf" firstAttribute="trailing" secondItem="4uA-rD-k2j" secondAttribute="trailing" id="OLg-gt-QeA"/>
<constraint firstAttribute="bottom" secondItem="8Uj-pG-okf" secondAttribute="bottom" constant="-25" id="R0a-Pe-9ah"/>
<constraint firstItem="8Uj-pG-okf" firstAttribute="centerX" secondItem="4uA-rD-k2j" secondAttribute="centerX" id="p09-xz-quT"/>
<constraint firstItem="8Uj-pG-okf" firstAttribute="top" secondItem="4uA-rD-k2j" secondAttribute="top" id="yeT-D6-WhQ"/>
</constraints>
<viewLayoutGuide key="contentLayoutGuide" id="GSV-Mu-1tH"/>
<viewLayoutGuide key="frameLayoutGuide" id="h0z-iv-odh"/>
</scrollView>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="NSN-Tp-dLj"/>
<outlet property="delegate" destination="-1" id="6uB-Tm-QcE"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="4uA-rD-k2j" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="1ZI-2E-T76"/>
<constraint firstItem="4uA-rD-k2j" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="2cI-nP-14D"/>
<constraint firstItem="wbd-9Z-bEE" firstAttribute="top" secondItem="Jem-Gu-j7D" secondAttribute="bottom" id="LER-og-6fg"/>
<constraint firstAttribute="trailing" secondItem="wbd-9Z-bEE" secondAttribute="trailing" id="Lxr-Hm-VyL"/>
<constraint firstItem="Jem-Gu-j7D" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="M6u-6I-XFO"/>
<constraint firstItem="4uA-rD-k2j" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="Tlv-Dy-TQe"/>
<constraint firstItem="wbd-9Z-bEE" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="bjB-XK-ifb"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="Jem-Gu-j7D" secondAttribute="bottom" id="fJd-Ae-otD"/>
<constraint firstItem="Jem-Gu-j7D" firstAttribute="top" secondItem="4uA-rD-k2j" secondAttribute="bottom" id="tSM-XJ-O3F"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Jem-Gu-j7D" secondAttribute="trailing" id="vtd-Hy-bsE"/>
<constraint firstItem="uzE-Ha-UZM" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="LYs-Mt-nSg"/>
<constraint firstAttribute="bottom" secondItem="n9R-tn-hVY" secondAttribute="bottom" id="Lif-Zf-Cls"/>
<constraint firstItem="n9R-tn-hVY" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="OgR-oi-ZTA"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="uzE-Ha-UZM" secondAttribute="bottom" id="Yvj-Fx-h8y"/>
<constraint firstItem="uzE-Ha-UZM" firstAttribute="top" secondItem="Ynh-hV-MLH" secondAttribute="bottom" id="aBi-DY-zuS"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="uzE-Ha-UZM" secondAttribute="trailing" id="b3t-oO-8b1"/>
<constraint firstItem="n9R-tn-hVY" firstAttribute="top" secondItem="uzE-Ha-UZM" secondAttribute="top" id="fhn-O9-EKN"/>
<constraint firstAttribute="trailing" secondItem="n9R-tn-hVY" secondAttribute="trailing" id="neQ-6E-vQr"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Ynh-hV-MLH" secondAttribute="trailing" id="pLq-XH-dGY"/>
<constraint firstItem="Ynh-hV-MLH" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="sSR-ql-biJ"/>
<constraint firstItem="Ynh-hV-MLH" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="sgr-ja-cQ2"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="131.8840579710145" y="109.82142857142857"/>
<point key="canvasLocation" x="131.8840579710145" y="138.61607142857142"/>
</view>
</objects>
<resources>
<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.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="白色背景色">
<color red="1" green="1" blue="1" 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