Commit 8339577c authored by lujunye's avatar lujunye

氨酸是豆皮;加水电费;了

parent 6bf7bb93
......@@ -280,6 +280,12 @@
E0974D6D25C140A600E3C86B /* S_Y_Detail_Vc.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0974D6B25C140A600E3C86B /* S_Y_Detail_Vc.xib */; };
E099B588246BF8FA009F587F /* OrderDViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E099B586246BF8FA009F587F /* OrderDViewController.swift */; };
E099B589246BF8FA009F587F /* OrderDViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E099B587246BF8FA009F587F /* OrderDViewController.xib */; };
E09A735E261EAF7400CB2D70 /* PPH_YDXQ_VC.swift in Sources */ = {isa = PBXBuildFile; fileRef = E09A735C261EAF7400CB2D70 /* PPH_YDXQ_VC.swift */; };
E09A735F261EAF7400CB2D70 /* PPH_YDXQ_VC.xib in Resources */ = {isa = PBXBuildFile; fileRef = E09A735D261EAF7400CB2D70 /* PPH_YDXQ_VC.xib */; };
E09A736C261EE58D00CB2D70 /* PPH_Detail_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E09A736A261EE58D00CB2D70 /* PPH_Detail_Cell.swift */; };
E09A736D261EE58D00CB2D70 /* PPH_Detail_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E09A736B261EE58D00CB2D70 /* PPH_Detail_Cell.xib */; };
E09A7373261EED7B00CB2D70 /* PPH_XQ_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E09A7371261EED7B00CB2D70 /* PPH_XQ_Cell.swift */; };
E09A7374261EED7C00CB2D70 /* PPH_XQ_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E09A7372261EED7B00CB2D70 /* PPH_XQ_Cell.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 */; };
......@@ -1063,6 +1069,12 @@
E0974D6B25C140A600E3C86B /* S_Y_Detail_Vc.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = S_Y_Detail_Vc.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>"; };
E09A735C261EAF7400CB2D70 /* PPH_YDXQ_VC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PPH_YDXQ_VC.swift; sourceTree = "<group>"; };
E09A735D261EAF7400CB2D70 /* PPH_YDXQ_VC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PPH_YDXQ_VC.xib; sourceTree = "<group>"; };
E09A736A261EE58D00CB2D70 /* PPH_Detail_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PPH_Detail_Cell.swift; sourceTree = "<group>"; };
E09A736B261EE58D00CB2D70 /* PPH_Detail_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PPH_Detail_Cell.xib; sourceTree = "<group>"; };
E09A7371261EED7B00CB2D70 /* PPH_XQ_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PPH_XQ_Cell.swift; sourceTree = "<group>"; };
E09A7372261EED7B00CB2D70 /* PPH_XQ_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PPH_XQ_Cell.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>"; };
......@@ -2151,6 +2163,12 @@
E02189922616AEAE007FF8BC /* CZ_Vc.xib */,
E07723022616B78C00344F11 /* P_P_H_Time_Select_View.swift */,
E07723072616B79400344F11 /* P_P_H_Time_Select_View.xib */,
E09A735C261EAF7400CB2D70 /* PPH_YDXQ_VC.swift */,
E09A735D261EAF7400CB2D70 /* PPH_YDXQ_VC.xib */,
E09A736A261EE58D00CB2D70 /* PPH_Detail_Cell.swift */,
E09A736B261EE58D00CB2D70 /* PPH_Detail_Cell.xib */,
E09A7371261EED7B00CB2D70 /* PPH_XQ_Cell.swift */,
E09A7372261EED7B00CB2D70 /* PPH_XQ_Cell.xib */,
);
path = "拼拼货group";
sourceTree = "<group>";
......@@ -4048,6 +4066,7 @@
E02C882B2456B4BA00925766 /* WLGZCell.xib in Resources */,
E042F735245274F200CDFA12 /* YunDanLieBiaoCell.xib in Resources */,
E0D197CB24484D90002B080C /* PersonCenterCell.xib in Resources */,
E09A735F261EAF7400CB2D70 /* PPH_YDXQ_VC.xib in Resources */,
E007B1D5248F6880004D14CC /* CGDDayCell.xib in Resources */,
E07B1E63245921A60055BA3C /* KeHuXQCell.xib in Resources */,
E00D85EB244561FE00F5F816 /* LaunchScreen.storyboard in Resources */,
......@@ -4059,6 +4078,7 @@
F9023F722449ACA800DD5A63 /* TitleAndSwitchCell.xib in Resources */,
E083F0BC26047BA100627DBE /* DZGL_VC.xib in Resources */,
E083F0C626047EFF00627DBE /* DZGL_Cell.xib in Resources */,
E09A736D261EE58D00CB2D70 /* PPH_Detail_Cell.xib in Resources */,
E08B0675244A98B2001D2E01 /* WareHouseSpCell.xib in Resources */,
E0CC848C24824291009B1FE9 /* CRKListVC.xib in Resources */,
E0D4166024482AAF008DCAB4 /* AccountViewController.xib in Resources */,
......@@ -4148,6 +4168,7 @@
E0974D5F25C12E8D00E3C86B /* two_title_cell.xib in Resources */,
F97E73322552A22000A11F98 /* DistributorSettingAlertView.xib in Resources */,
E02FD9F72455790800E10E27 /* DiZhiGuanLiCell.xib in Resources */,
E09A7374261EED7C00CB2D70 /* PPH_XQ_Cell.xib in Resources */,
F9ECC929255CD7FD00990B61 /* RetailManageDetailViewController.xib in Resources */,
E06FBAA825BFEFBC00E9C2BA /* S_Y_View.xib in Resources */,
F9C2F6F9254FE14900516E00 /* DistributorSettingViewController.xib in Resources */,
......@@ -4308,6 +4329,7 @@
E09F4CA22452D18800BE033D /* ZengZhiServicesViewController.swift in Sources */,
F94A315B24628C7E00FEC38E /* WorkItemTableViewCell.swift in Sources */,
E0DDCB18244AE2AC00DF54C7 /* XiuGaiYuShouJiaViewController.swift in Sources */,
E09A736C261EE58D00CB2D70 /* PPH_Detail_Cell.swift in Sources */,
F924B39424971E2000A913CD /* CusSalesStatisticsModel.swift in Sources */,
E0E8ABFD246E359700E3BB54 /* GuiGeModel.swift in Sources */,
F950FDEA2451920200C40530 /* DIYCalendarCell.swift in Sources */,
......@@ -4365,6 +4387,7 @@
F933F6C72452C68B00189561 /* PKHUDWideBaseView.swift in Sources */,
F9A0E1DF246D1B1E00D7F26F /* GetGoodsInfoModel.swift in Sources */,
F94A314B246250DB00FEC38E /* GoodsDetailModel.swift in Sources */,
E09A7373261EED7B00CB2D70 /* PPH_XQ_Cell.swift in Sources */,
E02DDD85244FDC6A00ABB707 /* TitleAndSwitchHeaderView.swift in Sources */,
E01FD9CC25E7A46C00964A20 /* Bt_Cell.m in Sources */,
E0F3C2CB24590C86006F0D1F /* XinZengAndBianJiKeHuViewController.swift in Sources */,
......@@ -4374,6 +4397,7 @@
F956D5AB246A2D9C003FF510 /* LMNNumberingLine.m in Sources */,
F9FA9C4D255B8033004034B3 /* RetailManageHeaderView.swift in Sources */,
F96E9D5B246656A700B5B94A /* HGImageCollectionViewCell.swift in Sources */,
E09A735E261EAF7400CB2D70 /* PPH_YDXQ_VC.swift in Sources */,
E0EFB9C624930C0D005FB0CD /* CGDListViewController.swift in Sources */,
E0D197C02448431C002B080C /* BabyCentralManager.m in Sources */,
F956D5A9246A2D9C003FF510 /* LMNLineChain.m in Sources */,
......
......@@ -283,7 +283,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate,loginDelegate,UITabBarCont
let v2 = GoodsManageListVC()
// let v3 = WorkCViewController()
let v3 = P_P_H_Adr_VC()
let v3 = PPH_YDXQ_VC()
let v4 = WarehoseMangementListVC()
......
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "编组 2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "编组 2@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "编组 2@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17126"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17156" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17126"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097.2" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<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"/>
......@@ -27,7 +27,7 @@
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="h2T-BN-NH0">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="h2T-BN-NH0">
<rect key="frame" x="255" y="48.5" width="105" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="2f5-gX-JVf"/>
......@@ -55,7 +55,7 @@
<action selector="selectAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="ASu-Rq-WvM"/>
</connections>
</button>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tF5-tz-dRM">
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="tF5-tz-dRM">
<rect key="frame" x="135" y="48.5" width="105" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="QFO-8D-fT6"/>
......@@ -83,7 +83,7 @@
<action selector="selectAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="oYl-EP-Nes"/>
</connections>
</button>
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3ZT-Jc-2xq">
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3ZT-Jc-2xq">
<rect key="frame" x="15" y="48.5" width="105" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="tNX-Wl-sZH"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<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"/>
......
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
......@@ -20,7 +21,7 @@
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nBn-qe-PSC">
<rect key="frame" x="40" y="48" width="335" height="1"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="5gC-ff-FPN"/>
</constraints>
......@@ -65,5 +66,8 @@
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
......@@ -29,7 +30,7 @@
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SfC-2S-YPK">
<rect key="frame" x="75" y="48" width="300" height="1"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="B43-AZ-cpc"/>
</constraints>
......@@ -65,5 +66,8 @@
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// PPH_Detail_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/4/8.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class PPH_Detail_Cell: UITableViewCell {
var isLast = false
@IBOutlet weak var bg_view: UIView!
@IBOutlet weak var top_right_view: UIView!
@IBOutlet weak var top_left_view: UIView!
@IBOutlet weak var commend_lbl: UILabel!
@IBOutlet weak var conect_lbl: UILabel!
@IBOutlet weak var adr_lbl: UILabel!
@IBOutlet weak var title_lbl: UILabel!
@IBOutlet weak var status_lbl: UILabel!
@IBOutlet weak var bottom_line: UIImageView!
@IBOutlet weak var top_line: UIImageView!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func layoutIfNeeded() {
super.layoutIfNeeded()
if isLast {
setYuanJiao2(sender: bg_view, radii: 10)
}else{
setYuanJiao2(sender: bg_view, radii: 0)
}
}
func setYuanJiao2(sender:UIView,radii:Int){
let maskPath = UIBezierPath(roundedRect: sender.bounds,
byRoundingCorners:[.bottomLeft, .bottomRight], cornerRadii:CGSize(width:radii, height:radii))
let masklayer = CAShapeLayer()
masklayer.frame = sender.bounds
masklayer.path = maskPath.cgPath
sender.layer.mask = masklayer
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
//
// PPH_XQ_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/4/8.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class PPH_XQ_Cell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="PPH_XQ_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="310"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="310"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tgx-cz-1wn">
<rect key="frame" x="15" y="5" width="345" height="293"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="订单信息" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="f7f-xC-VkU">
<rect key="frame" x="15" y="15" width="60" height="21"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="15"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="f7f-xC-VkU" firstAttribute="top" secondItem="tgx-cz-1wn" secondAttribute="top" constant="15" id="a55-jC-T4A"/>
<constraint firstItem="f7f-xC-VkU" firstAttribute="leading" secondItem="tgx-cz-1wn" secondAttribute="leading" constant="15" id="psH-FD-CKx"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="9"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="tgx-cz-1wn" secondAttribute="bottom" constant="12" id="E5G-TH-n2N"/>
<constraint firstItem="tgx-cz-1wn" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="K0o-rH-r6B"/>
<constraint firstAttribute="trailing" secondItem="tgx-cz-1wn" secondAttribute="trailing" constant="15" id="Qz6-6H-KWy"/>
<constraint firstItem="tgx-cz-1wn" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="5" id="dmv-ye-AMs"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="141" y="91"/>
</tableViewCell>
</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.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// PPH_YDXQ_VC.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/4/8.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
import LGButton
class PPH_YDXQ_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource {
@IBOutlet weak var title_lbl_h: NSLayoutConstraint!
@IBOutlet weak var btm_title_lbl: UILabel!
@IBOutlet weak var action_btn: LGButton!
@IBOutlet weak var list_view: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "运单详情"
self.view.addSubview(navbar)
navbar.backgroundColor = UIColor(named: "green")
navbar.titleLbl.textColor = UIColor.white
navbar.leftImg = UIImage(named: "idCard1")
navbar.lineView.backgroundColor = UIColor(named: "green")
SetTopFrameView(view: list_view, btmView: self.view)
list_view.separatorStyle = .none
list_view.register(UINib(nibName: "PPH_Detail_Cell", bundle: nil), forCellReuseIdentifier: "PPH_Detail_Cell")
list_view.register(UINib(nibName: "PPH_XQ_Cell", bundle: nil), forCellReuseIdentifier: "PPH_XQ_Cell")
list_view.backgroundColor = UIColor(named: "app底色")
}
//MARK: - tableview delegate
func numberOfSections(in tableView: UITableView) -> Int {
return 3
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.section > 1 {
return 310
}
return UITableView.automaticDimension
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if section == 2 {
return 1
}
return 3
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.section > 1 {
let cell = tableView.dequeueReusableCell(withIdentifier: "PPH_XQ_Cell") as! PPH_XQ_Cell
return cell
}
let cell = tableView.dequeueReusableCell(withIdentifier: "PPH_Detail_Cell") as! PPH_Detail_Cell
cell.isLast = false
cell.top_line.isHidden = true
cell.bottom_line.isHidden = false
if indexPath.section == 0 {
if indexPath.row != 0 {
cell.status_lbl.backgroundColor = UIColor(named: "green")
cell.top_left_view.isHidden = true
cell.top_right_view.isHidden = true
cell.top_line.isHidden = false
cell.status_lbl.text = "装"
}
}
if indexPath.section == 1 {
cell.top_left_view.isHidden = true
cell.top_right_view.isHidden = true
cell.top_line.isHidden = false
cell.status_lbl.backgroundColor = UIColor(named: "#FAA376")
cell.status_lbl.text = "卸"
if indexPath.row == 2 {
cell.isLast = true
cell.bottom_line.isHidden = true
cell.layoutIfNeeded()
}
}
return cell
}
func setYuanJiao2(sender:UIView,radii:Int){
let maskPath = UIBezierPath(roundedRect: sender.bounds,
byRoundingCorners:[.bottomLeft, .bottomRight], cornerRadii:CGSize(width:radii, height:radii))
let masklayer = CAShapeLayer()
masklayer.frame = sender.bounds
masklayer.path = maskPath.cgPath
sender.layer.mask = masklayer
}
//MARK: - footerView
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView()
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 0.00001
}
//MARK: - headerView
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView(frame: CGRect(x: 0, y: 0, width: ScreenWidth, height: 225))
view.backgroundColor = UIColor(named: "app底色")
let colorV = UIView(frame:CGRect(x: 0, y: 0, width: ScreenWidth, height: 205))
colorV.backgroundColor = UIColor(named: "green")
setYuanJiao2(sender: colorV,radii: 20)
view.addSubview(colorV)
view.layer.masksToBounds = true
let img = UIImageView()
view.addSubview(img)
img.snp.makeConstraints { (make) in
make.top.equalTo(35)
make.centerX.equalTo(view.snp_centerX)
make.width.height.equalTo(45)
}
img.image = UIImage(named: "white_clock")
let lbl = UILabel()
lbl.text = "派单中"
view.addSubview(lbl)
lbl.snp.makeConstraints { (make) in
make.left.right.equalTo(0)
make.height.equalTo(17)
make.top.equalTo(img.snp_bottom).offset(15)
}
lbl.font = UIFont(name: "PingFangSC-Medium", size: 17)
lbl.textColor = UIColor.white
lbl.textAlignment = .center
let topView = UIView()
topView.backgroundColor = UIColor.white
view.addSubview(topView)
topView.snp.makeConstraints { (make) in
make.bottom.equalToSuperview()
make.left.equalTo(15)
make.right.equalTo(-15)
make.height.equalTo(101)
}
topView.layer.cornerRadius = 10
topView.layer.masksToBounds = true
let leftCorner = UIView()
leftCorner.backgroundColor = UIColor(named: "app底色")
view.addSubview(leftCorner)
leftCorner.snp.makeConstraints { (make) in
make.width.height.equalTo(20)
make.left.equalTo(5)
make.centerY.equalTo(topView.snp_bottom)
}
leftCorner.layer.cornerRadius = 10
leftCorner.layer.masksToBounds = true
let rightCorner = UIView()
rightCorner.backgroundColor = UIColor(named: "app底色")
view.addSubview(rightCorner)
rightCorner.snp.makeConstraints { (make) in
make.width.height.equalTo(20)
make.right.equalTo(-5)
make.centerY.equalTo(topView.snp_bottom)
}
rightCorner.layer.cornerRadius = 10
rightCorner.layer.masksToBounds = true
let timeTitle = UILabel()
topView.addSubview(timeTitle)
timeTitle.font = UIFont.systemFont(ofSize: 13)
timeTitle.textColor = UIColor(named: "标题字颜色")
timeTitle.text = "下单时间:"
timeTitle.snp.makeConstraints { (make) in
make.top.left.equalTo(15)
}
let timeStrLbl = UILabel()
topView.addSubview(timeStrLbl)
timeStrLbl.font = UIFont.systemFont(ofSize: 13)
timeStrLbl.textColor = UIColor(named: "标题字颜色")
timeStrLbl.text = "2021.1.1 1:1"
timeStrLbl.snp.makeConstraints { (make) in
make.centerY.equalTo(timeTitle.snp_centerY)
make.right.equalTo(-15)
}
let line1 = UIView()
topView.addSubview(line1)
line1.backgroundColor = UIColor(named: "灰色分界线")
line1.snp.makeConstraints { (make) in
make.top.equalTo(timeTitle.snp_bottom).offset(15)
make.left.equalTo(10)
make.right.equalTo(-10)
make.height.equalTo(1)
}
let status_lbl = UILabel()
topView.addSubview(status_lbl)
status_lbl.font = UIFont.systemFont(ofSize: 13)
status_lbl.textColor = UIColor(named: "标题字颜色")
status_lbl.text = "待处理"
status_lbl.snp.makeConstraints { (make) in
make.top.equalTo(line1.snp_bottom).offset(15)
make.right.equalTo(-15)
}
let line2 = UIImageView()
topView.addSubview(line2)
line2.image = UIImage(named: "dotLine")
line2.snp.makeConstraints { (make) in
make.left.equalTo(15)
make.right.equalTo(-15)
make.height.equalTo(1)
make.bottom.equalTo(0)
}
return view
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
if section == 0 {
return 225
}
return 0.0001
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="PPH_YDXQ_VC" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="action_btn" destination="f7k-3l-MPD" id="Lh8-SI-mgf"/>
<outlet property="btm_title_lbl" destination="2Sz-F9-Hgh" id="4pl-pH-xrP"/>
<outlet property="list_view" destination="027-6Z-BH5" id="wuU-9v-0lJ"/>
<outlet property="title_lbl_h" destination="fMX-rY-FI4" id="a6C-L2-gGP"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="grouped" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="18" sectionFooterHeight="18" translatesAutoresizingMaskIntoConstraints="NO" id="027-6Z-BH5">
<rect key="frame" x="0.0" y="44" width="414" height="769"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<connections>
<outlet property="dataSource" destination="-1" id="Fap-8q-hd7"/>
<outlet property="delegate" destination="-1" id="ETs-Vs-PWz"/>
</connections>
</tableView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="f7k-3l-MPD" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="green"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="green"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="取消订单" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2Sz-F9-Hgh">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="fMX-rY-FI4"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="17"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="f7k-3l-MPD" secondAttribute="trailing" id="8jj-Dh-HO0"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="027-6Z-BH5" secondAttribute="trailing" id="Ctl-xR-SrJ"/>
<constraint firstItem="2Sz-F9-Hgh" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="D9a-Ge-PVJ"/>
<constraint firstAttribute="bottom" secondItem="f7k-3l-MPD" secondAttribute="bottom" id="FEP-je-lFb"/>
<constraint firstItem="027-6Z-BH5" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="FwL-aK-PlG"/>
<constraint firstItem="f7k-3l-MPD" firstAttribute="top" secondItem="027-6Z-BH5" secondAttribute="bottom" id="O1P-JV-5Pa"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="2Sz-F9-Hgh" secondAttribute="trailing" id="S8D-oj-mLd"/>
<constraint firstItem="f7k-3l-MPD" firstAttribute="top" secondItem="2Sz-F9-Hgh" secondAttribute="top" id="UbZ-rn-MmP"/>
<constraint firstItem="f7k-3l-MPD" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="hwG-gq-62I"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="2Sz-F9-Hgh" secondAttribute="bottom" id="r9n-JS-p9K"/>
<constraint firstItem="027-6Z-BH5" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="sac-gv-FWZ"/>
</constraints>
<point key="canvasLocation" x="140.57971014492756" y="90.401785714285708"/>
</view>
</objects>
<designables>
<designable name="f7k-3l-MPD">
<size key="intrinsicContentSize" width="10" height="10"/>
</designable>
</designables>
<resources>
<namedColor name="green">
<color red="0.23499999940395355" green="0.67799997329711914" blue="0.54100000858306885" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment