Commit 5a3fddd8 authored by 刘俊宏's avatar 刘俊宏

完成付款码展示功能

parent 80f54a4c
...@@ -476,6 +476,8 @@ ...@@ -476,6 +476,8 @@
F96407642468DEB400A05E12 /* SaveFileModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96407632468DEB400A05E12 /* SaveFileModel.swift */; }; F96407642468DEB400A05E12 /* SaveFileModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F96407632468DEB400A05E12 /* SaveFileModel.swift */; };
F9697242248F6F7C0010D39B /* VendorListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9697241248F6F7C0010D39B /* VendorListModel.swift */; }; F9697242248F6F7C0010D39B /* VendorListModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9697241248F6F7C0010D39B /* VendorListModel.swift */; };
F9697244248F70C00010D39B /* VendorInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9697243248F70C00010D39B /* VendorInterface.swift */; }; F9697244248F70C00010D39B /* VendorInterface.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9697243248F70C00010D39B /* VendorInterface.swift */; };
F9697246248F88BB0010D39B /* GeliAltetCodeView.xib in Resources */ = {isa = PBXBuildFile; fileRef = F9697245248F88BB0010D39B /* GeliAltetCodeView.xib */; };
F9697248248F88C70010D39B /* GeliAltetCodeView.swift in Sources */ = {isa = PBXBuildFile; fileRef = F9697247248F88C70010D39B /* GeliAltetCodeView.swift */; };
F969BF07244EC38000C79953 /* GoodsCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F969BF05244EC38000C79953 /* GoodsCollectionViewCell.swift */; }; F969BF07244EC38000C79953 /* GoodsCollectionViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = F969BF05244EC38000C79953 /* GoodsCollectionViewCell.swift */; };
F969BF08244EC38000C79953 /* GoodsCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F969BF06244EC38000C79953 /* GoodsCollectionViewCell.xib */; }; F969BF08244EC38000C79953 /* GoodsCollectionViewCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = F969BF06244EC38000C79953 /* GoodsCollectionViewCell.xib */; };
F969BF1E244EE67900C79953 /* GoodsManageListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = F969BF1C244EE67900C79953 /* GoodsManageListVC.swift */; }; F969BF1E244EE67900C79953 /* GoodsManageListVC.swift in Sources */ = {isa = PBXBuildFile; fileRef = F969BF1C244EE67900C79953 /* GoodsManageListVC.swift */; };
...@@ -1056,6 +1058,8 @@ ...@@ -1056,6 +1058,8 @@
F96407632468DEB400A05E12 /* SaveFileModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SaveFileModel.swift; sourceTree = "<group>"; }; F96407632468DEB400A05E12 /* SaveFileModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SaveFileModel.swift; sourceTree = "<group>"; };
F9697241248F6F7C0010D39B /* VendorListModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VendorListModel.swift; sourceTree = "<group>"; }; F9697241248F6F7C0010D39B /* VendorListModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VendorListModel.swift; sourceTree = "<group>"; };
F9697243248F70C00010D39B /* VendorInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VendorInterface.swift; sourceTree = "<group>"; }; F9697243248F70C00010D39B /* VendorInterface.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = VendorInterface.swift; sourceTree = "<group>"; };
F9697245248F88BB0010D39B /* GeliAltetCodeView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GeliAltetCodeView.xib; sourceTree = "<group>"; };
F9697247248F88C70010D39B /* GeliAltetCodeView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeliAltetCodeView.swift; sourceTree = "<group>"; };
F969BF05244EC38000C79953 /* GoodsCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoodsCollectionViewCell.swift; sourceTree = "<group>"; }; F969BF05244EC38000C79953 /* GoodsCollectionViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoodsCollectionViewCell.swift; sourceTree = "<group>"; };
F969BF06244EC38000C79953 /* GoodsCollectionViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GoodsCollectionViewCell.xib; sourceTree = "<group>"; }; F969BF06244EC38000C79953 /* GoodsCollectionViewCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = GoodsCollectionViewCell.xib; sourceTree = "<group>"; };
F969BF1C244EE67900C79953 /* GoodsManageListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoodsManageListVC.swift; sourceTree = "<group>"; }; F969BF1C244EE67900C79953 /* GoodsManageListVC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GoodsManageListVC.swift; sourceTree = "<group>"; };
...@@ -2422,6 +2426,8 @@ ...@@ -2422,6 +2426,8 @@
F93E320A2473D83D00524DFC /* GeliAlertTextFiled.xib */, F93E320A2473D83D00524DFC /* GeliAlertTextFiled.xib */,
F93E32102473E05C00524DFC /* GeliAlertTextView.swift */, F93E32102473E05C00524DFC /* GeliAlertTextView.swift */,
F93E320E2473DF2300524DFC /* GeliAlertTextView.xib */, F93E320E2473DF2300524DFC /* GeliAlertTextView.xib */,
F9697247248F88C70010D39B /* GeliAltetCodeView.swift */,
F9697245248F88BB0010D39B /* GeliAltetCodeView.xib */,
); );
path = AlertView; path = AlertView;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -2787,6 +2793,7 @@ ...@@ -2787,6 +2793,7 @@
E00D85E8244561FE00F5F816 /* Preview Assets.xcassets in Resources */, E00D85E8244561FE00F5F816 /* Preview Assets.xcassets in Resources */,
E02DDD962450106C00ABB707 /* PuTongJieTiCell.xib in Resources */, E02DDD962450106C00ABB707 /* PuTongJieTiCell.xib in Resources */,
E0BE8A88245A7A1500E80134 /* JiBenXinXiCell.xib in Resources */, E0BE8A88245A7A1500E80134 /* JiBenXinXiCell.xib in Resources */,
F9697246248F88BB0010D39B /* GeliAltetCodeView.xib in Resources */,
F93E320F2473DF2300524DFC /* GeliAlertTextView.xib in Resources */, F93E320F2473DF2300524DFC /* GeliAlertTextView.xib in Resources */,
F9B6D9E32486891C00111698 /* MoreAndTimeSelectView.xib in Resources */, F9B6D9E32486891C00111698 /* MoreAndTimeSelectView.xib in Resources */,
E0A2E81B24552E3C00D6DB34 /* XinZengPinPaiViewController.xib in Resources */, E0A2E81B24552E3C00D6DB34 /* XinZengPinPaiViewController.xib in Resources */,
...@@ -3106,6 +3113,7 @@ ...@@ -3106,6 +3113,7 @@
F942A7FD247500C300FDFC47 /* TestClass.swift in Sources */, F942A7FD247500C300FDFC47 /* TestClass.swift in Sources */,
F950FDD824518B9500C40530 /* FSCalendarDelegationProxy.m in Sources */, F950FDD824518B9500C40530 /* FSCalendarDelegationProxy.m in Sources */,
E01EA1A0245A5D6B00F019D5 /* YunDanXiangQingViewController.swift in Sources */, E01EA1A0245A5D6B00F019D5 /* YunDanXiangQingViewController.swift in Sources */,
F9697248248F88C70010D39B /* GeliAltetCodeView.swift in Sources */,
F93615DB2480B421004187F9 /* WorkInterface.swift in Sources */, F93615DB2480B421004187F9 /* WorkInterface.swift in Sources */,
F956D5A0246A2D9C003FF510 /* LMNImageView.m in Sources */, F956D5A0246A2D9C003FF510 /* LMNImageView.m in Sources */,
E0E341EA246E95EE0060AC20 /* PingLunCell.swift in Sources */, E0E341EA246E95EE0060AC20 /* PingLunCell.swift in Sources */,
......
{
"images" : [
{
"filename" : "alterCodeOut.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "alterCodeOut@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "alterCodeOut@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "dowPhone.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "dowPhone@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "dowPhone@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_5" orientation="portrait" appearance="light"/> <device id="retina6_5" orientation="portrait" appearance="light"/>
<dependencies> <dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/> <capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/> <capability name="Safe area layout guides" minToolsVersion="9.0"/>
......
//
// GeliAltetCodeView.swift
// GeliBusinessPlatform
//
// Created by 刘俊宏 on 2020/6/9.
// Copyright © 2020 junye lu. All rights reserved.
//
import Foundation
class GeliAltetCodeView: UIView {
var saveImg: UIImage? = nil
@IBOutlet weak var titleLbl: UILabel!
@IBOutlet weak var outBtn: UIButton!
@IBAction func outAction(_ sender: UIButton) {
self.removeFromSuperview()
}
@IBOutlet weak var iconImgV: UIImageView!
@IBAction func dowPhoneAction(_ sender: UIButton) {
if saveImg == nil {
HUD.flash(.label("等待图片加载完毕"),delay: 1.2)
return
}else{
UIImageWriteToSavedPhotosAlbum(saveImg!, nil, nil, nil)
HUD.flash(.label("保存成功"),delay: 1.2)
}
self.removeFromSuperview()
}
//初始化时将xib中的view添加进来
var contentView:UIView!
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
}
}
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="16097" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="16087"/>
<capability name="Named colors" minToolsVersion="9.0"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="GeliAltetCodeView" customModule="TestClass" customModuleProvider="target">
<connections>
<outlet property="iconImgV" destination="jpt-TJ-aVx" id="dds-0x-gZv"/>
<outlet property="outBtn" destination="8lA-tg-PcF" id="1YU-VN-CUa"/>
<outlet property="titleLbl" destination="3UA-fV-YPC" id="ctt-i9-ui6"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view contentMode="scaleToFill" id="YjS-pf-BSo">
<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="1xk-Rr-MEN" userLabel="blackView">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<color key="backgroundColor" name="提示视图背景色"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="dR0-fY-HSt" userLabel="tishiView">
<rect key="frame" x="57" y="233" width="300" height="330"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="付款码" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3UA-fV-YPC">
<rect key="frame" x="117.5" y="15" width="65" height="26"/>
<fontDescription key="fontDescription" type="system" weight="semibold" pointSize="21"/>
<color key="textColor" name="标题字颜色"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="8lA-tg-PcF">
<rect key="frame" x="264" y="10" width="26" height="26"/>
<state key="normal" image="alterCodeOut"/>
<connections>
<action selector="outAction:" destination="-1" eventType="touchUpInside" id="AwN-Vx-Ml1"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="下载至手机" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="U7V-00-9eL">
<rect key="frame" x="114.5" y="298" width="71.5" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ww5-b9-ClA">
<rect key="frame" x="136" y="266" width="28" height="22"/>
<state key="normal" image="dowPhone"/>
<connections>
<action selector="dowPhoneAction:" destination="-1" eventType="touchUpInside" id="hNr-hH-jFE"/>
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="jpt-TJ-aVx">
<rect key="frame" x="67.5" y="82.5" width="165" height="165"/>
<constraints>
<constraint firstAttribute="width" constant="165" id="1DW-6X-Qbm"/>
<constraint firstAttribute="height" constant="165" id="zWe-4X-ofO"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor" cocoaTouchSystemColor="whiteColor"/>
<constraints>
<constraint firstItem="U7V-00-9eL" firstAttribute="centerX" secondItem="dR0-fY-HSt" secondAttribute="centerX" id="J1f-XI-0a7"/>
<constraint firstItem="3UA-fV-YPC" firstAttribute="top" secondItem="dR0-fY-HSt" secondAttribute="top" constant="15" id="Qig-rb-5VD"/>
<constraint firstAttribute="trailing" secondItem="8lA-tg-PcF" secondAttribute="trailing" constant="10" id="Snq-p5-Kmk"/>
<constraint firstAttribute="height" constant="330" id="W37-5e-uxT"/>
<constraint firstItem="U7V-00-9eL" firstAttribute="top" secondItem="ww5-b9-ClA" secondAttribute="bottom" constant="10" id="eUP-nk-N43"/>
<constraint firstItem="jpt-TJ-aVx" firstAttribute="centerX" secondItem="dR0-fY-HSt" secondAttribute="centerX" id="gH1-G7-OeA"/>
<constraint firstAttribute="width" constant="300" id="hrN-EK-faf"/>
<constraint firstItem="8lA-tg-PcF" firstAttribute="top" secondItem="dR0-fY-HSt" secondAttribute="top" constant="10" id="moq-55-nEs"/>
<constraint firstItem="3UA-fV-YPC" firstAttribute="centerX" secondItem="dR0-fY-HSt" secondAttribute="centerX" id="n0c-OG-2ka"/>
<constraint firstAttribute="bottom" secondItem="U7V-00-9eL" secondAttribute="bottom" constant="15" id="raM-9M-X4V"/>
<constraint firstItem="jpt-TJ-aVx" firstAttribute="centerY" secondItem="dR0-fY-HSt" secondAttribute="centerY" id="uFm-ne-HAd"/>
<constraint firstItem="ww5-b9-ClA" firstAttribute="centerX" secondItem="dR0-fY-HSt" secondAttribute="centerX" id="wM1-9M-euy"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="dR0-fY-HSt" firstAttribute="centerY" secondItem="YjS-pf-BSo" secondAttribute="centerY" constant="-50" id="Ip1-Ql-Las"/>
<constraint firstAttribute="bottom" secondItem="1xk-Rr-MEN" secondAttribute="bottom" id="bj2-dB-ptU"/>
<constraint firstItem="dR0-fY-HSt" firstAttribute="centerX" secondItem="YjS-pf-BSo" secondAttribute="centerX" id="h90-k0-OD5"/>
<constraint firstItem="1xk-Rr-MEN" firstAttribute="top" secondItem="YjS-pf-BSo" secondAttribute="top" id="mzO-rK-k2m"/>
<constraint firstItem="1xk-Rr-MEN" firstAttribute="leading" secondItem="YjS-pf-BSo" secondAttribute="leading" id="oU0-wa-Eqf"/>
<constraint firstAttribute="trailing" secondItem="1xk-Rr-MEN" secondAttribute="trailing" id="tGm-8y-zbR"/>
</constraints>
<viewLayoutGuide key="safeArea" id="H1b-gu-ySU"/>
<point key="canvasLocation" x="-430" y="100"/>
</view>
</objects>
<resources>
<image name="alterCodeOut" width="26" height="26"/>
<image name="dowPhone" width="28" height="21"/>
<namedColor name="提示视图背景色">
<color red="0.1803921568627451" green="0.1803921568627451" blue="0.1803921568627451" alpha="0.5" 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>
...@@ -66,6 +66,15 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD ...@@ -66,6 +66,15 @@ class WorkCViewController: BaseViewController, UITableViewDelegate, UITableViewD
} }
browser.show() browser.show()
// let alertView = GeliAltetCodeView(frame: self.view.window!.bounds)
//
// alertView.iconImgV.sd_setImage(with: URL(string:SERVERCE_ImageHost + (self.dataModel?.qr_code)!)) { (image, error, cacheType, imageURL) in
// //已下载
// alertView.saveImg = image
//
// }
// self.view.window?.addSubview(alertView)
} }
//MARK:--头部按钮方法 //MARK:--头部按钮方法
let selectV = WorkSelectTimeView() let selectV = WorkSelectTimeView()
......
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