Commit d2447cf8 authored by lujunye's avatar lujunye

删除demo文件夹

parent 1ec4e3ec
......@@ -46,8 +46,6 @@
E019E98124A975920086C565 /* brandListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = E019E98024A975920086C565 /* brandListModel.swift */; };
E019E98324A9763A0086C565 /* BrandListInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = E019E98224A9763A0086C565 /* BrandListInterface.swift */; };
E01C26B12446989700ADCC70 /* Interface_Z.plist in Resources */ = {isa = PBXBuildFile; fileRef = E01C26B02446989700ADCC70 /* Interface_Z.plist */; };
E01C26B62446AF3100ADCC70 /* DemoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E01C26B42446AF3100ADCC70 /* DemoViewController.swift */; };
E01C26B72446AF3100ADCC70 /* DemoViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E01C26B52446AF3100ADCC70 /* DemoViewController.xib */; };
E01EA1A0245A5D6B00F019D5 /* YunDanXiangQingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E01EA19E245A5D6B00F019D5 /* YunDanXiangQingViewController.swift */; };
E01EA1A1245A5D6B00F019D5 /* YunDanXiangQingViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = E01EA19F245A5D6B00F019D5 /* YunDanXiangQingViewController.xib */; };
E01EA1A4245A60E000F019D5 /* XiaDanChengGongViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E01EA1A2245A60E000F019D5 /* XiaDanChengGongViewController.swift */; };
......@@ -623,8 +621,6 @@
E019E98024A975920086C565 /* brandListModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = brandListModel.swift; sourceTree = "<group>"; };
E019E98224A9763A0086C565 /* BrandListInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BrandListInterface.swift; sourceTree = "<group>"; };
E01C26B02446989700ADCC70 /* Interface_Z.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Interface_Z.plist; sourceTree = "<group>"; };
E01C26B42446AF3100ADCC70 /* DemoViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoViewController.swift; sourceTree = "<group>"; };
E01C26B52446AF3100ADCC70 /* DemoViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = DemoViewController.xib; sourceTree = "<group>"; };
E01EA19E245A5D6B00F019D5 /* YunDanXiangQingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = YunDanXiangQingViewController.swift; sourceTree = "<group>"; };
E01EA19F245A5D6B00F019D5 /* YunDanXiangQingViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = YunDanXiangQingViewController.xib; sourceTree = "<group>"; };
E01EA1A2245A60E000F019D5 /* XiaDanChengGongViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = XiaDanChengGongViewController.swift; sourceTree = "<group>"; };
......@@ -1355,7 +1351,6 @@
children = (
E02F43C1246A91C1000ECFB1 /* GeliBusinessPlatform.entitlements */,
E088CC882446FFA1000DAA8A /* Other */,
E01C26B32446AEF800ADCC70 /* DEMO */,
E09B03B32445B19400211A51 /* Interface */,
E09B03AD2445B0BA00211A51 /* ViewController */,
E09B03AC2445B0B200211A51 /* View */,
......@@ -1431,15 +1426,6 @@
path = pinPai;
sourceTree = "<group>";
};
E01C26B32446AEF800ADCC70 /* DEMO */ = {
isa = PBXGroup;
children = (
E01C26B42446AF3100ADCC70 /* DemoViewController.swift */,
E01C26B52446AF3100ADCC70 /* DemoViewController.xib */,
);
path = DEMO;
sourceTree = "<group>";
};
E01EA19D245A5D5600F019D5 /* 运单详情 */ = {
isa = PBXGroup;
children = (
......@@ -3009,7 +2995,6 @@
E0273DDA24551B6D00B3FCAE /* SendTimeSelectView.xib in Resources */,
E0A409C42463F31600CFF109 /* ShouZhiTongJiViewController.xib in Resources */,
E0F1BE4924692379003015B2 /* ItemCell.xib in Resources */,
E01C26B72446AF3100ADCC70 /* DemoViewController.xib in Resources */,
F9DDBE972457D3EC00A32CB2 /* WebViewController.xib in Resources */,
E0F8E920248747D200817A08 /* NewCKVc.xib in Resources */,
E030DF372485DD3E002764D3 /* NewRKCell.xib in Resources */,
......@@ -3468,7 +3453,6 @@
F95A9EED24558E3D00867849 /* ChangeGoodsPriceVC.swift in Sources */,
E00E48BE2457BAC700F16545 /* XuanZeShangPinCell.swift in Sources */,
E042F734245274F200CDFA12 /* YunDanLieBiaoCell.swift in Sources */,
E01C26B62446AF3100ADCC70 /* DemoViewController.swift in Sources */,
F94A314F24625AFA00FEC38E /* GoodsUpDataModel.swift in Sources */,
F933F6C32452C68B00189561 /* FrameView.swift in Sources */,
F9DDBE922457BFEC00A32CB2 /* HUDEXT.swift in Sources */,
......
//
// DemoViewController.swift
// GeliBusinessPlatform
//
// Created by junye lu on 2020/4/15.
// Copyright © 2020 junye lu. All rights reserved.
//
import UIKit
import SkeletonView
import ViewAnimator
import LGButton
class DemoViewController: BaseViewController {
//MARK: -ViewAnimate方法
func animate(animations: [Animation],
reversed: Bool = false,
initialAlpha: CGFloat = 0.0,
finalAlpha: CGFloat = 1.0,
delay: Double = 0,
duration: TimeInterval = ViewAnimatorConfig.duration,
usingSpringWithDamping dampingRatio: CGFloat = ViewAnimatorConfig.springDampingRatio,
initialSpringVelocity velocity: CGFloat = ViewAnimatorConfig.initialSpringVelocity,
completion: (() -> Void)? = nil){
}
@IBOutlet weak var LgBtn: LGButton!
@IBOutlet weak var btn: UIButton!
@IBOutlet weak var textView: UITextView!
override func viewDidLoad() {
super.viewDidLoad()
//lgbutton
//桥接mjrefresh
let tbv = UITableView()
tbv.mj_header = MJRefreshHeader(refreshingBlock: {
})
//viewanimation动画效果
let animationBottom = AnimationType.from(direction: .right, offset: 300.0)
//调用方法,启动动画效果
btn.animate(animations: [animationBottom], reversed: false, initialAlpha: 0, finalAlpha: 1, delay: 0, duration: 3, usingSpringWithDamping: 5, initialSpringVelocity: CGFloat(UIView.AnimationOptions(rawValue: 1).rawValue), options: UIView.AnimationOptions(rawValue: 0)) {
}
textView.animate(animations: [animationBottom], reversed: false, initialAlpha: 0, finalAlpha: 1, delay: 0.5, duration: 3, usingSpringWithDamping: 5, initialSpringVelocity: CGFloat(UIView.AnimationOptions(rawValue: 1).rawValue), options: UIView.AnimationOptions(rawValue: 0)) {
}
//启动view动画
//xib设置textView加载,lastLine Fill Percent40,lineCorner 8
self.textView.showSkeleton()
//启动带效果动画
//带颜色
// self.btn.showSkeleton(usingColor:UIColor(named: "主色调")!, transition: .crossDissolve(0.25))
//不带颜色
self.btn.showSkeleton(transition: .crossDissolve(0.25))
DispatchQueue.main.asyncAfter(deadline: .now() + 4) {
//停止view动画
self.textView?.hideSkeleton()
//带效果动画
self.btn.hideSkeleton(reloadDataAfter: true, transition: .crossDissolve(0.25))
}
// Do any additional setup after loading the view.
}
convenience init(title: String) {
self.init(title: title, content: "")
}
init(title: String, content: String) {
super.init(nibName: nil, bundle: nil)
self.title = title
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="15702" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="15704"/>
<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="DemoViewController" customModule="GeliBusinessPlatform" customModuleProvider="target">
<connections>
<outlet property="LgBtn" destination="rzX-iy-jVl" id="BUB-h3-c7H"/>
<outlet property="btn" destination="pC1-h6-KAt" id="pNC-YY-Qel"/>
<outlet property="textView" destination="3Ky-Y2-Xpu" id="Kb8-WI-0nK"/>
<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>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="pC1-h6-KAt">
<rect key="frame" x="20" y="177" width="46" height="30"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<state key="normal" title="Button"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isSkeletonable" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="skeletonCornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</button>
<textView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" fixedFrame="YES" textAlignment="natural" translatesAutoresizingMaskIntoConstraints="NO" id="3Ky-Y2-Xpu">
<rect key="frame" x="12" y="209" width="240" height="128"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<string key="text">Lorem ipsum dolor sit er elit lamet, consectetaur cillium adipisicing pecu, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Nam liber te conscient to factor tum poen legum odioque civiuda.</string>
<color key="textColor" systemColor="labelColor" cocoaTouchSystemColor="darkTextColor"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<textInputTraits key="textInputTraits" autocapitalizationType="sentences"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="boolean" keyPath="isSkeletonable" value="YES"/>
<userDefinedRuntimeAttribute type="number" keyPath="skeletonCornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="lastLineFillPercent">
<integer key="value" value="40"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="linesCornerRadius">
<integer key="value" value="8"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</textView>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="rzX-iy-jVl" customClass="LGButton" customModule="LGButton">
<rect key="frame" x="20" y="386" width="135" height="61"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="bgColor">
<color key="value" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="string" keyPath="titleString" value="下载按钮按钮"/>
<userDefinedRuntimeAttribute type="color" keyPath="shadowColor">
<color key="value" systemColor="systemPurpleColor" red="0.68627450980000004" green="0.32156862749999998" blue="0.87058823529999996" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="shadowOpacity">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientStartColor">
<color key="value" name="标题字颜色"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="gradientEndColor">
<color key="value" name="主色调"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="gradientRotation">
<real key="value" value="100"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="50"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="fullyRoundedCorners" value="YES"/>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" systemColor="systemIndigoColor" red="0.34509803919999998" green="0.33725490200000002" blue="0.83921568629999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
<real key="value" value="2"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="titleColor">
<color key="value" red="0.5568627451" green="0.23921568630000001" blue="0.16078431369999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="titleNumOfLines">
<integer key="value" value="2"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="boolean" keyPath="verticalOrientation" value="NO"/>
<userDefinedRuntimeAttribute type="size" keyPath="shadowOffset">
<size key="value" width="1" height="6"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="number" keyPath="shadowRadius">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="image" keyPath="leftImageSrc" value="arrow.png"/>
<userDefinedRuntimeAttribute type="image" keyPath="rightImageSrc" value="square.and.arrow.down.on.square" catalog="system"/>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<viewLayoutGuide key="safeArea" id="fnl-2z-Ty3"/>
<point key="canvasLocation" x="108.69565217391305" y="145.98214285714286"/>
</view>
</objects>
<resources>
<image name="arrow.png" width="15" height="40"/>
<image name="square.and.arrow.down.on.square" catalog="system" width="60" height="64"/>
<namedColor name="主色调">
<color red="0.85100001096725464" green="0.19599999487400055" blue="0.29699999094009399" 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>
</resources>
</document>
......@@ -8,6 +8,7 @@
import UIKit
import ViewAnimator
import SkeletonView
class GoodsManageListVC: BaseViewController, UICollectionViewDelegate, UICollectionViewDataSource ,UICollectionViewDelegateFlowLayout,HeaderSelectViewDelegate,SelectContentViewDelegate,UISearchBarDelegate, SearchBarViewDelegate, GoodsCollectionViewCellDelegate,ProductDetailViewControllerDelegate, GeliAlertViewDelegate,EPViewControllerDelegate{
......
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