修复bug

This commit is contained in:
liyuhua
2024-03-11 11:00:59 +08:00
parent 6bef9d8da9
commit 9c8e892859
2 changed files with 11 additions and 16 deletions

View File

@@ -1,6 +1,6 @@
<?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">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<device id="retina4_0" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
@@ -14,27 +14,27 @@
<objects>
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
<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"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" 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"/>
<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="320" height="568"/>
</imageView>
<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>
<constraint firstAttribute="width" secondItem="wew-at-6Gy" secondAttribute="height" multiplier="10:11" id="Dey-fH-IHd"/>
</constraints>
</imageView>
<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>
<constraint firstAttribute="height" constant="23" id="Hri-I0-bSi"/>
<constraint firstAttribute="width" constant="260" id="W9f-o8-Ce0"/>
</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="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"/>
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
@@ -44,7 +44,7 @@
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<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 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"/>
@@ -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="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="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"/>
</constraints>
</view>

View File

@@ -16,13 +16,8 @@ class UserPayViewController: BaseViewController, HiddenNavigationBarProtocol{
setUILayout()
requestData()
NotificationCenter.default.addObserver(self, selector: #selector(receiveInitiatePaymentNot(not:)), name: NSNotification.Name(rawValue: "kInitiatePayment"), object: nil)
}
@objc func receiveInitiatePaymentNot(not:Notification) {
//
//
//
}
func requestData(){
RequestGet(path: "chargeprod/list", parma: ["channelType":"8"]) { data in
@@ -159,7 +154,7 @@ class UserPayViewController: BaseViewController, HiddenNavigationBarProtocol{
make.width.equalTo(296)
make.height.equalTo(48)
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()
let y = publishBtn.y + publishBtn.frame.height