Commit 241bdb3f authored by lujunye's avatar lujunye

sadfasdfasfdasdf324234234

parent bb13af3b
......@@ -43,6 +43,10 @@
E013D78D2484CAFC0092DE46 /* CRKBtnCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E013D78B2484CAFC0092DE46 /* CRKBtnCell.xib */; };
E013D7902484D5AF0092DE46 /* NewCKCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E013D78E2484D5AF0092DE46 /* NewCKCell.swift */; };
E013D7912484D5AF0092DE46 /* NewCKCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E013D78F2484D5AF0092DE46 /* NewCKCell.xib */; };
E01613DD2601B47700E55497 /* Location_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E01613DB2601B47700E55497 /* Location_Cell.swift */; };
E01613DE2601B47700E55497 /* Location_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E01613DC2601B47700E55497 /* Location_Cell.xib */; };
E01614062601E78B00E55497 /* DZSH_Date_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E01614042601E78B00E55497 /* DZSH_Date_Cell.swift */; };
E01614072601E78B00E55497 /* DZSH_Date_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E01614052601E78B00E55497 /* DZSH_Date_Cell.xib */; };
E0190A2D2487696F00B1E067 /* NewSelectItemVc.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0190A2B2487696F00B1E067 /* NewSelectItemVc.swift */; };
E0190A2E2487696F00B1E067 /* NewSelectItemVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0190A2C2487696F00B1E067 /* NewSelectItemVc.xib */; };
E019E98124A975920086C565 /* brandListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E019E98024A975920086C565 /* brandListModel.swift */; };
......@@ -195,6 +199,10 @@
E06B1AED25B52725002F3C65 /* PrintViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E06B1AEB25B52725002F3C65 /* PrintViewController.xib */; };
E06B1AF625B52AD3002F3C65 /* PrintListMgVc.swift in Sources */ = {isa = PBXBuildFile; fileRef = E06B1AF425B52AD3002F3C65 /* PrintListMgVc.swift */; };
E06B1AF725B52AD3002F3C65 /* PrintListMgVc.xib in Resources */ = {isa = PBXBuildFile; fileRef = E06B1AF525B52AD3002F3C65 /* PrintListMgVc.xib */; };
E06B3FCE2601A70D0004C05C /* DZSH_Upload_Cer_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E06B3FCC2601A70D0004C05C /* DZSH_Upload_Cer_Cell.swift */; };
E06B3FCF2601A70D0004C05C /* DZSH_Upload_Cer_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E06B3FCD2601A70D0004C05C /* DZSH_Upload_Cer_Cell.xib */; };
E06B3FD52601AB750004C05C /* DZSH_Two_Btn_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E06B3FD32601AB750004C05C /* DZSH_Two_Btn_Cell.swift */; };
E06B3FD62601AB750004C05C /* DZSH_Two_Btn_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E06B3FD42601AB750004C05C /* DZSH_Two_Btn_Cell.xib */; };
E06FBAA325BFEFB200E9C2BA /* S_Y_View.swift in Sources */ = {isa = PBXBuildFile; fileRef = E06FBAA225BFEFB200E9C2BA /* S_Y_View.swift */; };
E06FBAA825BFEFBC00E9C2BA /* S_Y_View.xib in Resources */ = {isa = PBXBuildFile; fileRef = E06FBAA725BFEFBC00E9C2BA /* S_Y_View.xib */; };
E0706EF424B40BE800D8251C /* TitleAndTfYuanCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0706EF224B40BE800D8251C /* TitleAndTfYuanCell.swift */; };
......@@ -789,6 +797,10 @@
E013D78B2484CAFC0092DE46 /* CRKBtnCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CRKBtnCell.xib; sourceTree = "<group>"; };
E013D78E2484D5AF0092DE46 /* NewCKCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewCKCell.swift; sourceTree = "<group>"; };
E013D78F2484D5AF0092DE46 /* NewCKCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = NewCKCell.xib; sourceTree = "<group>"; };
E01613DB2601B47700E55497 /* Location_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Location_Cell.swift; sourceTree = "<group>"; };
E01613DC2601B47700E55497 /* Location_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Location_Cell.xib; sourceTree = "<group>"; };
E01614042601E78B00E55497 /* DZSH_Date_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DZSH_Date_Cell.swift; sourceTree = "<group>"; };
E01614052601E78B00E55497 /* DZSH_Date_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DZSH_Date_Cell.xib; sourceTree = "<group>"; };
E0190A2B2487696F00B1E067 /* NewSelectItemVc.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewSelectItemVc.swift; sourceTree = "<group>"; };
E0190A2C2487696F00B1E067 /* NewSelectItemVc.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = NewSelectItemVc.xib; sourceTree = "<group>"; };
E019E98024A975920086C565 /* brandListModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = brandListModel.swift; sourceTree = "<group>"; };
......@@ -943,6 +955,10 @@
E06B1AEB25B52725002F3C65 /* PrintViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PrintViewController.xib; sourceTree = "<group>"; };
E06B1AF425B52AD3002F3C65 /* PrintListMgVc.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PrintListMgVc.swift; sourceTree = "<group>"; };
E06B1AF525B52AD3002F3C65 /* PrintListMgVc.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PrintListMgVc.xib; sourceTree = "<group>"; };
E06B3FCC2601A70D0004C05C /* DZSH_Upload_Cer_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DZSH_Upload_Cer_Cell.swift; sourceTree = "<group>"; };
E06B3FCD2601A70D0004C05C /* DZSH_Upload_Cer_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DZSH_Upload_Cer_Cell.xib; sourceTree = "<group>"; };
E06B3FD32601AB750004C05C /* DZSH_Two_Btn_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DZSH_Two_Btn_Cell.swift; sourceTree = "<group>"; };
E06B3FD42601AB750004C05C /* DZSH_Two_Btn_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DZSH_Two_Btn_Cell.xib; sourceTree = "<group>"; };
E06FBAA225BFEFB200E9C2BA /* S_Y_View.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = S_Y_View.swift; sourceTree = "<group>"; };
E06FBAA725BFEFBC00E9C2BA /* S_Y_View.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = S_Y_View.xib; sourceTree = "<group>"; };
E0706EF124B4088500D8251C /* Bridge_Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = Bridge_Header.h; sourceTree = "<group>"; };
......@@ -2863,6 +2879,14 @@
E0FCA97D25FEF49700B1B4D2 /* DZSH_Detail_ViewController.xib */,
E0CACE8125FF0A3D00ED7998 /* DZSH_UPLOAD_IMG_CELL.swift */,
E0CACE8225FF0A3D00ED7998 /* DZSH_UPLOAD_IMG_CELL.xib */,
E06B3FCC2601A70D0004C05C /* DZSH_Upload_Cer_Cell.swift */,
E06B3FCD2601A70D0004C05C /* DZSH_Upload_Cer_Cell.xib */,
E06B3FD32601AB750004C05C /* DZSH_Two_Btn_Cell.swift */,
E06B3FD42601AB750004C05C /* DZSH_Two_Btn_Cell.xib */,
E01613DB2601B47700E55497 /* Location_Cell.swift */,
E01613DC2601B47700E55497 /* Location_Cell.xib */,
E01614042601E78B00E55497 /* DZSH_Date_Cell.swift */,
E01614052601E78B00E55497 /* DZSH_Date_Cell.xib */,
);
path = "店长审核";
sourceTree = "<group>";
......@@ -3856,6 +3880,7 @@
E0516F782448003D00E373CE /* PayViewController.xib in Resources */,
E02FD9ED2455627300E10E27 /* ChuKuViewController.xib in Resources */,
F969BF1F244EE67900C79953 /* GoodsManageListVC.xib in Resources */,
E01614072601E78B00E55497 /* DZSH_Date_Cell.xib in Resources */,
F94A316024629DDD00FEC38E /* WorkBannerTableViewCell.xib in Resources */,
F95567AC2453E40B009674AB /* OrderListViewController.xib in Resources */,
E00E48C72457C99900F16545 /* KuCunShangPinXQViewController.xib in Resources */,
......@@ -3898,6 +3923,7 @@
E0C4F4BE244EF53D00CC7E2F /* BindStepTwoViewController.xib in Resources */,
E00B0B1C24629E99006DC846 /* SJMapCell.xib in Resources */,
E02A3CB025C3ED0400A4E369 /* S_P_K_C_Detail_Vc.xib in Resources */,
E01613DE2601B47700E55497 /* Location_Cell.xib in Resources */,
F90D37FA25529984001F3AED /* GLAlertTbAddViewCell.xib in Resources */,
E00CDE742474BBB60018AEF8 /* EPViewController.xib in Resources */,
E02C882B2456B4BA00925766 /* WLGZCell.xib in Resources */,
......@@ -3954,6 +3980,7 @@
E0D11BD625C12C540066DB21 /* img_title_cell.xib in Resources */,
E02DDD962450106C00ABB707 /* PuTongJieTiCell.xib in Resources */,
E0BE8A88245A7A1500E80134 /* JiBenXinXiCell.xib in Resources */,
E06B3FCF2601A70D0004C05C /* DZSH_Upload_Cer_Cell.xib in Resources */,
F9697246248F88BB0010D39B /* GeliAltetCodeView.xib in Resources */,
F93E320F2473DF2300524DFC /* GeliAlertTextView.xib in Resources */,
F9B6D9E32486891C00111698 /* MoreAndTimeSelectView.xib in Resources */,
......@@ -3962,6 +3989,7 @@
F94A315C24628C7E00FEC38E /* WorkItemTableViewCell.xib in Resources */,
E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */,
F956D5A4246A2D9C003FF510 /* .gitignore in Resources */,
E06B3FD62601AB750004C05C /* DZSH_Two_Btn_Cell.xib in Resources */,
E0BE8A80245A740600E80134 /* ChengGongCell.xib in Resources */,
E0190A2E2487696F00B1E067 /* NewSelectItemVc.xib in Resources */,
F95D9B5024484FAE0080D6E3 /* GeliAlertView.xib in Resources */,
......@@ -4225,6 +4253,7 @@
E0D197C02448431C002B080C /* BabyCentralManager.m in Sources */,
F956D5A9246A2D9C003FF510 /* LMNLineChain.m in Sources */,
E030DF362485DD3E002764D3 /* NewRKCell.swift in Sources */,
E06B3FCE2601A70D0004C05C /* DZSH_Upload_Cer_Cell.swift in Sources */,
E02EE125259AD6FB00733764 /* FXSY_Cell.swift in Sources */,
E020632F246CE2F9007A40C4 /* OrderDViewSumFooter.swift in Sources */,
E0E7CB6124C17B9F00A26D3F /* GLKHCell.swift in Sources */,
......@@ -4286,6 +4315,7 @@
E0E4456924B00F7B00EF788E /* LogisticsModel.swift in Sources */,
E0833B8724D8F96D0014F3E9 /* PaymentView.swift in Sources */,
F9956B2524640D34001A617D /* GoodsClassModel.swift in Sources */,
E01613DD2601B47700E55497 /* Location_Cell.swift in Sources */,
F961D26B24500FF6007FBE70 /* HeaderSelectView.swift in Sources */,
F9697244248F70C00010D39B /* VendorInterface.swift in Sources */,
E09F4C9D2452BEBB00BE033D /* JiPaiFangShiViewController.swift in Sources */,
......@@ -4297,6 +4327,7 @@
F93E320D2473DA1C00524DFC /* GeliAlertTextFiled.swift in Sources */,
E0A2E81A24552E3C00D6DB34 /* XinZengPinPaiViewController.swift in Sources */,
F956D5A8246A2D9C003FF510 /* LMNSpecialLine.m in Sources */,
E01614062601E78B00E55497 /* DZSH_Date_Cell.swift in Sources */,
E0B530882472917F00FFCC15 /* ShopWarehouseDetailModel.swift in Sources */,
F96E48A324CA79D4000AB8D4 /* WayBillAddressItemCell.swift in Sources */,
E0DA8AAA25E8F3D800425099 /* HLBLEManager.m in Sources */,
......@@ -4466,6 +4497,7 @@
E0F97B022451228A001BD600 /* GLAlertSelectView.swift in Sources */,
F96E9D5C246656A700B5B94A /* HGImagePickerCell.swift in Sources */,
E02A3CAF25C3ED0400A4E369 /* S_P_K_C_Detail_Vc.swift in Sources */,
E06B3FD52601AB750004C05C /* DZSH_Two_Btn_Cell.swift in Sources */,
F95567AB2453E40B009674AB /* OrderListViewController.swift in Sources */,
E06B1AF625B52AD3002F3C65 /* PrintListMgVc.swift in Sources */,
E00E48C22457C0D600F16545 /* XuanZeShangPinViewController.swift in Sources */,
......
......@@ -284,8 +284,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate,loginDelegate,UITabBarCont
let v2 = GoodsManageListVC()
let v3 = WorkCViewController()
// let v3 = WorkCViewController()
let v3 = DZSH_Mg_ViewController()
let v4 = WarehoseMangementListVC()
let v5 = PersonCenterViewController()
......
{
"images" : [
{
"filename" : "路径 4备份 2.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "路径 4备份 2@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "路径 4备份 2@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.969",
"green" : "0.949",
"red" : "0.929"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.969",
"green" : "0.949",
"red" : "0.929"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "编组 6.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "编组 6@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "编组 6@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="17125"/>
<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.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"/>
......
<?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" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" 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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
......@@ -45,7 +46,7 @@
<constraint firstAttribute="width" constant="1" id="BB6-25-bs0"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eqJ-Ca-ryF">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eqJ-Ca-ryF">
<rect key="frame" x="0.0" y="400" width="187" height="50"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="重置">
......@@ -55,7 +56,7 @@
<action selector="reset:" destination="-1" eventType="touchUpInside" id="6wq-Zb-6wr"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sTi-CD-uRH">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sTi-CD-uRH">
<rect key="frame" x="188" y="400" width="187" height="50"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<state key="normal" title="确定">
......@@ -70,7 +71,7 @@
<subviews>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8Ir-pU-hYD" userLabel="contentView">
<rect key="frame" x="0.0" y="0.0" width="375" height="400"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="width" constant="375" id="Maq-yV-LoF">
<userDefinedRuntimeAttributes>
......@@ -95,7 +96,7 @@
<viewLayoutGuide key="frameLayoutGuide" id="65K-Ih-2xq"/>
</scrollView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="ZjA-JG-8Bi" firstAttribute="leading" secondItem="eqJ-Ca-ryF" secondAttribute="trailing" id="1dD-kq-jUo"/>
<constraint firstAttribute="trailing" secondItem="Aa2-Gq-Tga" secondAttribute="trailing" id="3sp-xm-trK"/>
......@@ -160,5 +161,8 @@
<namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" 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" colorMatched="YES">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina4_7" 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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
......@@ -34,7 +35,7 @@
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rJ9-UL-KOL">
<rect key="frame" x="0.0" y="-5" width="375" height="73"/>
<subviews>
<button opaque="NO" tag="1001" contentMode="scaleToFill" horizontalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dQT-gl-rh7">
<button opaque="NO" tag="1001" contentMode="scaleToFill" horizontalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dQT-gl-rh7">
<rect key="frame" x="15" y="20" width="60" height="30"/>
<color key="backgroundColor" name="多选按钮背景颜色"/>
<constraints>
......@@ -62,7 +63,7 @@
<action selector="btnAction:" destination="-1" eventType="touchUpInside" id="qMw-gd-wQp"/>
</connections>
</button>
<button opaque="NO" tag="1002" contentMode="scaleToFill" horizontalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="g1a-gU-FJq">
<button opaque="NO" tag="1002" contentMode="scaleToFill" horizontalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="g1a-gU-FJq">
<rect key="frame" x="95" y="20" width="60" height="30"/>
<color key="backgroundColor" name="多选按钮背景颜色"/>
<constraints>
......@@ -90,7 +91,7 @@
<action selector="btnAction:" destination="-1" eventType="touchUpInside" id="XAk-jM-DDa"/>
</connections>
</button>
<button opaque="NO" tag="1003" contentMode="scaleToFill" horizontalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lth-JM-jPE">
<button opaque="NO" tag="1003" contentMode="scaleToFill" horizontalHuggingPriority="251" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="lth-JM-jPE">
<rect key="frame" x="175" y="20" width="60" height="30"/>
<color key="backgroundColor" name="多选按钮背景颜色"/>
<constraints>
......@@ -118,7 +119,7 @@
<action selector="btnAction:" destination="-1" eventType="touchUpInside" id="XgD-KH-Fnm"/>
</connections>
</button>
<button opaque="NO" tag="1004" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sEd-Ix-rtO">
<button opaque="NO" tag="1004" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sEd-Ix-rtO">
<rect key="frame" x="255" y="20" width="100" height="30"/>
<color key="backgroundColor" name="多选按钮背景颜色"/>
<constraints>
......@@ -142,7 +143,7 @@
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="sEd-Ix-rtO" firstAttribute="leading" secondItem="lth-JM-jPE" secondAttribute="trailing" constant="20" id="8lP-QO-lcu"/>
<constraint firstItem="lth-JM-jPE" firstAttribute="leading" secondItem="g1a-gU-FJq" secondAttribute="trailing" constant="20" id="GNw-wR-SPs"/>
......@@ -192,5 +193,8 @@
<namedColor name="提示视图背景色">
<color red="0.1803921568627451" green="0.1803921568627451" blue="0.1803921568627451" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
......@@ -13,6 +13,7 @@ class DZSHViewController: BaseViewController, UITableViewDelegate, UITableViewDa
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
let model = dataArr[indexPath.row]
let vc = DZSH_Detail_ViewController()
vc.title_str = "信息审核"
vc.shop_id = model.shop_id!
vc.user_token = UserToken as! String
self.navigationController?.pushViewController(vc, animated: true)
......
//
// DZSH_Date_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/3/17.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol DZSH_Date_Cell_Delegate {
func DZSH_Date_Cell_SelectAction(sender:UIButton,cell:DZSH_Date_Cell)
}
class DZSH_Date_Cell: UITableViewCell {
var delegate:DZSH_Date_Cell_Delegate?
@IBAction func select_Action(_ sender: UIButton) {
delegate?.DZSH_Date_Cell_SelectAction(sender: sender, cell: self)
}
@IBOutlet weak var startDateLbl: UILabel!
var indexPath:IndexPath?
@IBOutlet weak var endDateLbl: UILabel!
@IBOutlet weak var timeLbl: UILabel!
@IBOutlet weak var nameLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
self.selectionStyle = .none
}
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="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="DZSH_Date_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="100"/>
<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="100"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ivp-Vz-AMX">
<rect key="frame" x="15" y="99" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="0nN-NC-wBo"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Pli-Qs-VJb">
<rect key="frame" x="15" y="15" width="33" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Myl-d0-cLZ">
<rect key="frame" x="137.5" y="43" width="100" height="37"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="星期五" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="miB-5o-s2k">
<rect key="frame" x="15" y="9.5" width="39" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="M9y-XQ-k09">
<rect key="frame" x="0.0" y="0.0" width="100" height="37"/>
<connections>
<action selector="select_Action:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="Oft-Qm-w1S"/>
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dzsh_down_arrow" translatesAutoresizingMaskIntoConstraints="NO" id="za3-le-PKd">
<rect key="frame" x="75" y="15.5" width="10" height="6"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="Xcp-P0-wn1"/>
<constraint firstAttribute="height" constant="6" id="hpA-gg-RAP"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="0.92941176470588238" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="M9y-XQ-k09" secondAttribute="bottom" id="BGg-dt-TUW"/>
<constraint firstAttribute="height" constant="37" id="CQm-NP-Iba"/>
<constraint firstItem="M9y-XQ-k09" firstAttribute="leading" secondItem="Myl-d0-cLZ" secondAttribute="leading" id="Hxh-1r-dKd"/>
<constraint firstItem="miB-5o-s2k" firstAttribute="centerY" secondItem="Myl-d0-cLZ" secondAttribute="centerY" id="Ssv-hr-2h3"/>
<constraint firstAttribute="trailing" secondItem="za3-le-PKd" secondAttribute="trailing" constant="15" id="aa9-7F-QzG"/>
<constraint firstAttribute="trailing" secondItem="M9y-XQ-k09" secondAttribute="trailing" id="dUz-rN-r11"/>
<constraint firstItem="M9y-XQ-k09" firstAttribute="top" secondItem="Myl-d0-cLZ" secondAttribute="top" id="gMP-WL-EUE"/>
<constraint firstItem="miB-5o-s2k" firstAttribute="leading" secondItem="Myl-d0-cLZ" secondAttribute="leading" constant="15" id="hIK-ca-NPD"/>
<constraint firstItem="za3-le-PKd" firstAttribute="centerY" secondItem="Myl-d0-cLZ" secondAttribute="centerY" id="smI-QT-AHK"/>
<constraint firstAttribute="width" constant="100" id="uNx-yW-RT5"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="shadowColor">
<color key="value" name="#EDEDED"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="0.5"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="虚线分界线颜色"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="l45-ay-mKC">
<rect key="frame" x="247.5" y="43" width="110" height="37"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="9:00~18:00" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="vCZ-bO-MXw">
<rect key="frame" x="22.5" y="9.5" width="65.5" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="jVR-Aj-HbY">
<rect key="frame" x="0.0" y="0.0" width="110" height="37"/>
<connections>
<action selector="select_Action:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="1M0-3l-eiN"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.92941176470588238" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="jVR-Aj-HbY" secondAttribute="bottom" id="IXY-eg-6h7"/>
<constraint firstItem="vCZ-bO-MXw" firstAttribute="centerX" secondItem="l45-ay-mKC" secondAttribute="centerX" id="Tqz-k7-YGA"/>
<constraint firstItem="vCZ-bO-MXw" firstAttribute="centerY" secondItem="l45-ay-mKC" secondAttribute="centerY" id="Xp9-xX-mtv"/>
<constraint firstItem="jVR-Aj-HbY" firstAttribute="leading" secondItem="l45-ay-mKC" secondAttribute="leading" id="bE1-p1-8Nw"/>
<constraint firstAttribute="height" constant="37" id="bU4-4p-yyw"/>
<constraint firstAttribute="trailing" secondItem="jVR-Aj-HbY" secondAttribute="trailing" id="kx8-s8-sk1"/>
<constraint firstItem="jVR-Aj-HbY" firstAttribute="top" secondItem="l45-ay-mKC" secondAttribute="top" id="uZu-bW-33O"/>
<constraint firstAttribute="width" constant="110" id="vYX-xU-AZE"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="0.5"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="虚线分界线颜色"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="~" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4zg-Dh-Yhc">
<rect key="frame" x="118.5" y="53.5" width="14" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JOK-WH-n4E">
<rect key="frame" x="13.5" y="43" width="100" height="37"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="星期一" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Yjw-Vi-Wcw">
<rect key="frame" x="15" y="9.5" width="39" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Hqn-cp-wT0">
<rect key="frame" x="0.0" y="0.0" width="100" height="37"/>
<connections>
<action selector="select_Action:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="sxt-2n-xE0"/>
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="dzsh_down_arrow" translatesAutoresizingMaskIntoConstraints="NO" id="sSm-qe-voc">
<rect key="frame" x="75" y="15.5" width="10" height="6"/>
<constraints>
<constraint firstAttribute="width" constant="10" id="QGy-zv-LjQ"/>
<constraint firstAttribute="height" constant="6" id="Ufo-pd-Qhh"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="0.92941176470588238" green="0.94901960784313721" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="Hqn-cp-wT0" secondAttribute="bottom" id="27K-Oo-U7a"/>
<constraint firstAttribute="trailing" secondItem="Hqn-cp-wT0" secondAttribute="trailing" id="9KT-1A-0gR"/>
<constraint firstItem="Yjw-Vi-Wcw" firstAttribute="leading" secondItem="JOK-WH-n4E" secondAttribute="leading" constant="15" id="9uv-TK-kXT"/>
<constraint firstAttribute="trailing" secondItem="sSm-qe-voc" secondAttribute="trailing" constant="15" id="Cs5-Ew-hBP"/>
<constraint firstAttribute="height" constant="37" id="GPf-AR-UTC"/>
<constraint firstItem="Hqn-cp-wT0" firstAttribute="top" secondItem="JOK-WH-n4E" secondAttribute="top" id="TYe-ri-Mtp"/>
<constraint firstAttribute="width" constant="100" id="X0C-fN-Isx"/>
<constraint firstItem="Hqn-cp-wT0" firstAttribute="leading" secondItem="JOK-WH-n4E" secondAttribute="leading" id="gDI-O4-Zgf"/>
<constraint firstItem="Yjw-Vi-Wcw" firstAttribute="centerY" secondItem="JOK-WH-n4E" secondAttribute="centerY" id="oAH-RP-5XK"/>
<constraint firstItem="sSm-qe-voc" firstAttribute="centerY" secondItem="Yjw-Vi-Wcw" secondAttribute="centerY" id="wNW-bj-VUp"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="3"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="0.5"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" name="虚线分界线颜色"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<constraints>
<constraint firstItem="l45-ay-mKC" firstAttribute="leading" secondItem="Myl-d0-cLZ" secondAttribute="trailing" constant="10" id="1KP-Nm-6P7"/>
<constraint firstItem="Myl-d0-cLZ" firstAttribute="leading" secondItem="4zg-Dh-Yhc" secondAttribute="trailing" constant="5" id="4PJ-nn-LIL"/>
<constraint firstItem="JOK-WH-n4E" firstAttribute="centerY" secondItem="Myl-d0-cLZ" secondAttribute="centerY" id="7v7-5i-0e9"/>
<constraint firstAttribute="bottom" secondItem="Myl-d0-cLZ" secondAttribute="bottom" constant="20" id="8QM-Bb-Jkn"/>
<constraint firstItem="Pli-Qs-VJb" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Cwc-0W-MBI"/>
<constraint firstAttribute="bottom" secondItem="Ivp-Vz-AMX" secondAttribute="bottom" id="IGV-kg-JQ7"/>
<constraint firstItem="4zg-Dh-Yhc" firstAttribute="centerY" secondItem="Myl-d0-cLZ" secondAttribute="centerY" id="Pfn-cH-OrG"/>
<constraint firstItem="Ivp-Vz-AMX" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="UWo-Oa-5xn"/>
<constraint firstAttribute="trailing" secondItem="Ivp-Vz-AMX" secondAttribute="trailing" id="Vkc-d8-cbR"/>
<constraint firstItem="4zg-Dh-Yhc" firstAttribute="leading" secondItem="JOK-WH-n4E" secondAttribute="trailing" constant="5" id="cbf-bb-zpw"/>
<constraint firstItem="Myl-d0-cLZ" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="e6c-AS-ihw"/>
<constraint firstItem="Pli-Qs-VJb" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="eUA-b1-1DW"/>
<constraint firstItem="l45-ay-mKC" firstAttribute="centerY" secondItem="Myl-d0-cLZ" secondAttribute="centerY" id="pMC-tw-FBw"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="endDateLbl" destination="miB-5o-s2k" id="zlV-oe-k6m"/>
<outlet property="nameLbl" destination="Pli-Qs-VJb" id="emZ-Ae-6pr"/>
<outlet property="startDateLbl" destination="Yjw-Vi-Wcw" id="h72-1P-rV4"/>
<outlet property="timeLbl" destination="vCZ-bO-MXw" id="lRX-nJ-iST"/>
</connections>
<point key="canvasLocation" x="141.30434782608697" y="109.82142857142857"/>
</tableViewCell>
</objects>
<resources>
<image name="dzsh_down_arrow" width="9" height="5.5"/>
<namedColor name="#EDEDED">
<color red="0.92900002002716064" green="0.92900002002716064" blue="0.92900002002716064" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="虚线分界线颜色">
<color red="0.72549019607843135" green="0.72549019607843135" blue="0.72549019607843135" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
......@@ -8,22 +8,172 @@
import UIKit
import Photos
import SwiftyJSON
class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource, GeliAlertTextViewDelegate ,DZSH_Two_Btn_Cell_Delegate, Location_Cell_Delegate, DZSH_UPLOAD_IMG_CELL_Delegate, UIPickerViewDataSource, UIPickerViewDelegate, DZSH_Date_Cell_Delegate{
var altView:UITableView?
var date_arr:Array<String> = []
func scrollViewDidScroll(_ scrollView: UIScrollView) {
if altView != nil {
if altView?.frame.minY != 0 {
if is_Scroll == false {
is_Scroll = true
temp_y = (altView?.frame.minY)!
}
var offsetY:CGFloat = 0
if temp_y >= (altView?.frame.minY)! {
offsetY = temp_y - (altView?.frame.minY)!
}else{
offsetY = (altView?.frame.minY)! - temp_y
}
if offsetY > 15 {
altView?.removeFromSuperview()
altView = nil
temp_y = 0
is_Scroll = false
}
}
}
}
var is_Scroll = false
var temp_y:CGFloat = 0
func DZSH_Date_Cell_SelectAction(sender: UIButton, cell: DZSH_Date_Cell) {
if sender.tag != 2 {
if altView == nil {
setDateUI(sender: sender, cell: cell)
}else{
if altView?.tag == sender.tag + 22 {
altView?.removeFromSuperview()
altView = nil
}else{
setDateUI(sender: sender, cell: cell)
}
}
}else{
altView?.removeFromSuperview()
altView = nil
}
}
func setDateUI(sender: UIButton, cell: DZSH_Date_Cell){
altView?.removeFromSuperview()
altView = nil
let y = list_view.convert(list_view.rectForRow(at: cell.indexPath!), to: list_view.superview).minY - 259
let dateArr = ["星期天","星期一","星期二","星期三","星期四","星期五","星期六"]
let tbvH:CGFloat = 160
let tbv = UITableView(frame: CGRect(x: 0, y: 0, width: sender.bounds.size.width, height: tbvH))
tbv.tag = cell.tag + sender.tag
tbv.delegate = self
tbv.dataSource = self
tbv.estimatedRowHeight = 0
tbv.register(UINib(nibName: "OnlyLabelCell", bundle: nil), forCellReuseIdentifier: "OnlyLabelCell")
tbv.layer.borderWidth = 1
tbv.layer.borderColor = UIColor.lightGray.cgColor
tbv.backgroundColor = UIColor(named:"#EDF2F7")
self.view.addSubview(tbv)
altView = tbv
date_arr.removeAll()
if y < 165 {
for item in dateArr {
date_arr.append(item)
}
altView?.snp.makeConstraints({ (make) in
make.top.equalTo(sender.snp_bottom)
make.width.equalTo(sender.snp_width)
make.left.equalTo(sender.snp_left)
make.height.equalTo(tbvH)
})
}else{
for item in dateArr.reversed().enumerated() {
date_arr.append(item.element)
}
altView?.snp.makeConstraints({ (make) in
make.bottom.equalTo(sender.snp_top)
make.width.equalTo(sender.snp_width)
make.left.equalTo(sender.snp_left)
make.height.equalTo(tbvH)
})
altView?.setContentOffset(CGPoint(x: 0, y: 65), animated: false)
}
}
func DZSH_UPLOAD_IMG_CELL_Input(str: String, cell: DZSH_UPLOAD_IMG_CELL) {
if cell.tag == 11 {
short_name = str
}
}
func DZSH_UPLOAD_IMG_CELL_Btn_Action(select: Int, cell: DZSH_UPLOAD_IMG_CELL) {
if cell.tag == 11 {
is_show = false
if select == 1 {
is_show = true
}
}
if cell.tag == 21 {
show_logo = true
if select == 0 {
show_logo = false
}
}
list_view.reloadData()
}
func Location_Cell_action() {
print("获取lat,lng")
}
func Location_Cell_input_tf(idx: Int, str: String) {
if idx == 0 {
lat = str
}else{
lng = str
}
}
func DZSH_Two_Btn_Cell_Click_Action(select: Int, cell: DZSH_Two_Btn_Cell) {
if cell.tag == 0 {
is_Qing_Zhen = true
if select == 0 {
is_Qing_Zhen = false
}
}else{
is_Personal = true
if select == 0 {
is_Personal = false
}
}
}
class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITableViewDataSource, GeliAlertTextViewDelegate {
var shop_id = -1
var user_token = ""
var title_arr = ["公司信息","负责人信息","营业执照信息","入驻协议"]
var part0 = ["是否清真","用户类型","店铺类型",""]
var is_Qing_Zhen = false
var is_Personal = true
var type_num = 9//类型
var type_arr = ["扶贫商店","其他类型","生产基地合作社","扶贫基地","社区生鲜店/菜市场档口","餐饮店","生产基地","批发商店","工厂","批零中心"]
var lng = ""
var lat = ""
var part1 = ["公司名称","公司详细地址","公司电话","公司规模","公司简介","店铺类型","公司logo"]
var part1 = ["公司名称","公司简称","关联专区展示","公司所在地","公司详细地址"]
var name = ""//公司名
var adr_str = ""//地址
var is_show = true
var short_name = ""//简称
var show_logo = true
var phone_str = ""//电话
var size_str = ""//规模
var intro_str = ""//公司简介
var type_str = ""//类型
var logo_url_str = ""//logo连接
var part2 = ["联系人选择","联系人姓名","负责人身份证"]
......@@ -40,6 +190,13 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
var ruzhu_url_str = ""//入驻连接
var action = -1 //1为审核通过,2为审核不通过,3为审核通过待补齐资料
@IBAction func submit_action(_ sender: Any) {
print("submit")
}
//view
@IBOutlet weak var btm_action_view: UIView!
@IBOutlet weak var btm_action_bg: UIView!
@IBOutlet weak var list_view: UITableView!
@IBAction func btm_action(_ sender: UIButton) {
let alterView = GeliAlertTextView(frame: self.view.window!.bounds)
......@@ -65,16 +222,33 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
break
}
}
var title_str = ""
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "信息审核"
// navbar.title = "信息审核"
navbar.title = title_str
if title_str == "信息审核" {
btm_action_bg.isHidden = false
btm_action_view.isHidden = false
}
self.view.addSubview(navbar)
SetTopFrameView(view: list_view, btmView: self.view)
list_view.separatorStyle = .none
list_view.register(UINib(nibName: "TitleAndTFCell", bundle: nil), forCellReuseIdentifier: "TitleAndTFCell")
list_view.register(UINib(nibName: "DZSH_Date_Cell", bundle: nil), forCellReuseIdentifier: "DZSH_Date_Cell")
list_view.register(UINib(nibName: "TitleAndLblCell", bundle: nil), forCellReuseIdentifier: "TitleAndLblCell")
list_view.register(UINib(nibName: "TitleAndBtnCell", bundle: nil), forCellReuseIdentifier: "TitleAndBtnCell")
list_view.register(UINib(nibName: "DZSH_UPLOAD_IMG_CELL", bundle: nil), forCellReuseIdentifier: "DZSH_UPLOAD_IMG_CELL")
list_view.register(UINib(nibName: "DZSH_Upload_Cer_Cell", bundle: nil), forCellReuseIdentifier: "DZSH_Upload_Cer_Cell")
list_view.register(UINib(nibName: "DZSH_Two_Btn_Cell", bundle: nil), forCellReuseIdentifier: "DZSH_Two_Btn_Cell")
list_view.register(UINib(nibName: "Location_Cell", bundle: nil), forCellReuseIdentifier: "Location_Cell")
storeInfo(["user_token":user_token as Any,"shop_id":shop_id as Any]) {[self] (data) in
......@@ -123,6 +297,16 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
ruzhu_url_str = (model?.agreement)!
}
if model?.province != nil {
provinceIndex = (model?.province)!
}
if model?.city != nil {
cityIndex = (model?.city)!
}
if model?.district != nil {
areaIndex = (model?.district)!
}
getIndex()
self.list_view.reloadData()
} failture: { (err ) in
......@@ -133,312 +317,465 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
//MARK: - tableviewdelegate
func numberOfSections(in tableView: UITableView) -> Int {
return 4
if tableView.tag == 22 || tableView.tag == 23{
return 1
}
return 6
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if tableView.tag == 22 || tableView.tag == 23 {
return date_arr.count
}
switch section {
case 0:
return 7
return 4
case 1:
return 3
return 5
case 2:
return 4
return 2
case 3:
return 3
case 4:
return 5
default:
return 1
return 6
}
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if tableView.tag == 22 || tableView.tag == 23 {
return 37
}
switch indexPath.section {
case 0:
if indexPath.row == 4 {
return UITableView.automaticDimension
}
if indexPath.row == 6 {
return 193.5
if indexPath.row == 3 {
return 132.5
}
break
case 1:
if indexPath.row == 2 {
return 183.5
if indexPath.row == 1 {
if is_show {
return 95
}
}
case 2:
// if indexPath.row == 1 {
// return UITableView.automaticDimension
// }
if indexPath.row > 1 {
return 183.5
if indexPath.row == 0 {
if show_logo {
return 237
}else{
return 95
}
}
return 100
default:
return 183.5
break
}
// switch indexPath.section {
// case 1:
// if indexPath.row == 4 {
// return UITableView.automaticDimension
// }
// if indexPath.row == 6 {
// return 237
// }
// case 2:
// if indexPath.row == 2 {
// return 183.5
// }
// case 3:
//// if indexPath.row == 1 {
//// return UITableView.automaticDimension
//// }
// if indexPath.row > 1 {
// return 183.5
// }
// default:
// return 183.5
// }
return UITableView.automaticDimension
return 49
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.placeholder = "等待填写"
if tableView.tag == 22 || tableView.tag == 23 {
let cell = tableView.dequeueReusableCell(withIdentifier: "OnlyLabelCell") as! OnlyLabelCell
cell.titleLbl.text = date_arr[indexPath.row]
cell.backgroundColor = UIColor(named: "#EDF2F7")
return cell
}
switch indexPath.section {
case 0://公司信息
cell.nameLbl.text = part1[indexPath.row]
case 0:
switch indexPath.row {
case 0,1:
let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_Two_Btn_Cell") as! DZSH_Two_Btn_Cell
cell.nameLbl.text = part0[indexPath.row]
cell.tag = indexPath.row
cell.delegate = self
if indexPath.row == 0 {
cell.leftBtn.setTitle(" 是", for: .normal)
cell.rightBtn.setTitle(" 否", for: .normal)
if is_Qing_Zhen {
cell.leftBtn.isSelected = true
cell.rightBtn.isSelected = false
}else{
cell.leftBtn.isSelected = false
cell.rightBtn.isSelected = true
}
}else{
cell.leftBtn.setTitle(" 个人", for: .normal)
cell.rightBtn.setTitle(" 企业", for: .normal)
if is_Personal {
cell.leftBtn.isSelected = true
cell.rightBtn.isSelected = false
}else{
cell.leftBtn.isSelected = false
cell.rightBtn.isSelected = true
}
}
return cell
case 2:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtnCell") as! TitleAndBtnCell
cell.nameLbl.text = part0[indexPath.row]
cell.contentLbl.text = type_arr[type_num]
return cell
default:
let cell = tableView.dequeueReusableCell(withIdentifier: "Location_Cell") as! Location_Cell
cell.delegate = self
cell.lng_tf.text = lng
cell.lat_tf.text = lat
return cell
}
case 1:
switch indexPath.row {
case 0:
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.placeholder = "等待填写"
cell.textTF.text = name
break
return cell
case 1:
cell.textTF.text = adr_str
break
let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_UPLOAD_IMG_CELL") as! DZSH_UPLOAD_IMG_CELL
cell.tag = 11
cell.delegate = self
cell.nameLbl.text = part1[indexPath.row]
cell.bottom_lbl.isHidden = true
cell.img_view.isHidden = true
cell.input_tf.isHidden = false
cell.leftBtn.setTitle(" 显示", for: .normal)
cell.rightBtn.setTitle(" 隐藏", for: .normal)
cell.titleLbl.text = "公司简称"
cell.leftBtn.isSelected = false
cell.rightBtn.isSelected = true
if is_show {
cell.leftBtn.isSelected = true
cell.rightBtn.isSelected = false
}
cell.input_tf.placeholder = "请输入公司简称"
cell.input_tf.text = short_name
return cell
case 2:
cell.textTF.text = phone_str
break
case 3:
cell.textTF.text = size_str
break
case 5:
cell.textTF.text = type_str
break
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndBtnCell") as! TitleAndBtnCell
cell.nameLbl.text = part1[indexPath.row]
cell.contentLbl.text = "11"
return cell
default:
break
}
if indexPath.row == 4 {
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndLblCell") as! TitleAndLblCell
cell.imgRight.constant = 0
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.nameLbl.text = part1[indexPath.row]
if intro_str.count == 0 {
cell.contentLbl.text = "等待填写"
cell.contentLbl.textColor = UIColor(named: "提示语字体颜色")
cell.textTF.isUserInteractionEnabled = true
if indexPath.row == 3{
cell.textTF.isUserInteractionEnabled = false
cell.textTF.placeholder = "请选择城市"
cell.textTF.text = dzStr
}else{
cell.contentLbl.text = intro_str
cell.contentLbl.textColor = UIColor(named: "标题字颜色")
cell.textTF.placeholder = "等待填写"
cell.textTF.text = adr_str
}
return cell
}
if indexPath.row == 6 {
case 2:
if indexPath.row == 0 {
let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_UPLOAD_IMG_CELL") as! DZSH_UPLOAD_IMG_CELL
cell.tag = 21
cell.delegate = self
cell.nameLbl.text = part1[indexPath.row]
cell.img_height.constant = 110
cell.img_width.constant = 110
cell.bottom_lbl.isHidden = true
cell.img_view.isHidden = true
cell.input_tf.isHidden = false
cell.leftBtn.setTitle(" logo", for: .normal)
cell.rightBtn.setTitle(" 简称", for: .normal)
cell.leftBtn.isSelected = false
cell.rightBtn.isSelected = true
cell.titleLbl.text = "店铺简称"
if show_logo {
cell.titleLbl.text = "店铺logo"
cell.leftBtn.isSelected = true
cell.rightBtn.isSelected = false
cell.input_tf.isHidden = true
cell.bottom_lbl.isHidden = false
cell.img_view.isHidden = false
if logo_url_str.count > 0 {
cell.img_view?.sd_setImage(with: URL(string:SERVERCE_ImageHost + logo_url_str))
}else{
cell.img_view.image = UIImage(named: "shangchuantupian")
}
return cell
}
case 1:
cell.nameLbl.text = part2[indexPath.row]
if indexPath.row == 0{
cell.textTF.text = conect_num_str
}
if indexPath.row == 1{
cell.textTF.text = conect_name
}
if indexPath.row == 2 {
let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_UPLOAD_IMG_CELL") as! DZSH_UPLOAD_IMG_CELL
cell.nameLbl.text = part2[indexPath.row]
cell.bottom_lbl.isHidden = true
cell.img_height.constant = 125
cell.img_width.constant = 225
if (conect_id_url_str.count > 0) {
cell.img_view?.sd_setImage(with: URL(string:SERVERCE_ImageHost + conect_id_url_str))
}else{
cell.img_view.image = UIImage(named: "shangchuantupian")
}
cell.input_tf.placeholder = "请输入店铺简称"
cell.input_tf.text = short_name
return cell
}
break
case 2:
cell.nameLbl.text = part3[indexPath.row]
if indexPath.row == 0 {
cell.textTF.text = zhizhao_str
}
if indexPath.row == 1 {
cell.textTF.text = jing_ying_fan_wei_str
}
// if indexPath.row == 1 {
// let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndLblCell") as! TitleAndLblCell
// cell.imgRight.constant = 0
// cell.nameLbl.text = part3[indexPath.row]
// if jing_ying_fan_wei_str.count == 0 {
// cell.contentLbl.text = "等待填写"
// cell.contentLbl.textColor = UIColor(named: "提示语字体颜色")
// }else{
// cell.contentLbl.text = jing_ying_fan_wei_str
// cell.contentLbl.textColor = UIColor(named: "标题字颜色")
// }
// return cell
// }
if indexPath.row > 1 {
let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_UPLOAD_IMG_CELL") as! DZSH_UPLOAD_IMG_CELL
cell.nameLbl.text = part3[indexPath.row]
cell.bottom_lbl.isHidden = true
cell.img_height.constant = 125
cell.img_width.constant = 225
var url = zhizhao_url_str
if indexPath.row == 3 {
url = xuke_url_str
let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_Date_Cell") as! DZSH_Date_Cell
cell.nameLbl.text = "营业信息"
cell.tag = 22
cell.delegate = self
cell.indexPath = indexPath
if end1.count > 0 {
cell.endDateLbl.text = end1
}
if url.count > 0 {
cell.img_view?.sd_setImage(with: URL(string:SERVERCE_ImageHost + url))
}else{
cell.img_view.image = UIImage(named: "shangchuantupian")
if start1.count > 0 {
cell.startDateLbl.text = start1
}
return cell
}
break
default:
let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_UPLOAD_IMG_CELL") as! DZSH_UPLOAD_IMG_CELL
cell.nameLbl.text = "商家入驻协议"
cell.bottom_lbl.isHidden = true
cell.img_height.constant = 125
cell.img_width.constant = 225
if ruzhu_url_str.count > 0 {
cell.img_view?.sd_setImage(with: URL(string:SERVERCE_ImageHost + ruzhu_url_str))
}else{
cell.img_view.image = UIImage(named: "shangchuantupian")
}
return cell
break
}
let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndTFCell") as! TitleAndTFCell
cell.textTF.placeholder = "等待填写"
return cell
// switch indexPath.section {
// case 1://公司信息
// cell.nameLbl.text = part1[indexPath.row]
// switch indexPath.row {
// case 0:
// cell.textTF.text = name
// break
// case 1:
// cell.textTF.text = adr_str
// break
// case 2:
// cell.textTF.text = phone_str
// break
// case 3:
// cell.textTF.text = size_str
// break
// case 5:
// cell.textTF.text = type_str
// break
// default:
// break
// }
// if indexPath.row == 4 {
// let cell = tableView.dequeueReusableCell(withIdentifier: "TitleAndLblCell") as! TitleAndLblCell
// cell.imgRight.constant = 0
// cell.nameLbl.text = part1[indexPath.row]
// if intro_str.count == 0 {
// cell.contentLbl.text = "等待填写"
// cell.contentLbl.textColor = UIColor(named: "提示语字体颜色")
// }else{
// cell.contentLbl.text = intro_str
// cell.contentLbl.textColor = UIColor(named: "标题字颜色")
// }
// return cell
// }
// if indexPath.row == 6 {
// let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_UPLOAD_IMG_CELL") as! DZSH_UPLOAD_IMG_CELL
// cell.nameLbl.text = part1[indexPath.row]
// cell.bottom_lbl.isHidden = false
// if logo_url_str.count > 0 {
// cell.img_view?.sd_setImage(with: URL(string:SERVERCE_ImageHost + logo_url_str))
// }else{
// cell.img_view.image = UIImage(named: "shangchuantupian")
// }
// return cell
// }
// case 2:
// cell.nameLbl.text = part2[indexPath.row]
// if indexPath.row == 0{
// cell.textTF.text = conect_num_str
// }
// if indexPath.row == 1{
// cell.textTF.text = conect_name
// }
// if indexPath.row == 2 {
// let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_Upload_Cer_Cell") as! DZSH_Upload_Cer_Cell
// cell.nameLbl.text = part2[indexPath.row]
// if (conect_id_url_str.count > 0) {
// cell.img_view?.sd_setImage(with: URL(string:SERVERCE_ImageHost + conect_id_url_str))
// }else{
// cell.img_view.image = UIImage(named: "upload_1")
// }
// return cell
// }
// break
// case 3:
// cell.nameLbl.text = part3[indexPath.row]
// if indexPath.row == 0 {
// cell.textTF.text = zhizhao_str
// }
// if indexPath.row == 1 {
// cell.textTF.text = jing_ying_fan_wei_str
// }
// if indexPath.row > 1 {
// let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_Upload_Cer_Cell") as! DZSH_Upload_Cer_Cell
// cell.nameLbl.text = part3[indexPath.row]
// var url = zhizhao_url_str
// if indexPath.row == 3 {
// url = xuke_url_str
// }
// if url.count > 0 {
// cell.img_view?.sd_setImage(with: URL(string:SERVERCE_ImageHost + url))
// }else{
// cell.img_view.image = UIImage(named: "upload_1")
// }
// return cell
// }
// break
// default:
// let cell = tableView.dequeueReusableCell(withIdentifier: "DZSH_Upload_Cer_Cell") as! DZSH_Upload_Cer_Cell
// cell.nameLbl.text = "商家入驻协议"
// if ruzhu_url_str.count > 0 {
// cell.img_view?.sd_setImage(with: URL(string:SERVERCE_ImageHost + ruzhu_url_str))
// }else{
// cell.img_view.image = UIImage(named: "upload_1")
// }
// return cell
// }
//
// return cell
}
var start1 = ""
var end1 = ""
var time1 = ""
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
switch indexPath.section {
case 0:
if indexPath.row == 4 {
let alterView = GeliAlertTextView(frame: self.view.window!.bounds)
alterView.tag = 4
alterView.delegate = self
alterView.titleLbl.text = "请填写公司简介"
alterView.placerLbl.text = "请填写公司简介..."
alterView.content = intro_str
self.view.window?.addSubview(alterView)
}
if indexPath.row == 6 {
_ = self.presentHGImagePicker(maxSelected:1) { (assets) in
//结果处理
print("共选择了\(assets.count)张图片,分别如下:")
let option = PHImageRequestOptions()
option.isSynchronous = true
option.isNetworkAccessAllowed = true
for asset in assets {
PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// print("上传图片==\(image)")
self.uploadImg(imge: image!, isOriginal: true, tag: 6)
})
}
self.list_view.reloadData()
}
}
if tableView.tag == 22 || tableView.tag == 23 {
switch tableView.tag {
case 22:
start1 = date_arr[indexPath.row]
break
case 1:
if indexPath.row == 2 {
_ = self.presentHGImagePicker(maxSelected:1) { (assets) in
//结果处理
print("共选择了\(assets.count)张图片,分别如下:")
let option = PHImageRequestOptions()
option.isSynchronous = true
option.isNetworkAccessAllowed = true
for asset in assets {
PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// print("上传图片==\(image)")
self.uploadImg(imge: image!, isOriginal: true, tag: 12)
})
}
self.list_view.reloadData()
}
}
default:
end1 = date_arr[indexPath.row]
break
case 2 :
// if indexPath.row == 1 {
// let alterView = GeliAlertTextView(frame: self.view.window!.bounds)
// alterView.tag = 11
// alterView.delegate = self
// alterView.titleLbl.text = "请填写法定经营范围"
// alterView.placerLbl.text = "请填写法定经营范围..."
// alterView.content = jing_ying_fan_wei_str
// self.view.window?.addSubview(alterView)
// }
if indexPath.row == 2 {
_ = self.presentHGImagePicker(maxSelected:1) { (assets) in
//结果处理
print("共选择了\(assets.count)张图片,分别如下:")
let option = PHImageRequestOptions()
option.isSynchronous = true
option.isNetworkAccessAllowed = true
for asset in assets {
PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// print("上传图片==\(image)")
self.uploadImg(imge: image!, isOriginal: true, tag: 22)
})
}
self.list_view.reloadData()
}
list_view.reloadData()
altView?.removeFromSuperview()
altView = nil
}
switch indexPath.section {
case 1:
if indexPath.row == 3 {
_ = self.presentHGImagePicker(maxSelected:1) { (assets) in
//结果处理
print("共选择了\(assets.count)张图片,分别如下:")
let option = PHImageRequestOptions()
option.isSynchronous = true
option.isNetworkAccessAllowed = true
for asset in assets {
PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// print("上传图片==\(image)")
self.uploadImg(imge: image!, isOriginal: true, tag: 23)
})
}
self.list_view.reloadData()
}
print_bottom_cell_select_place_action()
}
break
default:
_ = self.presentHGImagePicker(maxSelected:1) { (assets) in
//结果处理
print("共选择了\(assets.count)张图片,分别如下:")
let option = PHImageRequestOptions()
option.isSynchronous = true
option.isNetworkAccessAllowed = true
for asset in assets {
PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// print("上传图片==\(image)")
self.uploadImg(imge: image!, isOriginal: true, tag: 0)
})
}
self.list_view.reloadData()
}
break
}
// switch indexPath.section {
// case 0:
// if indexPath.row == 4 {
// let alterView = GeliAlertTextView(frame: self.view.window!.bounds)
// alterView.tag = 4
// alterView.delegate = self
// alterView.titleLbl.text = "请填写公司简介"
// alterView.placerLbl.text = "请填写公司简介..."
// alterView.content = intro_str
// self.view.window?.addSubview(alterView)
// }
//
// if indexPath.row == 6 {
// _ = self.presentHGImagePicker(maxSelected:1) { (assets) in
// //结果处理
// print("共选择了\(assets.count)张图片,分别如下:")
// let option = PHImageRequestOptions()
// option.isSynchronous = true
// option.isNetworkAccessAllowed = true
// for asset in assets {
// PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// // print("上传图片==\(image)")
// self.uploadImg(imge: image!, isOriginal: true, tag: 6)
// })
// }
// self.list_view.reloadData()
// }
// }
//
// break
// case 1:
// if indexPath.row == 2 {
// _ = self.presentHGImagePicker(maxSelected:1) { (assets) in
// //结果处理
// print("共选择了\(assets.count)张图片,分别如下:")
// let option = PHImageRequestOptions()
// option.isSynchronous = true
// option.isNetworkAccessAllowed = true
// for asset in assets {
// PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// // print("上传图片==\(image)")
// self.uploadImg(imge: image!, isOriginal: true, tag: 12)
// })
// }
// self.list_view.reloadData()
// }
// }
// break
// case 2 :
// if indexPath.row == 2 {
// _ = self.presentHGImagePicker(maxSelected:1) { (assets) in
// //结果处理
// print("共选择了\(assets.count)张图片,分别如下:")
// let option = PHImageRequestOptions()
// option.isSynchronous = true
// option.isNetworkAccessAllowed = true
// for asset in assets {
// PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// // print("上传图片==\(image)")
// self.uploadImg(imge: image!, isOriginal: true, tag: 22)
// })
// }
// self.list_view.reloadData()
// }
// }
// if indexPath.row == 3 {
// _ = self.presentHGImagePicker(maxSelected:1) { (assets) in
// //结果处理
// print("共选择了\(assets.count)张图片,分别如下:")
// let option = PHImageRequestOptions()
// option.isSynchronous = true
// option.isNetworkAccessAllowed = true
// for asset in assets {
// PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// // print("上传图片==\(image)")
// self.uploadImg(imge: image!, isOriginal: true, tag: 23)
// })
// }
// self.list_view.reloadData()
// }
// }
// break
// default:
// _ = self.presentHGImagePicker(maxSelected:1) { (assets) in
// //结果处理
// print("共选择了\(assets.count)张图片,分别如下:")
// let option = PHImageRequestOptions()
// option.isSynchronous = true
// option.isNetworkAccessAllowed = true
// for asset in assets {
// PHImageManager.default().requestImage(for: asset, targetSize: PHImageManagerMaximumSize , contentMode: .default , options: option, resultHandler: { (image, _: [AnyHashable : Any]?) in
// // print("上传图片==\(image)")
// self.uploadImg(imge: image!, isOriginal: true, tag: 0)
// })
// }
// self.list_view.reloadData()
// }
// break
// }
}
//MARK: - HEADER_VIEW
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let view = UIView(frame: CGRect(x: 0, y: 0, width: ScreenWidth, height: 36))
view.backgroundColor = UIColor.white
let title_lbl = UILabel(frame: CGRect(x: 15, y: 15, width: 200, height: 15))
title_lbl.text = title_arr[section]
title_lbl.textColor = UIColor(named: "标题字颜色")
title_lbl.font = UIFont(name: "PingFangSC-Medium", size: 15)
view.addSubview(title_lbl)
return view
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 36
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView()
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
if section == 3 {
return 1
}
return 5
}
//MARK: - 不通过原因
func sureGeliAlertTextViewAction(sender: String, view: GeliAlertTextView) {
......@@ -488,9 +825,9 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
case 4://公司简介
intro_str = sender
break
// case 11:
// jing_ying_fan_wei_str = sender
// break
// case 11:
// jing_ying_fan_wei_str = sender
// break
default:
break
}
......@@ -532,4 +869,318 @@ class DZSH_Detail_ViewController: BaseViewController,UITableViewDelegate,UITable
}
}
func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? {
return UIView()
}
func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat {
return 5
}
//MARK:--地址选择器
func showAreaSelect(view:UIView){
//创建选择器
pickerView=UIPickerView()
//将dataSource设置成自己
pickerView.dataSource=self
//将delegate设置成自己
pickerView.delegate=self
view.addSubview(pickerView)
pickerView.snp.makeConstraints { (make) in
make.top.equalTo(30)
make.left.right.bottom.equalTo(0)
}
pickerView.selectRow(provinceIndex, inComponent: 0, animated: false)
pickerView(pickerView, didSelectRow: provinceIndex, inComponent: 0)
pickerView.selectRow(cityIndex, inComponent: 1, animated: false)
pickerView(pickerView, didSelectRow: cityIndex, inComponent: 1)
pickerView.selectRow(areaIndex, inComponent: 2, animated: false)
pickerView(pickerView, didSelectRow: areaIndex, inComponent: 2)
}
var btmView:UIView?
var bgBtn:UIButton?
@objc func closeAction(sender:UIButton){
bgBtn?.removeFromSuperview()
btmView?.subviews.forEach({ (view) in
view.removeFromSuperview()
})
btmView?.removeFromSuperview()
btmView = nil
bgBtn = nil
}
func print_bottom_cell_select_place_action() {
print("地址选择")
if bgBtn == nil {
let btn = UIButton()
self.view.addSubview(btn)
btn.backgroundColor = UIColor.black
btn.alpha = 0.4
btn.addTarget(self, action: #selector(closeAction(sender:)), for: .touchUpInside)
btn.snp.makeConstraints { (make) in
make.top.right.bottom.left.equalTo(0)
}
bgBtn = btn
}
if btmView == nil {
let view = UIView()
view.backgroundColor = UIColor.white
btmView = view
self.view.addSubview(btmView!)
btmView!.snp.makeConstraints { (make) in
make.left.bottom.right.equalTo(0)
make.height.equalTo(240)
}
showAreaSelect(view:btmView!)
let rightBtn = UIButton()
rightBtn.setTitle("确定", for: .normal)
rightBtn.setTitleColor(UIColor(named: "蓝色字体颜色"), for: .normal)
rightBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
rightBtn.addTarget(self, action: #selector(adrSelectFinish(sender:)), for: .touchUpInside)
btmView?.addSubview(rightBtn)
rightBtn.snp.makeConstraints { (make) in
make.right.equalTo(-15)
make.top.equalTo(10)
make.height.equalTo(30)
make.width.equalTo(50)
}
let leftBtn = UIButton()
leftBtn.setTitle("取消", for: .normal)
leftBtn.setTitleColor(UIColor(named: "多选按钮字体颜色"), for: .normal)
leftBtn.titleLabel?.font = UIFont.systemFont(ofSize: 15)
leftBtn.addTarget(self, action: #selector(closeAction(sender:)), for: .touchUpInside)
btmView?.addSubview(leftBtn)
leftBtn.snp.makeConstraints { (make) in
make.left.equalTo(15)
make.top.equalTo(10)
make.height.equalTo(30)
make.width.equalTo(50)
}
}
}
var isChange = false
@objc func adrSelectFinish(sender:UIButton){
var proName = ""
var cityName = ""
var areaName = ""
cityDict["area_id"] = ""
areaDict["area_id"] = ""
cityDict["area_name"] = ""
areaDict["area_name"] = ""
proName = proDict["area_name"] as! String
if (proDict["city_list"] as! NSArray).count > 0 {
cityDict = (proDict["city_list"] as! NSArray)[cityIndex] as! [String: AnyObject]
cityName = cityDict["area_name"] as! String
if (cityDict["district_list"] as! NSArray).count > 0 {
areaDict = (cityDict["district_list"] as! NSArray)[areaIndex] as! Dictionary<String,Any>
areaName = areaDict["area_name"] as! String
}
}
if provinceIndex != tempProvince_select || cityIndex != tempCity_select || areaIndex != tempArea_select {
isChange = true
}else{
isChange = false
}
var selectAdr = proName
if cityName.count > 0 {
selectAdr = proName + "-" + cityName
if areaName.count > 0 {
selectAdr = proName + "-" + cityName + "-" + areaName
}
}
dzStr = selectAdr
bgBtn?.removeFromSuperview()
btmView?.subviews.forEach({ (view) in
view.removeFromSuperview()
})
btmView?.removeFromSuperview()
btmView = nil
bgBtn = nil
list_view.reloadData()
}
func getIndex(){
let path = Bundle.main.path(forResource: "address_new", ofType: "json")
let url = URL(fileURLWithPath: path!)
// 带throws的方法需要抛异常
do {
let data = try Data(contentsOf: url)
let jsonData = JSON(data)
print("地址文件数据",jsonData["data"])
self.addressArray = jsonData["data"].arrayObject!
// if navTitle == "编辑地址" {
for i in 0 ..< addressArray.count {
let item = addressArray[i] as! Dictionary<String,Any>
if item["area_id"] as! Int == provinceIndex {
let citys = item["city_list"] as! Array<Dictionary<String,Any>>
if citys.count == 0 {
provinceIndex = i
}
for j in 0 ..< citys.count {
let cItem = citys[j]
if cItem["area_id"] as! Int == cityIndex {
let districts = cItem["district_list"] as! Array<Dictionary<String,Any>>
if districts.count == 0 {
cityIndex = j
}
for k in 0 ..< districts.count{
let dItem = districts[k]
if dItem["area_id"] as! Int == areaIndex{
provinceIndex = i
cityIndex = j
areaIndex = k
break
}
}
}
}
}else{
provinceIndex = 0
cityIndex = 0
areaIndex = 0
}
proDict = addressArray[provinceIndex] as! Dictionary<String,Any>
// }
}
} catch let error as Error? {
print("读取本地数据出现错误!",error as Any)
}
}
//MARK: - 地址选择
var proDict:Dictionary<String,Any> = Dictionary()
var cityDict:Dictionary<String,Any> = Dictionary()
var areaDict:Dictionary<String,Any> = Dictionary()
//选择的省索引
var provinceIndex = 0
//选择的市索引
var cityIndex = 0
//选择的区(县)索引
var areaIndex = 0
//选择器
var pickerView:UIPickerView!
//所以地址数据集合
var addressArray:Array<Any> = []
var dzStr = ""
//设置选择框的列数为3列,继承于UIPickerViewDataSource协议
func numberOfComponents(in pickerView: UIPickerView) -> Int {
return 3
}
//设置选择框的行数,继承于UIPickerViewDataSource协议
func pickerView(_ pickerView: UIPickerView,
numberOfRowsInComponent component: Int) -> Int {
if component == 0 {
return self.addressArray.count
} else if component == 1 {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
return (province["city_list"]! as! NSArray).count
} else {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
if (province["city_list"] as! NSArray).count == 0 {
return 0
}
if let city = (province["city_list"] as! NSArray)[cityIndex]
as? [String: AnyObject] {
print(city["district_list"] as Any)
return (city["district_list"] as! NSArray).count
} else {
return 0
}
}
}
//设置选择框各选项的内容,继承于UIPickerViewDelegate协议
func pickerView(_ pickerView: UIPickerView, titleForRow row: Int,
forComponent component: Int) -> String? {
if component == 0 {
let rowDic = self.addressArray[row] as! Dictionary<String,Any>
return rowDic["area_name"] as? String
}else if component == 1 {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
let city = (province["city_list"] as! NSArray)[row]
as! [String: AnyObject]
return city["area_name"] as? String
}else {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
let city = (province["city_list"] as! NSArray)[cityIndex]
as! [String: AnyObject]
let area = (city["district_list"] as! NSArray)[row] as! Dictionary<String,Any>
return area["area_name"] as? String
}
}
//选中项改变事件(将在滑动停止后触发)
func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int,
inComponent component: Int) {
//根据列、行索引判断需要改变数据的区域
switch (component) {
case 0:
provinceIndex = row;
pickerView.reloadComponent(1);
pickerView.reloadComponent(2);
pickerView.selectRow(cityIndex, inComponent: 1, animated: false)
pickerView.selectRow(areaIndex, inComponent: 2, animated: false)
case 1:
cityIndex = row;
pickerView.reloadComponent(2);
pickerView.selectRow(areaIndex, inComponent: 2, animated: false)
case 2:
areaIndex = row;
default:
break;
}
}
func pickerView(_ pickerView: UIPickerView, rowHeightForComponent component: Int) -> CGFloat {
return 50
}
//自定义UIPickerView
func pickerView(_ pickerView: UIPickerView, viewForRow row: Int, forComponent component: Int, reusing view: UIView?) -> UIView {
let genderLbl = UILabel()
genderLbl.textAlignment = .center
genderLbl.font = UIFont.systemFont(ofSize: 15)
genderLbl.textColor = UIColor.init(named: "标题字颜色")
if component == 0 {
let rowDic = self.addressArray[row] as! Dictionary<String,Any>
genderLbl.text = rowDic["area_name"] as? String
}else if component == 1 {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
let city = (province["city_list"] as! NSArray)[row]
as! [String: AnyObject]
genderLbl.text = city["area_name"] as? String
}else {
let province = self.addressArray[provinceIndex] as! Dictionary<String,Any>
let city = (province["city_list"] as! NSArray)[cityIndex]
as! [String: AnyObject]
let area = (city["district_list"] as! NSArray)[row] as! Dictionary<String,Any>
genderLbl.text = area["area_name"] as? String
}
return genderLbl
}
var tempProvince_select = -1//临时省id
var tempCity_select = -1//临时市id
var tempArea_select = -1//临时区id
}
......@@ -12,6 +12,8 @@
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="DZSH_Detail_ViewController" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="btm_action_bg" destination="CZj-xH-82j" id="M7S-ek-C6P"/>
<outlet property="btm_action_view" destination="ZZe-yd-lSO" id="F5v-Ri-4nr"/>
<outlet property="list_view" destination="kaX-Nj-dzM" id="YBY-Lo-0Y8"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
......@@ -21,114 +23,164 @@
<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="EWb-bD-RPi">
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="kaX-Nj-dzM">
<rect key="frame" x="0.0" y="44" width="414" height="769"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="1Nh-6Y-cww"/>
<outlet property="delegate" destination="-1" id="we5-i2-mkZ"/>
</connections>
</tableView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tlo-ih-Itu" 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="按钮渐变色上"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="按钮渐变色下,字体颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="gradientHorizontal" value="YES"/>
</userDefinedRuntimeAttributes>
<connections>
<action selector="submit_action:" destination="-1" eventType="touchUpInside" id="Bef-6L-yLg"/>
</connections>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="CZj-xH-82j">
<rect key="frame" x="0.0" y="813" width="414" height="83"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="确认修改" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sCd-fT-s0A">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="pdL-Mg-Muo"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ZZe-yd-lSO">
<rect key="frame" x="0.0" y="813" width="414" height="49"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="LXc-5p-PRC">
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Bxc-S0-855">
<rect key="frame" x="0.0" y="0.0" width="138" height="49"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title="审核通过">
<color key="titleColor" name="蓝色字体颜色"/>
</state>
<connections>
<action selector="btm_action:" destination="-1" eventType="touchUpInside" id="lOR-Rv-VBr"/>
<action selector="btm_action:" destination="-1" eventType="touchUpInside" id="h56-hv-dwM"/>
</connections>
</button>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="zUS-61-NJQ">
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="OHM-aY-30g">
<rect key="frame" x="138" y="0.0" width="138" height="49"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title="通过,待补齐资料">
<color key="titleColor" name="蓝色字体颜色"/>
</state>
<connections>
<action selector="btm_action:" destination="-1" eventType="touchUpInside" id="5Jr-wX-E9y"/>
<action selector="btm_action:" destination="-1" eventType="touchUpInside" id="k8g-aU-Y9g"/>
</connections>
</button>
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="wVU-ra-irg">
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bff-oN-lcV">
<rect key="frame" x="276" y="0.0" width="138" height="49"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title="审核不通过">
<color key="titleColor" name="蓝色字体颜色"/>
</state>
<connections>
<action selector="btm_action:" destination="-1" eventType="touchUpInside" id="7bo-WL-48Y"/>
<action selector="btm_action:" destination="-1" eventType="touchUpInside" id="3wn-YP-QQz"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aBv-EB-JJD">
<rect key="frame" x="137" y="15.5" width="1" height="18"/>
<color key="backgroundColor" name="灰色分界线"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="f1z-by-lJ8">
<rect key="frame" x="137" y="15" width="1" height="19"/>
<color key="backgroundColor" name="虚线分界线颜色"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="GKn-8e-ms9"/>
<constraint firstAttribute="width" constant="1" id="YVY-yr-1C0"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ltd-15-StI">
<rect key="frame" x="276" y="15.5" width="1" height="18"/>
<color key="backgroundColor" name="灰色分界线"/>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SOK-H1-UO1">
<rect key="frame" x="276" y="15" width="1" height="19"/>
<color key="backgroundColor" name="虚线分界线颜色"/>
<constraints>
<constraint firstAttribute="width" constant="1" id="7hA-Io-xdu"/>
<constraint firstAttribute="width" constant="1" id="onJ-h8-Hc8"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="wVU-ra-irg" secondAttribute="trailing" id="2Ed-oK-0ld"/>
<constraint firstItem="zUS-61-NJQ" firstAttribute="height" secondItem="LXc-5p-PRC" secondAttribute="height" id="4Jy-zo-ddY"/>
<constraint firstItem="LXc-5p-PRC" firstAttribute="top" secondItem="EWb-bD-RPi" secondAttribute="top" id="8MW-Pj-7VU"/>
<constraint firstItem="wVU-ra-irg" firstAttribute="leading" secondItem="zUS-61-NJQ" secondAttribute="trailing" id="Ahk-wl-gxF"/>
<constraint firstItem="zUS-61-NJQ" firstAttribute="top" secondItem="EWb-bD-RPi" secondAttribute="top" id="HsX-FO-Aom"/>
<constraint firstItem="wVU-ra-irg" firstAttribute="width" secondItem="LXc-5p-PRC" secondAttribute="width" id="IYJ-D9-0s1"/>
<constraint firstAttribute="bottom" secondItem="zUS-61-NJQ" secondAttribute="bottom" id="LfI-pm-eWN"/>
<constraint firstItem="aBv-EB-JJD" firstAttribute="centerY" secondItem="LXc-5p-PRC" secondAttribute="centerY" id="Ovd-jE-dFq"/>
<constraint firstItem="zUS-61-NJQ" firstAttribute="leading" secondItem="LXc-5p-PRC" secondAttribute="trailing" id="PeG-Gk-3uZ"/>
<constraint firstItem="ltd-15-StI" firstAttribute="centerY" secondItem="LXc-5p-PRC" secondAttribute="centerY" id="SAs-xZ-sN3"/>
<constraint firstAttribute="bottom" secondItem="aBv-EB-JJD" secondAttribute="bottom" constant="15.5" id="YWN-h2-3Yu"/>
<constraint firstAttribute="bottom" secondItem="ltd-15-StI" secondAttribute="bottom" constant="15.5" id="Z8D-5X-7eF"/>
<constraint firstItem="ltd-15-StI" firstAttribute="top" secondItem="EWb-bD-RPi" secondAttribute="top" constant="15.5" id="eEK-rr-xhl"/>
<constraint firstItem="LXc-5p-PRC" firstAttribute="leading" secondItem="EWb-bD-RPi" secondAttribute="leading" id="ekO-7T-tsd"/>
<constraint firstItem="wVU-ra-irg" firstAttribute="top" secondItem="EWb-bD-RPi" secondAttribute="top" id="fcp-pX-UXJ"/>
<constraint firstAttribute="bottom" secondItem="wVU-ra-irg" secondAttribute="bottom" id="iOV-PW-pqe"/>
<constraint firstItem="zUS-61-NJQ" firstAttribute="width" secondItem="LXc-5p-PRC" secondAttribute="width" id="nAL-4O-TQs"/>
<constraint firstItem="aBv-EB-JJD" firstAttribute="trailing" secondItem="LXc-5p-PRC" secondAttribute="trailing" id="nAR-Qi-iEt"/>
<constraint firstItem="aBv-EB-JJD" firstAttribute="top" secondItem="EWb-bD-RPi" secondAttribute="top" constant="15.5" id="rH6-Bk-KEW"/>
<constraint firstAttribute="height" constant="49" id="uc9-bs-GAo"/>
<constraint firstItem="ltd-15-StI" firstAttribute="leading" secondItem="wVU-ra-irg" secondAttribute="leading" id="vT4-Sg-WcG"/>
<constraint firstAttribute="bottom" secondItem="LXc-5p-PRC" secondAttribute="bottom" id="zIr-3r-dIw"/>
<constraint firstItem="wVU-ra-irg" firstAttribute="height" secondItem="LXc-5p-PRC" secondAttribute="height" id="zVj-gF-hst"/>
<constraint firstAttribute="bottom" secondItem="Bxc-S0-855" secondAttribute="bottom" id="1BA-IZ-uae"/>
<constraint firstItem="bff-oN-lcV" firstAttribute="leading" secondItem="OHM-aY-30g" secondAttribute="trailing" id="3bf-Tj-ajW"/>
<constraint firstItem="SOK-H1-UO1" firstAttribute="top" secondItem="ZZe-yd-lSO" secondAttribute="top" constant="15" id="9Ip-vB-RFz"/>
<constraint firstAttribute="height" constant="49" id="ABx-QL-Ead"/>
<constraint firstItem="OHM-aY-30g" firstAttribute="leading" secondItem="Bxc-S0-855" secondAttribute="trailing" id="C7I-9M-cLw"/>
<constraint firstItem="f1z-by-lJ8" firstAttribute="trailing" secondItem="Bxc-S0-855" secondAttribute="trailing" id="Gar-Da-fmJ"/>
<constraint firstItem="OHM-aY-30g" firstAttribute="height" secondItem="Bxc-S0-855" secondAttribute="height" id="ID3-xk-TNh"/>
<constraint firstAttribute="bottom" secondItem="SOK-H1-UO1" secondAttribute="bottom" constant="15" id="If3-7e-tuQ"/>
<constraint firstItem="bff-oN-lcV" firstAttribute="top" secondItem="ZZe-yd-lSO" secondAttribute="top" id="LeZ-h2-7n9"/>
<constraint firstAttribute="trailing" secondItem="bff-oN-lcV" secondAttribute="trailing" id="RSX-Tm-YsX"/>
<constraint firstItem="OHM-aY-30g" firstAttribute="width" secondItem="Bxc-S0-855" secondAttribute="width" id="SFs-U2-ff7"/>
<constraint firstItem="OHM-aY-30g" firstAttribute="top" secondItem="ZZe-yd-lSO" secondAttribute="top" id="TuO-2F-GX8"/>
<constraint firstItem="SOK-H1-UO1" firstAttribute="leading" secondItem="bff-oN-lcV" secondAttribute="leading" id="dRj-8e-mRr"/>
<constraint firstAttribute="bottom" secondItem="bff-oN-lcV" secondAttribute="bottom" id="ext-eN-fya"/>
<constraint firstItem="bff-oN-lcV" firstAttribute="height" secondItem="Bxc-S0-855" secondAttribute="height" id="fkH-2Y-Lat"/>
<constraint firstItem="Bxc-S0-855" firstAttribute="leading" secondItem="ZZe-yd-lSO" secondAttribute="leading" id="jCH-q9-aqd"/>
<constraint firstItem="bff-oN-lcV" firstAttribute="width" secondItem="Bxc-S0-855" secondAttribute="width" id="lX7-X4-SxJ"/>
<constraint firstItem="Bxc-S0-855" firstAttribute="top" secondItem="ZZe-yd-lSO" secondAttribute="top" id="qBk-EQ-tvx"/>
<constraint firstItem="f1z-by-lJ8" firstAttribute="top" secondItem="ZZe-yd-lSO" secondAttribute="top" constant="15" id="saY-0b-bGb"/>
<constraint firstAttribute="bottom" secondItem="f1z-by-lJ8" secondAttribute="bottom" constant="15" id="wxL-RP-85Q"/>
<constraint firstAttribute="bottom" secondItem="OHM-aY-30g" secondAttribute="bottom" id="zf9-ga-DsV"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="kaX-Nj-dzM">
<rect key="frame" x="0.0" y="44" width="414" height="769"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="1Nh-6Y-cww"/>
<outlet property="delegate" destination="-1" id="we5-i2-mkZ"/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="kaX-Nj-dzM" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="374-Qi-QpB"/>
<constraint firstItem="kaX-Nj-dzM" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="EXs-4H-evQ"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="EWb-bD-RPi" secondAttribute="trailing" id="IFG-F7-D5k"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="EWb-bD-RPi" secondAttribute="bottom" id="Qyq-g4-a77"/>
<constraint firstItem="EWb-bD-RPi" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="S0o-ok-fug"/>
<constraint firstItem="EWb-bD-RPi" firstAttribute="top" secondItem="kaX-Nj-dzM" secondAttribute="bottom" id="a6b-YP-hJa"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="kaX-Nj-dzM" secondAttribute="trailing" id="htj-Si-BPu"/>
<constraint firstItem="tlo-ih-Itu" firstAttribute="top" secondItem="sCd-fT-s0A" secondAttribute="top" id="5xQ-JM-oQa"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="bottom" secondItem="sCd-fT-s0A" secondAttribute="bottom" id="C3P-7Y-z6s"/>
<constraint firstAttribute="bottom" secondItem="CZj-xH-82j" secondAttribute="bottom" id="EZ2-fG-iuy"/>
<constraint firstAttribute="bottom" secondItem="tlo-ih-Itu" secondAttribute="bottom" id="GCx-fS-5co"/>
<constraint firstItem="tlo-ih-Itu" firstAttribute="top" secondItem="ZZe-yd-lSO" secondAttribute="top" id="HK2-48-cv4"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="kaX-Nj-dzM" secondAttribute="trailing" id="Jdo-Vj-nac"/>
<constraint firstItem="kaX-Nj-dzM" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="KVf-2B-IRk"/>
<constraint firstItem="ZZe-yd-lSO" firstAttribute="bottom" secondItem="fnl-2z-Ty3" secondAttribute="bottom" id="PJF-oT-Pqy"/>
<constraint firstItem="sCd-fT-s0A" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="U0a-7K-MXw"/>
<constraint firstItem="tlo-ih-Itu" firstAttribute="top" secondItem="kaX-Nj-dzM" secondAttribute="bottom" id="UA5-t4-BJm"/>
<constraint firstItem="ZZe-yd-lSO" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="Vs7-dv-U1L"/>
<constraint firstAttribute="trailing" secondItem="CZj-xH-82j" secondAttribute="trailing" id="cML-CD-cMI"/>
<constraint firstAttribute="trailing" secondItem="tlo-ih-Itu" secondAttribute="trailing" id="dKz-M9-cK5"/>
<constraint firstItem="kaX-Nj-dzM" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="kGq-KH-RSl"/>
<constraint firstItem="tlo-ih-Itu" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="kzf-Yj-8SN"/>
<constraint firstItem="CZj-xH-82j" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="mk2-6Z-Vtl"/>
<constraint firstAttribute="trailing" secondItem="ZZe-yd-lSO" secondAttribute="trailing" id="vcF-7u-Z6t"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="sCd-fT-s0A" secondAttribute="trailing" id="yxC-4U-xAK"/>
<constraint firstItem="CZj-xH-82j" firstAttribute="top" secondItem="sCd-fT-s0A" secondAttribute="top" id="zda-5e-VVn"/>
</constraints>
<point key="canvasLocation" x="14" y="95"/>
<point key="canvasLocation" x="13.043478260869566" y="94.419642857142847"/>
</view>
</objects>
<designables>
<designable name="tlo-ih-Itu">
<size key="intrinsicContentSize" width="10" height="10"/>
</designable>
</designables>
<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 name="按钮渐变色上">
<color red="0.3880000114440918" green="0.62400001287460327" blue="0.90200001001358032" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="按钮渐变色下,字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="蓝色字体颜色">
<color red="0.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="虚线分界线颜色">
<color red="0.72549019607843135" green="0.72549019607843135" blue="0.72549019607843135" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
......
//
// DZSH_Two_Btn_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/3/17.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol DZSH_Two_Btn_Cell_Delegate {
func DZSH_Two_Btn_Cell_Click_Action(select:Int,cell:DZSH_Two_Btn_Cell)
}
class DZSH_Two_Btn_Cell: UITableViewCell {
@IBAction func click_action(_ sender: UIButton) {
if sender.tag == 0 {
rightBtn.isSelected = true
leftBtn.isSelected = false
}else{
leftBtn.isSelected = true
rightBtn.isSelected = false
}
delegate?.DZSH_Two_Btn_Cell_Click_Action(select:sender.tag,cell: self)
}
var delegate:DZSH_Two_Btn_Cell_Delegate?
@IBOutlet weak var leftBtn: UIButton!
@IBOutlet weak var rightBtn: UIButton!
@IBOutlet weak var nameLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="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="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="DZSH_Two_Btn_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<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="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="V5J-6Q-gAQ">
<rect key="frame" x="15" y="43" width="305" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="S3X-m1-ffR"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NHt-er-qp0">
<rect key="frame" x="15" y="0.0" width="305" height="43"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Y4g-Np-zZ3">
<rect key="frame" x="245" y="12.5" width="60" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title="Button" image="daixuan">
<color key="titleColor" name="标题字颜色"/>
</state>
<state key="selected" image="yuxuan"/>
<connections>
<action selector="click_action:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="byD-J7-D0q"/>
</connections>
</button>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ouX-KF-XZm">
<rect key="frame" x="135" y="12.5" width="60" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title="Button" image="daixuan">
<color key="titleColor" name="标题字颜色"/>
</state>
<state key="selected" image="yuxuan"/>
<connections>
<action selector="click_action:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="7U5-DM-QlY"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="Y4g-Np-zZ3" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="2e4-ZL-YEl"/>
<constraint firstItem="NHt-er-qp0" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="4Vn-Lc-NYt"/>
<constraint firstAttribute="bottom" secondItem="V5J-6Q-gAQ" secondAttribute="bottom" id="775-in-gVH"/>
<constraint firstAttribute="trailing" secondItem="V5J-6Q-gAQ" secondAttribute="trailing" id="HSe-gY-rBY"/>
<constraint firstItem="ouX-KF-XZm" firstAttribute="centerY" secondItem="Y4g-Np-zZ3" secondAttribute="centerY" id="PMp-3z-xNF"/>
<constraint firstItem="V5J-6Q-gAQ" firstAttribute="top" secondItem="NHt-er-qp0" secondAttribute="bottom" id="fav-vc-KGa"/>
<constraint firstItem="V5J-6Q-gAQ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="i6d-vH-fNb"/>
<constraint firstAttribute="trailing" secondItem="Y4g-Np-zZ3" secondAttribute="trailing" constant="15" id="iyg-AM-WHT"/>
<constraint firstItem="NHt-er-qp0" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="kqn-4y-I4k"/>
<constraint firstAttribute="trailing" secondItem="NHt-er-qp0" secondAttribute="trailing" id="lKP-Pg-bAF"/>
<constraint firstItem="Y4g-Np-zZ3" firstAttribute="leading" secondItem="ouX-KF-XZm" secondAttribute="trailing" constant="50" id="xHL-1j-eRX"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="leftBtn" destination="ouX-KF-XZm" id="3SC-ap-rWh"/>
<outlet property="nameLbl" destination="NHt-er-qp0" id="M7f-6P-VXU"/>
<outlet property="rightBtn" destination="Y4g-Np-zZ3" id="E1M-mK-7Hc"/>
</connections>
<point key="canvasLocation" x="142" y="98"/>
</tableViewCell>
</objects>
<resources>
<image name="daixuan" width="19" height="19"/>
<image name="yuxuan" width="19" height="19"/>
<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>
......@@ -7,20 +7,33 @@
//
import UIKit
protocol DZSH_UPLOAD_IMG_CELL_Delegate {
func DZSH_UPLOAD_IMG_CELL_Btn_Action(select:Int,cell:DZSH_UPLOAD_IMG_CELL)
func DZSH_UPLOAD_IMG_CELL_Input(str:String,cell:DZSH_UPLOAD_IMG_CELL)
}
class DZSH_UPLOAD_IMG_CELL: UITableViewCell {
@IBAction func btn_click(_ sender: UIButton) {
delegate?.DZSH_UPLOAD_IMG_CELL_Btn_Action(select: sender.tag, cell: self)
}
var delegate:DZSH_UPLOAD_IMG_CELL_Delegate?
@IBOutlet weak var titleLbl: UILabel!
@IBOutlet weak var input_tf: UITextField!
@IBOutlet weak var rightBtn: UIButton!
@IBOutlet weak var leftBtn: UIButton!
@IBOutlet weak var img_view: UIImageView!
@IBOutlet weak var nameLbl: UILabel!
@IBOutlet weak var bottom_lbl: UILabel!
@IBOutlet weak var img_height: NSLayoutConstraint!
@IBOutlet weak var img_width: NSLayoutConstraint!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
input_tf.addTarget(self, action: #selector(textChange(tf:)), for: .allEditingEvents)
// Initialization code
}
@objc func textChange(tf:UITextField){
delegate?.DZSH_UPLOAD_IMG_CELL_Input(str: tf.text!, cell: self)
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
......
......@@ -12,64 +12,111 @@
<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="DZSH_UPLOAD_IMG_CELL" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="193.5"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="237"/>
<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="193.5"/>
<rect key="frame" x="0.0" y="0.0" width="375" height="237"/>
<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="zbd-li-RCQ">
<rect key="frame" x="15" y="15" width="26" height="18.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="店铺logo/简称" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zbd-li-RCQ">
<rect key="frame" x="15" y="15" width="85" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="shangchuantupian" translatesAutoresizingMaskIntoConstraints="NO" id="8TI-5w-kaC">
<rect key="frame" x="132.5" y="43.5" width="110" height="110"/>
<rect key="frame" x="132.5" y="85.5" width="110" height="110"/>
<constraints>
<constraint firstAttribute="height" constant="110" id="FQn-Tj-OvW"/>
<constraint firstAttribute="width" constant="110" id="OS5-6D-LA5"/>
<constraint firstAttribute="height" constant="110" id="Rk4-Ab-dYv"/>
<constraint firstAttribute="width" constant="110" id="nYP-Xr-tpn"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="建议上传800*800比例的logo图" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gSK-kC-eaq">
<rect key="frame" x="110" y="163.5" width="155.5" height="15.5"/>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="建议上传180*180以上,比例1:1的美图" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gSK-kC-eaq">
<rect key="frame" x="95" y="205.5" width="185" height="15.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="11"/>
<color key="textColor" name="#999999"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tfp-BX-KH9">
<rect key="frame" x="15" y="192.5" width="360" height="1"/>
<rect key="frame" x="15" y="236" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="jRz-OL-Jzm"/>
<constraint firstAttribute="height" constant="1" id="kmU-KK-e4j"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FB4-0b-g7e">
<rect key="frame" x="306" y="15" width="54" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title=" 简称" image="daixuan">
<color key="titleColor" name="标题字颜色"/>
</state>
<state key="selected" image="yuxuan"/>
<connections>
<action selector="btn_click:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="8Tj-uq-Yoc"/>
</connections>
</button>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="w6u-wS-zaH">
<rect key="frame" x="202" y="15" width="54" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title=" logo" image="daixuan">
<color key="titleColor" name="标题字颜色"/>
</state>
<state key="selected" image="yuxuan"/>
<connections>
<action selector="btn_click:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="crn-qh-H76"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="店铺logo" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4HF-Qd-NAE">
<rect key="frame" x="15" y="59" width="52" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="right" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="ZS1-82-fZT">
<rect key="frame" x="82" y="59.5" width="278" height="17.5"/>
<color key="textColor" name="标题字颜色"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<constraints>
<constraint firstItem="gSK-kC-eaq" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="2a7-Dd-IbN"/>
<constraint firstItem="8TI-5w-kaC" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="Vse-cO-mFc"/>
<constraint firstItem="zbd-li-RCQ" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="Wkh-0E-iBH"/>
<constraint firstItem="8TI-5w-kaC" firstAttribute="top" secondItem="zbd-li-RCQ" secondAttribute="bottom" constant="10" id="WrD-39-ou1"/>
<constraint firstItem="gSK-kC-eaq" firstAttribute="top" secondItem="8TI-5w-kaC" secondAttribute="bottom" constant="10" id="XLo-0b-5t8"/>
<constraint firstItem="zbd-li-RCQ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="ZGQ-FZ-Kte"/>
<constraint firstAttribute="trailing" secondItem="tfp-BX-KH9" secondAttribute="trailing" id="qEg-CG-zEj"/>
<constraint firstAttribute="bottom" secondItem="tfp-BX-KH9" secondAttribute="bottom" id="rWX-pv-gp3"/>
<constraint firstItem="tfp-BX-KH9" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="uCH-JE-msD"/>
<constraint firstAttribute="trailing" secondItem="ZS1-82-fZT" secondAttribute="trailing" constant="15" id="1VI-aM-vCj"/>
<constraint firstItem="4HF-Qd-NAE" firstAttribute="top" secondItem="zbd-li-RCQ" secondAttribute="bottom" constant="25" id="2sX-cp-k9I"/>
<constraint firstAttribute="bottom" secondItem="tfp-BX-KH9" secondAttribute="bottom" id="2zZ-KZ-0gF"/>
<constraint firstItem="tfp-BX-KH9" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="3hw-nI-Dje"/>
<constraint firstItem="ZS1-82-fZT" firstAttribute="leading" secondItem="4HF-Qd-NAE" secondAttribute="trailing" constant="15" id="4t9-h5-bvN"/>
<constraint firstAttribute="trailing" secondItem="tfp-BX-KH9" secondAttribute="trailing" id="AWt-eR-nrG"/>
<constraint firstItem="4HF-Qd-NAE" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Ks9-sn-ecl"/>
<constraint firstItem="w6u-wS-zaH" firstAttribute="centerY" secondItem="FB4-0b-g7e" secondAttribute="centerY" id="OEw-8Z-Iid"/>
<constraint firstItem="FB4-0b-g7e" firstAttribute="leading" secondItem="w6u-wS-zaH" secondAttribute="trailing" constant="50" id="QCL-Fy-AQe"/>
<constraint firstItem="gSK-kC-eaq" firstAttribute="top" secondItem="8TI-5w-kaC" secondAttribute="bottom" constant="10" id="QgE-kh-Cz3"/>
<constraint firstItem="ZS1-82-fZT" firstAttribute="centerY" secondItem="4HF-Qd-NAE" secondAttribute="centerY" id="YWg-XS-L3n"/>
<constraint firstItem="zbd-li-RCQ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Ycn-Dj-bKS"/>
<constraint firstItem="tfp-BX-KH9" firstAttribute="top" secondItem="gSK-kC-eaq" secondAttribute="bottom" constant="15" id="ahu-Q3-w6p"/>
<constraint firstItem="gSK-kC-eaq" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="cgH-vj-T3J"/>
<constraint firstItem="8TI-5w-kaC" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="gg7-6A-B1g"/>
<constraint firstAttribute="trailing" secondItem="FB4-0b-g7e" secondAttribute="trailing" constant="15" id="iQr-bw-RYC"/>
<constraint firstItem="FB4-0b-g7e" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="itz-iB-0SF"/>
<constraint firstItem="zbd-li-RCQ" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="n4C-BV-mz9"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="bottom_lbl" destination="gSK-kC-eaq" id="yHZ-XC-5Yb"/>
<outlet property="img_height" destination="FQn-Tj-OvW" id="ykE-1f-Oxn"/>
<outlet property="img_view" destination="8TI-5w-kaC" id="uYD-QZ-k2g"/>
<outlet property="img_width" destination="OS5-6D-LA5" id="Nv0-tK-sSc"/>
<outlet property="input_tf" destination="ZS1-82-fZT" id="UBS-Nx-Ihp"/>
<outlet property="leftBtn" destination="w6u-wS-zaH" id="HIm-Ca-Agg"/>
<outlet property="nameLbl" destination="zbd-li-RCQ" id="K4j-av-sos"/>
<outlet property="rightBtn" destination="FB4-0b-g7e" id="3J5-Bu-dfQ"/>
<outlet property="titleLbl" destination="4HF-Qd-NAE" id="Aj9-aS-3PK"/>
</connections>
<point key="canvasLocation" x="141" y="99"/>
</tableViewCell>
</objects>
<resources>
<image name="daixuan" width="19" height="19"/>
<image name="shangchuantupian" width="90" height="90"/>
<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"/>
</namedColor>
......
//
// DZSH_Upload_Cer_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/3/17.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class DZSH_Upload_Cer_Cell: UITableViewCell {
@IBOutlet weak var img_view: UIImageView!
@IBOutlet weak var nameLbl: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="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="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="DZSH_Upload_Cer_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="183.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="183.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Tgn-zE-RZe">
<rect key="frame" x="15" y="15" width="33" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="upload_1" translatesAutoresizingMaskIntoConstraints="NO" id="HUt-8u-7iR">
<rect key="frame" x="75" y="43.5" width="225" height="125"/>
<constraints>
<constraint firstAttribute="width" constant="225" id="azg-mK-lWG"/>
<constraint firstAttribute="height" constant="125" id="xhU-gg-5xK"/>
</constraints>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="trD-LY-qDC">
<rect key="frame" x="15" y="182.5" width="360" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="and-Va-83Q"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="trD-LY-qDC" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="E1U-q1-d9y"/>
<constraint firstItem="HUt-8u-7iR" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="IFR-uq-OqC"/>
<constraint firstItem="Tgn-zE-RZe" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="MXC-4F-JY3"/>
<constraint firstAttribute="bottom" secondItem="trD-LY-qDC" secondAttribute="bottom" id="ZO1-0v-1pJ"/>
<constraint firstAttribute="bottom" secondItem="HUt-8u-7iR" secondAttribute="bottom" constant="15" id="aeR-Rp-1hB"/>
<constraint firstItem="Tgn-zE-RZe" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="b6H-0J-7XP"/>
<constraint firstAttribute="trailing" secondItem="trD-LY-qDC" secondAttribute="trailing" id="pIw-wS-eet"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="img_view" destination="HUt-8u-7iR" id="CNw-fC-F4t"/>
<outlet property="nameLbl" destination="Tgn-zE-RZe" id="g6M-kp-2Cd"/>
</connections>
<point key="canvasLocation" x="141" y="91"/>
</tableViewCell>
</objects>
<resources>
<image name="upload_1" width="225" height="125"/>
<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>
//
// Location_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/3/17.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol Location_Cell_Delegate {
func Location_Cell_action()
func Location_Cell_input_tf(idx:Int,str:String)
}
class Location_Cell: UITableViewCell {
var delegate:Location_Cell_Delegate?
@IBAction func get_loc_action(_ sender: Any) {
delegate?.Location_Cell_action()
}
@IBOutlet weak var lng_tf: UITextField!
@IBOutlet weak var lat_tf: UITextField!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
self.selectionStyle = .none
lng_tf.addTarget(self, action: #selector(textChange(tf:)), for: .allEditingEvents)
lng_tf.tag = 1
lat_tf.addTarget(self, action: #selector(textChange(tf:)), for: .allEditingEvents)
lat_tf.tag = 0
}
@objc func textChange(tf:UITextField){
delegate?.Location_Cell_input_tf(idx: tf.tag, str: tf.text!)
}
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="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="Location_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="132.5"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
<rect key="frame" x="0.0" y="0.0" width="375" height="132.5"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="经度" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BAi-qa-1cK">
<rect key="frame" x="15" y="15" width="26" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="纬度" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wpK-eL-ekr">
<rect key="frame" x="15" y="53.5" width="26" height="18.5"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请填写维度" textAlignment="right" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="oOH-Bk-z0h">
<rect key="frame" x="56" y="14.5" width="304" height="20"/>
<color key="textColor" name="标题字颜色"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<textInputTraits key="textInputTraits" keyboardType="decimalPad"/>
</textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请填写维度" textAlignment="right" minimumFontSize="17" clearButtonMode="whileEditing" translatesAutoresizingMaskIntoConstraints="NO" id="oKc-KB-ufh">
<rect key="frame" x="56" y="53" width="304" height="20"/>
<color key="textColor" name="标题字颜色"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<textInputTraits key="textInputTraits" keyboardType="decimalPad"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0AS-Ul-YQk">
<rect key="frame" x="140" y="87" width="95" height="30.5"/>
<color key="backgroundColor" name="蓝色字体颜色"/>
<constraints>
<constraint firstAttribute="width" constant="95" id="HBU-xc-QfP"/>
<constraint firstAttribute="height" constant="30.5" id="yTa-Ko-HdA"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="获取经纬度">
<color key="titleColor" red="0.98039215690000003" green="1" blue="1" alpha="1" colorSpace="calibratedRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="2"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="get_loc_action:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="HtA-Mv-50z"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="BAi-qa-1cK" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="0r8-68-8qa"/>
<constraint firstItem="oOH-Bk-z0h" firstAttribute="centerY" secondItem="BAi-qa-1cK" secondAttribute="centerY" id="31F-0X-zCj"/>
<constraint firstAttribute="trailing" secondItem="oKc-KB-ufh" secondAttribute="trailing" constant="15" id="7ZF-69-Icf"/>
<constraint firstAttribute="trailing" secondItem="oOH-Bk-z0h" secondAttribute="trailing" constant="15" id="AK2-W2-j2K"/>
<constraint firstItem="oKc-KB-ufh" firstAttribute="leading" secondItem="wpK-eL-ekr" secondAttribute="trailing" constant="15" id="AcA-m2-wdp"/>
<constraint firstItem="wpK-eL-ekr" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="JYr-6X-MKk"/>
<constraint firstItem="oKc-KB-ufh" firstAttribute="centerY" secondItem="wpK-eL-ekr" secondAttribute="centerY" id="KYx-zF-6Yq"/>
<constraint firstItem="BAi-qa-1cK" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="P6A-pa-nsF"/>
<constraint firstItem="oOH-Bk-z0h" firstAttribute="leading" secondItem="BAi-qa-1cK" secondAttribute="trailing" constant="15" id="YqB-Lq-bsw"/>
<constraint firstAttribute="bottom" secondItem="0AS-Ul-YQk" secondAttribute="bottom" constant="15" id="hEZ-qw-c2a"/>
<constraint firstItem="wpK-eL-ekr" firstAttribute="top" secondItem="BAi-qa-1cK" secondAttribute="bottom" constant="20" id="hVM-He-g6l"/>
<constraint firstItem="0AS-Ul-YQk" firstAttribute="centerX" secondItem="H2p-sc-9uM" secondAttribute="centerX" id="kWb-nX-zKh"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="lat_tf" destination="oOH-Bk-z0h" id="bb6-vS-UMX"/>
<outlet property="lng_tf" destination="oKc-KB-ufh" id="pbG-as-AeV"/>
</connections>
<point key="canvasLocation" x="142" y="98"/>
</tableViewCell>
</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.27843137254901962" green="0.5607843137254902" blue="0.8901960784313725" 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="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>
......@@ -40,49 +41,50 @@
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="小面包车" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="h7r-wa-Gms">
<rect key="frame" x="307" y="35" width="53" height="19"/>
<rect key="frame" x="308" y="35" width="52" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题背景色"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="纸质回单" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ORs-MY-Kik">
<rect key="frame" x="307" y="62" width="53" height="19"/>
<rect key="frame" x="308" y="62" width="52" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题背景色"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="代收货款" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yq5-ip-1PT">
<rect key="frame" x="244" y="62" width="53" height="19"/>
<rect key="frame" x="246" y="62" width="52" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题背景色"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="返程" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="08U-Ha-EC7">
<rect key="frame" x="207.5" y="62" width="26.5" height="19"/>
<rect key="frame" x="210" y="62" width="26" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题背景色"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="海运入仓" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Dpv-Pj-Ny6">
<rect key="frame" x="145" y="62" width="52.5" height="19"/>
<rect key="frame" x="148" y="62" width="52" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题背景色"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="小推车" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5dr-22-oZC">
<rect key="frame" x="95.5" y="62" width="39.5" height="19"/>
<rect key="frame" x="99" y="62" width="39" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题背景色"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="拍照回单" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BzW-hw-Icj">
<rect key="frame" x="33" y="62" width="52.5" height="19"/>
<rect key="frame" x="37" y="62" width="52" height="19"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<color key="textColor" name="标题背景色"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="ORs-MY-Kik" firstAttribute="leading" secondItem="yq5-ip-1PT" secondAttribute="trailing" constant="10" id="3Om-M1-NIZ"/>
<constraint firstItem="BzW-hw-Icj" firstAttribute="centerY" secondItem="5dr-22-oZC" secondAttribute="centerY" id="7zL-zN-dHh"/>
......@@ -104,7 +106,6 @@
<constraint firstItem="Dpv-Pj-Ny6" firstAttribute="leading" secondItem="5dr-22-oZC" secondAttribute="trailing" constant="10" id="yOD-mg-Q7s"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<viewLayoutGuide key="safeArea" id="vUN-kp-3ea"/>
<point key="canvasLocation" x="-517" y="-84"/>
</view>
</objects>
......@@ -115,5 +116,8 @@
<namedColor name="标题背景色">
<color red="1" green="0.68999999761581421" blue="0.47099998593330383" 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