修复bug
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
||||||
<device id="retina6_12" orientation="portrait" appearance="light"/>
|
<device id="retina4_0" orientation="portrait" appearance="light"/>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<deployment identifier="iOS"/>
|
<deployment identifier="iOS"/>
|
||||||
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
|
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
|
||||||
@@ -14,27 +14,27 @@
|
|||||||
<objects>
|
<objects>
|
||||||
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
||||||
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||||
<subviews>
|
<subviews>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="logoBg.png" translatesAutoresizingMaskIntoConstraints="NO" id="P32-ym-lLx">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="logoBg.png" translatesAutoresizingMaskIntoConstraints="NO" id="P32-ym-lLx">
|
||||||
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
|
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
|
||||||
</imageView>
|
</imageView>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="yinLogo.png" translatesAutoresizingMaskIntoConstraints="NO" id="wew-at-6Gy">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="yinLogo.png" translatesAutoresizingMaskIntoConstraints="NO" id="wew-at-6Gy">
|
||||||
<rect key="frame" x="150.33333333333334" y="218.33333333333334" width="92.333333333333343" height="101.33333333333334"/>
|
<rect key="frame" x="122.5" y="145.5" width="75" height="82.5"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="width" secondItem="wew-at-6Gy" secondAttribute="height" multiplier="10:11" id="Dey-fH-IHd"/>
|
<constraint firstAttribute="width" secondItem="wew-at-6Gy" secondAttribute="height" multiplier="10:11" id="Dey-fH-IHd"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</imageView>
|
</imageView>
|
||||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="textLogo.png" translatesAutoresizingMaskIntoConstraints="NO" id="yDg-LF-18t">
|
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="textLogo.png" translatesAutoresizingMaskIntoConstraints="NO" id="yDg-LF-18t">
|
||||||
<rect key="frame" x="66.666666666666686" y="394.66666666666669" width="259.99999999999994" height="23"/>
|
<rect key="frame" x="30" y="303" width="260" height="23"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstAttribute="height" constant="23" id="Hri-I0-bSi"/>
|
<constraint firstAttribute="height" constant="23" id="Hri-I0-bSi"/>
|
||||||
<constraint firstAttribute="width" constant="260" id="W9f-o8-Ce0"/>
|
<constraint firstAttribute="width" constant="260" id="W9f-o8-Ce0"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</imageView>
|
</imageView>
|
||||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="音萌" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZzI-AV-XXl">
|
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="音萌" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ZzI-AV-XXl">
|
||||||
<rect key="frame" x="160.33333333333334" y="331.66666666666669" width="72.666666666666657" height="43"/>
|
<rect key="frame" x="123.5" y="240" width="73" height="43"/>
|
||||||
<fontDescription key="fontDescription" type="system" weight="heavy" pointSize="36"/>
|
<fontDescription key="fontDescription" type="system" weight="heavy" pointSize="36"/>
|
||||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||||
<nil key="highlightedColor"/>
|
<nil key="highlightedColor"/>
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
|
||||||
<constraints>
|
<constraints>
|
||||||
<constraint firstItem="ZzI-AV-XXl" firstAttribute="top" secondItem="wew-at-6Gy" secondAttribute="bottom" constant="12" id="2Aa-PR-QFQ"/>
|
<constraint firstItem="ZzI-AV-XXl" firstAttribute="top" secondItem="wew-at-6Gy" secondAttribute="bottom" constant="12" id="2Aa-PR-QFQ"/>
|
||||||
<constraint firstItem="P32-ym-lLx" firstAttribute="leading" secondItem="6Tk-OE-BBY" secondAttribute="leading" id="A1t-Sc-PLp"/>
|
<constraint firstItem="P32-ym-lLx" firstAttribute="leading" secondItem="Ze5-6b-2t3" secondAttribute="leading" id="A1t-Sc-PLp"/>
|
||||||
<constraint firstAttribute="bottom" secondItem="P32-ym-lLx" secondAttribute="bottom" id="CHT-z3-yq3"/>
|
<constraint firstAttribute="bottom" secondItem="P32-ym-lLx" secondAttribute="bottom" id="CHT-z3-yq3"/>
|
||||||
<constraint firstItem="yDg-LF-18t" firstAttribute="top" secondItem="ZzI-AV-XXl" secondAttribute="bottom" constant="20" id="GwY-92-4j9"/>
|
<constraint firstItem="yDg-LF-18t" firstAttribute="top" secondItem="ZzI-AV-XXl" secondAttribute="bottom" constant="20" id="GwY-92-4j9"/>
|
||||||
<constraint firstItem="wew-at-6Gy" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="Hgt-J0-vRD"/>
|
<constraint firstItem="wew-at-6Gy" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="Hgt-J0-vRD"/>
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
<constraint firstItem="wew-at-6Gy" firstAttribute="width" secondItem="Ze5-6b-2t3" secondAttribute="width" multiplier="88/375" id="JzU-U9-l48"/>
|
<constraint firstItem="wew-at-6Gy" firstAttribute="width" secondItem="Ze5-6b-2t3" secondAttribute="width" multiplier="88/375" id="JzU-U9-l48"/>
|
||||||
<constraint firstItem="P32-ym-lLx" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="Te1-6K-LKS"/>
|
<constraint firstItem="P32-ym-lLx" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="top" id="Te1-6K-LKS"/>
|
||||||
<constraint firstItem="ZzI-AV-XXl" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="fLz-b0-u7S"/>
|
<constraint firstItem="ZzI-AV-XXl" firstAttribute="centerX" secondItem="Ze5-6b-2t3" secondAttribute="centerX" id="fLz-b0-u7S"/>
|
||||||
<constraint firstItem="6Tk-OE-BBY" firstAttribute="trailing" secondItem="P32-ym-lLx" secondAttribute="trailing" id="n4y-6G-Atm"/>
|
<constraint firstAttribute="trailing" secondItem="P32-ym-lLx" secondAttribute="trailing" id="n4y-6G-Atm"/>
|
||||||
<constraint firstItem="wew-at-6Gy" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="208/812" id="vNC-Os-z8z"/>
|
<constraint firstItem="wew-at-6Gy" firstAttribute="top" secondItem="Ze5-6b-2t3" secondAttribute="bottom" multiplier="208/812" id="vNC-Os-z8z"/>
|
||||||
</constraints>
|
</constraints>
|
||||||
</view>
|
</view>
|
||||||
|
@@ -16,13 +16,8 @@ class UserPayViewController: BaseViewController, HiddenNavigationBarProtocol{
|
|||||||
|
|
||||||
setUILayout()
|
setUILayout()
|
||||||
requestData()
|
requestData()
|
||||||
NotificationCenter.default.addObserver(self, selector: #selector(receiveInitiatePaymentNot(not:)), name: NSNotification.Name(rawValue: "kInitiatePayment"), object: nil)
|
|
||||||
}
|
|
||||||
@objc func receiveInitiatePaymentNot(not:Notification) {
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func requestData(){
|
func requestData(){
|
||||||
RequestGet(path: "chargeprod/list", parma: ["channelType":"8"]) { data in
|
RequestGet(path: "chargeprod/list", parma: ["channelType":"8"]) { data in
|
||||||
|
|
||||||
@@ -159,7 +154,7 @@ class UserPayViewController: BaseViewController, HiddenNavigationBarProtocol{
|
|||||||
make.width.equalTo(296)
|
make.width.equalTo(296)
|
||||||
make.height.equalTo(48)
|
make.height.equalTo(48)
|
||||||
make.centerX.equalTo(self.view)
|
make.centerX.equalTo(self.view)
|
||||||
make.top.equalTo(self.payAgreement.snp.bottom).offset(161)
|
make.top.equalTo(self.payAgreement.snp.bottom).offset(30)
|
||||||
}
|
}
|
||||||
publishBtn.superview?.layoutIfNeeded()
|
publishBtn.superview?.layoutIfNeeded()
|
||||||
let y = publishBtn.y + publishBtn.frame.height
|
let y = publishBtn.y + publishBtn.frame.height
|
||||||
|
Reference in New Issue
Block a user