Commit 0d5050c0 authored by 刘俊宏's avatar 刘俊宏

新增订单详情自定义输入框

parent 74026d4d
...@@ -330,6 +330,10 @@ ...@@ -330,6 +330,10 @@
F93E32062473C9C200524DFC /* jcore-ios-2.2.5.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F93E32032473C9C200524DFC /* jcore-ios-2.2.5.a */; }; F93E32062473C9C200524DFC /* jcore-ios-2.2.5.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F93E32032473C9C200524DFC /* jcore-ios-2.2.5.a */; };
F93E32072473C9C200524DFC /* jpush-ios-3.3.3.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F93E32042473C9C200524DFC /* jpush-ios-3.3.3.a */; }; F93E32072473C9C200524DFC /* jpush-ios-3.3.3.a in Frameworks */ = {isa = PBXBuildFile; fileRef = F93E32042473C9C200524DFC /* jpush-ios-3.3.3.a */; };
F93E32092473CD6500524DFC /* libresolv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = F93E32082473CD6500524DFC /* libresolv.tbd */; }; F93E32092473CD6500524DFC /* libresolv.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = F93E32082473CD6500524DFC /* libresolv.tbd */; };
F93E320B2473D83D00524DFC /* GeliAlertTextFiled.xib in Resources */ = {isa = PBXBuildFile; fileRef = F93E320A2473D83D00524DFC /* GeliAlertTextFiled.xib */; };
F93E320D2473DA1C00524DFC /* GeliAlertTextFiled.swift in Sources */ = {isa = PBXBuildFile; fileRef = F93E320C2473DA1C00524DFC /* GeliAlertTextFiled.swift */; };
F93E320F2473DF2300524DFC /* GeliAlertTextView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F93E320E2473DF2300524DFC /* GeliAlertTextView.xib */; };
F93E32112473E05C00524DFC /* GeliAlertTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F93E32102473E05C00524DFC /* GeliAlertTextView.swift */; };
F94A314724624E9500FEC38E /* GetGelipayInfoModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F94A314624624E9500FEC38E /* GetGelipayInfoModel.swift */; }; F94A314724624E9500FEC38E /* GetGelipayInfoModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F94A314624624E9500FEC38E /* GetGelipayInfoModel.swift */; };
F94A314924624FA400FEC38E /* ShopAdministratorInfoModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F94A314824624FA400FEC38E /* ShopAdministratorInfoModel.swift */; }; F94A314924624FA400FEC38E /* ShopAdministratorInfoModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F94A314824624FA400FEC38E /* ShopAdministratorInfoModel.swift */; };
F94A314B246250DB00FEC38E /* GoodsDetailModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F94A314A246250DB00FEC38E /* GoodsDetailModel.swift */; }; F94A314B246250DB00FEC38E /* GoodsDetailModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F94A314A246250DB00FEC38E /* GoodsDetailModel.swift */; };
...@@ -824,6 +828,10 @@ ...@@ -824,6 +828,10 @@
F93E32032473C9C200524DFC /* jcore-ios-2.2.5.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "jcore-ios-2.2.5.a"; sourceTree = "<group>"; }; F93E32032473C9C200524DFC /* jcore-ios-2.2.5.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "jcore-ios-2.2.5.a"; sourceTree = "<group>"; };
F93E32042473C9C200524DFC /* jpush-ios-3.3.3.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "jpush-ios-3.3.3.a"; sourceTree = "<group>"; }; F93E32042473C9C200524DFC /* jpush-ios-3.3.3.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = "jpush-ios-3.3.3.a"; sourceTree = "<group>"; };
F93E32082473CD6500524DFC /* libresolv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT; }; F93E32082473CD6500524DFC /* libresolv.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libresolv.tbd; path = usr/lib/libresolv.tbd; sourceTree = SDKROOT; };
F93E320A2473D83D00524DFC /* GeliAlertTextFiled.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GeliAlertTextFiled.xib; sourceTree = "<group>"; };
F93E320C2473DA1C00524DFC /* GeliAlertTextFiled.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeliAlertTextFiled.swift; sourceTree = "<group>"; };
F93E320E2473DF2300524DFC /* GeliAlertTextView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GeliAlertTextView.xib; sourceTree = "<group>"; };
F93E32102473E05C00524DFC /* GeliAlertTextView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeliAlertTextView.swift; sourceTree = "<group>"; };
F94A314624624E9500FEC38E /* GetGelipayInfoModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GetGelipayInfoModel.swift; sourceTree = "<group>"; }; F94A314624624E9500FEC38E /* GetGelipayInfoModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GetGelipayInfoModel.swift; sourceTree = "<group>"; };
F94A314824624FA400FEC38E /* ShopAdministratorInfoModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShopAdministratorInfoModel.swift; sourceTree = "<group>"; }; F94A314824624FA400FEC38E /* ShopAdministratorInfoModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ShopAdministratorInfoModel.swift; sourceTree = "<group>"; };
F94A314A246250DB00FEC38E /* GoodsDetailModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoodsDetailModel.swift; sourceTree = "<group>"; }; F94A314A246250DB00FEC38E /* GoodsDetailModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoodsDetailModel.swift; sourceTree = "<group>"; };
...@@ -2254,6 +2262,10 @@ ...@@ -2254,6 +2262,10 @@
F95D9B4F24484FAE0080D6E3 /* GeliAlertView.xib */, F95D9B4F24484FAE0080D6E3 /* GeliAlertView.xib */,
E0F97B012451228A001BD600 /* GLAlertSelectView.swift */, E0F97B012451228A001BD600 /* GLAlertSelectView.swift */,
E0F97B0324512299001BD600 /* GLAlertSelectView.xib */, E0F97B0324512299001BD600 /* GLAlertSelectView.xib */,
F93E320C2473DA1C00524DFC /* GeliAlertTextFiled.swift */,
F93E320A2473D83D00524DFC /* GeliAlertTextFiled.xib */,
F93E32102473E05C00524DFC /* GeliAlertTextView.swift */,
F93E320E2473DF2300524DFC /* GeliAlertTextView.xib */,
); );
path = AlertView; path = AlertView;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -2499,6 +2511,7 @@ ...@@ -2499,6 +2511,7 @@
E06524F624580BB600CA22E2 /* BaoZhiQiCell.xib in Resources */, E06524F624580BB600CA22E2 /* BaoZhiQiCell.xib in Resources */,
E07C7F87246BD8AB000B0714 /* EditProductViewController.xib in Resources */, E07C7F87246BD8AB000B0714 /* EditProductViewController.xib in Resources */,
E0D197C7244845FD002B080C /* PersonCenterViewController.xib in Resources */, E0D197C7244845FD002B080C /* PersonCenterViewController.xib in Resources */,
F93E320B2473D83D00524DFC /* GeliAlertTextFiled.xib in Resources */,
E07B1E5F24591AA50055BA3C /* KeHuXQViewController.xib in Resources */, E07B1E5F24591AA50055BA3C /* KeHuXQViewController.xib in Resources */,
E0707DD624624B5200E039A8 /* AMap.bundle in Resources */, E0707DD624624B5200E039A8 /* AMap.bundle in Resources */,
E02DDD83244FD15B00ABB707 /* TitleAndSwitchHeaderView.xib in Resources */, E02DDD83244FD15B00ABB707 /* TitleAndSwitchHeaderView.xib in Resources */,
...@@ -2586,6 +2599,7 @@ ...@@ -2586,6 +2599,7 @@
E02DDD962450106C00ABB707 /* PuTongJieTiCell.xib in Resources */, E02DDD962450106C00ABB707 /* PuTongJieTiCell.xib in Resources */,
E07B1E79245966E60055BA3C /* XinCaiGouViewController.xib in Resources */, E07B1E79245966E60055BA3C /* XinCaiGouViewController.xib in Resources */,
E0BE8A88245A7A1500E80134 /* JiBenXinXiCell.xib in Resources */, E0BE8A88245A7A1500E80134 /* JiBenXinXiCell.xib in Resources */,
F93E320F2473DF2300524DFC /* GeliAlertTextView.xib in Resources */,
E0A2E81B24552E3C00D6DB34 /* XinZengPinPaiViewController.xib in Resources */, E0A2E81B24552E3C00D6DB34 /* XinZengPinPaiViewController.xib in Resources */,
F94A315C24628C7E00FEC38E /* WorkItemTableViewCell.xib in Resources */, F94A315C24628C7E00FEC38E /* WorkItemTableViewCell.xib in Resources */,
E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */, E0A7548B244A8F0F00A84B67 /* CheckWareHourseViewController.xib in Resources */,
...@@ -2813,6 +2827,7 @@ ...@@ -2813,6 +2827,7 @@
E0D4166424483058008DCAB4 /* ChangePassViewController.swift in Sources */, E0D4166424483058008DCAB4 /* ChangePassViewController.swift in Sources */,
F933F6C12452C68B00189561 /* PKHUDAnimation.swift in Sources */, F933F6C12452C68B00189561 /* PKHUDAnimation.swift in Sources */,
E0C4F4A7244EC82A00CC7E2F /* TitleAndBtnCell.swift in Sources */, E0C4F4A7244EC82A00CC7E2F /* TitleAndBtnCell.swift in Sources */,
F93E320D2473DA1C00524DFC /* GeliAlertTextFiled.swift in Sources */,
E0A2E81A24552E3C00D6DB34 /* XinZengPinPaiViewController.swift in Sources */, E0A2E81A24552E3C00D6DB34 /* XinZengPinPaiViewController.swift in Sources */,
F956D5A8246A2D9C003FF510 /* LMNSpecialLine.m in Sources */, F956D5A8246A2D9C003FF510 /* LMNSpecialLine.m in Sources */,
E0B530882472917F00FFCC15 /* ShopWarehouseDetailModel.swift in Sources */, E0B530882472917F00FFCC15 /* ShopWarehouseDetailModel.swift in Sources */,
...@@ -2922,6 +2937,7 @@ ...@@ -2922,6 +2937,7 @@
F950FDE024518B9500C40530 /* FSCalendarExtensions.m in Sources */, F950FDE024518B9500C40530 /* FSCalendarExtensions.m in Sources */,
E09B03A32445AF9500211A51 /* NetworkRequest.swift in Sources */, E09B03A32445AF9500211A51 /* NetworkRequest.swift in Sources */,
E0D46C5624503EC50087B564 /* TitleAndSelectCell.swift in Sources */, E0D46C5624503EC50087B564 /* TitleAndSelectCell.swift in Sources */,
F93E32112473E05C00524DFC /* GeliAlertTextView.swift in Sources */,
E0F97B022451228A001BD600 /* GLAlertSelectView.swift in Sources */, E0F97B022451228A001BD600 /* GLAlertSelectView.swift in Sources */,
F96E9D5C246656A700B5B94A /* HGImagePickerCell.swift in Sources */, F96E9D5C246656A700B5B94A /* HGImagePickerCell.swift in Sources */,
F95567AB2453E40B009674AB /* OrderListViewController.swift in Sources */, F95567AB2453E40B009674AB /* OrderListViewController.swift in Sources */,
......
//
// GeliAlertTextFiled.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/5/19.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
protocol GeliAlertTextFiledDelegate {
func sureAction(sender:String)
}
class GeliAlertTextFiled: UIView {
var delegate: GeliAlertTextFiledDelegate?
@IBOutlet weak var textTF: UITextField!
var contentView:UIView!
@IBAction func leftAction(_ sender: UIButton) {
self.removeFromSuperview()
}
@IBAction func rightAction(_ sender: UIButton) {
self.delegate?.sureAction(sender: textTF.text)
print("GeliAlertTextFiled\(textTF.text)")
self.removeFromSuperview()
}
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
This diff is collapsed.
//
// GeliAlertTextView.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/5/19.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
protocol GeliAlertTextViewDelegate {
func sureAction(sender:String)
}
class GeliAlertTextView: UIView, UITextViewDelegate {
var delegate: GeliAlertTextViewDelegate?
@IBOutlet weak var placerLbl: UILabel!
@IBOutlet weak var textview: UITextView!
@IBAction func leftAction(_ sender: UIButton) {
self.removeFromSuperview()
}
@IBAction func rightAction(_ sender: UIButton) {
self.delegate?.sureAction(sender: textview.text)
self.removeFromSuperview()
}
func textViewDidBeginEditing(_ textView: UITextView) {
placerLbl.isHidden = true
}
func textViewDidEndEditing(_ textView: UITextView) {
if textView.text.count == 0 {
placerLbl.isHidden = false
}
}
var contentView:UIView!
//初始化时将xib中的view添加进来
override init(frame: CGRect) {
super.init(frame: frame)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
textview.delegate = self
}
// /初始化时将xib中的view添加进来
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
contentView = loadViewFromNib()
addSubview(contentView)
contentView.snp.makeConstraints { (make) in
make.left.top.right.bottom.equalToSuperview()
}
textview.delegate = self
}
//加载xib
func loadViewFromNib() -> UIView {
let className = type(of: self)
let bundle = Bundle(for: className)
let name = NSStringFromClass(className).components(separatedBy: ".").last
let nib = UINib(nibName: name!, bundle: bundle)
let view = nib.instantiate(withOwner: self, options: nil).first as! UIView
return view
}
}
This diff is collapsed.
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