Commit d3d6cfba authored by lujunye's avatar lujunye

撒打发士大夫撒旦法112

parent 9cdffb8c
......@@ -172,6 +172,8 @@
E0402603259C186800EDF182 /* KHXQ_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0402601259C186800EDF182 /* KHXQ_Cell.xib */; };
E040399624D14D37008CF965 /* LalamoveModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E040399524D14D37008CF965 /* LalamoveModel.swift */; };
E040399824D14E0E008CF965 /* LalamoveInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E040399724D14E0E008CF965 /* LalamoveInterface.swift */; };
E0404A89264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0404A87264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift */; };
E0404A8A264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0404A88264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib */; };
E042F730245272FF00CDFA12 /* XiaYunDanViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E042F72E245272FF00CDFA12 /* XiaYunDanViewController.swift */; };
E042F731245272FF00CDFA12 /* XiaYunDanViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E042F72F245272FF00CDFA12 /* XiaYunDanViewController.xib */; };
E042F734245274F200CDFA12 /* YunDanLieBiaoCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E042F732245274F200CDFA12 /* YunDanLieBiaoCell.swift */; };
......@@ -443,6 +445,10 @@
E0CC848824823EC1009B1FE9 /* CRKCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0CC848624823EC1009B1FE9 /* CRKCell.xib */; };
E0CC848B24824291009B1FE9 /* CRKListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0CC848924824291009B1FE9 /* CRKListVC.swift */; };
E0CC848C24824291009B1FE9 /* CRKListVC.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0CC848A24824291009B1FE9 /* CRKListVC.xib */; };
E0CD52FB264E1BE4007EBB1E /* XY_DZ_GL_VC.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0CD52F9264E1BE4007EBB1E /* XY_DZ_GL_VC.swift */; };
E0CD52FC264E1BE4007EBB1E /* XY_DZ_GL_VC.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0CD52FA264E1BE4007EBB1E /* XY_DZ_GL_VC.xib */; };
E0CD5305264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0CD5303264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift */; };
E0CD5306264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0CD5304264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib */; };
E0D11BD525C12C540066DB21 /* img_title_cell.swift in Sources */ = {isa = PBXBuildFile; fileRef = E0D11BD325C12C540066DB21 /* img_title_cell.swift */; };
E0D11BD625C12C540066DB21 /* img_title_cell.xib in Resources */ = {isa = PBXBuildFile; fileRef = E0D11BD425C12C540066DB21 /* img_title_cell.xib */; };
E0D197BA2448431C002B080C /* BabyDefine.m in Sources */ = {isa = PBXBuildFile; fileRef = E0D197A92448431B002B080C /* BabyDefine.m */; };
......@@ -985,6 +991,8 @@
E0402601259C186800EDF182 /* KHXQ_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = KHXQ_Cell.xib; sourceTree = "<group>"; };
E040399524D14D37008CF965 /* LalamoveModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LalamoveModel.swift; sourceTree = "<group>"; };
E040399724D14E0E008CF965 /* LalamoveInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LalamoveInterface.swift; sourceTree = "<group>"; };
E0404A87264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GYS_FX_Product_VC_Cell.swift; sourceTree = "<group>"; };
E0404A88264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GYS_FX_Product_VC_Cell.xib; sourceTree = "<group>"; };
E042F72E245272FF00CDFA12 /* XiaYunDanViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XiaYunDanViewController.swift; sourceTree = "<group>"; };
E042F72F245272FF00CDFA12 /* XiaYunDanViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = XiaYunDanViewController.xib; sourceTree = "<group>"; };
E042F732245274F200CDFA12 /* YunDanLieBiaoCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YunDanLieBiaoCell.swift; sourceTree = "<group>"; };
......@@ -1273,6 +1281,10 @@
E0CC848624823EC1009B1FE9 /* CRKCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CRKCell.xib; sourceTree = "<group>"; };
E0CC848924824291009B1FE9 /* CRKListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CRKListVC.swift; sourceTree = "<group>"; };
E0CC848A24824291009B1FE9 /* CRKListVC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = CRKListVC.xib; sourceTree = "<group>"; };
E0CD52F9264E1BE4007EBB1E /* XY_DZ_GL_VC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XY_DZ_GL_VC.swift; sourceTree = "<group>"; };
E0CD52FA264E1BE4007EBB1E /* XY_DZ_GL_VC.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = XY_DZ_GL_VC.xib; sourceTree = "<group>"; };
E0CD5303264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XY_DZ_GL_VC_Cell.swift; sourceTree = "<group>"; };
E0CD5304264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = XY_DZ_GL_VC_Cell.xib; sourceTree = "<group>"; };
E0D11BD325C12C540066DB21 /* img_title_cell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = img_title_cell.swift; sourceTree = "<group>"; };
E0D11BD425C12C540066DB21 /* img_title_cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = img_title_cell.xib; sourceTree = "<group>"; };
E0D197A82448431B002B080C /* BabyCentralManager.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = BabyCentralManager.h; sourceTree = "<group>"; };
......@@ -2568,6 +2580,7 @@
E09B03AD2445B0BA00211A51 /* ViewController */ = {
isa = PBXGroup;
children = (
E0CD52F8264E1BBF007EBB1E /* 下游店长管理 */,
E0892137264BAB5F0040A6F5 /* 上游供应商管理 */,
E0122C66264A221C00E15289 /* New分销商品 */,
E0F503DD2648DE22000F9633 /* 下游代理商管理 */,
......@@ -2895,6 +2908,8 @@
E0AD92F82550FD1500D82C17 /* GYS_FX_SearchViewController.xib */,
E07337F62579E8660039767A /* GYS_FX_Product_ListVc.swift */,
E07337F72579E8660039767A /* GYS_FX_Product_ListVc.xib */,
E0404A87264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift */,
E0404A88264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib */,
);
path = "供应商分销商品管理";
sourceTree = "<group>";
......@@ -2971,6 +2986,17 @@
path = "应付账款";
sourceTree = "<group>";
};
E0CD52F8264E1BBF007EBB1E /* 下游店长管理 */ = {
isa = PBXGroup;
children = (
E0CD52F9264E1BE4007EBB1E /* XY_DZ_GL_VC.swift */,
E0CD52FA264E1BE4007EBB1E /* XY_DZ_GL_VC.xib */,
E0CD5303264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift */,
E0CD5304264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib */,
);
path = "下游店长管理";
sourceTree = "<group>";
};
E0D11BD225C12C400066DB21 /* cell */ = {
isa = PBXGroup;
children = (
......@@ -4174,6 +4200,8 @@
F96E48AA24CA9559000AB8D4 /* TitleTimeHeaderFooterView.xib in Resources */,
E0706EF524B40BE800D8251C /* TitleAndTfYuanCell.xib in Resources */,
E0337EF22464F69000952EF4 /* YingFuZKListViewController.xib in Resources */,
E0404A8A264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.xib in Resources */,
E0CD5306264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.xib in Resources */,
E0DA8AAF25E8F3D800425099 /* SVProgressHUD.bundle in Resources */,
E002465324A8697B00049DBC /* TitleAndTFBtnCell.xib in Resources */,
E0B9462C2456AABE00FBEC9A /* YuShouWeiKuanFaHuoCell.xib in Resources */,
......@@ -4190,6 +4218,7 @@
F9A1D4AB255B7AF70018DA8A /* RetailManageHeaderView.xib in Resources */,
E00CBA0224820CF000701D9D /* CRKSumCell.xib in Resources */,
E0206335246CE45A007A40C4 /* HeaderOnlyTitleView.xib in Resources */,
E0CD52FC264E1BE4007EBB1E /* XY_DZ_GL_VC.xib in Resources */,
E0E5605425C1672E0004BA56 /* Print_Gprinter_View.xib in Resources */,
E0F83BAA25F7085400D31672 /* NewPiCiCell.xib in Resources */,
E0B903CA259B11C20041EF62 /* FXSY_Detail_ViewController.xib in Resources */,
......@@ -4487,6 +4516,7 @@
F950FDE224518B9500C40530 /* FSCalendarCalculator.m in Sources */,
E0D197C12448431C002B080C /* BabyToy.m in Sources */,
E0F97B0C24516B1F001BD600 /* AddImgCell.swift in Sources */,
E0CD5305264E1BF7007EBB1E /* XY_DZ_GL_VC_Cell.swift in Sources */,
E0A804BB25B81B790082F56B /* printOrderInterface.swift in Sources */,
E0B9462B2456AABE00FBEC9A /* YuShouWeiKuanFaHuoCell.swift in Sources */,
E09B03C32445BD9500211A51 /* NavViewController.swift in Sources */,
......@@ -4613,6 +4643,7 @@
F9DDBE962457D3EC00A32CB2 /* WebViewController.swift in Sources */,
F993C66E24CADE2400493CC7 /* WayBillStautsTableViewCell.swift in Sources */,
F90F882324C841280050EF02 /* UITableViewIndexView.swift in Sources */,
E0CD52FB264E1BE4007EBB1E /* XY_DZ_GL_VC.swift in Sources */,
F956D5AA246A2D9C003FF510 /* LMNBulletsLine.m in Sources */,
E0E4456B24B0221500EF788E /* LogisticsInterface.swift in Sources */,
E06524F924581A7900CA22E2 /* ChuKuCell.swift in Sources */,
......@@ -4789,6 +4820,7 @@
F956D5B5246A2D9C003FF510 /* LMNStore.m in Sources */,
F956D5A7246A2D9C003FF510 /* LMNLineChain+Numbering.m in Sources */,
E0A7548A244A8F0F00A84B67 /* CheckWareHourseViewController.swift in Sources */,
E0404A89264E5D0100CA16EA /* GYS_FX_Product_VC_Cell.swift in Sources */,
F9023F62244999F500DD5A63 /* WarehoseMangementCell.swift in Sources */,
F956D5B1246A2D9C003FF510 /* LMNFolder.m in Sources */,
E0A409D424640B8300CFF109 /* DZGLViewController.swift in Sources */,
......
......@@ -283,7 +283,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate,loginDelegate,UITabBarCont
let v2 = GoodsManageListVC()
let v3 = WorkCViewController()
// let v3 = RetailListMgVC()
// let v3 = GYS_FX_Product_ListVc()
let v4 = WarehoseMangementListVC()
......
{
"images" : [
{
"filename" : "icon_pilingzhongxin.png",
"filename" : "商店.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "icon_pilingzhongxin@2x.png",
"filename" : "商店@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "icon_pilingzhongxin@3x.png",
"filename" : "商店@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
......
{
"images" : [
{
"filename" : "删除.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "删除@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "删除@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -64,13 +64,14 @@ class SY_GYS_GL_VC: BaseViewController , UISearchBarDelegate, SearchBarViewDeleg
@objc func loadMoreData(){}
var blackBtnView:UIButton! = nil
@objc func removeBlackBtnView(){
if blackBtnView != nil {
blackBtnView.removeFromSuperview()
searchV!.resignFirstResponder()
}
}
func searchBarShouldBeginEditing(_ searchBar: UISearchBar) -> Bool {
print("调起搜索后添加个蒙版本")
blackBtnView = UIButton ()
......
//
// XY_DZ_GL_VC.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/5/14.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class XY_DZ_GL_VC: BaseViewController, UISearchBarDelegate, SearchBarViewDelegate,UITableViewDelegate,UITableViewDataSource,XY_DZ_GL_VC_Cell_Delegate {
func XY_DZ_GL_VC_Cell_Del(cell: XY_DZ_GL_VC_Cell) {
print("del \(cell.tag)")
}
let UserToken = UserDefaults.standard.value(forKey: "user_token")
var keyword = ""
//MARK: - TABLEVIEWDELEGATE
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return UITableView.automaticDimension
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 3
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "XY_DZ_GL_VC_Cell") as! XY_DZ_GL_VC_Cell
cell.delegate = self
cell.tag = indexPath.row
return cell
}
func rightBtnClick() {
print("新增店铺")
}
@IBOutlet weak var list_view: UITableView!
@IBOutlet weak var contentV: UIView!
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "下游店长管理"
navbar.rightTitle = "新增店铺"
self.view.addSubview(navbar)
SetTopFrame(view: contentV, height: 45)
let searchBr = SearchBarView.init()
searchV = searchBr
self.contentV.addSubview(searchBr)
searchV?.changecornerRadius(cornerRadius: 35*0.5)
searchBr.placeholderStr = "请输入分销商名称"
searchBr.delegate = self
searchBr.delegateL = self
searchBr.snp.makeConstraints { (make) in
make.left.equalTo(0)
make.right.equalTo(0)
make.centerY.equalToSuperview()
make.height.equalTo(35)
}
list_view.separatorStyle = .none
list_view.register(UINib(nibName: "XY_DZ_GL_VC_Cell", bundle: nil), forCellReuseIdentifier: "XY_DZ_GL_VC_Cell")
headerMJ.setRefreshingTarget(self, refreshingAction: #selector(loadData))
list_view.mj_header = self.headerMJ
list_view.mj_header?.beginRefreshing()
footerMJ.setRefreshingTarget(self, refreshingAction: #selector(loadMoreData))
list_view.mj_footer = self.footerMJ
}
@objc func loadData(){}
@objc func loadMoreData(){}
var blackBtnView:UIButton! = nil
@objc func removeBlackBtnView(){
if blackBtnView != nil {
blackBtnView.removeFromSuperview()
searchV!.resignFirstResponder()
}
}
func searchBarShouldBeginEditing(_ searchBar: UISearchBar) -> Bool {
print("调起搜索后添加个蒙版本")
blackBtnView = UIButton ()
blackBtnView.backgroundColor = UIColor.init(named: "提示视图背景色")
self.view.addSubview(blackBtnView)
blackBtnView.snp.makeConstraints { (make) in
make.top.equalTo(contentV!.snp_bottom)
make.left.right.bottom.equalToSuperview()
}
blackBtnView.addTarget(self, action: #selector(removeBlackBtnView), for: .touchUpInside)
blackBtnView.isUserInteractionEnabled = false
return true
}
weak var searchV: SearchBarView? = nil
func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
print("点击搜索进行--")
searchBar.resignFirstResponder()
keyword = searchBar.text!
removeBlackBtnView()
if keyword.count > 0 {
list_view.mj_header?.beginRefreshing()
}
}
//MARK:--取消搜索代理
func clearSearchAction() {
print("取消搜索代理了--")
}
func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
print("编辑即将结束了--")
removeBlackBtnView()
if keyword.count > 0 {
keyword = searchBar.text!
if keyword.count == 0 {
list_view.mj_header?.beginRefreshing()
}
}
}
}
<?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="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="XY_DZ_GL_VC" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="contentV" destination="mc2-cz-O4q" id="GEO-07-D0y"/>
<outlet property="list_view" destination="o1x-LO-BcH" id="oNy-An-goE"/>
<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>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="mc2-cz-O4q">
<rect key="frame" x="0.0" y="44" width="414" height="45"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="4kU-Gh-rM4"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="o1x-LO-BcH">
<rect key="frame" x="0.0" y="89" width="414" height="807"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<connections>
<outlet property="dataSource" destination="-1" id="w8d-cY-Bz3"/>
<outlet property="delegate" destination="-1" id="Xic-LS-l48"/>
</connections>
</tableView>
</subviews>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="o1x-LO-BcH" secondAttribute="bottom" id="69l-I5-hUd"/>
<constraint firstItem="mc2-cz-O4q" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="73O-zH-AD1"/>
<constraint firstItem="o1x-LO-BcH" firstAttribute="top" secondItem="mc2-cz-O4q" secondAttribute="bottom" id="Ptl-pS-2lm"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="mc2-cz-O4q" secondAttribute="trailing" id="TR0-sV-OQc"/>
<constraint firstItem="mc2-cz-O4q" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="nds-3a-Qwm"/>
<constraint firstItem="o1x-LO-BcH" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="qDt-ZU-Gkt"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="o1x-LO-BcH" secondAttribute="trailing" id="w5l-lz-h5U"/>
</constraints>
<point key="canvasLocation" x="141" y="64"/>
</view>
</objects>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
//
// XY_DZ_GL_VC_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/5/14.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
protocol XY_DZ_GL_VC_Cell_Delegate {
func XY_DZ_GL_VC_Cell_Del(cell:XY_DZ_GL_VC_Cell)
}
class XY_DZ_GL_VC_Cell: UITableViewCell {
var delegate:XY_DZ_GL_VC_Cell_Delegate?
@IBAction func del_action(_ sender: Any) {
delegate?.XY_DZ_GL_VC_Cell_Del(cell: self)
}
override func awakeFromNib() {
super.awakeFromNib()
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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="XY_DZ_GL_VC_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="126"/>
<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="126"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fKL-dV-nI0">
<rect key="frame" x="0.0" y="0.0" width="375" height="119"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="R3Z-qs-eTs">
<rect key="frame" x="15" y="15" width="45" height="45"/>
<constraints>
<constraint firstAttribute="width" constant="45" id="bPR-Sq-Hui"/>
<constraint firstAttribute="height" constant="45" id="tjo-5p-WUB"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="751" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="j04-yw-sk5">
<rect key="frame" x="70" y="15" width="290" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="FIh-WP-X0o"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="崇文区镇罗营镇两家满族乡烟台高新区经5路15号崇文区镇罗营镇两家满族乡烟台高新区经5路15号" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kJG-2i-Qv0">
<rect key="frame" x="70" y="41" width="290" height="26"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<color key="textColor" name="#999999"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="751" text="合作开始时间:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="X0E-dL-xt0">
<rect key="frame" x="15" y="72" width="84" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="TH7-jM-8kA"/>
<constraint firstAttribute="width" constant="84" id="Z1e-C3-I9D"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<color key="textColor" name="#999999"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nUE-tC-5wq">
<rect key="frame" x="99" y="72" width="261" height="17"/>
<constraints>
<constraint firstAttribute="height" constant="17" id="LVS-BW-Zpg"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<nil key="textColor"/>
<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="9hl-Pj-5pD">
<rect key="frame" x="15" y="92" width="60" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="6a8-1l-Bm7"/>
<constraint firstAttribute="height" constant="17" id="krh-bO-7bP"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<color key="textColor" name="#999999"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qoh-4q-FFw">
<rect key="frame" x="75" y="92" width="30.5" height="17"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DKy-OT-afl">
<rect key="frame" x="320" y="91" width="40" height="19"/>
<constraints>
<constraint firstAttribute="height" constant="19" id="1ML-02-jVW"/>
<constraint firstAttribute="width" constant="40" id="YvH-eK-kqP"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="13"/>
<state key="normal" title="删除" image="删除123">
<color key="titleColor" name="#999999"/>
</state>
<connections>
<action selector="del_action:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="Wdx-3v-ATn"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="DKy-OT-afl" secondAttribute="trailing" constant="15" id="0HE-o3-Xq9"/>
<constraint firstItem="j04-yw-sk5" firstAttribute="top" secondItem="fKL-dV-nI0" secondAttribute="top" constant="15" id="58a-Oh-pfw"/>
<constraint firstItem="R3Z-qs-eTs" firstAttribute="leading" secondItem="fKL-dV-nI0" secondAttribute="leading" constant="15" id="BFW-iT-LB0"/>
<constraint firstAttribute="trailing" secondItem="nUE-tC-5wq" secondAttribute="trailing" constant="15" id="ChQ-RK-cDX"/>
<constraint firstItem="9hl-Pj-5pD" firstAttribute="leading" secondItem="fKL-dV-nI0" secondAttribute="leading" constant="15" id="Ex3-Rb-hbB"/>
<constraint firstItem="Qoh-4q-FFw" firstAttribute="centerY" secondItem="9hl-Pj-5pD" secondAttribute="centerY" id="G1i-CJ-eg2"/>
<constraint firstItem="R3Z-qs-eTs" firstAttribute="top" secondItem="fKL-dV-nI0" secondAttribute="top" constant="15" id="G9h-N5-46D"/>
<constraint firstItem="9hl-Pj-5pD" firstAttribute="top" secondItem="X0E-dL-xt0" secondAttribute="bottom" constant="3" id="Gqy-C3-0Rw"/>
<constraint firstItem="DKy-OT-afl" firstAttribute="centerY" secondItem="9hl-Pj-5pD" secondAttribute="centerY" id="JSv-yF-13F"/>
<constraint firstAttribute="trailing" secondItem="j04-yw-sk5" secondAttribute="trailing" constant="15" id="PWL-zE-xWg"/>
<constraint firstItem="kJG-2i-Qv0" firstAttribute="top" secondItem="j04-yw-sk5" secondAttribute="bottom" constant="5" id="R4b-CC-Wwb"/>
<constraint firstItem="X0E-dL-xt0" firstAttribute="top" secondItem="kJG-2i-Qv0" secondAttribute="bottom" constant="5" id="Tm1-Y1-bFg"/>
<constraint firstItem="kJG-2i-Qv0" firstAttribute="leading" secondItem="R3Z-qs-eTs" secondAttribute="trailing" constant="10" id="TpI-bq-qme"/>
<constraint firstItem="j04-yw-sk5" firstAttribute="leading" secondItem="R3Z-qs-eTs" secondAttribute="trailing" constant="10" id="ctE-kl-K2F"/>
<constraint firstItem="X0E-dL-xt0" firstAttribute="leading" secondItem="fKL-dV-nI0" secondAttribute="leading" constant="15" id="gay-8a-UMs"/>
<constraint firstAttribute="trailing" secondItem="kJG-2i-Qv0" secondAttribute="trailing" constant="15" id="h7k-qV-NWm"/>
<constraint firstAttribute="bottom" secondItem="9hl-Pj-5pD" secondAttribute="bottom" constant="10" id="jWh-8x-EMK"/>
<constraint firstItem="nUE-tC-5wq" firstAttribute="leading" secondItem="X0E-dL-xt0" secondAttribute="trailing" id="tjq-Ce-YGz"/>
<constraint firstItem="Qoh-4q-FFw" firstAttribute="leading" secondItem="9hl-Pj-5pD" secondAttribute="trailing" id="wv9-Cq-hzr"/>
<constraint firstItem="nUE-tC-5wq" firstAttribute="centerY" secondItem="X0E-dL-xt0" secondAttribute="centerY" id="yo9-vf-zgq"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="fKL-dV-nI0" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="PuR-Td-vLB"/>
<constraint firstAttribute="bottom" secondItem="fKL-dV-nI0" secondAttribute="bottom" constant="7" id="QTU-zK-njn"/>
<constraint firstAttribute="trailing" secondItem="fKL-dV-nI0" secondAttribute="trailing" id="edg-JR-gxP"/>
<constraint firstItem="fKL-dV-nI0" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="nxZ-kB-6f3"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<color key="backgroundColor" name="app底色"/>
<point key="canvasLocation" x="-197" y="100"/>
</tableViewCell>
</objects>
<resources>
<image name="删除123" width="14" height="14"/>
<namedColor name="#999999">
<color red="0.60000002384185791" green="0.60000002384185791" blue="0.60000002384185791" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
......@@ -61,7 +61,7 @@ class GYS_FX_Product_ListVc: BaseViewController ,PagingViewControllerDelegate,UI
override func viewDidLoad() {
super.viewDidLoad()
navbar.title = "供应商分销商品管理"
navbar.rightImg = UIImage(named: "ss_dark")
// navbar.rightImg = UIImage(named: "ss_dark")
self.view.addSubview(navbar)
SetTopFrameView(view: contentV, btmView: self.view)
......
......@@ -8,7 +8,59 @@
import UIKit
class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource,GYS_FX_ProductCellDelegate{
class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataSource,GYS_FX_ProductCellDelegate, UISearchBarDelegate, SearchBarViewDelegate{
@IBOutlet weak var contentV: UIView!
var keyword = ""
var blackBtnView:UIButton! = nil
@objc func removeBlackBtnView(){
if blackBtnView != nil {
blackBtnView.removeFromSuperview()
searchV!.resignFirstResponder()
}
}
func searchBarShouldBeginEditing(_ searchBar: UISearchBar) -> Bool {
print("调起搜索后添加个蒙版本")
blackBtnView = UIButton ()
blackBtnView.backgroundColor = UIColor.init(named: "提示视图背景色")
self.view.addSubview(blackBtnView)
blackBtnView.snp.makeConstraints { (make) in
make.top.equalTo(contentV!.snp_bottom)
make.left.right.bottom.equalToSuperview()
}
blackBtnView.addTarget(self, action: #selector(removeBlackBtnView), for: .touchUpInside)
blackBtnView.isUserInteractionEnabled = false
return true
}
weak var searchV: SearchBarView? = nil
func searchBarSearchButtonClicked(_ searchBar: UISearchBar) {
print("点击搜索进行--")
searchBar.resignFirstResponder()
keyword = searchBar.text!
removeBlackBtnView()
if keyword.count > 0 {
home_list_tbv.mj_header?.beginRefreshing()
}
}
//MARK:--取消搜索代理
func clearSearchAction() {
print("取消搜索代理了--")
}
func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
print("编辑即将结束了--")
removeBlackBtnView()
if keyword.count > 0 {
keyword = searchBar.text!
if keyword.count == 0 {
home_list_tbv.mj_header?.beginRefreshing()
}
}
}
func GYS_FX_ProductCellTableViewCellSelect(idx: Int) {
}
......@@ -77,8 +129,21 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
override func viewDidLoad() {
super.viewDidLoad()
home_list_tbv.register(UINib(nibName: "GYS_FX_ProductCellTableViewCell", bundle: nil), forCellReuseIdentifier: "GYS_FX_ProductCellTableViewCell")
let searchBr = SearchBarView.init()
searchV = searchBr
self.contentV.addSubview(searchBr)
searchV?.changecornerRadius(cornerRadius: 35*0.5)
searchBr.placeholderStr = "请输入商品名称"
searchBr.delegate = self
searchBr.delegateL = self
searchBr.snp.makeConstraints { (make) in
make.left.equalTo(0)
make.right.equalTo(0)
make.centerY.equalToSuperview()
make.height.equalTo(35)
}
home_list_tbv.register(UINib(nibName: "GYS_FX_Product_VC_Cell", bundle: nil), forCellReuseIdentifier: "GYS_FX_Product_VC_Cell")
home_list_tbv.delegate = self
home_list_tbv.separatorStyle = .none
home_list_tbv.dataSource = self
......@@ -167,49 +232,49 @@ class GYS_FX_Product_VC: BaseViewController,UITableViewDelegate,UITableViewDataS
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "GYS_FX_ProductCellTableViewCell") as! GYS_FX_ProductCellTableViewCell
let cell = tableView.dequeueReusableCell(withIdentifier: "GYS_FX_Product_VC_Cell") as! GYS_FX_Product_VC_Cell
if self.title!.contains("已铺货") {
cell.submitBtn.setTitle("取消铺货", for: .normal)
}else{
cell.submitBtn.setTitle("铺货", for: .normal)
}
cell.tag = indexPath.row
cell.delegate = self
let model = datas[indexPath.row]
cell.title_Lbl.text = model.goods_name
if model.dbt_sale != nil {
cell.sell_total_Lbl.text = "销量: " + StringByInt(number: model.dbt_sale!)
}else{
cell.sell_total_Lbl.text = "销量: -"
}
if model.inventory != nil {
cell.store_lbl.text = "库存: " + StringByInt(number: model.inventory!)
}else{
cell.store_lbl.text = "库存: -"
}
if model.commission_type == 1 {
cell.FX_Percent_Lbl.text = StringByInt(number: model.commission_per!) + "%"
cell.FX_Percent_Lbl.isHidden = false
// cell.submitBtn.setTitle("取消铺货", for: .normal)
}else{
cell.FX_Percent_Lbl.isHidden = true
// cell.submitBtn.setTitle("铺货", for: .normal)
}
cell.old_price_line.isHidden = false
cell.new_price_Lbl.isHidden = false
if model.dbt_price == nil {
cell.old_price_line.isHidden = true
cell.new_price_Lbl.text = ""
}else{
cell.new_price_Lbl.text = "¥" + model.dbt_price!
}
cell.old_price_Lbl.text = model.price
cell.item_Icon_Img.sd_setImage(with:URL(string:SERVERCE_ImageHost + model.goods_thumb!), placeholderImage: nil,options:.allowInvalidSSLCertificates)
// cell.tag = indexPath.row
// cell.delegate = self
// let model = datas[indexPath.row]
// cell.title_Lbl.text = model.goods_name
// if model.dbt_sale != nil {
// cell.sell_total_Lbl.text = "销量: " + StringByInt(number: model.dbt_sale!)
// }else{
// cell.sell_total_Lbl.text = "销量: -"
// }
// if model.inventory != nil {
// cell.store_lbl.text = "库存: " + StringByInt(number: model.inventory!)
// }else{
// cell.store_lbl.text = "库存: -"
// }
// if model.commission_type == 1 {
// cell.FX_Percent_Lbl.text = StringByInt(number: model.commission_per!) + "%"
// cell.FX_Percent_Lbl.isHidden = false
// }else{
// cell.FX_Percent_Lbl.isHidden = true
// }
//
//
// cell.old_price_line.isHidden = false
// cell.new_price_Lbl.isHidden = false
// if model.dbt_price == nil {
// cell.old_price_line.isHidden = true
// cell.new_price_Lbl.text = ""
// }else{
// cell.new_price_Lbl.text = "¥" + model.dbt_price!
// }
// cell.old_price_Lbl.text = model.price
// cell.item_Icon_Img.sd_setImage(with:URL(string:SERVERCE_ImageHost + model.goods_thumb!), placeholderImage: nil,options:.allowInvalidSSLCertificates)
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
return 125
return 144
}
}
<?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">
<device id="retina3_5" orientation="portrait" appearance="light"/>
<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_5" 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="System colors in document resources" minToolsVersion="11.0"/>
......@@ -13,33 +13,34 @@
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="GYS_FX_Product_VC" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="center_select_btn" destination="XbF-u7-Fx8" id="77p-5Y-gb6"/>
<outlet property="contentV" destination="y2l-2o-ndF" id="QFF-ug-e2h"/>
<outlet property="home_list_tbv" destination="3LK-04-tLV" id="fJG-hs-MYs"/>
<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="320" height="480"/>
<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="XbF-u7-Fx8">
<rect key="frame" x="0.0" y="0.0" width="320" height="49"/>
<rect key="frame" x="0.0" y="44" width="414" height="49"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="imageView:5oi-pb-15W:image" translatesAutoresizingMaskIntoConstraints="NO" id="5oi-pb-15W">
<rect key="frame" x="15" y="15.5" width="19" height="18.5"/>
<rect key="frame" x="15" y="15.333333333333334" width="19" height="18.333333333333329"/>
<constraints>
<constraint firstAttribute="width" constant="19" id="ULa-vM-Ksk"/>
<constraint firstAttribute="height" constant="18.5" id="hGp-Ut-dT1"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="请选择批零中心" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OQS-2V-AAD">
<rect key="frame" x="39" y="16.5" width="209.5" height="16"/>
<rect key="frame" x="39" y="16.666666666666664" width="303.66666666666669" height="16"/>
<fontDescription key="fontDescription" type="system" pointSize="13"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="选择" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Sw3-9w-Y9J">
<rect key="frame" x="263.5" y="16.5" width="27" height="16"/>
<rect key="frame" x="357.66666666666669" y="16.666666666666664" width="27" height="16"/>
<constraints>
<constraint firstAttribute="width" constant="27" id="wnf-dr-8WJ"/>
</constraints>
......@@ -48,14 +49,14 @@
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="imageView:6p4-bG-ufu:image" translatesAutoresizingMaskIntoConstraints="NO" id="6p4-bG-ufu">
<rect key="frame" x="295.5" y="22.5" width="9.5" height="4"/>
<rect key="frame" x="389.66666666666669" y="22.666666666666671" width="9.3333333333333144" height="4"/>
<constraints>
<constraint firstAttribute="width" constant="9.5" id="A8o-hA-b3e"/>
<constraint firstAttribute="height" constant="4" id="S8W-4h-he3"/>
</constraints>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="0qr-Av-AcW">
<rect key="frame" x="0.0" y="0.0" width="320" height="49"/>
<rect key="frame" x="0.0" y="0.0" width="414" height="49"/>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
......@@ -76,17 +77,24 @@
<constraint firstItem="Sw3-9w-Y9J" firstAttribute="leading" secondItem="OQS-2V-AAD" secondAttribute="trailing" constant="15" id="ySe-vL-Bds"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="y2l-2o-ndF">
<rect key="frame" x="0.0" y="93" width="414" height="45"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="45" id="WuM-wl-RjO"/>
</constraints>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="3LK-04-tLV">
<rect key="frame" x="0.0" y="49" width="320" height="431"/>
<rect key="frame" x="0.0" y="138" width="414" height="758"/>
<color key="backgroundColor" name="app底色"/>
</tableView>
<button hidden="YES" opaque="NO" alpha="0.69999999999999996" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kdd-7R-LPi">
<rect key="frame" x="0.0" y="49" width="320" height="431"/>
<rect key="frame" x="0.0" y="93" width="414" height="803"/>
<color key="backgroundColor" name="标题字颜色"/>
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</button>
<tableView hidden="YES" clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="28" sectionFooterHeight="28" translatesAutoresizingMaskIntoConstraints="NO" id="3bn-WT-hnL">
<rect key="frame" x="0.0" y="49" width="320" height="350"/>
<rect key="frame" x="0.0" y="93" width="414" height="350"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="height" constant="350" id="Pmf-Jf-CEB"/>
......@@ -104,11 +112,14 @@
<constraint firstAttribute="bottom" secondItem="kdd-7R-LPi" secondAttribute="bottom" id="K62-Me-sng"/>
<constraint firstItem="3bn-WT-hnL" firstAttribute="top" secondItem="XbF-u7-Fx8" secondAttribute="bottom" id="Mgr-9Y-PPn"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="3LK-04-tLV" secondAttribute="trailing" id="PsD-fU-Cij"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="y2l-2o-ndF" secondAttribute="trailing" id="USL-fF-SKk"/>
<constraint firstItem="y2l-2o-ndF" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="Un9-k3-uc3"/>
<constraint firstItem="XbF-u7-Fx8" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="W2x-vz-iWe"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="XbF-u7-Fx8" secondAttribute="trailing" id="Y1v-5B-J3N"/>
<constraint firstItem="y2l-2o-ndF" firstAttribute="top" secondItem="XbF-u7-Fx8" secondAttribute="bottom" id="Zu5-zT-HLI"/>
<constraint firstItem="kdd-7R-LPi" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="dKl-00-PcL"/>
<constraint firstItem="kdd-7R-LPi" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="f8C-4p-JMc"/>
<constraint firstItem="3LK-04-tLV" firstAttribute="top" secondItem="XbF-u7-Fx8" secondAttribute="bottom" id="qHC-09-2ER"/>
<constraint firstItem="3LK-04-tLV" firstAttribute="top" secondItem="y2l-2o-ndF" secondAttribute="bottom" id="qHC-09-2ER"/>
<constraint firstItem="3LK-04-tLV" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="yZN-Yu-AtQ"/>
</constraints>
<point key="canvasLocation" x="140.57971014492756" y="75.669642857142847"/>
......
//
// GYS_FX_Product_VC_Cell.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2021/5/14.
// Copyright © 2021 junye lu. All rights reserved.
//
import UIKit
class GYS_FX_Product_VC_Cell: UITableViewCell {
override func awakeFromNib() {
super.awakeFromNib()
self.selectionStyle = .none
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="17701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="17703"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="GYS_FX_Product_VC_Cell" customModule="TestClass" customModuleProvider="target">
<rect key="frame" x="0.0" y="0.0" width="375" height="144"/>
<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="144"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="f5k-Og-jYC">
<rect key="frame" x="0.0" y="0.0" width="375" height="137"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Jr7-Sh-Ibo">
<rect key="frame" x="15" y="15" width="65" height="65"/>
<constraints>
<constraint firstAttribute="width" constant="65" id="lHT-sU-K9i"/>
<constraint firstAttribute="height" constant="65" id="r8N-U1-giS"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YVQ-wf-px1">
<rect key="frame" x="90" y="15" width="270" height="21"/>
<constraints>
<constraint firstAttribute="height" constant="21" id="twv-Ia-Xnq"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="VAc-v3-XeF">
<rect key="frame" x="90" y="41" width="30.5" height="17"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<color key="textColor" name="#999999"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1ZM-PY-030">
<rect key="frame" x="125.5" y="41" width="30.5" height="17"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<color key="textColor" name="#F57575"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5Jw-lG-uGm">
<rect key="frame" x="206" y="41" width="30.5" height="17"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<color key="textColor" name="#999999"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="eub-Q6-ZHe">
<rect key="frame" x="90" y="63" width="30.5" height="17"/>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<color key="textColor" name="#F57575"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="MZh-k2-dRq">
<rect key="frame" x="15" y="95" width="345" height="1"/>
<color key="backgroundColor" name="灰色分界线"/>
<constraints>
<constraint firstAttribute="height" constant="1" id="B70-ux-uW1"/>
</constraints>
</view>
<button opaque="NO" tag="2" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="R7g-62-YKx">
<rect key="frame" x="298" y="96" width="77" height="41"/>
<constraints>
<constraint firstAttribute="width" constant="77" id="tL7-9J-xXT"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<state key="normal" title="分销设置">
<color key="titleColor" red="0.2784313725" green="0.56078431370000004" blue="0.89019607840000003" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5mn-3H-9iX">
<rect key="frame" x="221" y="96" width="77" height="41"/>
<constraints>
<constraint firstAttribute="width" constant="77" id="lXM-ZI-G6e"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<state key="normal" title="商品下架">
<color key="titleColor" red="0.2784313725" green="0.56078431370000004" blue="0.89019607840000003" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mDS-bi-2m5">
<rect key="frame" x="144" y="96" width="77" height="41"/>
<constraints>
<constraint firstAttribute="width" constant="77" id="nCS-CE-1Bu"/>
</constraints>
<fontDescription key="fontDescription" name="PingFangSC-Regular" family="PingFang SC" pointSize="12"/>
<state key="normal" title="取消分组">
<color key="titleColor" red="0.2784313725" green="0.56078431370000004" blue="0.89019607840000003" alpha="1" colorSpace="calibratedRGB"/>
</state>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="R7g-62-YKx" firstAttribute="leading" secondItem="5mn-3H-9iX" secondAttribute="trailing" id="0p6-BB-dLv"/>
<constraint firstItem="YVQ-wf-px1" firstAttribute="top" secondItem="f5k-Og-jYC" secondAttribute="top" constant="15" id="2KB-zJ-OKi"/>
<constraint firstItem="mDS-bi-2m5" firstAttribute="top" secondItem="MZh-k2-dRq" secondAttribute="bottom" id="3mx-LI-OL7"/>
<constraint firstAttribute="bottom" secondItem="5mn-3H-9iX" secondAttribute="bottom" id="8nB-fr-zOG"/>
<constraint firstItem="5Jw-lG-uGm" firstAttribute="leading" secondItem="1ZM-PY-030" secondAttribute="trailing" constant="50" id="EeK-jH-Ja6"/>
<constraint firstItem="5mn-3H-9iX" firstAttribute="leading" secondItem="mDS-bi-2m5" secondAttribute="trailing" id="GAq-ox-MKc"/>
<constraint firstAttribute="bottom" secondItem="R7g-62-YKx" secondAttribute="bottom" id="MIf-Gv-pYf"/>
<constraint firstAttribute="trailing" secondItem="R7g-62-YKx" secondAttribute="trailing" id="P81-Z5-ove"/>
<constraint firstItem="MZh-k2-dRq" firstAttribute="leading" secondItem="f5k-Og-jYC" secondAttribute="leading" constant="15" id="RsW-4M-mKk"/>
<constraint firstAttribute="bottom" secondItem="mDS-bi-2m5" secondAttribute="bottom" id="SRh-RK-dbk"/>
<constraint firstAttribute="trailing" secondItem="MZh-k2-dRq" secondAttribute="trailing" constant="15" id="VFR-i5-Izq"/>
<constraint firstItem="1ZM-PY-030" firstAttribute="centerY" secondItem="VAc-v3-XeF" secondAttribute="centerY" id="XjR-jd-GOx"/>
<constraint firstItem="Jr7-Sh-Ibo" firstAttribute="top" secondItem="f5k-Og-jYC" secondAttribute="top" constant="15" id="ZwD-NH-lWH"/>
<constraint firstItem="Jr7-Sh-Ibo" firstAttribute="leading" secondItem="f5k-Og-jYC" secondAttribute="leading" constant="15" id="dP8-cz-9lC"/>
<constraint firstAttribute="trailing" secondItem="YVQ-wf-px1" secondAttribute="trailing" constant="15" id="eB8-kh-k0t"/>
<constraint firstItem="5mn-3H-9iX" firstAttribute="top" secondItem="MZh-k2-dRq" secondAttribute="bottom" id="fhb-03-BUO"/>
<constraint firstItem="R7g-62-YKx" firstAttribute="top" secondItem="MZh-k2-dRq" secondAttribute="bottom" id="hZz-Fp-JNf"/>
<constraint firstItem="eub-Q6-ZHe" firstAttribute="top" secondItem="VAc-v3-XeF" secondAttribute="bottom" constant="5" id="k16-wD-kQG"/>
<constraint firstItem="5Jw-lG-uGm" firstAttribute="centerY" secondItem="1ZM-PY-030" secondAttribute="centerY" id="krR-9j-yzY"/>
<constraint firstItem="eub-Q6-ZHe" firstAttribute="leading" secondItem="Jr7-Sh-Ibo" secondAttribute="trailing" constant="10" id="omo-kF-hDk"/>
<constraint firstItem="VAc-v3-XeF" firstAttribute="top" secondItem="YVQ-wf-px1" secondAttribute="bottom" constant="5" id="qQz-lw-eeO"/>
<constraint firstItem="VAc-v3-XeF" firstAttribute="leading" secondItem="Jr7-Sh-Ibo" secondAttribute="trailing" constant="10" id="rWi-1V-jgi"/>
<constraint firstItem="YVQ-wf-px1" firstAttribute="leading" secondItem="Jr7-Sh-Ibo" secondAttribute="trailing" constant="10" id="uKU-Zf-PwD"/>
<constraint firstItem="1ZM-PY-030" firstAttribute="leading" secondItem="VAc-v3-XeF" secondAttribute="trailing" constant="5" id="v4m-nL-gpV"/>
<constraint firstItem="MZh-k2-dRq" firstAttribute="top" secondItem="Jr7-Sh-Ibo" secondAttribute="bottom" constant="15" id="v4t-qQ-T65"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" name="app底色"/>
<constraints>
<constraint firstItem="f5k-Og-jYC" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="L0y-3l-0tW"/>
<constraint firstAttribute="trailing" secondItem="f5k-Og-jYC" secondAttribute="trailing" id="SX0-dI-erN"/>
<constraint firstAttribute="bottom" secondItem="f5k-Og-jYC" secondAttribute="bottom" constant="7" id="bnN-9L-UBo"/>
<constraint firstItem="f5k-Og-jYC" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="yXs-AF-7cu"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="njF-e1-oar"/>
<point key="canvasLocation" x="141.30434782608697" y="87.723214285714278"/>
</tableViewCell>
</objects>
<resources>
<namedColor name="#999999">
<color red="0.60000002384185791" green="0.60000002384185791" blue="0.60000002384185791" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="#F57575">
<color red="0.96100002527236938" green="0.45899999141693115" blue="0.45899999141693115" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="app底色">
<color red="0.94509803921568625" green="0.94509803921568625" blue="0.94509803921568625" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<namedColor name="灰色分界线">
<color red="0.92941176470588238" green="0.92941176470588238" blue="0.92941176470588238" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</namedColor>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>
......@@ -82,12 +82,14 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
var role_type = 1
var inc_exp_type = 0
@IBOutlet weak var last_btn: UIButton!
var keyword = ""
@IBAction func top_btn_click(_ sender: UIButton) {
removeBlackBtnView()
if sender == left_btn {
left_btn.isSelected = true
right_btn.isSelected = false
last_btn.isSelected = false
self.bottom_line.snp.updateConstraints { (make) in
make.width.equalTo(ScreenWidth*0.5)
make.height.equalTo(3)
......@@ -95,12 +97,23 @@ class FXSY_ViewController: BaseViewController,GLTimeSelectViewDelegate,UITableVi
make.top.equalTo(self.left_btn.snp_bottom)
}
role_type = 1
}else{
}else if sender == right_btn{
left_btn.isSelected = false
right_btn.isSelected = true
last_btn.isSelected = false
role_type = 2
self.bottom_line.snp.updateConstraints { (make) in
make.left.width.equalTo(ScreenWidth*0.5)
make.left.width.equalTo(ScreenWidth*0.33)
make.height.equalTo(3)
make.top.equalTo(self.left_btn.snp_bottom)
}
}else{
left_btn.isSelected = false
right_btn.isSelected = false
last_btn.isSelected = true
// role_type = 2
self.bottom_line.snp.updateConstraints { (make) in
make.left.width.equalTo(ScreenWidth*0.66)
make.height.equalTo(3)
make.top.equalTo(self.left_btn.snp_bottom)
}
......
......@@ -17,6 +17,7 @@
<outlet property="date_lbl" destination="p0d-nN-gRY" id="32x-fS-Ztn"/>
<outlet property="gys_list" destination="x8A-F9-ceB" id="r5R-8a-geu"/>
<outlet property="income_lbl" destination="Bxv-vi-fqZ" id="cTf-ig-rKc"/>
<outlet property="last_btn" destination="MGn-lg-139" id="pKz-Mq-7qe"/>
<outlet property="left_btn" destination="oz8-MC-aZt" id="511-qe-BKP"/>
<outlet property="refuse_lbl" destination="WW0-jT-mpV" id="YWH-Ad-Bim"/>
<outlet property="right_btn" destination="67A-fb-ve2" id="ycR-Zq-5xs"/>
......@@ -36,13 +37,13 @@
<rect key="frame" x="0.0" y="44" width="414" height="44"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oz8-MC-aZt">
<rect key="frame" x="0.0" y="0.0" width="207" height="44"/>
<rect key="frame" x="0.0" y="0.0" width="138" height="44"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="供应商收益">
<state key="normal" title="供应商">
<color key="titleColor" name="多选按钮字体颜色"/>
</state>
<state key="selected" title="供应商收益">
<state key="selected" title="供应商">
<color key="titleColor" name="按钮渐变色下,字体颜色"/>
</state>
<connections>
......@@ -50,38 +51,57 @@
</connections>
</button>
<button opaque="NO" tag="1" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="67A-fb-ve2">
<rect key="frame" x="207" y="0.0" width="207" height="44"/>
<rect key="frame" x="138" y="0.0" width="138" height="44"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<color key="tintColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<state key="normal" title="分销商收益">
<state key="normal" title="分销商">
<color key="titleColor" name="多选按钮字体颜色"/>
</state>
<state key="selected" title="分销商收益">
<state key="selected" title="分销商">
<color key="titleColor" name="按钮渐变色下,字体颜色"/>
</state>
<connections>
<action selector="top_btn_click:" destination="-1" eventType="touchUpInside" id="9Ac-P3-mwH"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MGn-lg-139">
<rect key="frame" x="276" y="0.0" width="138" height="44"/>
<fontDescription key="fontDescription" name="PingFangSC-Medium" family="PingFang SC" pointSize="13"/>
<state key="normal" title="分销店长">
<color key="titleColor" name="多选按钮字体颜色"/>
</state>
<state key="selected">
<color key="titleColor" name="按钮渐变色下,字体颜色"/>
</state>
<connections>
<action selector="top_btn_click:" destination="-1" eventType="touchUpInside" id="Feg-jk-8hv"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="67A-fb-ve2" firstAttribute="top" secondItem="WSB-Vn-KNN" secondAttribute="top" id="7nB-lT-Fwk"/>
<constraint firstItem="oz8-MC-aZt" firstAttribute="top" secondItem="WSB-Vn-KNN" secondAttribute="top" id="Bgs-MJ-FRj"/>
<constraint firstItem="67A-fb-ve2" firstAttribute="leading" secondItem="oz8-MC-aZt" secondAttribute="trailing" id="Pof-Pw-f20"/>
<constraint firstItem="67A-fb-ve2" firstAttribute="width" secondItem="oz8-MC-aZt" secondAttribute="width" id="QiC-TE-0Y4"/>
<constraint firstAttribute="bottom" secondItem="67A-fb-ve2" secondAttribute="bottom" id="VfI-TA-58A"/>
<constraint firstAttribute="trailing" secondItem="67A-fb-ve2" secondAttribute="trailing" id="hCp-si-9Ty"/>
<constraint firstItem="oz8-MC-aZt" firstAttribute="leading" secondItem="WSB-Vn-KNN" secondAttribute="leading" id="hhF-eh-act"/>
<constraint firstAttribute="bottom" secondItem="oz8-MC-aZt" secondAttribute="bottom" id="KRv-q9-Rs3"/>
<constraint firstItem="MGn-lg-139" firstAttribute="width" secondItem="oz8-MC-aZt" secondAttribute="width" id="NWF-Xs-2aD"/>
<constraint firstAttribute="trailing" secondItem="MGn-lg-139" secondAttribute="trailing" id="O85-xk-xy3"/>
<constraint firstItem="67A-fb-ve2" firstAttribute="leading" secondItem="oz8-MC-aZt" secondAttribute="trailing" id="Plu-iT-sbY"/>
<constraint firstItem="MGn-lg-139" firstAttribute="top" secondItem="WSB-Vn-KNN" secondAttribute="top" id="RMj-C9-XVv"/>
<constraint firstItem="67A-fb-ve2" firstAttribute="width" secondItem="oz8-MC-aZt" secondAttribute="width" id="TYf-QT-KHR"/>
<constraint firstItem="MGn-lg-139" firstAttribute="leading" secondItem="67A-fb-ve2" secondAttribute="trailing" id="WHW-ZP-6WS"/>
<constraint firstAttribute="bottom" secondItem="MGn-lg-139" secondAttribute="bottom" id="dhU-ym-NsY"/>
<constraint firstAttribute="bottom" secondItem="67A-fb-ve2" secondAttribute="bottom" id="l7W-38-z9a"/>
<constraint firstItem="oz8-MC-aZt" firstAttribute="top" secondItem="WSB-Vn-KNN" secondAttribute="top" id="p6w-1p-2FM"/>
<constraint firstItem="MGn-lg-139" firstAttribute="height" secondItem="oz8-MC-aZt" secondAttribute="height" id="pgk-bM-lHx"/>
<constraint firstAttribute="height" constant="44" id="qGv-cC-f7b"/>
<constraint firstAttribute="bottom" secondItem="oz8-MC-aZt" secondAttribute="bottom" id="yjz-Qy-gGg"/>
<constraint firstItem="oz8-MC-aZt" firstAttribute="leading" secondItem="WSB-Vn-KNN" secondAttribute="leading" id="rXQ-xH-cef"/>
<constraint firstItem="67A-fb-ve2" firstAttribute="height" secondItem="oz8-MC-aZt" secondAttribute="height" id="riw-dE-wdn"/>
<constraint firstItem="67A-fb-ve2" firstAttribute="top" secondItem="WSB-Vn-KNN" secondAttribute="top" id="udu-Yh-KDZ"/>
</constraints>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="IxS-20-RHd">
<rect key="frame" x="0.0" y="88" width="207" height="3"/>
<rect key="frame" x="0.0" y="88" width="138" height="3"/>
<color key="backgroundColor" name="按钮渐变色下,字体颜色"/>
<constraints>
<constraint firstAttribute="height" constant="3" id="q3l-Fx-Tde"/>
<constraint firstAttribute="height" constant="3" id="AKC-lg-WsT"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
......@@ -215,20 +235,20 @@
<constraint firstItem="Agb-5D-GhT" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="0yT-7f-y6P"/>
<constraint firstItem="Qvu-y5-cnX" firstAttribute="trailing" secondItem="fnl-2z-Ty3" secondAttribute="trailing" id="1eu-RJ-YIM"/>
<constraint firstItem="WSB-Vn-KNN" firstAttribute="top" secondItem="fnl-2z-Ty3" secondAttribute="top" id="2mp-e7-uPo"/>
<constraint firstItem="bVM-Rj-Ldp" firstAttribute="top" secondItem="IxS-20-RHd" secondAttribute="bottom" id="6pu-lq-0k9"/>
<constraint firstItem="WSB-Vn-KNN" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="7m6-nL-EBm"/>
<constraint firstItem="IxS-20-RHd" firstAttribute="width" secondItem="oz8-MC-aZt" secondAttribute="width" id="9a1-z6-Ule"/>
<constraint firstItem="Qvu-y5-cnX" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="9yL-R7-NKy"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="WSB-Vn-KNN" secondAttribute="trailing" id="CnI-wo-2Vl"/>
<constraint firstItem="IxS-20-RHd" firstAttribute="top" secondItem="WSB-Vn-KNN" secondAttribute="bottom" id="GDu-un-Tca"/>
<constraint firstAttribute="bottom" secondItem="Qvu-y5-cnX" secondAttribute="bottom" id="LZh-cN-7hK"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="Agb-5D-GhT" secondAttribute="trailing" id="P5u-N7-vtX"/>
<constraint firstAttribute="bottom" secondItem="x8A-F9-ceB" secondAttribute="bottom" id="Pt8-vh-lRl"/>
<constraint firstItem="IxS-20-RHd" firstAttribute="width" secondItem="oz8-MC-aZt" secondAttribute="width" id="QOg-Go-jvb"/>
<constraint firstItem="IxS-20-RHd" firstAttribute="top" secondItem="WSB-Vn-KNN" secondAttribute="bottom" id="R4g-Nd-3rz"/>
<constraint firstItem="IxS-20-RHd" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="Tea-d8-maf"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="bVM-Rj-Ldp" secondAttribute="trailing" id="WIT-60-9Ri"/>
<constraint firstItem="x8A-F9-ceB" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="aIP-0Y-veR"/>
<constraint firstItem="fnl-2z-Ty3" firstAttribute="trailing" secondItem="x8A-F9-ceB" secondAttribute="trailing" id="dJO-9v-RjF"/>
<constraint firstItem="Agb-5D-GhT" firstAttribute="top" secondItem="bVM-Rj-Ldp" secondAttribute="bottom" id="dKP-38-e8r"/>
<constraint firstItem="IxS-20-RHd" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="eKf-c6-rbc"/>
<constraint firstItem="bVM-Rj-Ldp" firstAttribute="top" secondItem="IxS-20-RHd" secondAttribute="bottom" id="jCp-qB-ztS"/>
<constraint firstItem="bVM-Rj-Ldp" firstAttribute="leading" secondItem="fnl-2z-Ty3" secondAttribute="leading" id="npf-z2-EPD"/>
<constraint firstItem="Qvu-y5-cnX" firstAttribute="top" secondItem="Agb-5D-GhT" secondAttribute="bottom" id="sgE-zs-hv4"/>
<constraint firstItem="x8A-F9-ceB" firstAttribute="top" secondItem="Agb-5D-GhT" secondAttribute="bottom" id="ywx-kA-VKG"/>
......
......@@ -620,80 +620,118 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
vc.isSQ = true
self.navigationController?.pushViewController(vc, animated: true)
return
case 131: //分销管理
HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 134: //分销商管理
// case 131: //分销管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 134: //分销商管理
//// HUD.flash(.label("敬请期待"),delay: 1.2)
//// let vc = GYS_HZ_Vc()
//// vc.title_str = "分销商管理"
// let vc = DZGL_VC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 133: //供应商管理
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// let vc = GYS_HZ_Vc()
// vc.title_str = "分销商管理"
let vc = DZGL_VC()
self.navigationController?.pushViewController(vc, animated: true)
return
case 133: //供应商管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
let vc = GYS_HZ_Vc()
vc.title_str = "供应商管理"
self.navigationController?.pushViewController(vc, animated: true)
return
case 139: //分销员管理
let vc = FXYGL_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 140://待审核分销员管理
let vc = DSHFXY_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 141://分销客户管理
let vc = KHXQ_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 142://分销收益管理
let vc = FXSY_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
// HUD.flash(.label("敬请期待"),delay: 1.2)
return
case 136: //分销商品管理
// vc.title_str = "供应商管理"
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 139: //分销员管理
// let vc = FXYGL_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 140://待审核分销员管理
// let vc = DSHFXY_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 141://分销客户管理
// let vc = KHXQ_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 142://分销收益管理
// let vc = FXSY_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
//// HUD.flash(.label("敬请期待"),delay: 1.2)
// return
// case 136: //分销商品管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
let vc = FX_Product_GuanLiVC()
self.navigationController?.pushViewController(vc, animated: true)
return
case 137: //分销分账设置
// let vc = FX_Product_GuanLiVC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 137: //分销分账设置
//只有当其为供应商才可以进入
// HUD.flash(.label("敬请期待"),delay: 1.2)
HUD.flash(.progress)
let UserToken = UserDefaults.standard.value(forKey: "user_token")
getDbtRule(["user_token":UserToken as Any]) { (data) in
let dataM = data as! getDbtRuleModel
if dataM.data?.is_sup == 1 {
HUD.hide()
let vc = DistributorSettingViewController()
vc.dataM = dataM.data
self.navigationController?.pushViewController(vc, animated: true)
}else{
HUD.flash(.label("仅供应商可使用该功能"),delay: 2.0)
}
} failture: { (error) in
}
return
case 132: //分销订单管理
let vc = RetailListMgVC()
self.navigationController?.pushViewController(vc, animated: true)
return
case 135: //供应商分销商品管理
// HUD.flash(.progress)
// let UserToken = UserDefaults.standard.value(forKey: "user_token")
// getDbtRule(["user_token":UserToken as Any]) { (data) in
// let dataM = data as! getDbtRuleModel
// if dataM.data?.is_sup == 1 {
// HUD.hide()
// let vc = DistributorSettingViewController()
// vc.dataM = dataM.data
// self.navigationController?.pushViewController(vc, animated: true)
// }else{
// HUD.flash(.label("仅供应商可使用该功能"),delay: 2.0)
// }
//
// } failture: { (error) in
//
// }
// return
// case 132: //分销订单管理
// let vc = RetailListMgVC()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 135: //供应商分销商品管理
// HUD.flash(.label("敬请期待"),delay: 1.2)
let vc = GYS_FX_Product_ListVc()
self.navigationController?.pushViewController(vc, animated: true)
return
case 146://店长申请审核
let vc = DZSH_Mg_ViewController()
self.navigationController?.pushViewController(vc, animated: true)
return
// let vc = GYS_FX_Product_ListVc()
// self.navigationController?.pushViewController(vc, animated: true)
// return
// case 146://店长申请审核
// let vc = DZSH_Mg_ViewController()
// self.navigationController?.pushViewController(vc, animated: true)
// return
case 148://下游代理商管理
break
case 149://店长审核管理
break
case 150://下游店长管理
break
case 151://分销员审核管理
break
case 152://分销员管理
break
case 153://设置分销商品
break
case 154://设置代理商品
break
case 155://分销分账管理
break
case 156://分销客户管理
break
case 157://分销订单管理
break
case 159://上游供应商管理
break
case 160://下游店长管理
break
case 161://上游代理商商品
break
case 162://代理订单管理
break
case 164://上游供应商管理
break
case 165://上游代理商管理
break
case 166://上游供应商商品
break
case 167://上游代理商商品管理
break
case 168://店长订单管理
break
default:
break;
}
......
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