Commit 2a4ba4b7 authored by 刘俊宏's avatar 刘俊宏

同上

parent 3fdc2b39
...@@ -529,6 +529,10 @@ ...@@ -529,6 +529,10 @@
F95D9B522448530E0080D6E3 /* GeliAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F95D9B512448530E0080D6E3 /* GeliAlertView.swift */; }; F95D9B522448530E0080D6E3 /* GeliAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F95D9B512448530E0080D6E3 /* GeliAlertView.swift */; };
F95D9CA424493E840080D6E3 /* ShopInfoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F95D9CA224493E840080D6E3 /* ShopInfoViewController.swift */; }; F95D9CA424493E840080D6E3 /* ShopInfoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F95D9CA224493E840080D6E3 /* ShopInfoViewController.swift */; };
F95D9CA524493E840080D6E3 /* ShopInfoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F95D9CA324493E840080D6E3 /* ShopInfoViewController.xib */; }; F95D9CA524493E840080D6E3 /* ShopInfoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F95D9CA324493E840080D6E3 /* ShopInfoViewController.xib */; };
F961153324E22BA700EB3458 /* OtherInfoTextViewTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F961153124E22BA700EB3458 /* OtherInfoTextViewTableViewCell.swift */; };
F961153424E22BA700EB3458 /* OtherInfoTextViewTableViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F961153224E22BA700EB3458 /* OtherInfoTextViewTableViewCell.xib */; };
F961153724E22E0700EB3458 /* HuolalaCancelViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = F961153524E22E0700EB3458 /* HuolalaCancelViewController.swift */; };
F961153824E22E0700EB3458 /* HuolalaCancelViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = F961153624E22E0700EB3458 /* HuolalaCancelViewController.xib */; };
F961D264244FD744007FBE70 /* SearchBarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F961D263244FD744007FBE70 /* SearchBarView.swift */; }; F961D264244FD744007FBE70 /* SearchBarView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F961D263244FD744007FBE70 /* SearchBarView.swift */; };
F961D26924500550007FBE70 /* HeaderSelectView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F961D26824500550007FBE70 /* HeaderSelectView.xib */; }; F961D26924500550007FBE70 /* HeaderSelectView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F961D26824500550007FBE70 /* HeaderSelectView.xib */; };
F961D26B24500FF6007FBE70 /* HeaderSelectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F961D26A24500FF6007FBE70 /* HeaderSelectView.swift */; }; F961D26B24500FF6007FBE70 /* HeaderSelectView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F961D26A24500FF6007FBE70 /* HeaderSelectView.swift */; };
...@@ -1207,6 +1211,10 @@ ...@@ -1207,6 +1211,10 @@
F95D9B512448530E0080D6E3 /* GeliAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeliAlertView.swift; sourceTree = "<group>"; }; F95D9B512448530E0080D6E3 /* GeliAlertView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeliAlertView.swift; sourceTree = "<group>"; };
F95D9CA224493E840080D6E3 /* ShopInfoViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShopInfoViewController.swift; sourceTree = "<group>"; }; F95D9CA224493E840080D6E3 /* ShopInfoViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShopInfoViewController.swift; sourceTree = "<group>"; };
F95D9CA324493E840080D6E3 /* ShopInfoViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ShopInfoViewController.xib; sourceTree = "<group>"; }; F95D9CA324493E840080D6E3 /* ShopInfoViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = ShopInfoViewController.xib; sourceTree = "<group>"; };
F961153124E22BA700EB3458 /* OtherInfoTextViewTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OtherInfoTextViewTableViewCell.swift; sourceTree = "<group>"; };
F961153224E22BA700EB3458 /* OtherInfoTextViewTableViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = OtherInfoTextViewTableViewCell.xib; sourceTree = "<group>"; };
F961153524E22E0700EB3458 /* HuolalaCancelViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HuolalaCancelViewController.swift; sourceTree = "<group>"; };
F961153624E22E0700EB3458 /* HuolalaCancelViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HuolalaCancelViewController.xib; sourceTree = "<group>"; };
F961D263244FD744007FBE70 /* SearchBarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchBarView.swift; sourceTree = "<group>"; }; F961D263244FD744007FBE70 /* SearchBarView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SearchBarView.swift; sourceTree = "<group>"; };
F961D26824500550007FBE70 /* HeaderSelectView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HeaderSelectView.xib; sourceTree = "<group>"; }; F961D26824500550007FBE70 /* HeaderSelectView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = HeaderSelectView.xib; sourceTree = "<group>"; };
F961D26A24500FF6007FBE70 /* HeaderSelectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeaderSelectView.swift; sourceTree = "<group>"; }; F961D26A24500FF6007FBE70 /* HeaderSelectView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = HeaderSelectView.swift; sourceTree = "<group>"; };
...@@ -2469,6 +2477,8 @@ ...@@ -2469,6 +2477,8 @@
F9B9FAC224DE3BA200ACDC8F /* LalamoveBillTableViewCell.xib */, F9B9FAC224DE3BA200ACDC8F /* LalamoveBillTableViewCell.xib */,
F9B9FAC524DE409300ACDC8F /* UpBillDataTableViewCell.swift */, F9B9FAC524DE409300ACDC8F /* UpBillDataTableViewCell.swift */,
F9B9FAC624DE409300ACDC8F /* UpBillDataTableViewCell.xib */, F9B9FAC624DE409300ACDC8F /* UpBillDataTableViewCell.xib */,
F961153124E22BA700EB3458 /* OtherInfoTextViewTableViewCell.swift */,
F961153224E22BA700EB3458 /* OtherInfoTextViewTableViewCell.xib */,
); );
path = Cell; path = Cell;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -2496,6 +2506,8 @@ ...@@ -2496,6 +2506,8 @@
F932F9E124E0F8D500F57A10 /* 取消订单 */ = { F932F9E124E0F8D500F57A10 /* 取消订单 */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
F961153524E22E0700EB3458 /* HuolalaCancelViewController.swift */,
F961153624E22E0700EB3458 /* HuolalaCancelViewController.xib */,
); );
path = "取消订单"; path = "取消订单";
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -3060,9 +3072,9 @@ ...@@ -3060,9 +3072,9 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
F9D44E8B24CBDC2600FBD8DB /* TestViewController.swift */, F9D44E8B24CBDC2600FBD8DB /* TestViewController.swift */,
F9D44E9124CBE66E00FBD8DB /* ToFormChangeView.xib */,
F9D44E8D24CBDDD000FBD8DB /* ToFormChangeTableViewCell.swift */, F9D44E8D24CBDDD000FBD8DB /* ToFormChangeTableViewCell.swift */,
F9D44E8E24CBDDD000FBD8DB /* ToFormChangeTableViewCell.xib */, F9D44E8E24CBDDD000FBD8DB /* ToFormChangeTableViewCell.xib */,
F9D44E9124CBE66E00FBD8DB /* ToFormChangeView.xib */,
); );
path = "调整地址"; path = "调整地址";
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -3249,6 +3261,7 @@ ...@@ -3249,6 +3261,7 @@
E0F97B0424512299001BD600 /* GLAlertSelectView.xib in Resources */, E0F97B0424512299001BD600 /* GLAlertSelectView.xib in Resources */,
F9023F6E2449A9B100DD5A63 /* TitleAndTFCell.xib in Resources */, F9023F6E2449A9B100DD5A63 /* TitleAndTFCell.xib in Resources */,
F94A315424626D7800FEC38E /* WorkCViewController.xib in Resources */, F94A315424626D7800FEC38E /* WorkCViewController.xib in Resources */,
F961153824E22E0700EB3458 /* HuolalaCancelViewController.xib in Resources */,
E042F7392452766100CDFA12 /* AdressSelectCell.xib in Resources */, E042F7392452766100CDFA12 /* AdressSelectCell.xib in Resources */,
E0F8E91C248737F100817A08 /* NewOnlyRKCell.xib in Resources */, E0F8E91C248737F100817A08 /* NewOnlyRKCell.xib in Resources */,
E013D7892484B1B90092DE46 /* CRKXiangQVC.xib in Resources */, E013D7892484B1B90092DE46 /* CRKXiangQVC.xib in Resources */,
...@@ -3361,6 +3374,7 @@ ...@@ -3361,6 +3374,7 @@
E00ACBEC2490D6C800128052 /* YDLBVc.xib in Resources */, E00ACBEC2490D6C800128052 /* YDLBVc.xib in Resources */,
F90F881F24C8233D0050EF02 /* CityListViewController.xib in Resources */, F90F881F24C8233D0050EF02 /* CityListViewController.xib in Resources */,
E013D78D2484CAFC0092DE46 /* CRKBtnCell.xib in Resources */, E013D78D2484CAFC0092DE46 /* CRKBtnCell.xib in Resources */,
F961153424E22BA700EB3458 /* OtherInfoTextViewTableViewCell.xib in Resources */,
E0A2E82C24555D8600D6DB34 /* KuCunXiangQingCell.xib in Resources */, E0A2E82C24555D8600D6DB34 /* KuCunXiangQingCell.xib in Resources */,
E020632D246CDD3F007A40C4 /* OrderDViewFooterView.xib in Resources */, E020632D246CDD3F007A40C4 /* OrderDViewFooterView.xib in Resources */,
E02392072490819600C4C632 /* CGDListCell.xib in Resources */, E02392072490819600C4C632 /* CGDListCell.xib in Resources */,
...@@ -3731,6 +3745,7 @@ ...@@ -3731,6 +3745,7 @@
E0D4165F24482AAF008DCAB4 /* AccountViewController.swift in Sources */, E0D4165F24482AAF008DCAB4 /* AccountViewController.swift in Sources */,
F950FDB32451820D00C40530 /* TitleAndSelCalendarView.swift in Sources */, F950FDB32451820D00C40530 /* TitleAndSelCalendarView.swift in Sources */,
F95A9EED24558E3D00867849 /* ChangeGoodsPriceVC.swift in Sources */, F95A9EED24558E3D00867849 /* ChangeGoodsPriceVC.swift in Sources */,
F961153324E22BA700EB3458 /* OtherInfoTextViewTableViewCell.swift in Sources */,
E00E48BE2457BAC700F16545 /* XuanZeShangPinCell.swift in Sources */, E00E48BE2457BAC700F16545 /* XuanZeShangPinCell.swift in Sources */,
E042F734245274F200CDFA12 /* YunDanLieBiaoCell.swift in Sources */, E042F734245274F200CDFA12 /* YunDanLieBiaoCell.swift in Sources */,
F94A314F24625AFA00FEC38E /* GoodsUpDataModel.swift in Sources */, F94A314F24625AFA00FEC38E /* GoodsUpDataModel.swift in Sources */,
...@@ -3786,6 +3801,7 @@ ...@@ -3786,6 +3801,7 @@
E007B1DB248F8F57004D14CC /* PurchaseInterface.swift in Sources */, E007B1DB248F8F57004D14CC /* PurchaseInterface.swift in Sources */,
F956D5AD246A2D9C003FF510 /* LMNLine.m in Sources */, F956D5AD246A2D9C003FF510 /* LMNLine.m in Sources */,
E0CC848724823EC1009B1FE9 /* CRKCell.swift in Sources */, E0CC848724823EC1009B1FE9 /* CRKCell.swift in Sources */,
F961153724E22E0700EB3458 /* HuolalaCancelViewController.swift in Sources */,
E088CC8D24470BF0000DAA8A /* CodeView.swift in Sources */, E088CC8D24470BF0000DAA8A /* CodeView.swift in Sources */,
E01EA1A4245A60E000F019D5 /* XiaDanChengGongViewController.swift in Sources */, E01EA1A4245A60E000F019D5 /* XiaDanChengGongViewController.swift in Sources */,
F94A314D2462582F00FEC38E /* GeneralInfoModel.swift in Sources */, F94A314D2462582F00FEC38E /* GeneralInfoModel.swift in Sources */,
......
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
"color-space" : "srgb", "color-space" : "srgb",
"components" : { "components" : {
"alpha" : "1.000", "alpha" : "1.000",
"blue" : "237", "blue" : "0xED",
"green" : "231", "green" : "0xE7",
"red" : "233" "red" : "0xE9"
} }
}, },
"idiom" : "universal" "idiom" : "universal"
......
//
// OtherInfoTextViewTableViewCell.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/8/11.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class OtherInfoTextViewTableViewCell: UITableViewCell,UITextViewDelegate {
@IBOutlet weak var selectBtn: UIButton!
@IBOutlet weak var textCountLbl: UILabel!
@IBOutlet weak var textView: UITextView!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code]
textView.delegate = self
}
@IBAction func selectAction(_ sender: UIButton) {
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {
textCountLbl.text = "(\(textView.text.count)/200)"
if (textView.text.count == 200)
{
textView.text = textView.text.subString(start: 0, length: 200)
}
return true
}
func textViewDidChange(_ textView: UITextView) {
if textView.markedTextRange == nil {
if textView.text.count > 200 {
textView.text = textView.text.subString(start: 0, length: 200)
}
}
}
}
<?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">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<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" rowHeight="182" id="KGk-i7-Jjw" customClass="OtherInfoTextViewTableViewCell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="476" height="182"/>
<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="476" height="182"/>
<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="tSR-kG-qOO">
<rect key="frame" x="15" y="15" width="27" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="(0/200)" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="15H-Lc-ErQ">
<rect key="frame" x="45" y="16.5" width="43.5" height="14.5"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" name="灰色字体颜色"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="XeS-lF-UgT">
<rect key="frame" x="15" y="46" width="446" height="116"/>
<subviews>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="e6f-gU-5ea">
<rect key="frame" x="10" y="10" width="426" height="96"/>
<color key="backgroundColor" name="搜索框背景色"/>
<color key="textColor" name="灰色字体颜色"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
</textView>
</subviews>
<color key="backgroundColor" name="搜索框背景色"/>
<constraints>
<constraint firstAttribute="height" constant="116" id="Bj9-OB-Lus"/>
<constraint firstAttribute="trailing" secondItem="e6f-gU-5ea" secondAttribute="trailing" constant="10" id="QLe-fm-Yl4"/>
<constraint firstAttribute="bottom" secondItem="e6f-gU-5ea" secondAttribute="bottom" constant="10" id="Zzi-hm-LO5"/>
<constraint firstItem="e6f-gU-5ea" firstAttribute="top" secondItem="XeS-lF-UgT" secondAttribute="top" constant="10" id="a6T-AA-2Ql"/>
<constraint firstItem="e6f-gU-5ea" firstAttribute="leading" secondItem="XeS-lF-UgT" secondAttribute="leading" constant="10" id="eG1-IJ-4XG"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="2eh-b7-Xdk">
<rect key="frame" x="442" y="12" width="19" height="22"/>
<state key="normal" image="daixuan"/>
<connections>
<action selector="selectAction:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="qmf-VV-Chi"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstAttribute="right" secondItem="XeS-lF-UgT" secondAttribute="right" constant="15" id="0va-Uc-rRZ"/>
<constraint firstItem="2eh-b7-Xdk" firstAttribute="centerY" secondItem="tSR-kG-qOO" secondAttribute="centerY" id="1Fa-zR-EuJ"/>
<constraint firstAttribute="trailing" secondItem="2eh-b7-Xdk" secondAttribute="trailing" constant="15" id="DcL-Zr-2fU"/>
<constraint firstItem="15H-Lc-ErQ" firstAttribute="leading" secondItem="tSR-kG-qOO" secondAttribute="trailing" constant="3" id="NsT-9x-EU8"/>
<constraint firstItem="XeS-lF-UgT" firstAttribute="left" secondItem="H2p-sc-9uM" secondAttribute="left" constant="15" id="Rka-4h-HqE"/>
<constraint firstItem="XeS-lF-UgT" firstAttribute="top" secondItem="tSR-kG-qOO" secondAttribute="bottom" constant="15" id="WTQ-gi-goP"/>
<constraint firstItem="15H-Lc-ErQ" firstAttribute="bottom" secondItem="tSR-kG-qOO" secondAttribute="bottom" id="dVb-kp-cmW"/>
<constraint firstItem="tSR-kG-qOO" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="g8O-hu-yUD"/>
<constraint firstItem="tSR-kG-qOO" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="via-tI-BEP"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<connections>
<outlet property="selectBtn" destination="2eh-b7-Xdk" id="4tl-tS-YL2"/>
<outlet property="textCountLbl" destination="15H-Lc-ErQ" id="Di0-bt-vv1"/>
<outlet property="textView" destination="e6f-gU-5ea" id="Ezp-VT-AAh"/>
</connections>
<point key="canvasLocation" x="-40.579710144927539" y="166.74107142857142"/>
</tableViewCell>
</objects>
<resources>
<image name="daixuan" width="19" height="19"/>
<namedColor name="搜索框背景色">
<color red="0.9137254901960784" green="0.90588235294117647" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色字体颜色">
<color red="0.40000000000000002" green="0.40000000000000002" blue="0.40000000000000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?> <?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="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16096" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16086"/> <deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/> <capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/> <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
...@@ -10,7 +11,7 @@ ...@@ -10,7 +11,7 @@
<objects> <objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/> <placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/> <placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="ThirdCell" customModule="GeliBusinessPlatform" customModuleProvider="target"> <tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="ThirdCell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="49"/> <rect key="frame" x="0.0" y="0.0" width="375" height="49"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/> <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"> <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" tableViewCell="KGk-i7-Jjw" id="H2p-sc-9uM">
......
...@@ -142,7 +142,7 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa ...@@ -142,7 +142,7 @@ class ZengZhiServicesViewController: BaseViewController,UITableViewDelegate,UITa
countingLbl.text = "\(textView.text.count)/50" countingLbl.text = "\(textView.text.count)/50"
if (textView.text.count == 50) if (textView.text.count == 50)
{ {
return false//限制长度 textView.text = textView.text.subString(start: 0, length: 50)
} }
return true return true
} }
......
...@@ -226,7 +226,7 @@ ...@@ -226,7 +226,7 @@
<image name="guanlian" width="15.5" height="12.5"/> <image name="guanlian" width="15.5" height="12.5"/>
<image name="moren" width="70" height="70"/> <image name="moren" width="70" height="70"/>
<namedColor name="企业、预售字体"> <namedColor name="企业、预售字体">
<color red="1" green="0.68999999761581421" blue="0.47099998593330383" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="1" green="0.68627450980392157" blue="0.47058823529411764" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor> </namedColor>
<namedColor name="标题字颜色"> <namedColor name="标题字颜色">
<color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color red="0.18000000715255737" green="0.18000000715255737" blue="0.18000000715255737" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
......
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
<constraint firstAttribute="height" constant="1" id="CZU-U7-Y1m"/> <constraint firstAttribute="height" constant="1" id="CZU-U7-Y1m"/>
</constraints> </constraints>
</view> </view>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="请输入联系人" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="uH1-aY-Hsh"> <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入联系人" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="uH1-aY-Hsh">
<rect key="frame" x="70" y="90.5" width="230" height="40"/> <rect key="frame" x="70" y="90.5" width="230" height="40"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="40" id="MUW-Eg-9Ia"/> <constraint firstAttribute="height" constant="40" id="MUW-Eg-9Ia"/>
...@@ -100,7 +100,7 @@ ...@@ -100,7 +100,7 @@
<fontDescription key="fontDescription" type="system" pointSize="13"/> <fontDescription key="fontDescription" type="system" pointSize="13"/>
<textInputTraits key="textInputTraits"/> <textInputTraits key="textInputTraits"/>
</textField> </textField>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="请输入联系电话" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="tmU-Qx-tY7"> <textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入联系电话" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="tmU-Qx-tY7">
<rect key="frame" x="83" y="140.5" width="217" height="40"/> <rect key="frame" x="83" y="140.5" width="217" height="40"/>
<constraints> <constraints>
<constraint firstAttribute="height" constant="40" id="DH5-eZ-ThZ"/> <constraint firstAttribute="height" constant="40" id="DH5-eZ-ThZ"/>
......
//
// HuolalaCancelViewController.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/8/11.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
class HuolalaCancelViewController: BaseViewController ,UITableViewDelegate,UITableViewDataSource{
@IBOutlet weak var listView: UITableView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "取消订单"
self.view.addSubview(navbar)
SetTopFrameView(view: listView, btmView: self.view)
listView.separatorStyle = .none
listView.register(UINib(nibName: "FirstCell", bundle: nil), forCellReuseIdentifier: "FirstCell")
listView.register(UINib(nibName: "SecondCell", bundle: nil), forCellReuseIdentifier: "SecondCell")
listView.register(UINib(nibName: "OtherInfoTextViewTableViewCell", bundle: nil), forCellReuseIdentifier: "OtherInfoTextViewTableViewCell")
loadData()
}
func loadData(){
let UserToken = UserDefaults.standard.value(forKey: "user_token")
orderCancelReason(["user_token":UserToken as Any,"lwb_no":"206520102047" as Any], success: { (data) in
}) { (error) in
}
}
func numberOfSections(in tableView: UITableView) -> Int {
return 2
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if indexPath.section == 1 {
return 175
}
return 50
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if section == 1 {
return 1
}
return 10
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "FirstCell") as! FirstCell
if indexPath.section == 1 {
let cell = tableView.dequeueReusableCell(withIdentifier: "OtherInfoTextViewTableViewCell") as! OtherInfoTextViewTableViewCell
return cell
}
return cell
}
//MARK:--取消货拉拉运单
func orderCancelOrder (){
let UserToken = UserDefaults.standard.value(forKey: "user_token")
orderLalamoveCancel(["user_token":UserToken as Any,"lwb_no":"206520102047" as Any,"reason_id":"206520102047" as Any,"reason":"206520102047" as Any], success: { (data) in
}) { (error) in
}
}
}
<?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">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="HuolalaCancelViewController" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="listView" destination="nGb-3u-ukH" id="5v3-zF-MA1"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="nGb-3u-ukH">
<rect key="frame" x="0.0" y="44" width="414" height="852"/>
<color key="backgroundColor" name="app底色"/>
<connections>
<outlet property="dataSource" destination="-1" id="dJl-aN-2n9"/>
<outlet property="delegate" destination="-1" id="oAo-P4-EdR"/>
</connections>
</tableView>
</subviews>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstItem="nGb-3u-ukH" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="3C7-fq-4fH"/>
<constraint firstAttribute="bottom" secondItem="nGb-3u-ukH" secondAttribute="bottom" id="Psj-Og-1pz"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="nGb-3u-ukH" secondAttribute="trailing" id="i2p-bL-aup"/>
<constraint firstItem="nGb-3u-ukH" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="nXb-eO-eUi"/>
</constraints>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="-623" y="155"/>
</view>
</objects>
<resources>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
</resources>
</document>
<?xml version="1.0" encoding="UTF-8"?> <?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="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/> <device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/> <deployment identifier="iOS"/>
......
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