首次提交

This commit is contained in:
启星
2025-08-08 11:05:33 +08:00
parent 1b3bb91b4a
commit adc1a2a25d
8803 changed files with 708874 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
//
// LMBindBankQianyueViewController.h
// SweetParty
//
// Created by Xmac on 2024/9/12.
//
#import "BaseController.h"
#import "SPWalletModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface LMBindBankQianyueViewController : BaseController
@property(nonatomic, strong) SPWalletModel *model;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,82 @@
//
// LMBindBankQianyueViewController.m
// SweetParty
//
// Created by Xmac on 2024/9/12.
//
#import "LMBindBankQianyueViewController.h"
@interface LMBindBankQianyueViewController ()
@property (weak, nonatomic) IBOutlet UITextField *nameTF;
@property (weak, nonatomic) IBOutlet UITextField *cardTF;
@property (weak, nonatomic) IBOutlet UITextField *bankTF;
@property (weak, nonatomic) IBOutlet UITextField *openTF;
@property (weak, nonatomic) IBOutlet UIButton *quitBtn;
@end
@implementation LMBindBankQianyueViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self loadBar:YES needBack:YES needBackground:NO];
self.titleLabel.text = @"绑定银行卡";
self.titleLabel.textColor = HEXCOLOR(0x333333);
self.leftButtonView.image = ImageNamed(@"blackBack");
self.barView.backgroundColor = kClearColor;
self.bgView.backgroundColor = HEXCOLOR(0xFFFFFF);
self.nameTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的真实姓名" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0x999999, 1)}];
self.cardTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的银行卡号" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0x999999, 1)}];
self.bankTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的开卡银行" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0x999999, 1)}];
self.openTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入银行卡开户行" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0x999999, 1)}];
_quitBtn.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(APPW-15*2, 44) direction:(FXGradientChangeDirectionHorizontal) startColor:mainLightColor endColor:mainDeepColor];
if (self.model.bank_card_number.length > 0) {
self.nameTF.text = self.model.bank_user_name;
self.cardTF.text = self.model.bank_card_number;
self.bankTF.text = self.model.bank_card;
self.openTF.text = self.model.open_bank;
}
}
- (IBAction)onConfirm:(id)sender {
if (self.nameTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入真实姓名"];
return;
}
if (self.cardTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入银行卡号"];
return;
}
if (self.bankTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入银行名称"];
return;
}
if (self.openTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入银行卡开户行"];
return;
}
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
[dict setValue:self.bankTF.text forKey:@"bank_card"];
[dict setValue:self.cardTF.text forKey:@"bank_card_number"];
[dict setValue:self.nameTF.text forKey:@"bank_user_name"];
[dict setValue:self.openTF.text forKey:@"open_bank"];
[MBProgressHUD showLoadToView:MainWindow()];
[BJHttpTool BJ_binding_bank_cardWithParameters:dict success:^(id response) {
if ([response[@"code"] integerValue]==200) {
[self.navigationController popViewControllerAnimated:YES];
}
[MBProgressHUD hideHUD];
[MBProgressHUD showAutoMessage:response[@"msg"]];
} failure:^(NSError *error) {
}];
}
@end

View File

@@ -0,0 +1,275 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<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="LMBindBankQianyueViewController">
<connections>
<outlet property="bankTF" destination="enl-k6-as0" id="aqm-7T-nDb"/>
<outlet property="cardTF" destination="bhc-EI-nbh" id="Ecj-2q-V3B"/>
<outlet property="nameTF" destination="UmW-hx-icz" id="edn-gW-9VC"/>
<outlet property="openTF" destination="cdb-f1-A1T" id="GLH-gu-y6x"/>
<outlet property="quitBtn" destination="R5R-o0-Xyv" id="xq2-gW-rR4"/>
<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="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_bg" translatesAutoresizingMaskIntoConstraints="NO" id="bdb-Kz-yOf">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="姓名及银行卡号必须为本人真实信息" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5q5-cM-aDV">
<rect key="frame" x="16" y="391" width="196.66666666666666" height="14.666666666666686"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HLR-bv-zkV">
<rect key="frame" x="15" y="110" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入您的真实姓名" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="UmW-hx-icz">
<rect key="frame" x="58" y="0.0" width="272" height="54"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="姓名" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YOv-Rs-d6d">
<rect key="frame" x="15" y="17" width="33" height="20"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="G55-gz-UEV">
<rect key="frame" x="0.0" y="53.666666666666657" width="345" height="0.3333333333333357"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="gzk-gF-WFx"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="UmW-hx-icz" firstAttribute="leading" secondItem="YOv-Rs-d6d" secondAttribute="trailing" constant="10" id="1aI-zI-eO8"/>
<constraint firstAttribute="bottom" secondItem="UmW-hx-icz" secondAttribute="bottom" id="35u-jy-jyb"/>
<constraint firstAttribute="trailing" secondItem="G55-gz-UEV" secondAttribute="trailing" id="7fD-Bg-9Ls"/>
<constraint firstItem="UmW-hx-icz" firstAttribute="top" secondItem="HLR-bv-zkV" secondAttribute="top" id="BPZ-3I-6NT"/>
<constraint firstAttribute="height" constant="54" id="ZQR-Xy-eSJ"/>
<constraint firstItem="YOv-Rs-d6d" firstAttribute="centerY" secondItem="HLR-bv-zkV" secondAttribute="centerY" id="gPS-P2-f5X"/>
<constraint firstItem="G55-gz-UEV" firstAttribute="leading" secondItem="HLR-bv-zkV" secondAttribute="leading" id="hOG-Gg-n1w"/>
<constraint firstItem="YOv-Rs-d6d" firstAttribute="leading" secondItem="HLR-bv-zkV" secondAttribute="leading" constant="15" id="izT-Mv-xC7"/>
<constraint firstAttribute="trailing" secondItem="UmW-hx-icz" secondAttribute="trailing" constant="15" id="vSE-gc-kMH"/>
<constraint firstAttribute="bottom" secondItem="G55-gz-UEV" secondAttribute="bottom" id="wXB-GC-MCE"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="tJS-O2-OYH">
<rect key="frame" x="15" y="179" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入您的银行卡号" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="bhc-EI-nbh">
<rect key="frame" x="91" y="0.0" width="239" height="54"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="银行卡号" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="HVE-Jr-qQB">
<rect key="frame" x="15" y="17" width="66" height="20"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kkp-7H-tz4">
<rect key="frame" x="0.0" y="53.666666666666657" width="345" height="0.3333333333333357"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="0CC-uk-wAG"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="HVE-Jr-qQB" firstAttribute="leading" secondItem="tJS-O2-OYH" secondAttribute="leading" constant="15" id="661-au-EWY"/>
<constraint firstAttribute="bottom" secondItem="bhc-EI-nbh" secondAttribute="bottom" id="KaE-tJ-Qo5"/>
<constraint firstItem="HVE-Jr-qQB" firstAttribute="centerY" secondItem="tJS-O2-OYH" secondAttribute="centerY" id="LMn-Gc-gZj"/>
<constraint firstAttribute="bottom" secondItem="kkp-7H-tz4" secondAttribute="bottom" id="O2N-fs-1nX"/>
<constraint firstAttribute="height" constant="54" id="i6u-4w-Dxw"/>
<constraint firstItem="bhc-EI-nbh" firstAttribute="leading" secondItem="HVE-Jr-qQB" secondAttribute="trailing" constant="10" id="ior-HF-dq1"/>
<constraint firstAttribute="trailing" secondItem="bhc-EI-nbh" secondAttribute="trailing" constant="15" id="oBg-My-EgI"/>
<constraint firstItem="bhc-EI-nbh" firstAttribute="top" secondItem="tJS-O2-OYH" secondAttribute="top" id="qry-ph-kS7"/>
<constraint firstItem="kkp-7H-tz4" firstAttribute="leading" secondItem="tJS-O2-OYH" secondAttribute="leading" id="tDt-zE-vLW"/>
<constraint firstAttribute="trailing" secondItem="kkp-7H-tz4" secondAttribute="trailing" id="zee-Gh-afn"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JrO-7H-bRP">
<rect key="frame" x="15" y="248" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入银行卡银行" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="enl-k6-as0">
<rect key="frame" x="90.333333333333329" y="0.0" width="239.66666666666669" height="54"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="所属银行" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SPK-5v-utq">
<rect key="frame" x="15" y="17" width="65.333333333333329" height="20"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="TzS-EB-SXg">
<rect key="frame" x="0.0" y="53.666666666666686" width="345" height="0.3333333333333357"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="Zkn-xQ-fR7"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="enl-k6-as0" firstAttribute="top" secondItem="JrO-7H-bRP" secondAttribute="top" id="0Ph-uW-jCa"/>
<constraint firstAttribute="bottom" secondItem="enl-k6-as0" secondAttribute="bottom" id="BPD-br-kT1"/>
<constraint firstItem="TzS-EB-SXg" firstAttribute="leading" secondItem="JrO-7H-bRP" secondAttribute="leading" id="CYV-bT-oY4"/>
<constraint firstItem="SPK-5v-utq" firstAttribute="leading" secondItem="JrO-7H-bRP" secondAttribute="leading" constant="15" id="Y1R-Yw-Qqa"/>
<constraint firstAttribute="height" constant="54" id="Y6M-OC-QL7"/>
<constraint firstAttribute="trailing" secondItem="TzS-EB-SXg" secondAttribute="trailing" id="e1L-we-ExM"/>
<constraint firstItem="enl-k6-as0" firstAttribute="leading" secondItem="SPK-5v-utq" secondAttribute="trailing" constant="10" id="kBE-eJ-diW"/>
<constraint firstAttribute="bottom" secondItem="TzS-EB-SXg" secondAttribute="bottom" id="m1q-0X-6WN"/>
<constraint firstItem="SPK-5v-utq" firstAttribute="centerY" secondItem="JrO-7H-bRP" secondAttribute="centerY" id="p7U-D0-ft4"/>
<constraint firstAttribute="trailing" secondItem="enl-k6-as0" secondAttribute="trailing" constant="15" id="zDM-eT-ep5"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Qpz-cw-zdK">
<rect key="frame" x="15" y="317" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入银行卡开户行" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="cdb-f1-A1T">
<rect key="frame" x="123" y="0.0" width="207" height="54"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="银行卡开户行" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qqo-7Q-frd">
<rect key="frame" x="15" y="17" width="98" height="20"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Z5e-r2-xkB">
<rect key="frame" x="0.0" y="53.666666666666686" width="345" height="0.3333333333333357"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="ZVB-XB-dPW"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="Z5e-r2-xkB" secondAttribute="bottom" id="6WD-kX-A3Y"/>
<constraint firstItem="Qqo-7Q-frd" firstAttribute="centerY" secondItem="Qpz-cw-zdK" secondAttribute="centerY" id="BXo-JO-OCu"/>
<constraint firstItem="Qqo-7Q-frd" firstAttribute="leading" secondItem="Qpz-cw-zdK" secondAttribute="leading" constant="15" id="EwP-Bj-Dq3"/>
<constraint firstAttribute="bottom" secondItem="cdb-f1-A1T" secondAttribute="bottom" id="IXS-m7-rCQ"/>
<constraint firstAttribute="trailing" secondItem="cdb-f1-A1T" secondAttribute="trailing" constant="15" id="NOI-6C-dRh"/>
<constraint firstAttribute="trailing" secondItem="Z5e-r2-xkB" secondAttribute="trailing" id="RlC-uh-BHS"/>
<constraint firstItem="cdb-f1-A1T" firstAttribute="leading" secondItem="Qqo-7Q-frd" secondAttribute="trailing" constant="10" id="ZGr-0a-W7i"/>
<constraint firstItem="Z5e-r2-xkB" firstAttribute="leading" secondItem="Qpz-cw-zdK" secondAttribute="leading" id="paF-ft-3Yg"/>
<constraint firstAttribute="height" constant="54" id="xLy-AX-ckq"/>
<constraint firstItem="cdb-f1-A1T" firstAttribute="top" secondItem="Qpz-cw-zdK" secondAttribute="top" id="zqD-jG-RDb"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="R5R-o0-Xyv">
<rect key="frame" x="15" y="485.66666666666669" width="345" height="44.000000000000057"/>
<color key="backgroundColor" systemColor="systemMintColor"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="MTF-iX-gKf"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<state key="normal" title="确认绑定">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="22"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="-1" eventType="touchUpInside" id="Rjw-l8-W9c"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="R5R-o0-Xyv" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="3A8-rs-2BV"/>
<constraint firstAttribute="trailing" secondItem="R5R-o0-Xyv" secondAttribute="trailing" constant="15" id="4QY-Fp-dsH"/>
<constraint firstAttribute="trailing" secondItem="tJS-O2-OYH" secondAttribute="trailing" constant="15" id="5hm-ql-f9P"/>
<constraint firstItem="5q5-cM-aDV" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="16" id="BQr-Ix-WKx"/>
<constraint firstItem="JrO-7H-bRP" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="Cim-cG-z77"/>
<constraint firstItem="bdb-Kz-yOf" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="D6E-Et-kVp"/>
<constraint firstItem="JrO-7H-bRP" firstAttribute="top" secondItem="tJS-O2-OYH" secondAttribute="bottom" constant="15" id="GZ2-7F-x4J"/>
<constraint firstItem="tJS-O2-OYH" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="Hn5-bk-CPu"/>
<constraint firstItem="Qpz-cw-zdK" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="Jdv-gk-hz5"/>
<constraint firstAttribute="trailing" secondItem="Qpz-cw-zdK" secondAttribute="trailing" constant="15" id="N73-3m-CLr"/>
<constraint firstAttribute="trailing" secondItem="bdb-Kz-yOf" secondAttribute="trailing" id="Nrg-UG-UCO"/>
<constraint firstItem="bdb-Kz-yOf" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="Oca-Sf-pop"/>
<constraint firstAttribute="trailing" secondItem="HLR-bv-zkV" secondAttribute="trailing" constant="15" id="QAi-5C-CKj"/>
<constraint firstItem="HLR-bv-zkV" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="Tva-ae-eMQ"/>
<constraint firstItem="tJS-O2-OYH" firstAttribute="top" secondItem="HLR-bv-zkV" secondAttribute="bottom" constant="15" id="Vae-M8-ggG"/>
<constraint firstItem="Qpz-cw-zdK" firstAttribute="top" secondItem="JrO-7H-bRP" secondAttribute="bottom" constant="15" id="Xia-AH-cC4"/>
<constraint firstItem="5q5-cM-aDV" firstAttribute="top" secondItem="Qpz-cw-zdK" secondAttribute="bottom" constant="20" id="gNI-sS-4X1"/>
<constraint firstAttribute="bottom" secondItem="bdb-Kz-yOf" secondAttribute="bottom" id="i12-hj-ibX"/>
<constraint firstAttribute="trailing" secondItem="JrO-7H-bRP" secondAttribute="trailing" constant="15" id="jUp-g1-gNC"/>
<constraint firstItem="HLR-bv-zkV" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="nhD-ub-iKr"/>
<constraint firstItem="R5R-o0-Xyv" firstAttribute="top" secondItem="5q5-cM-aDV" secondAttribute="bottom" constant="80" id="rAC-BL-mxt"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="130.53435114503816" y="-11.267605633802818"/>
</view>
</objects>
<resources>
<image name="home_bg" width="375" height="812"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
<systemColor name="systemMintColor">
<color red="0.0" green="0.7803921568627451" blue="0.74509803921568629" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,18 @@
//
// LMTixianQianyueViewController.h
// SweetParty
//
// Created by Xmac on 2024/9/12.
//
#import "BaseController.h"
NS_ASSUME_NONNULL_BEGIN
@interface LMTixianQianyueViewController : BaseController
@property (nonatomic, strong) NSString *url;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,74 @@
//
// LMTixianQianyueViewController.m
// SweetParty
//
// Created by Xmac on 2024/9/12.
//
#import "LMTixianQianyueViewController.h"
#import <WebKit/WebKit.h>
@interface LMTixianQianyueViewController ()<WKNavigationDelegate,WKUIDelegate>
@property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UIButton *confirmButton;
@property (weak, nonatomic) IBOutlet UIView *webCover;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topLayout;
@end
@implementation LMTixianQianyueViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self setupUI];
}
- (void)setupUI
{
self.confirmButton.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(APPW-29*2, 48) direction:(FXGradientChangeDirectionHorizontal) startColor:mainLightColor endColor:mainDeepColor];
WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];
configuration.userContentController = [[WKUserContentController alloc] init];
configuration.preferences = [[WKPreferences alloc] init];
configuration.preferences.minimumFontSize = 10;
configuration.preferences.javaScriptEnabled = YES;
configuration.preferences.javaScriptCanOpenWindowsAutomatically = YES;
_webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, APPW, APPH) configuration:configuration];
_webView.navigationDelegate = self;
_webView.UIDelegate = self;
_webView.backgroundColor = kClearColor;
_webView.scrollView.backgroundColor = kClearColor;
[self.webCover addSubview:_webView];
NSURL *url = [NSURL URLWithString:self.url];
[_webView loadRequest:[NSURLRequest requestWithURL:url]];
[_webView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(_webCover);
}];
}
- (IBAction)confirmButtonClick:(UIButton *)sender {
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/yun/submit_sign" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
NSInteger code = [responseDic safeIntForKey:@"code"];
if (code==200){
[HelpPageDefine showMessage:@"成功"];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (IBAction)backMethod:(UIButton *)sender {
[self dismissViewControllerAnimated:YES completion:^{
}];
}
@end

View File

@@ -0,0 +1,103 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<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="LMTixianQianyueViewController">
<connections>
<outlet property="confirmButton" destination="Luf-9q-FRH" id="Thu-kI-iYx"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
<outlet property="webCover" destination="T3F-Ct-W4X" id="bC6-Iq-dgx"/>
</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="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_bg" translatesAutoresizingMaskIntoConstraints="NO" id="rBX-1a-rh0">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="T3F-Ct-W4X">
<rect key="frame" x="0.0" y="90" width="393" height="702"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Luf-9q-FRH">
<rect key="frame" x="29" y="754" width="335" height="48"/>
<color key="backgroundColor" red="1" green="0.31764705879999999" blue="0.3411764706" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="1nH-Rp-Pi7"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="确认">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="confirmButtonClick:" destination="-1" eventType="touchUpInside" id="hh6-Ej-2s9"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="0QN-o2-caS">
<rect key="frame" x="0.0" y="0.0" width="393" height="80"/>
<subviews>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="VHI-sj-IVY">
<rect key="frame" x="10" y="36" width="44" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="44" id="4zQ-gZ-Vsa"/>
<constraint firstAttribute="height" constant="44" id="iBL-lB-KXX"/>
</constraints>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="blackBack"/>
<connections>
<action selector="backMethod:" destination="-1" eventType="touchUpInside" id="zhQ-hj-tQk"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="VHI-sj-IVY" firstAttribute="leading" secondItem="0QN-o2-caS" secondAttribute="leading" constant="10" id="RTp-l8-bLX"/>
<constraint firstAttribute="bottom" secondItem="VHI-sj-IVY" secondAttribute="bottom" id="mxv-L2-VdC"/>
<constraint firstAttribute="height" constant="80" id="paR-dT-nrh"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="rBX-1a-rh0" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="2ZO-YR-vzC"/>
<constraint firstItem="T3F-Ct-W4X" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="81O-3H-fP6"/>
<constraint firstItem="Luf-9q-FRH" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" constant="29" id="AoZ-JK-3xz"/>
<constraint firstItem="T3F-Ct-W4X" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="DNU-OH-gCZ"/>
<constraint firstItem="T3F-Ct-W4X" firstAttribute="top" secondItem="0QN-o2-caS" secondAttribute="bottom" constant="10" id="SND-vV-Y0a"/>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="Luf-9q-FRH" secondAttribute="trailing" constant="29" id="SUv-zq-4Fg"/>
<constraint firstItem="0QN-o2-caS" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="X0o-qr-t11"/>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="0QN-o2-caS" secondAttribute="trailing" id="fFk-6n-U59"/>
<constraint firstItem="rBX-1a-rh0" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="ffo-1O-Ezj"/>
<constraint firstAttribute="bottom" secondItem="Luf-9q-FRH" secondAttribute="bottom" constant="50" id="l6c-YQ-5mx"/>
<constraint firstAttribute="bottom" secondItem="T3F-Ct-W4X" secondAttribute="bottom" constant="60" id="mn9-09-gwQ"/>
<constraint firstAttribute="bottom" secondItem="rBX-1a-rh0" secondAttribute="bottom" id="o5W-KV-n1G"/>
<constraint firstItem="rBX-1a-rh0" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="xbv-9N-bnW"/>
<constraint firstItem="0QN-o2-caS" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="zma-l0-GJh"/>
</constraints>
<point key="canvasLocation" x="130.53435114503816" y="-11.267605633802818"/>
</view>
</objects>
<resources>
<image name="blackBack" width="8.5" height="16"/>
<image name="home_bg" width="375" height="812"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,18 @@
//
// LMTixianRecordDetailViewController.h
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface LMTixianRecordDetailViewController : BaseViewController
@property (nonatomic, strong) NSString *wid;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,83 @@
//
// LMTixianRecordDetailViewController.m
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import "LMTixianRecordDetailViewController.h"
#import "LMTixianRecordDetailModel.h"
#import "NSString+category.h"
@interface LMTixianRecordDetailViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *typeIcon;
@property (weak, nonatomic) IBOutlet UILabel *typeNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *moneyLabel;
@property (weak, nonatomic) IBOutlet UILabel *statusLabel;
@property (weak, nonatomic) IBOutlet UILabel *rateLabel;
@property (weak, nonatomic) IBOutlet UILabel *rataTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *tixianMoneyLabel;
@property (weak, nonatomic) IBOutlet UILabel *sevrMoneyLabel;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UILabel *addTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *accountLabel;
@property (nonatomic, strong) LMTixianRecordDetailModel *model;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topLayout;
@end
@implementation LMTixianRecordDetailViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"提现记录"];
self.topLayout.constant = yb_NavigationBar_H+30;
[self requestRecordDetails];
}
- (void)setupInfo
{
if (self.model.status == 1){
self.statusLabel.text = @"待审核";
}else if (self.model.status == 2){
self.statusLabel.text = @"已到账";
}else if (self.model.status == 3){
self.statusLabel.text = @"打款失败";
}else{
self.statusLabel.text = @"未知";
}
if (self.model.type == 1){
self.typeNameLabel.text = @"支付宝";
self.typeIcon.image = ImageNamed(@"tixianRecord_ali");
}else if (self.model.type == 2){
self.typeNameLabel.text = @"银行卡";
self.typeIcon.image = ImageNamed(@"tixianRecord_bank");
}
self.moneyLabel.text = self.model.general_money;
self.rateLabel.text = [NSString stringWithFormat:@"申请提现%@,扣除手续费%@,应到账%@",self.model.money,self.model.server_money,self.model.general_money];
self.tixianMoneyLabel.text = [NSString stringWithFormat:@"¥%@",self.model.money];
self.sevrMoneyLabel.text = [NSString stringWithFormat:@"¥%@",self.model.server_money];
self.contentLabel.text = _model.remarke;
self.addTimeLabel.text = _model.add_time.formateDateYMD_HM;
self.rataTimeLabel.text = _model.add_time.formateDateYMD_HM;
self.accountLabel.text = _model.account;
}
- (void)requestRecordDetails
{
NSDictionary *params = @{@"wid":C_string(self.wid)};
[RCMicHTTP postWithURLString:@"api/user/get_one_withdrawal_detail" parameters:params response:^(RCMicHTTPResult *result) {
self.model = [LMTixianRecordDetailModel mj_objectWithKeyValues:result.content];
[self setupInfo];
}];
}
@end

View File

@@ -0,0 +1,225 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<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="LMTixianRecordDetailViewController">
<connections>
<outlet property="accountLabel" destination="WgG-nh-2IG" id="RqF-2J-xqm"/>
<outlet property="addTimeLabel" destination="Fis-MO-9sl" id="pIr-4M-sK2"/>
<outlet property="contentLabel" destination="F5Q-gC-Lus" id="rXZ-yd-aWO"/>
<outlet property="moneyLabel" destination="W6d-UW-GNe" id="AnH-sh-e5T"/>
<outlet property="rataTimeLabel" destination="aKI-vc-pmf" id="z8c-Gz-nH5"/>
<outlet property="rateLabel" destination="TgR-yC-qql" id="S8H-Nk-VKc"/>
<outlet property="sevrMoneyLabel" destination="EAE-nv-UOE" id="8Ko-7t-DqG"/>
<outlet property="statusLabel" destination="AAi-00-Jqs" id="hoB-hp-anA"/>
<outlet property="tixianMoneyLabel" destination="0Gp-Gw-6Xa" id="I0X-1Y-Jgx"/>
<outlet property="topLayout" destination="Yvq-0y-amw" id="q58-wL-h9J"/>
<outlet property="typeIcon" destination="gJH-W1-lvm" id="CeF-Oc-dBn"/>
<outlet property="typeNameLabel" destination="3D5-oW-z3b" id="SSh-L8-BSt"/>
<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="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_bg" translatesAutoresizingMaskIntoConstraints="NO" id="gDn-l8-9eL">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="tixianRecord_ali" translatesAutoresizingMaskIntoConstraints="NO" id="gJH-W1-lvm">
<rect key="frame" x="166.66666666666666" y="140" width="60" height="60"/>
<constraints>
<constraint firstAttribute="width" constant="60" id="Egh-mw-4XV"/>
<constraint firstAttribute="height" constant="60" id="WWY-Nc-iPL"/>
</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="3D5-oW-z3b">
<rect key="frame" x="176.66666666666666" y="200" width="40" height="15.666666666666657"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0.0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="W6d-UW-GNe">
<rect key="frame" x="182" y="221.66666666666666" width="29" height="28"/>
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="24"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Fmk-nR-pge">
<rect key="frame" x="15" y="296.33333333333331" width="363" height="319.99999999999994"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="提现进度" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3YX-fh-oBZ">
<rect key="frame" x="15.000000000000004" y="20" width="53.333333333333343" height="15.666666666666664"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="tixianRecord_time" translatesAutoresizingMaskIntoConstraints="NO" id="DPH-vb-1Jl">
<rect key="frame" x="15" y="55.666666666666686" width="20" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="20" id="YgG-3m-xJP"/>
<constraint firstAttribute="height" constant="20" id="tuv-kE-Qv9"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="申请提现168.36扣除手续费8.36应到账168.00 申请提现168.36扣除手续费8.36应到账168.00 " textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TgR-yC-qql">
<rect key="frame" x="47" y="55.666666666666693" width="304" height="31.333333333333336"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2024-09-25 08:30:30" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="aKI-vc-pmf">
<rect key="frame" x="46.999999999999993" y="97" width="120.33333333333331" height="14.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="11"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<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="QQJ-C5-jN6">
<rect key="frame" x="15.000000000000004" y="136.33333333333337" width="53.333333333333343" height="16"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥168.36" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="0Gp-Gw-6Xa">
<rect key="frame" x="289.33333333333331" y="136.66666666666669" width="58.666666666666686" height="15.666666666666657"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="13"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
<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="u0F-xX-X1f">
<rect key="frame" x="15" y="172.33333333333337" width="40" height="16"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="¥168.36" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EAE-nv-UOE">
<rect key="frame" x="292.33333333333331" y="172.66666666666669" width="58.666666666666686" height="15.666666666666657"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<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="xdj-gc-FUD">
<rect key="frame" x="15" y="208.33333333333337" width="54" height="16"/>
<constraints>
<constraint firstAttribute="width" constant="54" id="Oqf-w0-qVU"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="备注" textAlignment="right" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="F5Q-gC-Lus">
<rect key="frame" x="79" y="208.66666666666669" width="272" height="15.666666666666657"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<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="G7w-aA-PcI">
<rect key="frame" x="15.000000000000004" y="244.33333333333331" width="53.333333333333343" height="16"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2024-09-25 08:30:30" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Fis-MO-9sl">
<rect key="frame" x="205.33333333333337" y="244.66666666666669" width="145.66666666666663" height="15.666666666666686"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<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="uN4-vi-DLU">
<rect key="frame" x="15.000000000000004" y="280.33333333333331" width="53.333333333333343" height="16"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="86034250834610410" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WgG-nh-2IG">
<rect key="frame" x="206.66666666666663" y="280.66666666666669" width="144.33333333333337" height="15.666666666666686"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="0Gp-Gw-6Xa" secondAttribute="trailing" constant="15" id="2L8-jS-0sc"/>
<constraint firstItem="EAE-nv-UOE" firstAttribute="centerY" secondItem="u0F-xX-X1f" secondAttribute="centerY" id="3ye-4Z-Pib"/>
<constraint firstItem="Fis-MO-9sl" firstAttribute="centerY" secondItem="G7w-aA-PcI" secondAttribute="centerY" id="50x-No-ZIi"/>
<constraint firstAttribute="trailing" secondItem="WgG-nh-2IG" secondAttribute="trailing" constant="12" id="7DH-VC-h7U"/>
<constraint firstItem="WgG-nh-2IG" firstAttribute="centerY" secondItem="uN4-vi-DLU" secondAttribute="centerY" id="APf-lC-1ZL"/>
<constraint firstItem="uN4-vi-DLU" firstAttribute="top" secondItem="G7w-aA-PcI" secondAttribute="bottom" constant="20" id="DnO-Jp-kLE"/>
<constraint firstItem="aKI-vc-pmf" firstAttribute="leading" secondItem="TgR-yC-qql" secondAttribute="leading" id="JpI-oY-2PL"/>
<constraint firstItem="QQJ-C5-jN6" firstAttribute="top" secondItem="aKI-vc-pmf" secondAttribute="bottom" constant="25" id="Jz0-K5-gLK"/>
<constraint firstItem="u0F-xX-X1f" firstAttribute="top" secondItem="QQJ-C5-jN6" secondAttribute="bottom" constant="20" id="LAA-DW-yWX"/>
<constraint firstItem="DPH-vb-1Jl" firstAttribute="top" secondItem="3YX-fh-oBZ" secondAttribute="bottom" constant="20" id="NUi-uj-eoZ"/>
<constraint firstItem="u0F-xX-X1f" firstAttribute="leading" secondItem="Fmk-nR-pge" secondAttribute="leading" constant="15" id="O7d-Nm-mMg"/>
<constraint firstItem="QQJ-C5-jN6" firstAttribute="leading" secondItem="Fmk-nR-pge" secondAttribute="leading" constant="15" id="O9X-SL-8k2"/>
<constraint firstItem="F5Q-gC-Lus" firstAttribute="centerY" secondItem="xdj-gc-FUD" secondAttribute="centerY" id="QxB-0c-Pkd"/>
<constraint firstItem="uN4-vi-DLU" firstAttribute="leading" secondItem="Fmk-nR-pge" secondAttribute="leading" constant="15" id="SpE-kM-TeF"/>
<constraint firstAttribute="height" constant="320" id="UTk-Qe-XSu"/>
<constraint firstItem="DPH-vb-1Jl" firstAttribute="leading" secondItem="Fmk-nR-pge" secondAttribute="leading" constant="15" id="Va7-du-8D1"/>
<constraint firstAttribute="trailing" secondItem="EAE-nv-UOE" secondAttribute="trailing" constant="12" id="YVV-So-RFz"/>
<constraint firstItem="G7w-aA-PcI" firstAttribute="leading" secondItem="Fmk-nR-pge" secondAttribute="leading" constant="15" id="Ynl-sQ-Ke0"/>
<constraint firstItem="3YX-fh-oBZ" firstAttribute="leading" secondItem="Fmk-nR-pge" secondAttribute="leading" constant="15" id="YqP-3O-wsF"/>
<constraint firstAttribute="trailing" secondItem="Fis-MO-9sl" secondAttribute="trailing" constant="12" id="Z8u-gx-cS0"/>
<constraint firstAttribute="trailing" secondItem="F5Q-gC-Lus" secondAttribute="trailing" constant="12" id="baj-UI-xGl"/>
<constraint firstItem="xdj-gc-FUD" firstAttribute="top" secondItem="u0F-xX-X1f" secondAttribute="bottom" constant="20" id="dw8-qu-uWc"/>
<constraint firstAttribute="trailing" secondItem="TgR-yC-qql" secondAttribute="trailing" constant="12" id="fbt-df-vDO"/>
<constraint firstItem="xdj-gc-FUD" firstAttribute="leading" secondItem="Fmk-nR-pge" secondAttribute="leading" constant="15" id="fmV-B1-Xas"/>
<constraint firstItem="F5Q-gC-Lus" firstAttribute="leading" secondItem="xdj-gc-FUD" secondAttribute="trailing" constant="10" id="gnh-GG-VRM"/>
<constraint firstItem="TgR-yC-qql" firstAttribute="leading" secondItem="DPH-vb-1Jl" secondAttribute="trailing" constant="12" id="hX7-Lu-jkq"/>
<constraint firstItem="aKI-vc-pmf" firstAttribute="top" secondItem="TgR-yC-qql" secondAttribute="bottom" constant="10" id="huZ-x3-LGq"/>
<constraint firstItem="G7w-aA-PcI" firstAttribute="top" secondItem="xdj-gc-FUD" secondAttribute="bottom" constant="20" id="mh2-6x-bCM"/>
<constraint firstItem="TgR-yC-qql" firstAttribute="top" secondItem="DPH-vb-1Jl" secondAttribute="top" id="o2Y-b3-UTt"/>
<constraint firstItem="0Gp-Gw-6Xa" firstAttribute="centerY" secondItem="QQJ-C5-jN6" secondAttribute="centerY" id="qj8-N8-MEB"/>
<constraint firstItem="3YX-fh-oBZ" firstAttribute="top" secondItem="Fmk-nR-pge" secondAttribute="top" constant="20" id="zef-ie-gvE"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="待审核" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AAi-00-Jqs">
<rect key="frame" x="176.66666666666666" y="255.66666666666666" width="40" height="15.666666666666657"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="gDn-l8-9eL" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="0Xj-bA-mLR"/>
<constraint firstItem="AAi-00-Jqs" firstAttribute="centerX" secondItem="i5M-Pr-FkT" secondAttribute="centerX" id="4wS-db-ezK"/>
<constraint firstItem="gDn-l8-9eL" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="Hp5-Td-hIn"/>
<constraint firstItem="3D5-oW-z3b" firstAttribute="top" secondItem="gJH-W1-lvm" secondAttribute="bottom" id="L9l-dI-F18"/>
<constraint firstItem="3D5-oW-z3b" firstAttribute="centerX" secondItem="i5M-Pr-FkT" secondAttribute="centerX" id="RZq-b1-5GQ"/>
<constraint firstItem="W6d-UW-GNe" firstAttribute="centerX" secondItem="i5M-Pr-FkT" secondAttribute="centerX" id="Uya-p4-je0"/>
<constraint firstItem="Fmk-nR-pge" firstAttribute="top" secondItem="AAi-00-Jqs" secondAttribute="bottom" constant="25" id="WSA-gu-0M8"/>
<constraint firstItem="gJH-W1-lvm" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="140" id="Yvq-0y-amw"/>
<constraint firstItem="W6d-UW-GNe" firstAttribute="top" secondItem="3D5-oW-z3b" secondAttribute="bottom" constant="6" id="bUb-yo-CDp"/>
<constraint firstItem="Fmk-nR-pge" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" constant="15" id="bly-iV-rqk"/>
<constraint firstAttribute="bottom" secondItem="gDn-l8-9eL" secondAttribute="bottom" id="cIW-vy-r8I"/>
<constraint firstItem="gDn-l8-9eL" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="fRe-7a-Peh"/>
<constraint firstItem="gJH-W1-lvm" firstAttribute="centerX" secondItem="i5M-Pr-FkT" secondAttribute="centerX" id="gXL-RD-SNT"/>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="Fmk-nR-pge" secondAttribute="trailing" constant="15" id="pQT-IN-KTE"/>
<constraint firstItem="AAi-00-Jqs" firstAttribute="top" secondItem="W6d-UW-GNe" secondAttribute="bottom" constant="6" id="tba-1E-ycz"/>
</constraints>
<point key="canvasLocation" x="130.53435114503816" y="-12.67605633802817"/>
</view>
</objects>
<resources>
<image name="home_bg" width="375" height="812"/>
<image name="tixianRecord_ali" width="60" height="60"/>
<image name="tixianRecord_time" width="20" height="20"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,27 @@
//
// LMTixianRecordTableViewCell.h
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import <UIKit/UIKit.h>
#import "LMTixianRecordListModel.h"
NS_ASSUME_NONNULL_BEGIN
static NSString *LMTixianRecordTableViewCellID = @"LMTixianRecordTableViewCellID";
@interface LMTixianRecordTableViewCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *txTitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *txStatusLabel;
@property (weak, nonatomic) IBOutlet UILabel *txTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *txMoneyLabel;
@property (weak, nonatomic) IBOutlet UILabel *txYueLabel;
@property (nonatomic, strong) LMTixianRecordListModel *model;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,42 @@
//
// LMTixianRecordTableViewCell.m
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import "LMTixianRecordTableViewCell.h"
#import "NSString+category.h"
@implementation LMTixianRecordTableViewCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setModel:(LMTixianRecordListModel *)model
{
_model = model;
self.txTitleLabel.text = @"收益提现";
self.txTimeLabel.text = model.add_time.formateDateYMD_HM;
self.txMoneyLabel.text = model.general_money;
if (model.status == 1){
self.txStatusLabel.text = @"待审核";
}else if (model.status == 2){
self.txStatusLabel.text = @"已到账";
}else if (model.status == 3){
self.txStatusLabel.text = @"打款失败";
}else{
self.txStatusLabel.text = @"未知";
}
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end

View File

@@ -0,0 +1,107 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<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"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="none" indentationWidth="10" rowHeight="87" id="KGk-i7-Jjw" customClass="LMTixianRecordTableViewCell">
<rect key="frame" x="0.0" y="0.0" width="438" height="87"/>
<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="438" height="87"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="tixian_jilu" translatesAutoresizingMaskIntoConstraints="NO" id="aHB-47-h1e">
<rect key="frame" x="15" y="23.666666666666671" width="40" height="40"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="收益提现" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UJQ-bH-QIX">
<rect key="frame" x="69" y="24.666666666666671" width="61.333333333333343" height="18"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qt9-Pn-Itv">
<rect key="frame" x="138.33333333333334" y="23.666666666666671" width="49" height="20"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="已到账" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xSS-ix-SXn">
<rect key="frame" x="6" y="2.6666666666666652" width="37" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.0" green="0.66666666666666663" blue="0.34509803921568627" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.059999999999999998" colorSpace="custom" customColorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="xSS-ix-SXn" secondAttribute="trailing" constant="6" id="C5N-03-kUE"/>
<constraint firstAttribute="height" constant="20" id="ePd-bV-si9"/>
<constraint firstItem="xSS-ix-SXn" firstAttribute="leading" secondItem="qt9-Pn-Itv" secondAttribute="leading" constant="6" id="l8a-Ea-ynJ"/>
<constraint firstItem="xSS-ix-SXn" firstAttribute="centerY" secondItem="qt9-Pn-Itv" secondAttribute="centerY" id="r97-3k-G7F"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2024-05-27 09:00:30" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="SdT-wN-7xy">
<rect key="frame" x="68.999999999999986" y="52.666666666666664" width="138.66666666666663" height="15.666666666666664"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100元" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9yK-5Y-g6G">
<rect key="frame" x="366.33333333333331" y="34.666666666666664" width="36.666666666666686" height="17.666666666666664"/>
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="15"/>
<nil key="textColor"/>
<nil key="highlightedColor"/>
</label>
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="余额0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="NvF-g2-M6C">
<rect key="frame" x="378" y="53.333333333333336" width="45" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
<color key="textColor" red="1" green="0.31764705882352939" blue="0.3411764705882353" alpha="1" colorSpace="custom" customColorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jiantou_hui" translatesAutoresizingMaskIntoConstraints="NO" id="Ux7-dS-OfA">
<rect key="frame" x="417.33333333333331" y="38.666666666666664" width="5.6666666666666856" height="9.9999999999999929"/>
</imageView>
</subviews>
<constraints>
<constraint firstItem="UJQ-bH-QIX" firstAttribute="leading" secondItem="aHB-47-h1e" secondAttribute="trailing" constant="14" id="0hu-pi-vvE"/>
<constraint firstAttribute="trailing" secondItem="Ux7-dS-OfA" secondAttribute="trailing" constant="15" id="1k3-TG-tiZ"/>
<constraint firstItem="aHB-47-h1e" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="2cK-5C-gwy"/>
<constraint firstItem="UJQ-bH-QIX" firstAttribute="top" secondItem="aHB-47-h1e" secondAttribute="top" constant="1" id="F6p-zd-Rom"/>
<constraint firstItem="SdT-wN-7xy" firstAttribute="leading" secondItem="UJQ-bH-QIX" secondAttribute="leading" id="Fww-aj-cAF"/>
<constraint firstItem="Ux7-dS-OfA" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="I0a-ZL-ESg"/>
<constraint firstItem="SdT-wN-7xy" firstAttribute="top" secondItem="UJQ-bH-QIX" secondAttribute="bottom" constant="10" id="IFa-ft-8Xj"/>
<constraint firstItem="qt9-Pn-Itv" firstAttribute="centerY" secondItem="UJQ-bH-QIX" secondAttribute="centerY" id="N7p-3V-Zpe"/>
<constraint firstAttribute="trailing" secondItem="9yK-5Y-g6G" secondAttribute="trailing" constant="35" id="OXy-vJ-j5U"/>
<constraint firstItem="qt9-Pn-Itv" firstAttribute="leading" secondItem="UJQ-bH-QIX" secondAttribute="trailing" constant="8" id="ZB1-h3-9vr"/>
<constraint firstItem="9yK-5Y-g6G" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="bA8-A3-jxh"/>
<constraint firstItem="NvF-g2-M6C" firstAttribute="centerY" secondItem="SdT-wN-7xy" secondAttribute="centerY" id="fGk-LZ-5WX"/>
<constraint firstAttribute="trailing" secondItem="NvF-g2-M6C" secondAttribute="trailing" constant="15" id="mHn-Ng-KlV"/>
<constraint firstItem="aHB-47-h1e" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="zoc-JE-YYJ"/>
</constraints>
</tableViewCellContentView>
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="txMoneyLabel" destination="9yK-5Y-g6G" id="PY0-Xn-d7B"/>
<outlet property="txStatusLabel" destination="xSS-ix-SXn" id="T8t-FF-2LW"/>
<outlet property="txTimeLabel" destination="SdT-wN-7xy" id="Wgf-WB-el8"/>
<outlet property="txTitleLabel" destination="UJQ-bH-QIX" id="sRF-sW-fX3"/>
<outlet property="txYueLabel" destination="NvF-g2-M6C" id="bHY-TW-gmy"/>
</connections>
<point key="canvasLocation" x="219.84732824427479" y="3.8732394366197185"/>
</tableViewCell>
</objects>
<resources>
<image name="jiantou_hui" width="5.6666665077209473" height="10"/>
<image name="tixian_jilu" width="40" height="40"/>
</resources>
</document>

View File

@@ -0,0 +1,16 @@
//
// LMTixianRecordViewController.h
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface LMTixianRecordViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,159 @@
//
// LMTixianRecordViewController.m
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import "LMTixianRecordViewController.h"
#import "LMTixianRecordTableViewCell.h"
#import "NSString+category.h"
#import "BRPickerView.h"
#import "LMTixianRecordDetailViewController.h"
@interface LMTixianRecordViewController ()<UITableViewDelegate,UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UITableView *recordTabelView;
@property (weak, nonatomic) IBOutlet UIButton *startTimeButton;
@property (weak, nonatomic) IBOutlet UIButton *endTimeButton;
@property (weak, nonatomic) IBOutlet UIButton *queryButton;
@property (weak, nonatomic) IBOutlet UILabel *allMoneyLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *TopLayout;
@property (nonatomic, strong) NSMutableArray *dataArr;
@property (nonatomic, assign) NSInteger page;
@property (nonatomic, strong) NSString *startTime;
@property (nonatomic, strong) NSString *endTime;
@end
@implementation LMTixianRecordViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"提现记录"];
self.TopLayout.constant = yb_NavigationBar_H+10;
[self.recordTabelView registerNib:[UINib nibWithNibName:@"LMTixianRecordTableViewCell" bundle:nil] forCellReuseIdentifier:LMTixianRecordTableViewCellID];
self.page = 1;
NSString *currentTime = [NSString getCurrentTime:@"YYYY-MM-dd"];
self.startTime = @"2024-1-1";
self.endTime = currentTime;
[self.endTimeButton setTitle:currentTime forState:(UIControlStateNormal)];
[self requestRecordListWithStartTime:self.startTime endTime:self.endTime];
self.queryButton.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(APPW-115*2-15*2-20-14*2, 40) direction:(FXGradientChangeDirectionHorizontal) startColor:mainLightColor endColor:mainDeepColor];
}
- (IBAction)queryButtonClick:(UIButton *)sender {
[self requestRecordListWithStartTime:self.startTime endTime:self.endTime];
}
- (IBAction)startTimeButtonClick:(UIButton *)sender {
BRDatePickerView *datePickerView = [[BRDatePickerView alloc] init];
datePickerView.pickerMode = BRDatePickerModeYMD;
datePickerView.minDate = [NSDate br_setYear:2024 month:1 day:1];
datePickerView.maxDate = [NSDate date];
datePickerView.selectDate = [NSDate date];
datePickerView.showUnitType = BRShowUnitTypeNone;
WEAK_SELF;
datePickerView.resultBlock = ^(NSDate *selectDate, NSString *selectValue) {
weakSelf.startTime = selectValue;
[sender setTitle:selectValue forState:(UIControlStateNormal)];
};
datePickerView.pickerStyle = [self customPickerViewUI];
[datePickerView show];
}
- (IBAction)endTimeButtonClick:(UIButton *)sender {
BRDatePickerView *datePickerView = [[BRDatePickerView alloc] init];
datePickerView.pickerMode = BRDatePickerModeYMD;
datePickerView.minDate = [NSDate br_setYear:2024 month:1 day:1];
datePickerView.maxDate = [NSDate date];
datePickerView.selectDate = [NSDate date];
datePickerView.showUnitType = BRShowUnitTypeNone;
WEAK_SELF;
datePickerView.resultBlock = ^(NSDate *selectDate, NSString *selectValue) {
weakSelf.endTime = selectValue;
[sender setTitle:selectValue forState:(UIControlStateNormal)];
};
datePickerView.pickerStyle = [self customPickerViewUI];
[datePickerView show];
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
return self.dataArr.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
LMTixianRecordTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:LMTixianRecordTableViewCellID forIndexPath:indexPath];
cell.model = self.dataArr[indexPath.row];
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
LMTixianRecordDetailViewController *vc = [[LMTixianRecordDetailViewController alloc] init];
LMTixianRecordListModel *model = self.dataArr[indexPath.row];
vc.wid = model.wid;
[vc pushSelf];
}
- (void)requestRecordListWithStartTime:(NSString *)startTime endTime:(NSString *)endTime
{
NSDictionary *params = @{@"start":C_string(startTime), @"end":endTime, @"page":@(self.page),@"page_limit":@"20"};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/get_user_withdrawal_detail" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
if (self.page == 1){
[self.dataArr removeAllObjects];
}
NSDictionary *data = [responseDic safeDictionaryForKey:@"data"];
NSArray *array = [LMTixianRecordListModel mj_objectArrayWithKeyValuesArray:[data safeArrayForKey:@"detail"]];
self.allMoneyLabel.text = [NSString stringWithFormat:@"%@",[data safeStringForKey:@"all"]];
[self.dataArr addObjectsFromArray:array];
[self.recordTabelView reloadData];
} Failure:^(id _Nonnull errorData) {
}];
}
- (NSMutableArray *)dataArr
{
if (!_dataArr){
_dataArr = [NSMutableArray array];
}
return _dataArr;
}
- (BRPickerStyle *)customPickerViewUI {
BRPickerStyle *style = [[BRPickerStyle alloc] init];
style.selectedColor = [UIColor whiteColor];
style.topCornerRadius = 10;
style.hiddenShadowLine = YES;
style.hiddenTitleLine = YES;
style.hiddenTitleLabel = YES;
style.titleBarColor = HEXCOLOR(0xF5F7F7);
style.cancelTextColor = HEXCOLOR(0x999999);
style.cancelTextFont = [UIFont boldSystemFontOfSize:16];
style.cancelBtnFrame = CGRectMake(0, 0, 60, 50);
style.cancelBtnTitle = @"取消";
style.doneTextColor = mainDeepColor;
style.doneTextFont = [UIFont boldSystemFontOfSize:16];
style.doneBtnFrame = CGRectMake(SCREEN_WIDTH-60, 0, 60, 50);
style.doneBtnTitle = @"确定";
style.separatorColor = [UIColor clearColor];
style.pickerTextColor = HEXCOLOR(0x333333);
style.pickerTextFont = [UIFont systemFontOfSize:16];
style.pickerColor = HEXCOLOR(0xF5F7F7);;
style.rowHeight = 44;
return style;
}
@end

View File

@@ -0,0 +1,157 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<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="LMTixianRecordViewController">
<connections>
<outlet property="TopLayout" destination="dmx-ig-hGs" id="i6x-wE-tCI"/>
<outlet property="allMoneyLabel" destination="LYk-YJ-5wz" id="TwS-HP-ZMo"/>
<outlet property="endTimeButton" destination="sIL-yN-2wS" id="M5b-Vu-25q"/>
<outlet property="queryButton" destination="FEq-2z-lVm" id="1MX-NV-1hB"/>
<outlet property="recordTabelView" destination="tWU-BA-UW5" id="Nk5-Sv-1ze"/>
<outlet property="startTimeButton" destination="gUB-59-pGV" id="nqe-w9-ZFh"/>
<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="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_bg" translatesAutoresizingMaskIntoConstraints="NO" id="FJw-mU-5t5">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="gUB-59-pGV">
<rect key="frame" x="15" y="75" width="115" height="40"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="115" id="Een-Kj-E8s"/>
<constraint firstAttribute="height" constant="40" id="m5G-yQ-6uL"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="2024-1-1">
<color key="titleColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="startTimeButtonClick:" destination="-1" eventType="touchUpInside" id="GMF-6v-TWH"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="至" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xwZ-aV-iDi">
<rect key="frame" x="140" y="86.666666666666671" width="15" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="15" id="uRb-R2-QGr"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="FEq-2z-lVm">
<rect key="frame" x="294" y="75" width="85" height="40"/>
<color key="backgroundColor" red="0.050980392156862744" green="1" blue="0.72549019607843135" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="mIg-ni-nVN"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="查询">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="queryButtonClick:" destination="-1" eventType="touchUpInside" id="GrR-dd-zSA"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="累计提现:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7Of-sk-pPf">
<rect key="frame" x="15" y="140" width="66" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LYk-YJ-5wz">
<rect key="frame" x="91" y="139" width="8" height="20"/>
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="17"/>
<color key="textColor" red="1" green="0.32156862745098036" blue="0.34509803921568627" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="none" rowHeight="90" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="tWU-BA-UW5">
<rect key="frame" x="0.0" y="174" width="393" height="678"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="dataSource" destination="-1" id="gHH-L6-CTD"/>
<outlet property="delegate" destination="-1" id="atU-hI-8OK"/>
</connections>
</tableView>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="sIL-yN-2wS">
<rect key="frame" x="165" y="75" width="115" height="40"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="115" id="N30-Yu-P3i"/>
<constraint firstAttribute="height" constant="40" id="eZI-s2-Pa8"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="2024-05-27">
<color key="titleColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="endTimeButtonClick:" destination="-1" eventType="touchUpInside" id="6kt-RW-gGn"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="tWU-BA-UW5" firstAttribute="top" secondItem="LYk-YJ-5wz" secondAttribute="bottom" constant="15" id="049-YA-UnZ"/>
<constraint firstItem="xwZ-aV-iDi" firstAttribute="leading" secondItem="gUB-59-pGV" secondAttribute="trailing" constant="10" id="0Vw-BJ-FrD"/>
<constraint firstItem="xwZ-aV-iDi" firstAttribute="centerY" secondItem="gUB-59-pGV" secondAttribute="centerY" id="3Kf-ST-dN8"/>
<constraint firstItem="7Of-sk-pPf" firstAttribute="top" secondItem="gUB-59-pGV" secondAttribute="bottom" constant="25" id="3Rg-4A-Nh3"/>
<constraint firstItem="tWU-BA-UW5" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="Cwj-oO-OrD"/>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="FEq-2z-lVm" secondAttribute="trailing" constant="14" id="IVF-gz-MDk"/>
<constraint firstItem="LYk-YJ-5wz" firstAttribute="centerY" secondItem="7Of-sk-pPf" secondAttribute="centerY" id="N7g-g7-ai4"/>
<constraint firstItem="7Of-sk-pPf" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" constant="15" id="Orj-oc-Q7m"/>
<constraint firstItem="FJw-mU-5t5" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="Xy1-Tv-IZO"/>
<constraint firstItem="FJw-mU-5t5" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="cRm-Lz-zFx"/>
<constraint firstItem="sIL-yN-2wS" firstAttribute="leading" secondItem="xwZ-aV-iDi" secondAttribute="trailing" constant="10" id="cXY-OF-mzf"/>
<constraint firstAttribute="bottom" secondItem="tWU-BA-UW5" secondAttribute="bottom" id="dEM-ea-8PK"/>
<constraint firstItem="gUB-59-pGV" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="75" id="dmx-ig-hGs"/>
<constraint firstAttribute="bottom" secondItem="FJw-mU-5t5" secondAttribute="bottom" id="dsp-od-ySO"/>
<constraint firstItem="sIL-yN-2wS" firstAttribute="centerY" secondItem="xwZ-aV-iDi" secondAttribute="centerY" id="fcb-jb-kfJ"/>
<constraint firstItem="FJw-mU-5t5" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="haG-cM-aJq"/>
<constraint firstItem="gUB-59-pGV" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" constant="15" id="lbK-tr-sN4"/>
<constraint firstItem="tWU-BA-UW5" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="nup-62-bez"/>
<constraint firstItem="LYk-YJ-5wz" firstAttribute="leading" secondItem="7Of-sk-pPf" secondAttribute="trailing" constant="10" id="rUp-62-QuT"/>
<constraint firstItem="FEq-2z-lVm" firstAttribute="centerY" secondItem="sIL-yN-2wS" secondAttribute="centerY" id="uK8-9c-Lux"/>
<constraint firstItem="FEq-2z-lVm" firstAttribute="leading" secondItem="sIL-yN-2wS" secondAttribute="trailing" constant="14" id="vMb-nF-Kq2"/>
</constraints>
<point key="canvasLocation" x="130.53435114503816" y="-11.267605633802818"/>
</view>
</objects>
<resources>
<image name="home_bg" width="375" height="812"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,16 @@
//
// LMWalletHomepageViewController.h
// SweetParty
//
// Created by Xmac on 2024/6/7.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface LMWalletHomepageViewController : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,133 @@
//
// LMWalletHomepageViewController.m
// SweetParty
//
// Created by Xmac on 2024/6/7.
//
#import "LMWalletHomepageViewController.h"
#import "SPWalletJinbiVC.h"
#import "SPWalletRecordListVC.h"
#import "SPWalletModel.h"
#import "SPWalletZuanshiVC.h"
#import "SPWalletTixianVC.h"
#import "SPWalletBindBankVC.h"
#import "ZMKHBindBankVC.h"
#import "LMBindBankQianyueViewController.h"
@interface LMWalletHomepageViewController ()
@property (weak, nonatomic) IBOutlet UILabel *coinLabel;
@property (weak, nonatomic) IBOutlet UILabel *moneyLabel;
@property (nonatomic, strong) SPWalletModel *model;
@property (weak, nonatomic) IBOutlet UILabel *bindingLabel;
@property (weak, nonatomic) IBOutlet UIView *aliCover;
@property (weak, nonatomic) IBOutlet UILabel *accountLabel;
@property (weak, nonatomic) IBOutlet UIView *bankCover;
@property (weak, nonatomic) IBOutlet UILabel *bankLabel;
@property (weak, nonatomic) IBOutlet UILabel *bankBindingLabel;
@end
@implementation LMWalletHomepageViewController
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self fetchData];
}
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"我的钱包"];
// [ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-65-10, yb_StatusBar_H+7, 60, 30) text:@"明细记录" font:YBMediumFont(13) color:HEXCOLOR(0x111111) backguoundColor:nil imageName:nil target:self action:@selector(onRightClick)];
WEAK_SELF;
[self.aliCover dg_Tapped:^{
SPWalletBindBankVC *vc = [[SPWalletBindBankVC alloc] init];
vc.model = weakSelf.model;
[vc pushSelf];
}];
[self.bankCover dg_Tapped:^{
LMBindBankQianyueViewController *vc = [[LMBindBankQianyueViewController alloc] init];
vc.model = weakSelf.model;
[vc pushSelf];
}];
}
- (void)onRightClick
{
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 4;
[vc pushSelf];
}
- (IBAction)rechargeButtonClick:(UIButton *)sender {
SPWalletJinbiVC *Jinbiv = [[SPWalletJinbiVC alloc] init];
[Jinbiv pushSelf];
}
- (IBAction)coinSendRecordButtonClick:(UIButton *)sender {
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 1;
[vc pushSelf];
}
- (IBAction)onJinbiDetail:(id)sender {
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 4;
[vc pushSelf];
}
- (IBAction)onZuanshiDetail:(id)sender {
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 5;
[vc pushSelf];
}
- (IBAction)tixianButtonClick:(UIButton *)sender {
SPWalletTixianVC *txvc = [[SPWalletTixianVC alloc] init];
[txvc pushSelf];
}
- (IBAction)exchangeButtonClick:(UIButton *)sender {
SPWalletZuanshiVC *exchangeVC = [[SPWalletZuanshiVC alloc] init];
[exchangeVC pushSelf];
}
- (void)fetchData {
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/get_user_withdrawal_info" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
SPWalletModel *model = [SPWalletModel mj_objectWithKeyValues:responseDic[@"data"]];
self.model = model;
self.coinLabel.text = model.integral;
self.moneyLabel.text = model.money;
if (model.alipay_account.length > 0) {
// self.bindingLabel.text = @"已绑定";
self.bindingLabel.textColor = HEXCOLORA(0x00D195, 1);
self.bindingLabel.text = model.alipay_account;
}else{
self.bindingLabel.text = @"绑定";
self.bindingLabel.textColor = HEXCOLORA(0x999999, 1);
}
if (model.bank_card_number.length > 0) {
// self.bankBindingLabel.text = @"已绑定";
self.bankBindingLabel.textColor = HEXCOLORA(0x00D195, 1);
self.bankBindingLabel.text = model.bank_card_number;
}else{
self.bankBindingLabel.text = @"绑定";
self.bankBindingLabel.textColor = HEXCOLORA(0x999999, 1);
}
} Failure:^(id _Nonnull errorData) {
}];
}
@end

View File

@@ -0,0 +1,281 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<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="LMWalletHomepageViewController">
<connections>
<outlet property="accountLabel" destination="jJy-EJ-jjr" id="mjU-HC-Enk"/>
<outlet property="aliCover" destination="JZp-xA-d2D" id="cVh-uj-M3d"/>
<outlet property="bankBindingLabel" destination="Lt4-Bd-kfG" id="zil-Kf-EGs"/>
<outlet property="bankCover" destination="9mt-BR-9i0" id="y9Y-A3-9DP"/>
<outlet property="bankLabel" destination="wPB-ih-cji" id="m85-fS-KD0"/>
<outlet property="bindingLabel" destination="sxZ-g1-8uq" id="WtI-mF-wJf"/>
<outlet property="coinLabel" destination="hqL-Iu-X6X" id="Yoc-eR-YUe"/>
<outlet property="moneyLabel" destination="FJc-b7-QpP" id="AKW-e8-5op"/>
<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="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_bg" translatesAutoresizingMaskIntoConstraints="NO" id="2M4-kk-Rqh">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="zpu-Om-4zy">
<rect key="frame" x="15" y="110" width="345" height="110"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_jinbi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="8OG-X1-aVm">
<rect key="frame" x="0.0" y="0.0" width="345" height="110"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_jinbi" translatesAutoresizingMaskIntoConstraints="NO" id="5Dr-CT-kEm">
<rect key="frame" x="15" y="15" width="24" height="24"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的金币" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QTN-t3-BSM">
<rect key="frame" x="43.999999999999993" y="17.333333333333329" width="65.333333333333314" height="19.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.23921568627450979" green="0.23921568627450979" blue="0.23921568627450979" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="hqL-Iu-X6X">
<rect key="frame" x="15" y="53.666666666666657" width="19" height="34.666666666666657"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="28"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MvH-5d-9Qm">
<rect key="frame" x="272" y="57" width="58" height="28"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="wallet_home_recharge"/>
<connections>
<action selector="rechargeButtonClick:" destination="-1" eventType="touchUpInside" id="COx-Qd-IgL"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="W1d-fB-8vB">
<rect key="frame" x="245" y="10" width="90" height="40"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="Fnm-4E-KY0"/>
<constraint firstAttribute="height" constant="40" id="Oo1-Ac-Uuu"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<inset key="titleEdgeInsets" minX="-30" minY="0.0" maxX="0.0" maxY="0.0"/>
<inset key="imageEdgeInsets" minX="70" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="金币明细" image="wallat_arrow_right">
<color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="onJinbiDetail:" destination="-1" eventType="touchUpInside" id="SLQ-25-ZTR"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="8OG-X1-aVm" secondAttribute="bottom" id="94W-Bt-e5z"/>
<constraint firstItem="5Dr-CT-kEm" firstAttribute="top" secondItem="zpu-Om-4zy" secondAttribute="top" constant="15" id="DRI-SI-tHf"/>
<constraint firstItem="5Dr-CT-kEm" firstAttribute="leading" secondItem="zpu-Om-4zy" secondAttribute="leading" constant="15" id="GxG-zR-XO4"/>
<constraint firstItem="W1d-fB-8vB" firstAttribute="top" secondItem="zpu-Om-4zy" secondAttribute="top" constant="10" id="HUR-7q-HZk"/>
<constraint firstAttribute="trailing" secondItem="W1d-fB-8vB" secondAttribute="trailing" constant="10" id="IiV-oM-gJt"/>
<constraint firstAttribute="height" constant="110" id="O35-ce-xVZ"/>
<constraint firstItem="QTN-t3-BSM" firstAttribute="centerY" secondItem="5Dr-CT-kEm" secondAttribute="centerY" id="YOA-vt-Fex"/>
<constraint firstAttribute="trailing" secondItem="MvH-5d-9Qm" secondAttribute="trailing" constant="15" id="bLQ-S6-eQN"/>
<constraint firstItem="hqL-Iu-X6X" firstAttribute="leading" secondItem="zpu-Om-4zy" secondAttribute="leading" constant="15" id="cjj-8A-MVp"/>
<constraint firstItem="MvH-5d-9Qm" firstAttribute="centerY" secondItem="hqL-Iu-X6X" secondAttribute="centerY" id="ePM-rC-IAj"/>
<constraint firstAttribute="trailing" secondItem="8OG-X1-aVm" secondAttribute="trailing" id="iAH-gr-Ec9"/>
<constraint firstItem="QTN-t3-BSM" firstAttribute="leading" secondItem="5Dr-CT-kEm" secondAttribute="trailing" constant="5" id="jYm-2o-BRV"/>
<constraint firstItem="8OG-X1-aVm" firstAttribute="top" secondItem="zpu-Om-4zy" secondAttribute="top" id="szp-eN-asa"/>
<constraint firstAttribute="bottom" secondItem="MvH-5d-9Qm" secondAttribute="bottom" constant="25" id="vfA-jM-EZY"/>
<constraint firstItem="8OG-X1-aVm" firstAttribute="leading" secondItem="zpu-Om-4zy" secondAttribute="leading" id="yE5-Uv-IwJ"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="274-Tj-4LW">
<rect key="frame" x="15" y="235" width="345" height="110"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zuanshi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="YxN-Ig-qHC">
<rect key="frame" x="0.0" y="0.0" width="345" height="110"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zuanshi" translatesAutoresizingMaskIntoConstraints="NO" id="qdP-1a-6W5">
<rect key="frame" x="15" y="15" width="24" height="24"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的钻石" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="m8P-RV-K4c">
<rect key="frame" x="43.999999999999993" y="17.333333333333343" width="65.333333333333314" height="19.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.23921568627450979" green="0.23921568627450979" blue="0.23921568627450979" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="FJc-b7-QpP">
<rect key="frame" x="15" y="53.666666666666686" width="19" height="34.666666666666657"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="28"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mS2-L8-0rS">
<rect key="frame" x="199" y="57" width="58" height="28"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="wallet_home_duihuan"/>
<connections>
<action selector="exchangeButtonClick:" destination="-1" eventType="touchUpInside" id="YPD-fq-u4Q"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4Bf-YA-GoP">
<rect key="frame" x="272" y="57" width="58" height="28"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="wallet_home_tixian"/>
<connections>
<action selector="tixianButtonClick:" destination="-1" eventType="touchUpInside" id="9lD-7E-hLJ"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="RuR-S1-FXA">
<rect key="frame" x="245" y="10" width="90" height="40"/>
<constraints>
<constraint firstAttribute="width" constant="90" id="TTi-IX-xUy"/>
<constraint firstAttribute="height" constant="40" id="UG5-ZJ-GL6"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<inset key="titleEdgeInsets" minX="-30" minY="0.0" maxX="0.0" maxY="0.0"/>
<inset key="imageEdgeInsets" minX="70" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="钻石明细" image="wallat_arrow_right">
<color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
</state>
<connections>
<action selector="onZuanshiDetail:" destination="-1" eventType="touchUpInside" id="S8z-X9-OwS"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="m8P-RV-K4c" firstAttribute="centerY" secondItem="qdP-1a-6W5" secondAttribute="centerY" id="1fh-pf-5kH"/>
<constraint firstAttribute="bottom" secondItem="4Bf-YA-GoP" secondAttribute="bottom" constant="25" id="29g-e1-zSy"/>
<constraint firstAttribute="trailing" secondItem="4Bf-YA-GoP" secondAttribute="trailing" constant="15" id="2Kr-5a-CQL"/>
<constraint firstItem="YxN-Ig-qHC" firstAttribute="leading" secondItem="274-Tj-4LW" secondAttribute="leading" id="4J1-sV-2Ku"/>
<constraint firstItem="m8P-RV-K4c" firstAttribute="leading" secondItem="qdP-1a-6W5" secondAttribute="trailing" constant="5" id="5Jl-nM-OpR"/>
<constraint firstAttribute="bottom" secondItem="mS2-L8-0rS" secondAttribute="bottom" constant="25" id="5UZ-Xo-t3I"/>
<constraint firstAttribute="height" constant="110" id="8NK-9R-S94"/>
<constraint firstItem="RuR-S1-FXA" firstAttribute="top" secondItem="274-Tj-4LW" secondAttribute="top" constant="10" id="BWi-MF-Pzd"/>
<constraint firstItem="qdP-1a-6W5" firstAttribute="top" secondItem="274-Tj-4LW" secondAttribute="top" constant="15" id="FLC-bP-OBl"/>
<constraint firstItem="YxN-Ig-qHC" firstAttribute="top" secondItem="274-Tj-4LW" secondAttribute="top" id="J3z-nY-k9A"/>
<constraint firstItem="FJc-b7-QpP" firstAttribute="leading" secondItem="274-Tj-4LW" secondAttribute="leading" constant="15" id="SFl-sl-66J"/>
<constraint firstAttribute="trailing" secondItem="RuR-S1-FXA" secondAttribute="trailing" constant="10" id="SMi-xG-0uq"/>
<constraint firstAttribute="bottom" secondItem="YxN-Ig-qHC" secondAttribute="bottom" id="a5a-Hq-yC6"/>
<constraint firstItem="4Bf-YA-GoP" firstAttribute="centerY" secondItem="FJc-b7-QpP" secondAttribute="centerY" id="e0E-JJ-4nA"/>
<constraint firstItem="4Bf-YA-GoP" firstAttribute="leading" secondItem="mS2-L8-0rS" secondAttribute="trailing" constant="15" id="fgc-Qw-IpM"/>
<constraint firstItem="qdP-1a-6W5" firstAttribute="leading" secondItem="274-Tj-4LW" secondAttribute="leading" constant="15" id="hud-Qg-ola"/>
<constraint firstAttribute="trailing" secondItem="YxN-Ig-qHC" secondAttribute="trailing" id="tfG-Rl-jfK"/>
</constraints>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JZp-xA-d2D">
<rect key="frame" x="15" y="360" width="345" height="54"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jiantou_hui" translatesAutoresizingMaskIntoConstraints="NO" id="nBK-Ig-zZa">
<rect key="frame" x="324.33333333333331" y="22" width="5.6666666666666856" height="10"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="绑定支付宝" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jJy-EJ-jjr">
<rect key="frame" x="15" y="17.333333333333314" width="81.666666666666671" height="19.333333333333329"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<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="sxZ-g1-8uq">
<rect key="frame" x="294.66666666666669" y="20" width="24.666666666666686" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="nBK-Ig-zZa" firstAttribute="centerY" secondItem="JZp-xA-d2D" secondAttribute="centerY" id="6do-tF-vO5"/>
<constraint firstAttribute="height" constant="54" id="C29-dW-7zk"/>
<constraint firstItem="jJy-EJ-jjr" firstAttribute="centerY" secondItem="JZp-xA-d2D" secondAttribute="centerY" id="V0v-LY-wZT"/>
<constraint firstItem="jJy-EJ-jjr" firstAttribute="leading" secondItem="JZp-xA-d2D" secondAttribute="leading" constant="15" id="d2n-pl-CWt"/>
<constraint firstItem="sxZ-g1-8uq" firstAttribute="centerY" secondItem="JZp-xA-d2D" secondAttribute="centerY" id="jUY-0w-X07"/>
<constraint firstItem="nBK-Ig-zZa" firstAttribute="leading" secondItem="sxZ-g1-8uq" secondAttribute="trailing" constant="5" id="rIB-m8-F6i"/>
<constraint firstAttribute="trailing" secondItem="nBK-Ig-zZa" secondAttribute="trailing" constant="15" id="x9U-ZS-nKy"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9mt-BR-9i0">
<rect key="frame" x="15" y="429" width="345" height="54"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jiantou_hui" translatesAutoresizingMaskIntoConstraints="NO" id="7Vs-Pa-3jF">
<rect key="frame" x="324.33333333333331" y="22" width="5.6666666666666856" height="10"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="绑定银行卡" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wPB-ih-cji">
<rect key="frame" x="15" y="17.333333333333314" width="81.666666666666671" height="19.333333333333329"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<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="Lt4-Bd-kfG">
<rect key="frame" x="294.66666666666669" y="20" width="24.666666666666686" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="wPB-ih-cji" firstAttribute="leading" secondItem="9mt-BR-9i0" secondAttribute="leading" constant="15" id="11P-72-327"/>
<constraint firstAttribute="trailing" secondItem="7Vs-Pa-3jF" secondAttribute="trailing" constant="15" id="9VF-Wa-g4b"/>
<constraint firstItem="7Vs-Pa-3jF" firstAttribute="leading" secondItem="Lt4-Bd-kfG" secondAttribute="trailing" constant="5" id="FjB-Rt-cY6"/>
<constraint firstItem="wPB-ih-cji" firstAttribute="centerY" secondItem="9mt-BR-9i0" secondAttribute="centerY" id="P22-93-tSl"/>
<constraint firstItem="Lt4-Bd-kfG" firstAttribute="centerY" secondItem="9mt-BR-9i0" secondAttribute="centerY" id="V1b-mL-kJH"/>
<constraint firstItem="7Vs-Pa-3jF" firstAttribute="centerY" secondItem="9mt-BR-9i0" secondAttribute="centerY" id="nKo-L3-Rxf"/>
<constraint firstAttribute="height" constant="54" id="xIY-UD-iDM"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="2M4-kk-Rqh" secondAttribute="bottom" id="I7s-cs-JM2"/>
<constraint firstItem="zpu-Om-4zy" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="INO-lm-pkp"/>
<constraint firstAttribute="trailing" secondItem="zpu-Om-4zy" secondAttribute="trailing" constant="15" id="Lhc-hK-vfp"/>
<constraint firstItem="zpu-Om-4zy" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="O6p-5Z-kRq"/>
<constraint firstItem="2M4-kk-Rqh" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="UXj-UF-Wib"/>
<constraint firstItem="9mt-BR-9i0" firstAttribute="top" secondItem="JZp-xA-d2D" secondAttribute="bottom" constant="15" id="b2g-Xb-D3d"/>
<constraint firstItem="JZp-xA-d2D" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="diw-E4-ZOQ"/>
<constraint firstItem="2M4-kk-Rqh" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="doY-aT-IwQ"/>
<constraint firstItem="2M4-kk-Rqh" firstAttribute="trailing" secondItem="i5M-Pr-FkT" secondAttribute="trailing" id="g9Z-h6-Vth"/>
<constraint firstAttribute="trailing" secondItem="274-Tj-4LW" secondAttribute="trailing" constant="15" id="lNY-ga-pwl"/>
<constraint firstAttribute="trailing" secondItem="9mt-BR-9i0" secondAttribute="trailing" constant="15" id="mbp-1O-aeb"/>
<constraint firstItem="9mt-BR-9i0" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="mgp-hj-xcN"/>
<constraint firstAttribute="trailing" secondItem="JZp-xA-d2D" secondAttribute="trailing" constant="15" id="qlm-39-QGk"/>
<constraint firstItem="JZp-xA-d2D" firstAttribute="top" secondItem="274-Tj-4LW" secondAttribute="bottom" constant="15" id="vRF-bB-f1g"/>
<constraint firstItem="274-Tj-4LW" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="wcN-tl-7O6"/>
<constraint firstItem="274-Tj-4LW" firstAttribute="top" secondItem="zpu-Om-4zy" secondAttribute="bottom" constant="15" id="xpd-MD-Kwq"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-2127" y="-219"/>
</view>
</objects>
<resources>
<image name="home_bg" width="375" height="812"/>
<image name="jiantou_hui" width="5.5" height="10"/>
<image name="wallat_arrow_right" width="16" height="16"/>
<image name="wallet_home_duihuan" width="58" height="28"/>
<image name="wallet_home_recharge" width="58" height="28"/>
<image name="wallet_home_tixian" width="58" height="28"/>
<image name="wallet_jinbi" width="24" height="24"/>
<image name="wallet_jinbi_bg" width="345" height="110"/>
<image name="wallet_zuanshi" width="24" height="24"/>
<image name="wallet_zuanshi_bg" width="345" height="110"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,19 @@
//
// SPWalletBindBankVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "BaseViewController.h"
#import "SPWalletModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletBindBankVC : BaseViewController
@property (nonatomic, strong) SPWalletModel *model;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,78 @@
//
// SPWalletBindBankVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "SPWalletBindBankVC.h"
@interface SPWalletBindBankVC ()
@property (weak, nonatomic) IBOutlet UITextField *nameTF;
@property (weak, nonatomic) IBOutlet UITextField *cardTF;
@property (weak, nonatomic) IBOutlet UITextField *bankTF;
@property (weak, nonatomic) IBOutlet UITextField *openTF;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@end
@implementation SPWalletBindBankVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"绑定支付宝"];
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-15*2, 44)];
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"home_bg")];
[self.view addSubview:bgImgV];
[self.view sendSubviewToBack:bgImgV];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
self.nameTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入真实姓名" attributes:@{NSForegroundColorAttributeName:HEXCOLOR(0x999999)}];
self.cardTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入支付宝账号" attributes:@{NSForegroundColorAttributeName:HEXCOLOR(0x999999)}];
// self.bankTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入银行名称" attributes:@{NSForegroundColorAttributeName:[kWhiteColor colorWithAlphaComponent:0.6]}];
// self.openTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入开户行" attributes:@{NSForegroundColorAttributeName:[kWhiteColor colorWithAlphaComponent:0.6]}];
if (self.model.alipay_account.length > 0) {
self.nameTF.text = self.model.alipay_name;
self.cardTF.text = self.model.alipay_account;
// self.bankTF.text = self.model.bank_card;
// self.openTF.text = self.model.open_bank;
}
}
- (IBAction)onConfirm:(id)sender {
if (self.nameTF.text.length==0) {
[HelpPageDefine showMessage:@"请输入真实姓名"];
return;
}
if (self.cardTF.text.length==0) {
[HelpPageDefine showMessage:@"请输入支付宝账号"];
return;
}
// if (self.bankTF.text.length==0) {
// [HelpPageDefine showMessage:@"请输入银行名称"];
// return;
// }
// if (self.openTF.text.length==0) {
// [HelpPageDefine showMessage:@"请输入开户行"];
// return;
// }
NSDictionary *params = @{@"alipay_name":self.nameTF.text, @"alipay_account":self.cardTF.text};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/binding_zfb" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self.navigationController popViewControllerAnimated:YES];
});
} Failure:^(id _Nonnull errorData) {
}];
}
@end

View File

@@ -0,0 +1,199 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SPWalletBindBankVC">
<connections>
<outlet property="bankTF" destination="0fD-TX-hw4" id="Hcg-VA-R7V"/>
<outlet property="cardTF" destination="R1n-8A-tEe" id="Cfi-bJ-FHj"/>
<outlet property="confirmBtn" destination="aru-Ch-GDA" id="HC3-wg-Uw3"/>
<outlet property="nameTF" destination="DJe-Ro-T6j" id="ZsO-DO-ocO"/>
<outlet property="openTF" destination="daM-jn-kW2" id="VCb-NP-17T"/>
<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="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wR4-4H-9l2">
<rect key="frame" x="15" y="110" width="345" height="54"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="姓名" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="d6c-nS-iKd">
<rect key="frame" x="15" y="17" width="33" height="20"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="DJe-Ro-T6j">
<rect key="frame" x="58" y="0.0" width="272" height="54"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="vp2-GB-nmA">
<rect key="frame" x="15" y="53.5" width="315" height="0.5"/>
<color key="backgroundColor" red="0.2784313725" green="0.2784313725" blue="0.35686274509999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="A5X-yx-RtD"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="DJe-Ro-T6j" secondAttribute="trailing" constant="15" id="6Ih-MU-Btc"/>
<constraint firstAttribute="bottom" secondItem="vp2-GB-nmA" secondAttribute="bottom" id="6Nw-mr-8k3"/>
<constraint firstItem="d6c-nS-iKd" firstAttribute="leading" secondItem="wR4-4H-9l2" secondAttribute="leading" constant="15" id="Irz-zn-7LP"/>
<constraint firstAttribute="height" constant="54" id="MNK-kI-DhI"/>
<constraint firstItem="DJe-Ro-T6j" firstAttribute="leading" secondItem="d6c-nS-iKd" secondAttribute="trailing" constant="10" id="W4J-Fk-U7Q"/>
<constraint firstItem="vp2-GB-nmA" firstAttribute="leading" secondItem="wR4-4H-9l2" secondAttribute="leading" constant="15" id="XLs-Dt-OVt"/>
<constraint firstItem="DJe-Ro-T6j" firstAttribute="top" secondItem="wR4-4H-9l2" secondAttribute="top" id="ZK8-2d-Ttq"/>
<constraint firstAttribute="bottom" secondItem="DJe-Ro-T6j" secondAttribute="bottom" id="aai-l0-Knk"/>
<constraint firstAttribute="trailing" secondItem="vp2-GB-nmA" secondAttribute="trailing" constant="15" id="huh-yj-Zuf"/>
<constraint firstItem="d6c-nS-iKd" firstAttribute="centerY" secondItem="wR4-4H-9l2" secondAttribute="centerY" id="zcN-mr-Csg"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gvg-pI-SUG">
<rect key="frame" x="15" y="179" width="345" height="54"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="支付宝账号" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="m9w-i3-eiF">
<rect key="frame" x="15" y="17" width="82" height="20"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="R1n-8A-tEe">
<rect key="frame" x="107" y="0.0" width="223" height="54"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Tux-5U-bdj">
<rect key="frame" x="15" y="53.5" width="315" height="0.5"/>
<color key="backgroundColor" red="0.2784313725" green="0.2784313725" blue="0.35686274509999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="IF5-6X-hM1"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="R1n-8A-tEe" secondAttribute="bottom" id="12A-PE-kOQ"/>
<constraint firstAttribute="height" constant="54" id="DWQ-ah-baV"/>
<constraint firstAttribute="trailing" secondItem="R1n-8A-tEe" secondAttribute="trailing" constant="15" id="GqK-AE-DX5"/>
<constraint firstItem="m9w-i3-eiF" firstAttribute="leading" secondItem="gvg-pI-SUG" secondAttribute="leading" constant="15" id="S6f-IX-2ue"/>
<constraint firstItem="R1n-8A-tEe" firstAttribute="leading" secondItem="m9w-i3-eiF" secondAttribute="trailing" constant="10" id="cT1-qb-6jm"/>
<constraint firstItem="R1n-8A-tEe" firstAttribute="top" secondItem="gvg-pI-SUG" secondAttribute="top" id="eVC-pN-zGS"/>
<constraint firstItem="m9w-i3-eiF" firstAttribute="centerY" secondItem="gvg-pI-SUG" secondAttribute="centerY" id="gfp-cw-o0m"/>
<constraint firstAttribute="bottom" secondItem="Tux-5U-bdj" secondAttribute="bottom" id="oP8-1F-IZd"/>
<constraint firstItem="Tux-5U-bdj" firstAttribute="leading" secondItem="gvg-pI-SUG" secondAttribute="leading" constant="15" id="ssv-In-dVj"/>
<constraint firstAttribute="trailing" secondItem="Tux-5U-bdj" secondAttribute="trailing" constant="15" id="yKM-5n-KNT"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="LYL-bz-I03">
<rect key="frame" x="15" y="245" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="0fD-TX-hw4">
<rect key="frame" x="15" y="0.0" width="308" height="54"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<color key="backgroundColor" white="1" alpha="0.054113063679999997" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="0fD-TX-hw4" firstAttribute="leading" secondItem="LYL-bz-I03" secondAttribute="leading" constant="15" id="3C1-KQ-Cwd"/>
<constraint firstAttribute="bottom" secondItem="0fD-TX-hw4" secondAttribute="bottom" id="4bG-pZ-HDB"/>
<constraint firstAttribute="trailing" secondItem="0fD-TX-hw4" secondAttribute="trailing" constant="22" id="7ck-Qm-gRQ"/>
<constraint firstAttribute="height" constant="54" id="Whv-Oe-yON"/>
<constraint firstItem="0fD-TX-hw4" firstAttribute="top" secondItem="LYL-bz-I03" secondAttribute="top" id="hcD-RQ-dGX"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="nSV-h2-zuL">
<rect key="frame" x="15" y="311" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="daM-jn-kW2">
<rect key="frame" x="15" y="0.0" width="308" height="54"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
</subviews>
<color key="backgroundColor" white="1" alpha="0.054113063679999997" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="daM-jn-kW2" firstAttribute="leading" secondItem="nSV-h2-zuL" secondAttribute="leading" constant="15" id="FGc-kj-mHs"/>
<constraint firstAttribute="trailing" secondItem="daM-jn-kW2" secondAttribute="trailing" constant="22" id="Rr6-Jw-fP7"/>
<constraint firstAttribute="bottom" secondItem="daM-jn-kW2" secondAttribute="bottom" id="bKy-Hy-Kh4"/>
<constraint firstItem="daM-jn-kW2" firstAttribute="top" secondItem="nSV-h2-zuL" secondAttribute="top" id="kd4-TZ-l6P"/>
<constraint firstAttribute="height" constant="54" id="r14-2Y-pJT"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aru-Ch-GDA">
<rect key="frame" x="15" y="285" width="345" height="44"/>
<color key="backgroundColor" red="0.050980392156862744" green="1" blue="0.72549019607843135" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="Goh-ac-hkH"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="立即绑定">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="22"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="-1" eventType="touchUpInside" id="VlJ-Av-jNA"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="aru-Ch-GDA" firstAttribute="top" secondItem="gvg-pI-SUG" secondAttribute="bottom" constant="52" id="0Cr-Xj-6r3"/>
<constraint firstItem="gvg-pI-SUG" firstAttribute="trailing" secondItem="wR4-4H-9l2" secondAttribute="trailing" id="4Vj-6f-rcf"/>
<constraint firstItem="nSV-h2-zuL" firstAttribute="trailing" secondItem="wR4-4H-9l2" secondAttribute="trailing" id="Cu8-xG-2TJ"/>
<constraint firstAttribute="trailing" secondItem="wR4-4H-9l2" secondAttribute="trailing" constant="15" id="LjP-dI-ueL"/>
<constraint firstItem="wR4-4H-9l2" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="OEd-hs-Kxd"/>
<constraint firstItem="aru-Ch-GDA" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="TX9-ID-ucc"/>
<constraint firstItem="gvg-pI-SUG" firstAttribute="leading" secondItem="wR4-4H-9l2" secondAttribute="leading" id="U5F-7x-WkD"/>
<constraint firstItem="nSV-h2-zuL" firstAttribute="top" secondItem="LYL-bz-I03" secondAttribute="bottom" constant="12" id="WZo-av-kgE"/>
<constraint firstItem="gvg-pI-SUG" firstAttribute="top" secondItem="wR4-4H-9l2" secondAttribute="bottom" constant="15" id="cAM-kl-p4Q"/>
<constraint firstItem="LYL-bz-I03" firstAttribute="trailing" secondItem="wR4-4H-9l2" secondAttribute="trailing" id="eXQ-bF-DXc"/>
<constraint firstItem="LYL-bz-I03" firstAttribute="top" secondItem="gvg-pI-SUG" secondAttribute="bottom" constant="12" id="f44-V9-Sqa"/>
<constraint firstItem="LYL-bz-I03" firstAttribute="leading" secondItem="wR4-4H-9l2" secondAttribute="leading" id="g0j-n3-pbq"/>
<constraint firstItem="nSV-h2-zuL" firstAttribute="leading" secondItem="wR4-4H-9l2" secondAttribute="leading" id="lgU-oI-XVH"/>
<constraint firstItem="wR4-4H-9l2" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="ueN-Nz-jxQ"/>
<constraint firstAttribute="trailing" secondItem="aru-Ch-GDA" secondAttribute="trailing" constant="15" id="wyL-km-yoM"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-78" y="78"/>
</view>
</objects>
</document>

View File

@@ -0,0 +1,16 @@
//
// SPWalletBoneVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletBoneVC : BaseViewController <JXCategoryListContentViewDelegate>
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,35 @@
//
// SPWalletBoneVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "SPWalletBoneVC.h"
@interface SPWalletBoneVC ()
@property (weak, nonatomic) IBOutlet UIView *balanceBgV;
@property (weak, nonatomic) IBOutlet UILabel *balanceLab;
@end
@implementation SPWalletBoneVC
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
}
- (void)createUI {
self.balanceBgV.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(ScreenWidth-14*2, 130) direction:FXGradientChangeDirectionHorizontal startColor:HEXCOLOR(0xE5AF21) endColor:HEXCOLOR(0xF88426)];
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SPWalletBoneVC">
<connections>
<outlet property="balanceBgV" destination="4Og-b7-kau" id="erK-RK-oMa"/>
<outlet property="balanceLab" destination="e0Q-9l-ri7" id="p5J-BI-Dna"/>
<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="4Og-b7-kau">
<rect key="frame" x="14" y="10" width="386" height="130"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="当前余额" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rgf-Po-djj">
<rect key="frame" x="20" y="32" width="58" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="e0Q-9l-ri7">
<rect key="frame" x="52" y="65.5" width="11" height="26"/>
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="22"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_bone" translatesAutoresizingMaskIntoConstraints="NO" id="N0f-Ge-DJV">
<rect key="frame" x="20" y="66" width="25" height="25"/>
<constraints>
<constraint firstAttribute="height" constant="25" id="fdw-zF-Ttm"/>
<constraint firstAttribute="width" constant="25" id="zGb-l8-xjm"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="0.89803921568627454" green="0.68627450980392157" blue="0.12941176470588234" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="Rgf-Po-djj" firstAttribute="top" secondItem="4Og-b7-kau" secondAttribute="top" constant="32" id="0uA-u4-XpI"/>
<constraint firstItem="e0Q-9l-ri7" firstAttribute="centerY" secondItem="N0f-Ge-DJV" secondAttribute="centerY" id="3ag-pX-HYf"/>
<constraint firstAttribute="height" constant="130" id="7Xv-ar-Z9L"/>
<constraint firstItem="e0Q-9l-ri7" firstAttribute="leading" secondItem="N0f-Ge-DJV" secondAttribute="trailing" constant="7" id="DRw-WH-Jx1"/>
<constraint firstItem="N0f-Ge-DJV" firstAttribute="leading" secondItem="Rgf-Po-djj" secondAttribute="leading" id="Ucy-Nb-WYc"/>
<constraint firstItem="N0f-Ge-DJV" firstAttribute="top" secondItem="Rgf-Po-djj" secondAttribute="bottom" constant="17" id="cjL-iX-NBA"/>
<constraint firstItem="Rgf-Po-djj" firstAttribute="leading" secondItem="4Og-b7-kau" secondAttribute="leading" constant="20" id="uTw-Gw-rJP"/>
</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 firstAttribute="trailing" secondItem="4Og-b7-kau" secondAttribute="trailing" constant="14" id="ECW-0H-ZHR"/>
<constraint firstItem="4Og-b7-kau" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="14" id="cgL-JJ-uPY"/>
<constraint firstItem="4Og-b7-kau" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="10" id="ymD-wu-5NW"/>
</constraints>
<point key="canvasLocation" x="132" y="109"/>
</view>
</objects>
<resources>
<image name="wallet_bone" width="23" height="30"/>
</resources>
</document>

View File

@@ -0,0 +1,16 @@
//
// SPWalletContainerVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletContainerVC : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,123 @@
//
// SPWalletContainerVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "SPWalletContainerVC.h"
#import "SPWalletJinbiVC.h"
#import "SPWalletZuanshiVC.h"
#import "SPWalletBoneVC.h"
#import "SPWalletRecordVC.h"
@interface SPWalletContainerVC ()<JXCategoryListContainerViewDelegate>
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) JXCategoryTitleView *categoryView;
@property (nonatomic, strong) JXCategoryListContainerView *listContainerView;
@end
@implementation SPWalletContainerVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"我的钱包"];
[self onChangeNaviWhiteStyle];
self.titles = @[@"我的金币", @"我的钻石"];
[self createUI];
}
-(void)createUI {
// UIButton *mingxiBtn = [ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-44-12, yb_StatusBar_H+12, 44, 20) text:@"明细" font:YBMediumFont(12) color:HEXCOLOR(0x333333) backguoundColor:mainDeepColor imageName:nil target:self action:@selector(onMingxi)];
// mingxiBtn.layer.cornerRadius = 10;
[self.view addSubview:self.categoryView];
[self.view addSubview:self.listContainerView];
[self.view sendSubviewToBack:self.listContainerView];
[self.categoryView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(yb_NavigationBar_H+5);
make.centerX.equalTo(self.view);
make.width.mas_equalTo(344);
make.height.mas_equalTo(42);
}];
[self.listContainerView mas_makeConstraints:^(MASConstraintMaker *make) {
// make.top.equalTo(self.categoryView.mas_bottom).offset(10);
make.top.left.right.equalTo(self.view);
make.bottom.equalTo(self.view);
}];
}
- (void)onMingxi {
SPWalletRecordVC *vc = [[SPWalletRecordVC alloc] init];
[self.navigationController pushViewController:vc animated:YES];
}
//
- (JXCategoryTitleView *)categoryView {
if (!_categoryView) {
_categoryView = [[JXCategoryTitleView alloc] init];
_categoryView.titleFont = YBMediumFont(15);
_categoryView.titleSelectedFont = YBBoldFont(15);
_categoryView.titleColor = HEXCOLOR(0xFFFFFF);
_categoryView.titleSelectedColor = HEXCOLOR(0xFEACE9);
_categoryView.backgroundColor = HEXCOLORA(0xFFFFFF, 0.1);
_categoryView.layer.cornerRadius = 21;
_categoryView.layer.masksToBounds = YES;
_categoryView.cellSpacing = 0;
_categoryView.cellWidth = 344/self.titles.count;
_categoryView.averageCellSpacingEnabled = NO;
_categoryView.titleLabelMaskEnabled = YES;
_categoryView.listContainer = self.listContainerView;
_categoryView.titles = self.titles;
JXCategoryIndicatorBackgroundView *backgroundView = [[JXCategoryIndicatorBackgroundView alloc] init];
backgroundView.indicatorHeight = 42;
backgroundView.indicatorWidthIncrement = 0;
backgroundView.indicatorCornerRadius = 21;
backgroundView.indicatorColor = kWhiteColor;
_categoryView.indicators = @[backgroundView];
}
return _categoryView;
}
//
- (JXCategoryListContainerView *)listContainerView {
if (!_listContainerView) {
_listContainerView = [[JXCategoryListContainerView alloc] initWithType:JXCategoryListContainerType_ScrollView delegate:self];
}
return _listContainerView;
}
#pragma mark - JXCategoryListContainerViewDelegate
//
- (NSInteger)numberOfListsInlistContainerView:(JXCategoryListContainerView *)listContainerView {
return self.titles.count;
}
// <JXCategoryListContentViewDelegate>
- (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index {
if (0 == index) {
SPWalletJinbiVC *list = [[SPWalletJinbiVC alloc] init];
return list;
}else if (1 == index) {
SPWalletZuanshiVC *list = [[SPWalletZuanshiVC alloc] init];
return list;
}else {
SPWalletBoneVC *list = [[SPWalletBoneVC alloc] init];
return list;
}
}
@end

View File

@@ -0,0 +1,19 @@
//
// SPWalletDuihuanVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "BaseViewController.h"
#import "SPWalletModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletDuihuanVC : BaseViewController
@property (nonatomic, strong) SPWalletModel *model;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,84 @@
//
// SPWalletDuihuanVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "SPWalletDuihuanVC.h"
#import "SPWalletPsdAlert.h"
@interface SPWalletDuihuanVC ()
@property (weak, nonatomic) IBOutlet UILabel *banlanceLab;
@property (weak, nonatomic) IBOutlet UITextField *zuanshiTF;
@property (weak, nonatomic) IBOutlet UITextField *jinbiTF;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@property (nonatomic, copy) NSString *passwordStr;
@end
@implementation SPWalletDuihuanVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"兑换"];
[self createUI];
}
- (void)createUI {
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-27*2, 49)];
self.zuanshiTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入兑换钻石数量" attributes:@{NSForegroundColorAttributeName:[kWhiteColor colorWithAlphaComponent:0.6]}];
[self.zuanshiTF addTarget:self action:@selector(textFieldChanged:) forControlEvents:UIControlEventEditingChanged];
self.banlanceLab.text = [NSString stringWithFormat:@"%ld", [self.model.money integerValue]];
}
- (void)textFieldChanged:(UITextField*)tf {
NSInteger zuanshi = [tf.text integerValue];
self.jinbiTF.text = [NSString stringWithFormat:@"%ld", zuanshi*10];
}
- (IBAction)onAllDuihuan:(id)sender {
self.zuanshiTF.text = [NSString stringWithFormat:@"%ld", [self.model.money integerValue]];
NSInteger zuanshi = [self.zuanshiTF.text integerValue];
self.jinbiTF.text = [NSString stringWithFormat:@"%ld", zuanshi*10];
}
- (IBAction)onConfirm:(id)sender {
if (self.zuanshiTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入兑换钻石数量"];
return;
}
[self onShowPsdAlert];
}
- (void)onDuihuanRequest {
NSDictionary *params = @{@"money":self.zuanshiTF.text, @"trade_password":self.passwordStr};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/exchange" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
[self.navigationController popViewControllerAnimated:YES];
});
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onShowPsdAlert {
SPWalletPsdAlert *alert = [[NSBundle mainBundle] loadNibNamed:@"SPWalletPsdAlert" owner:self options:nil].firstObject;
alert.frame = [UIScreen mainScreen].bounds;
[KEYWINDOW addSubview:alert];
WEAK_SELF
alert.onConfirmBlock = ^(NSString * _Nonnull str) {
weakSelf.passwordStr = str;
[weakSelf onDuihuanRequest];
};
}
@end

View File

@@ -0,0 +1,215 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" 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="19519"/>
<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="SPWalletDuihuanVC">
<connections>
<outlet property="banlanceLab" destination="k2y-Zh-JGY" id="Hpo-5g-hpC"/>
<outlet property="confirmBtn" destination="ntG-ZJ-cx0" id="Lu7-7j-VA6"/>
<outlet property="jinbiTF" destination="M5i-ah-bjE" id="Sn5-Jd-8GH"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
<outlet property="zuanshiTF" destination="4W3-So-N7P" id="I76-G9-aFB"/>
</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="oL0-wa-vuK">
<rect key="frame" x="15" y="88" width="384" height="84"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="可兑换数量" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="wld-RH-EVT">
<rect key="frame" x="15" y="13" width="71.5" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="k2y-Zh-JGY">
<rect key="frame" x="47" y="49" width="12" height="21.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="4kB-tI-zcW">
<rect key="frame" x="291" y="28" width="78" height="28"/>
<color key="backgroundColor" red="0.18823529410000001" green="0.87058823529999996" blue="0.86274509799999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="28" id="Tid-FN-SgS"/>
<constraint firstAttribute="width" constant="78" id="Trp-03-z8N"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<state key="normal" title="全部兑换">
<color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="14"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onAllDuihuan:" destination="-1" eventType="touchUpInside" id="nhg-39-Ttb"/>
</connections>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zuanshi" translatesAutoresizingMaskIntoConstraints="NO" id="hFX-XT-4Hi">
<rect key="frame" x="15" y="47" width="25" height="25"/>
<constraints>
<constraint firstAttribute="height" constant="25" id="KeA-2r-VAm"/>
<constraint firstAttribute="width" constant="25" id="Wm4-KG-ue7"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.59861620429421769" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="k2y-Zh-JGY" firstAttribute="centerY" secondItem="hFX-XT-4Hi" secondAttribute="centerY" id="5qT-ZJ-wI9"/>
<constraint firstItem="k2y-Zh-JGY" firstAttribute="leading" secondItem="hFX-XT-4Hi" secondAttribute="trailing" constant="7" id="CMe-NQ-P37"/>
<constraint firstItem="wld-RH-EVT" firstAttribute="leading" secondItem="oL0-wa-vuK" secondAttribute="leading" constant="15" id="CUC-93-moJ"/>
<constraint firstAttribute="trailing" secondItem="4kB-tI-zcW" secondAttribute="trailing" constant="15" id="Nlu-jN-jU2"/>
<constraint firstItem="hFX-XT-4Hi" firstAttribute="top" secondItem="wld-RH-EVT" secondAttribute="bottom" constant="17" id="SjG-nj-E1r"/>
<constraint firstAttribute="height" constant="84" id="aT7-cd-FtQ"/>
<constraint firstItem="hFX-XT-4Hi" firstAttribute="leading" secondItem="wld-RH-EVT" secondAttribute="leading" id="hFh-dV-7HI"/>
<constraint firstItem="wld-RH-EVT" firstAttribute="top" secondItem="oL0-wa-vuK" secondAttribute="top" constant="13" id="nSd-n9-TnS"/>
<constraint firstItem="4kB-tI-zcW" firstAttribute="centerY" secondItem="oL0-wa-vuK" secondAttribute="centerY" id="rcW-gI-wQb"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="兑换" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xj8-Ir-i5I">
<rect key="frame" x="30" y="182" width="29" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="kFX-S3-QNZ">
<rect key="frame" x="15" y="214" width="384" height="54"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="钻石" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4hL-CE-GSC">
<rect key="frame" x="15" y="18.5" width="29" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" white="1" alpha="0.60038248697916663" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="4W3-So-N7P">
<rect key="frame" x="100" y="0.0" width="262" height="54"/>
<color key="textColor" red="0.18823529410000001" green="0.87058823529999996" blue="0.86274509799999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rwD-Hk-H1j">
<rect key="frame" x="15" y="53.5" width="354" height="0.5"/>
<color key="backgroundColor" red="0.2784313725" green="0.2784313725" blue="0.35686274509999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="zvx-S1-kEN"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="4W3-So-N7P" firstAttribute="leading" secondItem="kFX-S3-QNZ" secondAttribute="leading" constant="100" id="0Fy-fB-QcV"/>
<constraint firstItem="4W3-So-N7P" firstAttribute="top" secondItem="kFX-S3-QNZ" secondAttribute="top" id="HEx-zB-kVh"/>
<constraint firstItem="rwD-Hk-H1j" firstAttribute="leading" secondItem="kFX-S3-QNZ" secondAttribute="leading" constant="15" id="KcS-WX-8Ys"/>
<constraint firstAttribute="trailing" secondItem="rwD-Hk-H1j" secondAttribute="trailing" constant="15" id="U17-sx-l9m"/>
<constraint firstAttribute="height" constant="54" id="UDi-D4-AGR"/>
<constraint firstAttribute="bottom" secondItem="4W3-So-N7P" secondAttribute="bottom" id="itp-je-lax"/>
<constraint firstItem="4hL-CE-GSC" firstAttribute="centerY" secondItem="kFX-S3-QNZ" secondAttribute="centerY" id="keP-Hr-k2a"/>
<constraint firstAttribute="trailing" secondItem="4W3-So-N7P" secondAttribute="trailing" constant="22" id="mqh-fu-yFM"/>
<constraint firstItem="4hL-CE-GSC" firstAttribute="leading" secondItem="kFX-S3-QNZ" secondAttribute="leading" constant="15" id="rlU-wr-P23"/>
<constraint firstAttribute="bottom" secondItem="rwD-Hk-H1j" secondAttribute="bottom" id="ytJ-RE-yT8"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="xKB-oV-i3K">
<rect key="frame" x="15" y="280" width="384" height="54"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="金币" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="PKW-5I-jg4">
<rect key="frame" x="15" y="18.5" width="29" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" white="1" alpha="0.60038248699999996" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<textField opaque="NO" contentMode="scaleToFill" enabled="NO" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="0" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="M5i-ah-bjE">
<rect key="frame" x="100" y="0.0" width="262" height="54"/>
<color key="textColor" red="0.18823529410000001" green="0.87058823529999996" blue="0.86274509799999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="BZA-10-0DG">
<rect key="frame" x="15" y="53.5" width="354" height="0.5"/>
<color key="backgroundColor" red="0.2784313725" green="0.2784313725" blue="0.35686274509999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="3u3-9t-W7p"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="BZA-10-0DG" secondAttribute="bottom" id="4nE-CQ-bhm"/>
<constraint firstAttribute="trailing" secondItem="BZA-10-0DG" secondAttribute="trailing" constant="15" id="5MD-15-ofB"/>
<constraint firstAttribute="trailing" secondItem="M5i-ah-bjE" secondAttribute="trailing" constant="22" id="7mp-iP-MWs"/>
<constraint firstItem="M5i-ah-bjE" firstAttribute="top" secondItem="xKB-oV-i3K" secondAttribute="top" id="Bm9-Yy-VSy"/>
<constraint firstItem="PKW-5I-jg4" firstAttribute="centerY" secondItem="xKB-oV-i3K" secondAttribute="centerY" id="CP7-ZO-FUm"/>
<constraint firstItem="BZA-10-0DG" firstAttribute="leading" secondItem="xKB-oV-i3K" secondAttribute="leading" constant="15" id="KtR-Bl-qJX"/>
<constraint firstAttribute="bottom" secondItem="M5i-ah-bjE" secondAttribute="bottom" id="ai4-Vp-6kL"/>
<constraint firstItem="PKW-5I-jg4" firstAttribute="leading" secondItem="xKB-oV-i3K" secondAttribute="leading" constant="15" id="kVg-53-eVU"/>
<constraint firstItem="M5i-ah-bjE" firstAttribute="leading" secondItem="xKB-oV-i3K" secondAttribute="leading" constant="100" id="qot-4B-pZa"/>
<constraint firstAttribute="height" constant="54" id="whT-vR-URL"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ntG-ZJ-cx0">
<rect key="frame" x="27" y="484" width="360" height="49"/>
<color key="backgroundColor" red="0.18823529410000001" green="0.87058823529999996" blue="0.86274509799999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="t7H-0T-yyQ"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="确定">
<color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24.5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="-1" eventType="touchUpInside" id="XpF-FA-ZNk"/>
</connections>
</button>
</subviews>
<viewLayoutGuide key="safeArea" id="Lv7-oc-lHn"/>
<color key="backgroundColor" red="0.15686274510000001" green="0.047058823530000002" blue="0.28627450980000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="kFX-S3-QNZ" firstAttribute="leading" secondItem="Lv7-oc-lHn" secondAttribute="leading" constant="15" id="1hS-8a-SGK"/>
<constraint firstItem="xKB-oV-i3K" firstAttribute="trailing" secondItem="kFX-S3-QNZ" secondAttribute="trailing" id="9Yo-fV-adC"/>
<constraint firstItem="Lv7-oc-lHn" firstAttribute="trailing" secondItem="oL0-wa-vuK" secondAttribute="trailing" constant="15" id="DD8-E5-efQ"/>
<constraint firstItem="oL0-wa-vuK" firstAttribute="top" secondItem="Lv7-oc-lHn" secondAttribute="top" constant="44" id="E8f-lH-ZgN"/>
<constraint firstItem="Lv7-oc-lHn" firstAttribute="trailing" secondItem="kFX-S3-QNZ" secondAttribute="trailing" constant="15" id="EuF-pL-jNS"/>
<constraint firstItem="xKB-oV-i3K" firstAttribute="top" secondItem="kFX-S3-QNZ" secondAttribute="bottom" constant="12" id="Eys-Sh-YKS"/>
<constraint firstItem="ntG-ZJ-cx0" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="27" id="MOr-Vx-2Pe"/>
<constraint firstItem="xj8-Ir-i5I" firstAttribute="leading" secondItem="oL0-wa-vuK" secondAttribute="leading" constant="15" id="OTz-eZ-QnL"/>
<constraint firstItem="Lv7-oc-lHn" firstAttribute="trailing" secondItem="ntG-ZJ-cx0" secondAttribute="trailing" constant="27" id="T9v-qZ-F83"/>
<constraint firstItem="xKB-oV-i3K" firstAttribute="leading" secondItem="kFX-S3-QNZ" secondAttribute="leading" id="e8P-Iq-CdQ"/>
<constraint firstItem="oL0-wa-vuK" firstAttribute="leading" secondItem="Lv7-oc-lHn" secondAttribute="leading" constant="15" id="iKX-ep-cXf"/>
<constraint firstItem="ntG-ZJ-cx0" firstAttribute="top" secondItem="xKB-oV-i3K" secondAttribute="bottom" constant="150" id="trA-fO-L5I"/>
<constraint firstItem="kFX-S3-QNZ" firstAttribute="top" secondItem="xj8-Ir-i5I" secondAttribute="bottom" constant="15" id="wbP-sk-Tjg"/>
<constraint firstItem="xj8-Ir-i5I" firstAttribute="top" secondItem="oL0-wa-vuK" secondAttribute="bottom" constant="10" id="xOb-VV-leN"/>
</constraints>
<point key="canvasLocation" x="132" y="107"/>
</view>
</objects>
<resources>
<image name="wallet_zuanshi" width="21" height="17"/>
</resources>
</document>

View File

@@ -0,0 +1,16 @@
//
// SPWalletJinbiVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletJinbiVC : BaseViewController <JXCategoryListContentViewDelegate>
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,385 @@
//
// SPWalletJinbiVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "SPWalletJinbiVC.h"
#import "SPWalletRechargeCell.h"
#import "SPWalletModel.h"
#import <WXApi.h>
#import <WebKit/WebKit.h>
#import <AlipaySDK/AlipaySDK.h>
#import "SPWalletRecordListVC.h"
@interface SPWalletJinbiVC ()<UICollectionViewDataSource, UICollectionViewDelegateFlowLayout, WKNavigationDelegate, WKScriptMessageHandler, WKUIDelegate>
@property (weak, nonatomic) IBOutlet UIView *balanceBgV;
@property (weak, nonatomic) IBOutlet UILabel *balanceLab;
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@property (weak, nonatomic) IBOutlet UILabel *buyTitleLab;
@property (weak, nonatomic) IBOutlet UILabel *explainLab;
@property (weak, nonatomic) IBOutlet UIButton *zfbBtn;
@property (weak, nonatomic) IBOutlet UIButton *wxBtn;
@property (weak, nonatomic) IBOutlet UIButton *huifuAliBtn;
@property (nonatomic, strong) NSArray *dataArray;
@property (nonatomic, assign) NSInteger selectIndex;
@property (nonatomic, strong) SPWalletModel *model;
@property (nonatomic, strong) WKWebView *webView;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topLayout;
@property (nonatomic, assign) NSInteger payType;
@end
@implementation SPWalletJinbiVC
- (void)dealloc {
[[NSNotificationCenter defaultCenter] removeObserver:self];
// [[NSNotificationCenter defaultCenter] removeObserver:self name:UIApplicationWillEnterForegroundNotification object:nil];
}
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self fetchData];
}
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"充值"];
[self createUI];
[self fetchRechargeListData];
// [ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-65-10, yb_StatusBar_H+7, 60, 30) text:@"明细" font:YBMediumFont(13) color:HEXCOLOR(0x111111) backguoundColor:nil imageName:nil target:self action:@selector(onRightClick)];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(payResultMethod:) name:@"wechatPayResult" object:nil];
//1- 2- 3-
self.payType = 1;
// [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(endBackgroundFormOutAlipay) name:UIApplicationWillEnterForegroundNotification object:nil];
//
// WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];
// configuration.userContentController = [[WKUserContentController alloc] init];
// configuration.preferences = [[WKPreferences alloc] init];
// configuration.preferences.minimumFontSize = 10;
// configuration.preferences.javaScriptEnabled = YES;
// configuration.preferences.javaScriptCanOpenWindowsAutomatically = YES;
//
// _webView = [[WKWebView alloc] initWithFrame:CGRectZero configuration:configuration];
// _webView.navigationDelegate = self;
// _webView.UIDelegate = self;
// [self.view addSubview:_webView];
}
//- (void)endBackgroundFormOutAlipay {
// [self fetchData];
//}
- (void)onRightClick
{
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 4;
[vc pushSelf];
}
- (IBAction)coinSendRecordButtonClick:(UIButton *)sender {
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 1;
[vc pushSelf];
}
- (void)payResultMethod:(NSNotification *)note {
int code = [note.object intValue];
switch (code) {
case 1:{
//
[HelpPageDefine showMessage:@"充值成功"];
[self fetchData];
}break;
case 2:{
//
[HelpPageDefine showMessage:@"支付取消"];
}break;
case 3:{
//
[HelpPageDefine showMessage:@"支付失败"];
}break;
default:
break;
}
}
- (void)fetchData {
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/get_user_money" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
SPWalletModel *model = [SPWalletModel mj_objectWithKeyValues:responseDic[@"data"]];
self.model = model;
self.balanceLab.text = model.integral;
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)fetchRechargeListData {
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/pay/get_can_recharge_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
self.dataArray = [SPWalletRechargeModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
[self.collectionView reloadData];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)createUI {
// self.balanceBgV.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(ScreenWidth-14*2, 130) direction:FXGradientChangeDirectionHorizontal startColor:HEXCOLOR(0xB651F4) endColor:HEXCOLOR(0x722DD4)];
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"home_bg")];
[self.view addSubview:bgImgV];
[self.view sendSubviewToBack:bgImgV];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
self.topLayout.constant = yb_NavigationBar_H+10;
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-27*2, 49)];
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
CGFloat itemW = (ScreenWidth-15*4)/3;
layout.itemSize = CGSizeMake(itemW, 82);
layout.minimumInteritemSpacing = 0;
layout.minimumLineSpacing = 10;
layout.sectionInset = UIEdgeInsetsMake(0, 15, 0, 15);
_collectionView.collectionViewLayout = layout;
_collectionView.delegate = self;
_collectionView.dataSource = self;
[_collectionView registerNib:[UINib nibWithNibName:@"SPWalletRechargeCell" bundle:nil] forCellWithReuseIdentifier:@"SPWalletRechargeCell"];
}
- (IBAction)onMingxi:(id)sender {
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 4;
[vc pushSelf];
}
- (IBAction)zhifubaoClick:(id)sender {
self.payType = 1;
[self onConfirm:nil];
}
- (IBAction)weixinClick:(id)sender {
self.payType = 2;
[self onConfirm:nil];
}
- (IBAction)onSelZfb:(id)sender {
self.zfbBtn.selected = YES;
self.wxBtn.selected = NO;
self.huifuAliBtn.selected = NO;
self.payType = 1;
}
- (IBAction)onSelWx:(id)sender {
self.zfbBtn.selected = NO;
self.wxBtn.selected = YES;
self.huifuAliBtn.selected = NO;
self.payType = 2;
}
- (IBAction)huifuButtonClick:(UIButton *)sender {
self.zfbBtn.selected = NO;
self.wxBtn.selected = NO;
self.huifuAliBtn.selected = YES;
self.payType = 3;
}
- (IBAction)onConfirm:(id)sender {
if (self.payType == 1){
[self aliPayMethod];
}else if (self.payType == 2){
[self wechatPayMethod];
}else if (self.payType == 3){
[self huifuAliPayMethod];
}
return;
UIAlertController *sheetAlert = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *action1 = [UIAlertAction actionWithTitle:@"支付宝支付" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
[self aliPayMethod];
}];
[action1 setValue:mainDeepColor forKey:@"_titleTextColor"];
[sheetAlert addAction:action1];
UIAlertAction *action2 = [UIAlertAction actionWithTitle:@"微信支付" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
[self wechatPayMethod];
}];
[action2 setValue:mainDeepColor forKey:@"_titleTextColor"];
[sheetAlert addAction:action2];
UIAlertAction *action3 = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil];
[action3 setValue:HEXCOLOR(0x333333) forKey:@"_titleTextColor"];
[sheetAlert addAction:action3];
[self presentViewController:sheetAlert animated:YES completion:nil];
}
- (void)wechatPayMethod {
SPWalletRechargeModel *model = self.dataArray[self.selectIndex];
NSDictionary *params = @{@"crid":model.crid, @"pay_type":@"2", @"uid":BJUserManager.userInfo.uid};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/pay/create_pay_order" Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
NSDictionary *dict = responseDic[@"data"];
PayReq *req = [[PayReq alloc] init];
req.nonceStr = [dict objectForKey:@"noncestr"];
req.timeStamp = [[dict objectForKey:@"timestamp"] intValue];
req.package = [dict objectForKey:@"package"];
req.partnerId = [dict objectForKey:@"partnerid"];
req.prepayId = [dict objectForKey:@"prepayid"];
req.sign = [dict objectForKey:@"sign"];
[WXApi sendReq:req completion:^(BOOL success) {
}];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)aliPayMethod {
SPWalletRechargeModel *model = self.dataArray[self.selectIndex];
NSDictionary *params = @{@"crid":model.crid, @"pay_type":@"1", @"uid":BJUserManager.userInfo.uid};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/pay/create_pay_order" Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
[self onAliPay:[responseDic safeStringForKey:@"data"]];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)huifuAliPayMethod {
SPWalletRechargeModel *model = self.dataArray[self.selectIndex];
NSDictionary *params = @{@"crid":model.crid, @"pay_type":@"21", @"uid":BJUserManager.userInfo.uid};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/pay/create_pay_order" Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
NSDictionary *data = [responseDic safeDictionaryForKey:@"data"];
NSString *rqinfo = [data safeStringForKey:@"pay_info"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:rqinfo] options:@{} completionHandler:^(BOOL success) {
}];
} Failure:^(id _Nonnull errorData) {
}];
}
-(void)onAliPay:(NSString *)payStr {
[[AlipaySDK defaultService] payOrder:payStr fromScheme:@"redAlipay" callback:^(NSDictionary *resultDic) {
NSLog(@"支付宝回调%@", resultDic);
if ([resultDic[@"resultStatus"] integerValue] == 9000) {
[HelpPageDefine showMessage:@"充值成功"];
[self fetchData];
}else if ([resultDic[@"resultStatus"] integerValue] == 6001) {
[HelpPageDefine showMessage:@"支付取消"];
}else {
[HelpPageDefine showMessage:@"支付失败"];
}
}];
}
#pragma mark - UICollectionViewDelegate && UICollectionViewDataSource
- (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView
{
return 1;
}
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section
{
return self.dataArray.count;
}
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
SPWalletRechargeCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"SPWalletRechargeCell" forIndexPath:indexPath];
// NSDictionary *dict = self.dataArray[indexPath.row];
// cell.priceLab.text = [NSString stringWithFormat:@"¥%@", dict[@"price"]];
// cell.coinLab.text = [NSString stringWithFormat:@"%@", dict[@"coin"]];
SPWalletRechargeModel *model = self.dataArray[indexPath.row];
cell.priceLab.text = [NSString stringWithFormat:@"¥%@", model.money];
cell.coinLab.text = model.integral;
if (self.selectIndex == indexPath.row) {
cell.bgImgV.image = ImageNamed(@"wallet_recharge_sel");
cell.coinLab.textColor = HEXCOLOR(0x333333);
cell.priceLab.textColor = HEXCOLORA(0x333333, 1);
}else {
cell.bgImgV.image = ImageNamed(@"wallet_recharge_nor");
cell.coinLab.textColor = HEXCOLORA(0x333333, 1);
cell.priceLab.textColor = HEXCOLORA(0x999999, 1);
}
return cell;
}
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
self.selectIndex = indexPath.row;
[self.collectionView reloadData];
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
#pragma mark -
- (void)onShandePayWithType:(NSInteger)type {
/// product_code02020004 scheme weixin://
if (type == 10) {
if (![[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"alipays://"]]) {
[HelpPageDefine showMessage:@"未安装支付宝APP"];
return;
}
}
SPWalletRechargeModel *model = self.dataArray[self.selectIndex];
NSDictionary *params = @{@"crid":model.crid, @"pay_type":@(10)};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/pay/create_pay_order" Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:C_string(responseDic[@"data"])]]];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)webView:(WKWebView *)webView decidePolicyForNavigationAction:(WKNavigationAction *)navigationAction decisionHandler:(void (^)(WKNavigationActionPolicy))decisionHandler {
NSString * reqUrl = navigationAction.request.URL.absoluteString;
if ([reqUrl hasPrefix:@"alipays://"] || [reqUrl hasPrefix:@"alipay://"]) {
// NOTE: App
BOOL bSucc = [[UIApplication sharedApplication] openURL:navigationAction.request.URL];
decisionHandler(WKNavigationActionPolicyCancel);
return;
}
decisionHandler(WKNavigationActionPolicyAllow);
}
@end

View File

@@ -0,0 +1,331 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SPWalletJinbiVC">
<connections>
<outlet property="balanceBgV" destination="5rd-kg-Z0W" id="ffe-w7-j98"/>
<outlet property="balanceLab" destination="Nt7-71-LtM" id="hU6-3X-z8E"/>
<outlet property="buyTitleLab" destination="Po6-QH-Tze" id="EVt-U0-JWO"/>
<outlet property="collectionView" destination="yx8-wF-vQl" id="6NF-0D-79f"/>
<outlet property="confirmBtn" destination="CfD-BT-0ga" id="MMa-2K-4YE"/>
<outlet property="huifuAliBtn" destination="eS4-jR-iCX" id="LYa-eD-OKO"/>
<outlet property="topLayout" destination="AFH-Qh-OPL" id="B3x-M9-zF2"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
<outlet property="wxBtn" destination="kXe-NB-vgI" id="aXo-0C-RJ1"/>
<outlet property="zfbBtn" destination="dNJ-iW-7zE" id="9IZ-BN-97y"/>
</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="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_bg" translatesAutoresizingMaskIntoConstraints="NO" id="7wH-CA-NkG">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="5rd-kg-Z0W">
<rect key="frame" x="15" y="110" width="345" height="101"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的金币" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="TX7-tT-zEg">
<rect key="frame" x="155" y="48.5" width="65.5" height="19.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.23921568627450979" green="0.23921568627450979" blue="0.23921568627450979" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Nt7-71-LtM">
<rect key="frame" x="162" y="0.0" width="21.5" height="38.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_jinbi" translatesAutoresizingMaskIntoConstraints="NO" id="dG0-nf-2Ox">
<rect key="frame" x="126" y="46.5" width="24" height="24"/>
</imageView>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="XVm-RO-Uc8">
<rect key="frame" x="243" y="32.5" width="92" height="36"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="wallet_home_re_jilu"/>
<connections>
<action selector="coinSendRecordButtonClick:" destination="-1" eventType="touchUpInside" id="G1W-Wz-bUn"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="101" id="3ES-OR-Ero"/>
<constraint firstItem="TX7-tT-zEg" firstAttribute="leading" secondItem="dG0-nf-2Ox" secondAttribute="trailing" constant="5" id="D6V-rY-0nX"/>
<constraint firstItem="Nt7-71-LtM" firstAttribute="centerX" secondItem="5rd-kg-Z0W" secondAttribute="centerX" id="Gz5-dV-Xnl"/>
<constraint firstItem="TX7-tT-zEg" firstAttribute="top" secondItem="Nt7-71-LtM" secondAttribute="bottom" constant="10" id="PtY-fl-5xT"/>
<constraint firstItem="Nt7-71-LtM" firstAttribute="centerX" secondItem="TX7-tT-zEg" secondAttribute="centerX" constant="-15" id="T72-WM-rDl"/>
<constraint firstItem="TX7-tT-zEg" firstAttribute="centerY" secondItem="dG0-nf-2Ox" secondAttribute="centerY" id="kTh-X0-duD"/>
<constraint firstAttribute="trailing" secondItem="XVm-RO-Uc8" secondAttribute="trailing" constant="10" id="nLO-Yd-4X6"/>
<constraint firstItem="XVm-RO-Uc8" firstAttribute="centerY" secondItem="5rd-kg-Z0W" secondAttribute="centerY" id="nWf-hi-RwQ"/>
<constraint firstItem="Nt7-71-LtM" firstAttribute="top" secondItem="5rd-kg-Z0W" secondAttribute="top" id="tDv-Dx-wwo"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="充值金额" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Po6-QH-Tze">
<rect key="frame" x="15" y="220" width="73.5" height="21.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="0.23921568627450979" green="0.23921568627450979" blue="0.23921568627450979" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="yx8-wF-vQl">
<rect key="frame" x="0.0" y="251.5" width="375" height="270"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="270" id="ieR-It-8VE"/>
</constraints>
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="b4U-Dk-ta2">
<size key="itemSize" width="128" height="128"/>
<size key="headerReferenceSize" width="0.0" height="0.0"/>
<size key="footerReferenceSize" width="0.0" height="0.0"/>
<inset key="sectionInset" minX="0.0" minY="0.0" maxX="0.0" maxY="0.0"/>
</collectionViewFlowLayout>
</collectionView>
<button hidden="YES" opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="CfD-BT-0ga">
<rect key="frame" x="27" y="746.5" width="321" height="49"/>
<color key="backgroundColor" red="1" green="0.67843137254901964" blue="0.9137254901960784" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="aFZ-17-DIx"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="确认充值">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24.5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="-1" eventType="touchUpInside" id="MiV-Bx-x4J"/>
</connections>
</button>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hbm-gd-n6f">
<rect key="frame" x="0.0" y="536.5" width="375" height="55"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zfb" translatesAutoresizingMaskIntoConstraints="NO" id="V9H-Yn-VHd">
<rect key="frame" x="15" y="12.5" width="30" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="fWq-rH-7GC"/>
<constraint firstAttribute="height" constant="30" id="xw4-sf-Tsu"/>
</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="iQU-re-Cdc">
<rect key="frame" x="55" y="18.5" width="46" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dNJ-iW-7zE">
<rect key="frame" x="330" y="12.5" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="J9g-Hf-G1y"/>
<constraint firstAttribute="width" constant="30" id="kG6-4f-9Wj"/>
</constraints>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="xieyi_nor"/>
<state key="selected" image="xieyi_sel"/>
<connections>
<action selector="onSelZfb:" destination="-1" eventType="touchUpInside" id="6Cu-o0-xWq"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="V9H-Yn-VHd" firstAttribute="leading" secondItem="hbm-gd-n6f" secondAttribute="leading" constant="15" id="0eA-8I-Da4"/>
<constraint firstItem="iQU-re-Cdc" firstAttribute="centerY" secondItem="hbm-gd-n6f" secondAttribute="centerY" id="7QY-W4-EJb"/>
<constraint firstItem="dNJ-iW-7zE" firstAttribute="centerY" secondItem="iQU-re-Cdc" secondAttribute="centerY" id="CFO-6I-1l7"/>
<constraint firstAttribute="trailing" secondItem="dNJ-iW-7zE" secondAttribute="trailing" constant="15" id="MvK-nH-V76"/>
<constraint firstItem="iQU-re-Cdc" firstAttribute="leading" secondItem="V9H-Yn-VHd" secondAttribute="trailing" constant="10" id="Rib-H2-Kdb"/>
<constraint firstItem="V9H-Yn-VHd" firstAttribute="centerY" secondItem="hbm-gd-n6f" secondAttribute="centerY" id="UJ9-87-bnS"/>
<constraint firstItem="iQU-re-Cdc" firstAttribute="centerY" secondItem="V9H-Yn-VHd" secondAttribute="centerY" id="aDV-QJ-xcc"/>
<constraint firstAttribute="height" constant="55" id="yce-K6-Pus"/>
</constraints>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="EfW-aw-ssH">
<rect key="frame" x="0.0" y="591.5" width="375" height="55"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_wx" translatesAutoresizingMaskIntoConstraints="NO" id="3CD-ni-Ian">
<rect key="frame" x="15" y="12.5" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="OGS-3Y-dDK"/>
<constraint firstAttribute="width" constant="30" id="fZj-Zy-oK5"/>
</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="h98-z2-Bl3">
<rect key="frame" x="55" y="18.5" width="31" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kXe-NB-vgI">
<rect key="frame" x="330" y="12.5" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="Z1P-ep-ElD"/>
<constraint firstAttribute="width" constant="30" id="rre-Hd-fTZ"/>
</constraints>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="xieyi_nor"/>
<state key="selected" image="xieyi_sel"/>
<connections>
<action selector="onSelWx:" destination="-1" eventType="touchUpInside" id="jkW-FU-zfd"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="h98-z2-Bl3" firstAttribute="centerY" secondItem="3CD-ni-Ian" secondAttribute="centerY" id="6Hs-r9-lHi"/>
<constraint firstItem="h98-z2-Bl3" firstAttribute="leading" secondItem="3CD-ni-Ian" secondAttribute="trailing" constant="10" id="700-Ic-coL"/>
<constraint firstItem="3CD-ni-Ian" firstAttribute="centerY" secondItem="EfW-aw-ssH" secondAttribute="centerY" id="7J5-WM-8WV"/>
<constraint firstItem="3CD-ni-Ian" firstAttribute="leading" secondItem="EfW-aw-ssH" secondAttribute="leading" constant="15" id="AnZ-yj-Iog"/>
<constraint firstAttribute="trailing" secondItem="kXe-NB-vgI" secondAttribute="trailing" constant="15" id="IfC-pr-S4e"/>
<constraint firstItem="kXe-NB-vgI" firstAttribute="centerY" secondItem="h98-z2-Bl3" secondAttribute="centerY" id="bE8-tp-yLd"/>
<constraint firstAttribute="height" constant="55" id="f4i-R7-kFY"/>
<constraint firstItem="h98-z2-Bl3" firstAttribute="centerY" secondItem="EfW-aw-ssH" secondAttribute="centerY" id="yrl-Mv-XVk"/>
</constraints>
</view>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AoK-ee-ULf">
<rect key="frame" x="0.0" y="646.5" width="375" height="55"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zfb" translatesAutoresizingMaskIntoConstraints="NO" id="r75-Oi-YuT">
<rect key="frame" x="15" y="12.5" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="cx5-GJ-nhD"/>
<constraint firstAttribute="width" constant="30" id="syu-Oc-31N"/>
</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="mgB-Hi-oyo">
<rect key="frame" x="55" y="18.5" width="76.5" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eS4-jR-iCX">
<rect key="frame" x="330" y="12.5" width="30" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="E3o-8s-4Mo"/>
<constraint firstAttribute="height" constant="30" id="lYH-uZ-ePI"/>
</constraints>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="xieyi_nor"/>
<state key="selected" image="xieyi_sel"/>
<connections>
<action selector="huifuButtonClick:" destination="-1" eventType="touchUpInside" id="Kk0-wt-VAH"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="mgB-Hi-oyo" firstAttribute="centerY" secondItem="r75-Oi-YuT" secondAttribute="centerY" id="0ah-a8-JfA"/>
<constraint firstAttribute="height" constant="55" id="5aY-q7-hu2"/>
<constraint firstItem="mgB-Hi-oyo" firstAttribute="leading" secondItem="r75-Oi-YuT" secondAttribute="trailing" constant="10" id="6pC-cW-Zzu"/>
<constraint firstItem="r75-Oi-YuT" firstAttribute="leading" secondItem="AoK-ee-ULf" secondAttribute="leading" constant="15" id="Eff-pi-JL7"/>
<constraint firstAttribute="trailing" secondItem="eS4-jR-iCX" secondAttribute="trailing" constant="15" id="K4E-Rp-usZ"/>
<constraint firstItem="r75-Oi-YuT" firstAttribute="centerY" secondItem="AoK-ee-ULf" secondAttribute="centerY" id="Rj9-j7-ZiB"/>
<constraint firstItem="mgB-Hi-oyo" firstAttribute="centerY" secondItem="AoK-ee-ULf" secondAttribute="centerY" id="YS8-EI-z0n"/>
<constraint firstItem="eS4-jR-iCX" firstAttribute="centerY" secondItem="mgB-Hi-oyo" secondAttribute="centerY" id="a5c-IY-IBi"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="温馨提示:" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9F6-1l-bhC">
<rect key="frame" x="15" y="536.5" width="53" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1.充值前请确认已满18周岁未成年人不允许充值和打赏" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="A6I-CU-doe">
<rect key="frame" x="15" y="556.5" width="317" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2.切勿轻信刷单、低价充值等类似的言论,谨防上当受骗;" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uvx-vH-sjv">
<rect key="frame" x="15" y="576.5" width="318" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="3.充值成功后,到账可能会有一定延迟,请您耐心等待;" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qNi-vn-ded">
<rect key="frame" x="15" y="596.5" width="306" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bAw-ly-9wM">
<rect key="frame" x="15" y="708" width="165" height="44"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="zhifubaochongzhi"/>
<connections>
<action selector="zhifubaoClick:" destination="-1" eventType="touchUpInside" id="S5F-ZA-UNX"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="oXP-MM-Ls3">
<rect key="frame" x="195" y="708" width="165" height="44"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="weixinchongzhi"/>
<connections>
<action selector="weixinClick:" destination="-1" eventType="touchUpInside" id="x1Q-tD-6W5"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="5rd-kg-Z0W" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="1Zx-5Y-iXm"/>
<constraint firstItem="7wH-CA-NkG" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="5ER-Y6-QAT"/>
<constraint firstAttribute="trailing" secondItem="yx8-wF-vQl" secondAttribute="trailing" id="5RZ-pz-gXh"/>
<constraint firstItem="Po6-QH-Tze" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="220" id="644-YG-sPk"/>
<constraint firstItem="Po6-QH-Tze" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="7wg-Ko-AFb"/>
<constraint firstItem="CfD-BT-0ga" firstAttribute="top" secondItem="AoK-ee-ULf" secondAttribute="bottom" constant="45" id="8p7-9t-y1L"/>
<constraint firstItem="5rd-kg-Z0W" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="AFH-Qh-OPL"/>
<constraint firstAttribute="trailing" secondItem="EfW-aw-ssH" secondAttribute="trailing" id="Atq-V1-2kQ"/>
<constraint firstAttribute="trailing" secondItem="oXP-MM-Ls3" secondAttribute="trailing" constant="15" id="BZi-CI-IuJ"/>
<constraint firstItem="EfW-aw-ssH" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="EhJ-go-bl4"/>
<constraint firstAttribute="bottom" secondItem="oXP-MM-Ls3" secondAttribute="bottom" constant="60" id="GYA-mV-oIe"/>
<constraint firstItem="uvx-vH-sjv" firstAttribute="top" secondItem="A6I-CU-doe" secondAttribute="bottom" constant="5" id="GkX-pQ-YOp"/>
<constraint firstAttribute="trailing" secondItem="5rd-kg-Z0W" secondAttribute="trailing" constant="15" id="HkY-Z4-eHJ"/>
<constraint firstItem="AoK-ee-ULf" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="IEC-rq-oPD"/>
<constraint firstAttribute="trailing" secondItem="hbm-gd-n6f" secondAttribute="trailing" id="KZe-2m-dvL"/>
<constraint firstAttribute="bottom" secondItem="7wH-CA-NkG" secondAttribute="bottom" id="M41-1d-5Za"/>
<constraint firstItem="7wH-CA-NkG" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="McH-yn-cNI"/>
<constraint firstItem="hbm-gd-n6f" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="NFb-s1-UMK"/>
<constraint firstAttribute="trailing" secondItem="AoK-ee-ULf" secondAttribute="trailing" id="OHD-ub-iad"/>
<constraint firstItem="A6I-CU-doe" firstAttribute="top" secondItem="9F6-1l-bhC" secondAttribute="bottom" constant="5" id="RbV-BI-XIR"/>
<constraint firstItem="EfW-aw-ssH" firstAttribute="top" secondItem="hbm-gd-n6f" secondAttribute="bottom" id="Swx-m1-S7v"/>
<constraint firstItem="CfD-BT-0ga" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="27" id="W5y-CQ-640"/>
<constraint firstItem="AoK-ee-ULf" firstAttribute="top" secondItem="EfW-aw-ssH" secondAttribute="bottom" id="Wz1-dF-h5F"/>
<constraint firstItem="yx8-wF-vQl" firstAttribute="top" secondItem="Po6-QH-Tze" secondAttribute="bottom" constant="10" id="YzI-ZV-ieq"/>
<constraint firstItem="uvx-vH-sjv" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="Zxa-qF-AmP"/>
<constraint firstItem="yx8-wF-vQl" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="cs2-8H-hD8"/>
<constraint firstItem="A6I-CU-doe" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="d2i-EH-Kjw"/>
<constraint firstAttribute="trailing" secondItem="CfD-BT-0ga" secondAttribute="trailing" constant="27" id="dpP-VW-S8Q"/>
<constraint firstAttribute="bottom" secondItem="bAw-ly-9wM" secondAttribute="bottom" constant="60" id="duq-53-owE"/>
<constraint firstAttribute="trailing" secondItem="7wH-CA-NkG" secondAttribute="trailing" id="hdT-as-gHN"/>
<constraint firstItem="bAw-ly-9wM" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="iMU-f2-KIA"/>
<constraint firstItem="9F6-1l-bhC" firstAttribute="top" secondItem="yx8-wF-vQl" secondAttribute="bottom" constant="15" id="loG-sD-eWc"/>
<constraint firstItem="qNi-vn-ded" firstAttribute="top" secondItem="uvx-vH-sjv" secondAttribute="bottom" constant="5" id="ni5-8j-L4A"/>
<constraint firstItem="9F6-1l-bhC" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="o0i-hx-Eqc"/>
<constraint firstItem="qNi-vn-ded" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="sVf-Vd-SKs"/>
<constraint firstItem="hbm-gd-n6f" firstAttribute="top" secondItem="yx8-wF-vQl" secondAttribute="bottom" constant="15" id="sju-GC-1OX"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-2808" y="25"/>
</view>
</objects>
<resources>
<image name="home_bg" width="375" height="812"/>
<image name="wallet_home_re_jilu" width="92" height="36"/>
<image name="wallet_jinbi" width="24" height="24"/>
<image name="wallet_wx" width="30" height="30"/>
<image name="wallet_zfb" width="30" height="30"/>
<image name="weixinchongzhi" width="165" height="44"/>
<image name="xieyi_nor" width="20" height="20"/>
<image name="xieyi_sel" width="20" height="20"/>
<image name="zhifubaochongzhi" width="165" height="44"/>
</resources>
</document>

View File

@@ -0,0 +1,30 @@
//
// SPWalletModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletModel : NSObject
@property(nonatomic, copy) NSString *uid;
@property(nonatomic, copy) NSString *integral;//金币余额
@property(nonatomic, copy) NSString *money;//钻石余额
@property(nonatomic, copy) NSString *alipay_name;
@property(nonatomic, copy) NSString *alipay_account;
@property(nonatomic, copy) NSString *bank_card_number;
@property(nonatomic, copy) NSString *bank_card_name;
@property(nonatomic, copy) NSString *open_bank;
@property(nonatomic, copy) NSString *bank_user_name;
@property(nonatomic, copy) NSString *bank_card;
@property(nonatomic, copy) NSString *bank_cert_id;
@property(nonatomic, copy) NSString *bank_tel_no;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,12 @@
//
// SPWalletModel.m
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import "SPWalletModel.h"
@implementation SPWalletModel
@end

View File

@@ -0,0 +1,22 @@
//
// SPWalletPsdAlert.h
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletPsdAlert : UIView
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
@property (weak, nonatomic) IBOutlet UITextField *passwordTF;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@property (nonatomic, copy)void(^onConfirmBlock)(NSString *str);
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,36 @@
//
// SPWalletPsdAlert.m
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "SPWalletPsdAlert.h"
@implementation SPWalletPsdAlert
- (void)awakeFromNib {
[super awakeFromNib];
WEAK_SELF
[self.touchImgV dg_Tapped:^{
[weakSelf removeFromSuperview];
}];
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-27*2, 49)];
self.passwordTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的交易密码" attributes:@{NSForegroundColorAttributeName:[kWhiteColor colorWithAlphaComponent:0.6]}];
}
- (IBAction)onConfirm:(id)sender {
if (self.passwordTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入您的交易密码"];
return;
}
if (self.onConfirmBlock) {
self.onConfirmBlock(self.passwordTF.text);
}
[self removeFromSuperview];
}
@end

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
<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"/>
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="SPWalletPsdAlert">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="AfR-9q-wmU">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<color key="backgroundColor" white="0.0" alpha="0.69798195767564841" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="6Bp-wJ-w8e">
<rect key="frame" x="30" y="208.5" width="354" height="300"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="兑换" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kxt-pT-NxY">
<rect key="frame" x="156.5" y="24" width="41" height="24"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="钻石兑换金币需要先输入您的交易密码" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="rNI-We-Y7Q">
<rect key="frame" x="10" y="73" width="334" height="20.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="17"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Oyo-hG-A9z">
<rect key="frame" x="27" y="120.5" width="300" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="Hwy-OT-C8D">
<rect key="frame" x="15" y="0.0" width="270" height="54"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="numberPad" secureTextEntry="YES"/>
</textField>
</subviews>
<color key="backgroundColor" white="1" alpha="0.054113063679999997" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="54" id="5qO-pf-55q"/>
<constraint firstAttribute="trailing" secondItem="Hwy-OT-C8D" secondAttribute="trailing" constant="15" id="7Re-T0-31O"/>
<constraint firstAttribute="bottom" secondItem="Hwy-OT-C8D" secondAttribute="bottom" id="bOr-Pm-646"/>
<constraint firstItem="Hwy-OT-C8D" firstAttribute="top" secondItem="Oyo-hG-A9z" secondAttribute="top" id="p2t-3A-iUZ"/>
<constraint firstItem="Hwy-OT-C8D" firstAttribute="leading" secondItem="Oyo-hG-A9z" secondAttribute="leading" constant="15" id="wTP-yS-X8n"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="c1Y-GX-yjJ">
<rect key="frame" x="27" y="196.5" width="300" height="49"/>
<color key="backgroundColor" red="0.18823529410000001" green="0.87058823529999996" blue="0.86274509799999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="S4j-pe-7JL"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="确定">
<color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24.5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="iN0-l3-epB" eventType="touchUpInside" id="BTP-0P-Nld"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.13333333333333333" green="0.13333333333333333" blue="0.22745098039215686" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="rNI-We-Y7Q" firstAttribute="leading" secondItem="6Bp-wJ-w8e" secondAttribute="leading" constant="10" id="1R5-11-oIt"/>
<constraint firstAttribute="height" constant="300" id="2uA-pJ-b3a"/>
<constraint firstItem="Oyo-hG-A9z" firstAttribute="top" secondItem="rNI-We-Y7Q" secondAttribute="bottom" constant="27" id="48U-tU-fMn"/>
<constraint firstItem="kxt-pT-NxY" firstAttribute="centerX" secondItem="6Bp-wJ-w8e" secondAttribute="centerX" id="5kK-sx-g9s"/>
<constraint firstAttribute="trailing" secondItem="rNI-We-Y7Q" secondAttribute="trailing" constant="10" id="5n9-a9-eCM"/>
<constraint firstItem="kxt-pT-NxY" firstAttribute="top" secondItem="6Bp-wJ-w8e" secondAttribute="top" constant="24" id="IaR-Rv-men"/>
<constraint firstAttribute="trailing" secondItem="Oyo-hG-A9z" secondAttribute="trailing" constant="27" id="JAF-bl-Pet"/>
<constraint firstAttribute="trailing" secondItem="c1Y-GX-yjJ" secondAttribute="trailing" constant="27" id="Jjd-f7-A7m"/>
<constraint firstItem="c1Y-GX-yjJ" firstAttribute="leading" secondItem="6Bp-wJ-w8e" secondAttribute="leading" constant="27" id="KLC-vO-Q4r"/>
<constraint firstItem="Oyo-hG-A9z" firstAttribute="leading" secondItem="6Bp-wJ-w8e" secondAttribute="leading" constant="27" id="SMl-hb-rYc"/>
<constraint firstItem="rNI-We-Y7Q" firstAttribute="top" secondItem="kxt-pT-NxY" secondAttribute="bottom" constant="25" id="hSm-Cx-uqQ"/>
<constraint firstItem="c1Y-GX-yjJ" firstAttribute="top" secondItem="Oyo-hG-A9z" secondAttribute="bottom" constant="22" id="kPZ-m3-z3H"/>
<constraint firstItem="rNI-We-Y7Q" firstAttribute="centerX" secondItem="6Bp-wJ-w8e" secondAttribute="centerX" id="sEc-uV-yjW"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="6Bp-wJ-w8e" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="30" id="A31-cA-zRr"/>
<constraint firstAttribute="trailing" secondItem="AfR-9q-wmU" secondAttribute="trailing" id="JO2-2N-nEh"/>
<constraint firstAttribute="trailing" secondItem="6Bp-wJ-w8e" secondAttribute="trailing" constant="30" id="OnN-KG-Vvg"/>
<constraint firstItem="6Bp-wJ-w8e" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" multiplier="0.8" id="UCH-DN-M7P"/>
<constraint firstAttribute="bottom" secondItem="AfR-9q-wmU" secondAttribute="bottom" id="it8-A2-asJ"/>
<constraint firstItem="AfR-9q-wmU" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="t6K-fA-Yhn"/>
<constraint firstItem="AfR-9q-wmU" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="unK-mm-QlG"/>
</constraints>
<connections>
<outlet property="confirmBtn" destination="c1Y-GX-yjJ" id="Pll-om-h5y"/>
<outlet property="passwordTF" destination="Hwy-OT-C8D" id="fjX-5X-alr"/>
<outlet property="touchImgV" destination="AfR-9q-wmU" id="7mx-mJ-qI1"/>
</connections>
<point key="canvasLocation" x="131.8840579710145" y="108.48214285714285"/>
</view>
</objects>
</document>

View File

@@ -0,0 +1,29 @@
//
// SPWalletRechargeCell.h
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletRechargeCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *bgImgV;
@property (weak, nonatomic) IBOutlet UILabel *priceLab;
@property (weak, nonatomic) IBOutlet UILabel *coinLab;
@property (weak, nonatomic) IBOutlet UIImageView *selImgV;
@end
@interface SPWalletRechargeModel : NSObject
@property(nonatomic, copy)NSString *money;
@property(nonatomic, copy)NSString *integral;
@property(nonatomic, copy)NSString *crid;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,22 @@
//
// SPWalletRechargeCell.m
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import "SPWalletRechargeCell.h"
@implementation SPWalletRechargeCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
@end
@implementation SPWalletRechargeModel
@end

View File

@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<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"/>
<collectionViewCell opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" id="gTV-IL-0wX" customClass="SPWalletRechargeCell">
<rect key="frame" x="0.0" y="0.0" width="105" height="82"/>
<autoresizingMask key="autoresizingMask"/>
<view key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center">
<rect key="frame" x="0.0" y="0.0" width="105" height="82"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Z9F-BL-hXc">
<rect key="frame" x="0.0" y="0.0" width="105" height="82"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EYM-GO-Y8Y">
<rect key="frame" x="48" y="46.5" width="9" height="17"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_jinbi" translatesAutoresizingMaskIntoConstraints="NO" id="Guu-Dt-hyh">
<rect key="frame" x="24.5" y="17.5" width="17" height="17"/>
<constraints>
<constraint firstAttribute="width" constant="17" id="3jC-nP-eKG"/>
<constraint firstAttribute="height" constant="17" id="Na7-up-cCA"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nKl-od-SD9">
<rect key="frame" x="46.5" y="15" width="32.5" height="21.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
</view>
<constraints>
<constraint firstItem="Guu-Dt-hyh" firstAttribute="centerY" secondItem="nKl-od-SD9" secondAttribute="centerY" id="1tK-LD-r37"/>
<constraint firstItem="EYM-GO-Y8Y" firstAttribute="top" secondItem="nKl-od-SD9" secondAttribute="bottom" constant="10" id="6Yt-yj-7I1"/>
<constraint firstAttribute="bottom" secondItem="Z9F-BL-hXc" secondAttribute="bottom" id="ApE-vf-OdT"/>
<constraint firstItem="Z9F-BL-hXc" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" id="CR7-6d-DJF"/>
<constraint firstItem="nKl-od-SD9" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" constant="10" id="F6w-6b-8WR"/>
<constraint firstAttribute="trailing" secondItem="Z9F-BL-hXc" secondAttribute="trailing" id="Nyc-IJ-AjB"/>
<constraint firstItem="EYM-GO-Y8Y" firstAttribute="centerX" secondItem="gTV-IL-0wX" secondAttribute="centerX" id="QG2-HJ-Jre"/>
<constraint firstItem="Z9F-BL-hXc" firstAttribute="leading" secondItem="gTV-IL-0wX" secondAttribute="leading" id="SJP-R2-9TG"/>
<constraint firstItem="nKl-od-SD9" firstAttribute="top" secondItem="gTV-IL-0wX" secondAttribute="top" constant="15" id="l42-O1-Yeo"/>
<constraint firstItem="nKl-od-SD9" firstAttribute="leading" secondItem="Guu-Dt-hyh" secondAttribute="trailing" constant="5" id="uNX-d2-yi6"/>
</constraints>
<size key="customSize" width="208" height="72"/>
<connections>
<outlet property="bgImgV" destination="Z9F-BL-hXc" id="4g1-vW-8fl"/>
<outlet property="coinLab" destination="nKl-od-SD9" id="UAC-tE-oEZ"/>
<outlet property="priceLab" destination="EYM-GO-Y8Y" id="ex1-Lh-XLA"/>
</connections>
<point key="canvasLocation" x="76" y="-25"/>
</collectionViewCell>
</objects>
<resources>
<image name="wallet_jinbi" width="24" height="24"/>
</resources>
</document>

View File

@@ -0,0 +1,21 @@
//
// SPWalletRecordCell.h
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import <UIKit/UIKit.h>
#import "SPWalletRecordModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletRecordCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *timeLab;
@property (weak, nonatomic) IBOutlet UILabel *valueLab;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,23 @@
//
// SPWalletRecordCell.m
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import "SPWalletRecordCell.h"
@implementation SPWalletRecordCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
[super setSelected:selected animated:animated];
// Configure the view for the selected state
}
@end

View File

@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<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" rowHeight="74" id="KGk-i7-Jjw" customClass="SPWalletRecordCell">
<rect key="frame" x="0.0" y="0.0" width="350" height="70"/>
<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="350" height="70"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="提现" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6Ie-IL-uxh">
<rect key="frame" x="15" y="15" width="31" height="18"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="2022-03-02 13:24:34" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="m04-ZF-NRr">
<rect key="frame" x="15" y="40" width="136.5" height="16"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="-100" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fAC-NQ-tfj">
<rect key="frame" x="307" y="26.5" width="28" height="17.5"/>
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="15"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="fAC-NQ-tfj" secondAttribute="trailing" constant="15" id="Lx5-WU-nlf"/>
<constraint firstItem="6Ie-IL-uxh" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="15" id="MXb-si-HPO"/>
<constraint firstItem="6Ie-IL-uxh" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="QVA-Au-s0d"/>
<constraint firstItem="fAC-NQ-tfj" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="a3u-It-GlG"/>
<constraint firstItem="m04-ZF-NRr" firstAttribute="top" secondItem="6Ie-IL-uxh" secondAttribute="bottom" constant="7" id="n0r-EW-tZZ"/>
<constraint firstItem="m04-ZF-NRr" firstAttribute="leading" secondItem="6Ie-IL-uxh" secondAttribute="leading" id="x1z-d0-H0d"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="timeLab" destination="m04-ZF-NRr" id="EWO-l1-zo9"/>
<outlet property="titleLab" destination="6Ie-IL-uxh" id="dai-Sa-fEW"/>
<outlet property="valueLab" destination="fAC-NQ-tfj" id="8Se-DM-AC9"/>
</connections>
<point key="canvasLocation" x="153.62318840579712" y="117.85714285714285"/>
</tableViewCell>
</objects>
</document>

View File

@@ -0,0 +1,18 @@
//
// SPWalletRecordListVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletRecordListVC : BaseTableViewController <JXCategoryListContentViewDelegate>
@property (nonatomic, assign) NSInteger type;//1赠送记录 2提现记录 3兑换记录 4金币明细 5钻石明细
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,158 @@
//
// SPWalletRecordListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import "SPWalletRecordListVC.h"
#import "SPWalletRecordCell.h"
@interface SPWalletRecordListVC ()
@end
@implementation SPWalletRecordListVC
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
[self fetchData];
}
-(void)createUI {
[self showNaviBarWithTitle:@""];
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"home_bg")];
[self.view addSubview:bgImgV];
[self.view sendSubviewToBack:bgImgV];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
//1 2 3 4 5
if (self.type == 1) {
self.naviView.titleLab.text = @"赠送记录";
}else if (self.type == 2) {
self.naviView.titleLab.text = @"提现记录";
}else if (self.type == 3) {
self.naviView.titleLab.text = @"兑换记录";
}else if(self.type == 4){
self.naviView.titleLab.text = @"金币明细";
}else if(self.type == 5){
self.naviView.titleLab.text = @"钻石明细";
}
// [self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
// make.edges.equalTo(self.view);
// }];
[self.tableView registerNib:[UINib nibWithNibName:@"SPWalletRecordCell" bundle:nil] forCellReuseIdentifier:@"SPWalletRecordCell"];
self.tableView.rowHeight = 70;
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSDictionary *params = @{@"page":@(self.page), @"page_limit":@(20)};
NSString *urlStr = @"";
if (self.type == 1) {
urlStr = @"api/user/get_user_give_integral_list";
}else if (self.type == 2) {
urlStr = @"api/user/get_user_withdrawal_list";
}else if (self.type == 3) {
urlStr = @"api/user/exchange_log";
}else if(self.type == 4){
urlStr = @"/api/user/get_user_integral_log_list";
}else if(self.type == 5){
urlStr = @"/api/user/get_user_money_log_list";
}
[AFNetworkRequset.shared postRequestWithParams:params Path:urlStr Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPWalletRecordModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPWalletRecordCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPWalletRecordCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPWalletRecordModel *model = self.dataArray[indexPath.row];
if (self.type == 1) {
cell.titleLab.text = @"赠送";
cell.timeLab.text = [NSString timestampToDateString:model.add_time];
cell.valueLab.text = model.change_value;
}else if (self.type == 2) {
if (model.status_desc.length > 0) {
cell.titleLab.text = [NSString stringWithFormat:@"提现(%@)", model.status_desc];
}else {
cell.titleLab.text = @"提现";
}
cell.timeLab.text = [NSString timestampToDateString:model.add_time];
cell.valueLab.text = [NSString stringWithFormat:@"-%@", model.money];
}else if (self.type == 3) {
cell.titleLab.text = @"兑换";
cell.timeLab.text = model.add_time;
cell.valueLab.text = [NSString stringWithFormat:@"-%@", model.money];
}else if (self.type == 4 || self.type == 5) {
cell.titleLab.text = model.change_type_desc;
cell.timeLab.text = [NSString timestampToDateString:model.add_time];
cell.valueLab.text = [NSString stringWithFormat:@"%@", model.change_value];
}
return cell;
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,23 @@
//
// SPWalletRecordModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletRecordModel : NSObject
@property(nonatomic, copy) NSString *add_time;
@property(nonatomic, copy) NSString *money;
@property(nonatomic, copy) NSString *status_desc;
@property(nonatomic, copy) NSString *change_value;
@property(nonatomic, copy) NSString *remarks;
@property(nonatomic, copy) NSString *change_type_desc;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,12 @@
//
// SPWalletRecordModel.m
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import "SPWalletRecordModel.h"
@implementation SPWalletRecordModel
@end

View File

@@ -0,0 +1,16 @@
//
// SPWalletRecordVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletRecordVC : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,96 @@
//
// SPWalletRecordVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/11.
//
#import "SPWalletRecordVC.h"
#import "SPWalletRecordListVC.h"
@interface SPWalletRecordVC ()<JXCategoryListContainerViewDelegate>
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) JXCategoryTitleView *categoryView;
@property (nonatomic, strong) JXCategoryListContainerView *listContainerView;
@end
@implementation SPWalletRecordVC
- (void)viewDidLoad {
[super viewDidLoad];
self.titles = @[@"赠送记录", @"提现记录", @"兑换记录"];
[self showNaviBarWithTitle:@"明细"];
[self createUI];
}
-(void)createUI {
[self.view addSubview:self.categoryView];
[self.view addSubview:self.listContainerView];
[self.categoryView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(yb_NavigationBar_H);
make.left.right.equalTo(self.view);
make.height.mas_equalTo(44);
}];
[self.listContainerView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.categoryView.mas_bottom).offset(10);
make.left.right.equalTo(self.view);
make.bottom.equalTo(self.view);
}];
}
//
- (JXCategoryTitleView *)categoryView {
if (!_categoryView) {
_categoryView = [[JXCategoryTitleView alloc] init];
_categoryView.titleFont = YBMediumFont(15);
_categoryView.titleSelectedFont = YBBoldFont(15);
_categoryView.titleColor = HEXCOLOR(0xA7A5AE);
_categoryView.titleSelectedColor = HEXCOLOR(0xFFFFFF);
_categoryView.contentEdgeInsetLeft = 15;
_categoryView.cellSpacing = 24;
_categoryView.averageCellSpacingEnabled = NO;
_categoryView.listContainer = self.listContainerView;
_categoryView.titles = self.titles;
JXCategoryIndicatorLineView *lineView = [[JXCategoryIndicatorLineView alloc] init];
lineView.indicatorWidth = 17;
lineView.indicatorHeight = 5;
lineView.indicatorCornerRadius = 2.5;
lineView.indicatorColor = [UIColor whiteColor];
lineView.verticalMargin = 0;
lineView.lineStyle = JXCategoryIndicatorLineStyle_Lengthen;
_categoryView.indicators = @[lineView];
}
return _categoryView;
}
//
- (JXCategoryListContainerView *)listContainerView {
if (!_listContainerView) {
_listContainerView = [[JXCategoryListContainerView alloc] initWithType:JXCategoryListContainerType_ScrollView delegate:self];
}
return _listContainerView;
}
#pragma mark - JXCategoryListContainerViewDelegate
//
- (NSInteger)numberOfListsInlistContainerView:(JXCategoryListContainerView *)listContainerView {
return self.titles.count;
}
// <JXCategoryListContentViewDelegate>
- (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index {
SPWalletRecordListVC *list = [[SPWalletRecordListVC alloc] init];
list.type = index+1;
return list;
}
@end

View File

@@ -0,0 +1,16 @@
//
// SPWalletTixianVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletTixianVC : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,311 @@
//
// SPWalletTixianVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "SPWalletTixianVC.h"
#import "SPWalletModel.h"
#import "SPWalletBindBankVC.h"
#import "ZWTimer.h"
#import "SPWalletDuihuanVC.h"
#import "SPWalletRecordListVC.h"
#import "LMTixianQianyueViewController.h"
#import "LMTixianRecordViewController.h"
@interface SPWalletTixianVC ()<ZWTimerDelegate>
@property (weak, nonatomic) IBOutlet UIView *balanceBgV;
@property (weak, nonatomic) IBOutlet UILabel *balanceLab;
@property (weak, nonatomic) IBOutlet UIButton *bindBtn;
@property (weak, nonatomic) IBOutlet UITextField *tixianTF;
@property (weak, nonatomic) IBOutlet UITextField *codeTF;
@property (weak, nonatomic) IBOutlet UIButton *codeBtn;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@property (weak, nonatomic) IBOutlet UILabel *decLab;
@property (weak, nonatomic) IBOutlet UIButton *xieyiSelBtn;
@property (nonatomic, strong) SPWalletModel *model;
@property (nonatomic, strong) ZWTimer *timer;
@property (nonatomic, assign) NSInteger leftSecond;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topLayout;
@property (nonatomic, assign) NSInteger tixianType;
@property (weak, nonatomic) IBOutlet UIButton *aliSelectButton;
@property (weak, nonatomic) IBOutlet UIButton *bankSelectButton;
@end
@implementation SPWalletTixianVC
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self fetchData];
}
- (void)viewDidLoad {
[super viewDidLoad];
self.leftSecond = 60;
self.tixianType = 1;
// [self showNaviBarWithTitle:@"提现"];
// [self onChangeNaviWhiteStyle];
[self createUI];
}
- (void)requestGet_sign_status
{
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/yun/get_sign_status" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
NSDictionary *data = [responseDic safeDictionaryForKey:@"data"];
NSString *status = [data safeStringForKey:@"status"];
if ([status isEqualToString:@"1"]){
if (self.tixianType == 1){
NSLog(@"提现支付宝");
[self tixianAliMethod];
}else if (self.tixianType == 2){
NSLog(@"提现银行卡");
[self tixianQianyueBank];
}
}else{
[self requestget_sign_contract_url];
}
} Failure:^(id _Nonnull errorData) {
}];
}
//url
- (void)requestget_sign_contract_url
{
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/yun/get_sign_contract_url" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
NSDictionary *data = [responseDic safeDictionaryForKey:@"data"];
NSString *url = [data safeStringForKey:@"url"];
LMTixianQianyueViewController *qyv = [[LMTixianQianyueViewController alloc] init];
qyv.url = url;
qyv.modalPresentationStyle = 0;
[self presentViewController:qyv animated:YES completion:^{
}];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)fetchData {
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/get_user_money" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
SPWalletModel *model = [SPWalletModel mj_objectWithKeyValues:responseDic[@"data"]];
self.model = model;
self.balanceLab.text = [NSString stringWithFormat:@"%.2f", [model.money doubleValue]];
if (model.alipay_account.length > 0) {
self.bindBtn.selected = YES;
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)createUI {
// self.balanceBgV.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(ScreenWidth-14*2, 130) direction:FXGradientChangeDirectionHorizontal startColor:HEXCOLOR(0x7E9AF9) endColor:HEXCOLOR(0x6B42F0)];
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-27*2, 49)];
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"home_bg")];
[self.view addSubview:bgImgV];
[self.view sendSubviewToBack:bgImgV];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[self showNaviBarWithTitle:@"提现"];
self.topLayout.constant = yb_NavigationBar_H+10;
[ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-65-10, yb_StatusBar_H+7, 65, 30) text:@"提现记录" font:YBMediumFont(13) color:HEXCOLOR(0x111111) backguoundColor:nil imageName:nil target:self action:@selector(onRightClick)];
self.tixianTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入提现金额" attributes:@{NSForegroundColorAttributeName:[HEXCOLOR(0x333333) colorWithAlphaComponent:0.6]}];
self.codeTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入验证码" attributes:@{NSForegroundColorAttributeName:[HEXCOLOR(0x333333) colorWithAlphaComponent:0.6]}];
self.decLab.text = [NSString stringWithFormat:@"提现服务费:%.0f%%", 100-[GVUSER.withdraw_rate floatValue]*100];
}
- (void)onRightClick
{
LMTixianRecordViewController *rvc = [[LMTixianRecordViewController alloc] init];
[rvc pushSelf];
}
- (IBAction)selectAliButtonClick:(UIButton *)sender {
self.tixianType = 1;
sender.selected = YES;
self.bankSelectButton.selected = NO;
}
- (IBAction)selectBankButtonClick:(UIButton *)sender {
self.tixianType = 2;
sender.selected = YES;
self.aliSelectButton.selected = NO;
}
- (IBAction)onMingxi:(id)sender {
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 2;
[vc pushSelf];
}
- (IBAction)onBindBank:(id)sender {
SPWalletBindBankVC *vc = [[SPWalletBindBankVC alloc] init];
vc.model = self.model;
[vc pushSelf];
}
- (IBAction)onAllTixian:(id)sender {
if ([self.model.money integerValue] > 0) {
self.tixianTF.text = [NSString stringWithFormat:@"%ld", [self.model.money integerValue]];
}else {
[HelpPageDefine showMessage:@"可提现金额不足"];
}
}
- (IBAction)onGetCode:(id)sender {
//type 1,使2
BJPicCodeView *view = LoadNib(@"BJPicCodeView");
view.frame = [UIScreen mainScreen].bounds;
[MainWindow() addSubview:view];
view.onConfirmBlock = ^(NSString * _Nonnull picCodeStr, NSString * _Nonnull codeKey) {
[self onSendSmsCodeWith:picCodeStr codeKey:codeKey];
};
}
- (void)onSendSmsCodeWith:(NSString *)picCodeStr codeKey:(NSString *)codeKey {
//type 1,使2
NSDictionary *params = @{@"mobile":[BJUserManager userInfo].user_name, @"type":@"1", @"captcha_code":picCodeStr, @"captcha_key":codeKey};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/login/send_sms" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
self.leftSecond = 60;
[self.timer startTimer:1 delegate:self repeats:YES];
} Failure:^(id _Nonnull errorData) {
}];
}
- (IBAction)onConfirm:(id)sender {
//
[self requestGet_sign_status];
}
- (void)tixianAliMethod
{
if (self.xieyiSelBtn.selected == NO){
[HelpPageDefine showMessage:@"请阅读并同意协议"];
return;
}
if (self.tixianTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入提现金额"];
return;
}
if (self.codeTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入验证码"];
return;
}
//1 2
NSDictionary *params = @{@"money":self.tixianTF.text, @"code":self.codeTF.text, @"type":@"1"};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/user_withdrawal" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self fetchData];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)tixianBankMethod
{
if (self.tixianTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入提现金额"];
return;
}
if (self.codeTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入验证码"];
return;
}
//1 2
NSDictionary *params = @{@"money":self.tixianTF.text, @"code":self.codeTF.text};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/user_withdrawal_bank" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self fetchData];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)tixianQianyueBank
{
if (self.xieyiSelBtn.selected == NO){
[HelpPageDefine showMessage:@"请阅读并同意协议"];
return;
}
if (self.tixianTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入提现金额"];
return;
}
if (self.codeTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入验证码"];
return;
}
//1 2
NSDictionary *params = @{@"money":self.tixianTF.text, @"code":self.codeTF.text, @"type":@"2"};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/user_withdrawal" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self fetchData];
} Failure:^(id _Nonnull errorData) {
}];
}
- (IBAction)onSelXieyi:(id)sender {
self.xieyiSelBtn.selected = !self.xieyiSelBtn.isSelected;
}
- (IBAction)onJumpXieyi:(id)sender {
[self requestget_sign_contract_url];
}
- (void)onTimerFired:(ZWTimer *)timer {
NSString *str = [NSString stringWithFormat:@"%ld秒后重发", self.leftSecond];
self.codeBtn.userInteractionEnabled = NO;
self.leftSecond -= 1;
if (self.leftSecond < 0) {
str = @"获取验证码";
[self.timer stopTimer];
self.codeBtn.userInteractionEnabled = YES;
}
self.codeBtn.titleLabel.text = str;
[self.codeBtn setTitle:str forState:UIControlStateNormal];
}
- (ZWTimer *)timer {
if (!_timer) {
_timer = [[ZWTimer alloc] init];
}
return _timer;
}
@end

View File

@@ -0,0 +1,388 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SPWalletTixianVC">
<connections>
<outlet property="aliSelectButton" destination="kNq-ic-MXC" id="4Bx-kW-RQ9"/>
<outlet property="balanceBgV" destination="j3R-fT-oJx" id="wyi-Ql-NcI"/>
<outlet property="balanceLab" destination="mJA-Uu-WO9" id="6LY-zT-85D"/>
<outlet property="bankSelectButton" destination="xCE-wt-QLg" id="BWW-QX-cWi"/>
<outlet property="codeBtn" destination="rdu-SW-jso" id="qvh-BI-frG"/>
<outlet property="codeTF" destination="u5o-6h-tqb" id="tRp-4e-mC6"/>
<outlet property="confirmBtn" destination="OVv-tL-Qib" id="YT0-9b-J0k"/>
<outlet property="decLab" destination="4f3-xu-Waz" id="1GN-Iu-JXl"/>
<outlet property="tixianTF" destination="4Hx-Gs-3pL" id="x7W-8k-5Kw"/>
<outlet property="topLayout" destination="g7L-WI-4xG" id="mdP-Mw-ax1"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
<outlet property="xieyiSelBtn" destination="7C5-F6-V9T" id="h2x-KA-QZw"/>
</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="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="j3R-fT-oJx">
<rect key="frame" x="15" y="110" width="345" height="101"/>
<subviews>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zuanshi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="zpi-CJ-wIm">
<rect key="frame" x="0.0" y="0.0" width="345" height="101"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的钻石" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jNi-7J-fZp">
<rect key="frame" x="148" y="46" width="65.5" height="19.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mJA-Uu-WO9">
<rect key="frame" x="161.5" y="0.0" width="22" height="39"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zuanshi" translatesAutoresizingMaskIntoConstraints="NO" id="TcG-Ha-LGF">
<rect key="frame" x="119" y="44" width="24" height="24"/>
</imageView>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nlf-0c-AIc">
<rect key="frame" x="263" y="38.5" width="67" height="24"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="wallet_mingxi_2"/>
<connections>
<action selector="onMingxi:" destination="-1" eventType="touchUpInside" id="7S9-9g-AFG"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="mJA-Uu-WO9" firstAttribute="top" secondItem="j3R-fT-oJx" secondAttribute="top" id="00u-wy-c8V"/>
<constraint firstItem="jNi-7J-fZp" firstAttribute="centerY" secondItem="TcG-Ha-LGF" secondAttribute="centerY" id="Aa2-8l-Kdc"/>
<constraint firstItem="nlf-0c-AIc" firstAttribute="centerY" secondItem="j3R-fT-oJx" secondAttribute="centerY" id="LNH-6Z-vnP"/>
<constraint firstItem="zpi-CJ-wIm" firstAttribute="top" secondItem="j3R-fT-oJx" secondAttribute="top" id="OAa-fH-XQi"/>
<constraint firstAttribute="trailing" secondItem="nlf-0c-AIc" secondAttribute="trailing" constant="15" id="OYr-4J-efI"/>
<constraint firstAttribute="trailing" secondItem="zpi-CJ-wIm" secondAttribute="trailing" id="RRS-N3-iVU"/>
<constraint firstItem="zpi-CJ-wIm" firstAttribute="leading" secondItem="j3R-fT-oJx" secondAttribute="leading" id="RSJ-QW-1Vt"/>
<constraint firstItem="jNi-7J-fZp" firstAttribute="top" secondItem="mJA-Uu-WO9" secondAttribute="bottom" constant="7" id="SAu-ZM-Igs"/>
<constraint firstItem="jNi-7J-fZp" firstAttribute="centerX" secondItem="j3R-fT-oJx" secondAttribute="centerX" constant="8" id="Tfj-oe-Qg7"/>
<constraint firstItem="mJA-Uu-WO9" firstAttribute="centerX" secondItem="j3R-fT-oJx" secondAttribute="centerX" id="UdP-YL-CYY"/>
<constraint firstItem="jNi-7J-fZp" firstAttribute="leading" secondItem="TcG-Ha-LGF" secondAttribute="trailing" constant="5" id="XNn-iI-s68"/>
<constraint firstAttribute="bottom" secondItem="zpi-CJ-wIm" secondAttribute="bottom" id="hmf-rO-fDe"/>
<constraint firstAttribute="height" constant="101" id="ihs-HU-KgS"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="RW5-IT-tTp">
<rect key="frame" x="15" y="252" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="4Hx-Gs-3pL">
<rect key="frame" x="15" y="0.0" width="215" height="54"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="aa1-YD-EBY">
<rect key="frame" x="230" y="0.0" width="100" height="54"/>
<constraints>
<constraint firstAttribute="width" constant="100" id="CaE-Su-L3v"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<state key="normal" title="全部提现">
<color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onAllTixian:" destination="-1" eventType="touchUpInside" id="mfl-yf-7wY"/>
</connections>
</button>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="QNk-kq-y0B">
<rect key="frame" x="15" y="53.5" width="315" height="0.5"/>
<color key="backgroundColor" red="0.2784313725" green="0.2784313725" blue="0.35686274509999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="4WN-IV-oNH"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="4Hx-Gs-3pL" firstAttribute="top" secondItem="RW5-IT-tTp" secondAttribute="top" id="5NJ-dw-EgB"/>
<constraint firstItem="QNk-kq-y0B" firstAttribute="leading" secondItem="RW5-IT-tTp" secondAttribute="leading" constant="15" id="Drj-hQ-U8X"/>
<constraint firstAttribute="trailing" secondItem="QNk-kq-y0B" secondAttribute="trailing" constant="15" id="Mw7-9L-alw"/>
<constraint firstAttribute="height" constant="54" id="O3y-cy-wP0"/>
<constraint firstItem="aa1-YD-EBY" firstAttribute="leading" secondItem="4Hx-Gs-3pL" secondAttribute="trailing" id="Pcf-GM-Qsv"/>
<constraint firstItem="4Hx-Gs-3pL" firstAttribute="leading" secondItem="RW5-IT-tTp" secondAttribute="leading" constant="15" id="RsB-PB-Ntb"/>
<constraint firstAttribute="bottom" secondItem="aa1-YD-EBY" secondAttribute="bottom" id="V5J-vz-azf"/>
<constraint firstAttribute="bottom" secondItem="QNk-kq-y0B" secondAttribute="bottom" id="ikl-NJ-YGx"/>
<constraint firstItem="aa1-YD-EBY" firstAttribute="top" secondItem="RW5-IT-tTp" secondAttribute="top" id="onX-0c-hbB"/>
<constraint firstAttribute="bottom" secondItem="4Hx-Gs-3pL" secondAttribute="bottom" id="tnW-P6-rU0"/>
<constraint firstAttribute="trailing" secondItem="aa1-YD-EBY" secondAttribute="trailing" constant="15" id="zMT-cN-7SK"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GIW-Dk-BXt">
<rect key="frame" x="15" y="321" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="u5o-6h-tqb">
<rect key="frame" x="15" y="0.0" width="215" height="54"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
</textField>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="right" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="rdu-SW-jso">
<rect key="frame" x="230" y="0.0" width="100" height="54"/>
<constraints>
<constraint firstAttribute="width" constant="100" id="8TA-hP-bll"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<state key="normal" title="获取验证码">
<color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onGetCode:" destination="-1" eventType="touchUpInside" id="uap-gB-0R5"/>
</connections>
</button>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="I9f-DO-14N">
<rect key="frame" x="15" y="53.5" width="315" height="0.5"/>
<color key="backgroundColor" red="0.2784313725" green="0.2784313725" blue="0.35686274509999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="ve8-BZ-uak"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="54" id="9K1-dL-H44"/>
<constraint firstItem="I9f-DO-14N" firstAttribute="leading" secondItem="GIW-Dk-BXt" secondAttribute="leading" constant="15" id="BN8-by-67u"/>
<constraint firstAttribute="bottom" secondItem="I9f-DO-14N" secondAttribute="bottom" id="BR5-Pd-1aF"/>
<constraint firstAttribute="trailing" secondItem="I9f-DO-14N" secondAttribute="trailing" constant="15" id="C24-m4-qML"/>
<constraint firstAttribute="bottom" secondItem="rdu-SW-jso" secondAttribute="bottom" id="I5j-08-ft8"/>
<constraint firstItem="rdu-SW-jso" firstAttribute="top" secondItem="GIW-Dk-BXt" secondAttribute="top" id="Kqq-pB-DZx"/>
<constraint firstItem="u5o-6h-tqb" firstAttribute="leading" secondItem="GIW-Dk-BXt" secondAttribute="leading" constant="15" id="Mok-lF-UlB"/>
<constraint firstAttribute="bottom" secondItem="u5o-6h-tqb" secondAttribute="bottom" id="RBU-0z-gFB"/>
<constraint firstItem="u5o-6h-tqb" firstAttribute="top" secondItem="GIW-Dk-BXt" secondAttribute="top" id="ib4-gj-l6q"/>
<constraint firstAttribute="trailing" secondItem="rdu-SW-jso" secondAttribute="trailing" constant="15" id="pKN-rl-0LN"/>
<constraint firstItem="rdu-SW-jso" firstAttribute="leading" secondItem="u5o-6h-tqb" secondAttribute="trailing" id="wa2-nF-y44"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="OVv-tL-Qib">
<rect key="frame" x="27" y="655" width="321" height="49"/>
<color key="backgroundColor" red="0.050980392156862744" green="1" blue="0.72549019607843135" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="49" id="Jl3-rC-mIk"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="立即提现">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24.5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="-1" eventType="touchUpInside" id="yAH-Cp-8qg"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7LR-A9-axh">
<rect key="frame" x="15" y="401" width="345" height="54"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_bind_zfb" translatesAutoresizingMaskIntoConstraints="NO" id="H6c-oC-N3Y">
<rect key="frame" x="15" y="15" width="24" height="24"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="支付宝" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="tAk-hs-lNR">
<rect key="frame" x="49" y="20" width="37" height="14.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000300000001" blue="0.20000000300000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="kNq-ic-MXC">
<rect key="frame" x="300" y="12" width="30" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="9go-6L-oeg"/>
<constraint firstAttribute="height" constant="30" id="Qlh-Rb-Nth"/>
</constraints>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="xieyi_nor"/>
<state key="selected" image="xieyi_sel"/>
<connections>
<action selector="selectAliButtonClick:" destination="-1" eventType="touchUpInside" id="G7n-ei-qfE"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="kNq-ic-MXC" secondAttribute="trailing" constant="15" id="AVB-RF-4bE"/>
<constraint firstItem="H6c-oC-N3Y" firstAttribute="centerY" secondItem="7LR-A9-axh" secondAttribute="centerY" id="EUB-wC-mz3"/>
<constraint firstItem="tAk-hs-lNR" firstAttribute="leading" secondItem="H6c-oC-N3Y" secondAttribute="trailing" constant="10" id="KEn-18-pfq"/>
<constraint firstItem="kNq-ic-MXC" firstAttribute="centerY" secondItem="7LR-A9-axh" secondAttribute="centerY" id="KW2-xf-Bn7"/>
<constraint firstAttribute="height" constant="54" id="Lfa-sG-QTh"/>
<constraint firstItem="tAk-hs-lNR" firstAttribute="centerY" secondItem="H6c-oC-N3Y" secondAttribute="centerY" id="g47-N3-m7P"/>
<constraint firstItem="H6c-oC-N3Y" firstAttribute="leading" secondItem="7LR-A9-axh" secondAttribute="leading" constant="15" id="hrk-X9-dlb"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="提现服务费10%" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="4f3-xu-Waz">
<rect key="frame" x="15" y="539" width="99" height="14.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.60051971230000001" colorSpace="custom" customColorSpace="sRGB"/>
<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="3Cn-ec-6oy">
<rect key="frame" x="17" y="221" width="61.5" height="18"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="pk2-Ub-QGx">
<rect key="frame" x="15" y="467" width="345" height="54"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_bind_bank" translatesAutoresizingMaskIntoConstraints="NO" id="WAy-XO-ltK">
<rect key="frame" x="15" y="17" width="20" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="18c-eD-Qy1"/>
<constraint firstAttribute="width" constant="20" id="kAR-40-ueb"/>
</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="mnQ-bZ-Doq">
<rect key="frame" x="45" y="20" width="37" height="14.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000300000001" blue="0.20000000300000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xCE-wt-QLg">
<rect key="frame" x="300" y="12" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="OGB-v1-RWf"/>
<constraint firstAttribute="width" constant="30" id="f8B-j3-LJP"/>
</constraints>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="xieyi_nor"/>
<state key="selected" image="xieyi_sel"/>
<connections>
<action selector="selectBankButtonClick:" destination="-1" eventType="touchUpInside" id="Y1s-9t-8qC"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="xCE-wt-QLg" secondAttribute="trailing" constant="15" id="1Lg-xc-OuL"/>
<constraint firstItem="WAy-XO-ltK" firstAttribute="centerY" secondItem="pk2-Ub-QGx" secondAttribute="centerY" id="KtE-xO-bLd"/>
<constraint firstItem="xCE-wt-QLg" firstAttribute="centerY" secondItem="pk2-Ub-QGx" secondAttribute="centerY" id="LC0-v2-KR1"/>
<constraint firstItem="WAy-XO-ltK" firstAttribute="leading" secondItem="pk2-Ub-QGx" secondAttribute="leading" constant="15" id="W9X-9Q-KT2"/>
<constraint firstAttribute="height" constant="54" id="WUU-iE-Q48"/>
<constraint firstItem="mnQ-bZ-Doq" firstAttribute="leading" secondItem="WAy-XO-ltK" secondAttribute="trailing" constant="10" id="ev6-ho-Kjy"/>
<constraint firstItem="mnQ-bZ-Doq" firstAttribute="centerY" secondItem="WAy-XO-ltK" secondAttribute="centerY" id="q1j-4t-O3P"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qbi-k9-Wwa" userLabel="XieyiView">
<rect key="frame" x="60.5" y="610" width="254" height="30"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我已阅读并同意" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gLo-od-teD">
<rect key="frame" x="20" y="0.0" width="86" height="30"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.73333333329999995" green="0.73333333329999995" blue="0.73333333329999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="J0b-ZX-7lN">
<rect key="frame" x="106" y="0.0" width="148" height="30"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<state key="normal" title="《灵活就业合作伙伴协议》">
<color key="titleColor" red="0.0" green="0.81960784313725488" blue="0.58431372549019611" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onJumpXieyi:" destination="-1" eventType="touchUpInside" id="Exd-gE-bgH"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" selected="YES" contentHorizontalAlignment="leading" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="7C5-F6-V9T">
<rect key="frame" x="0.0" y="0.0" width="106" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="TJa-Sa-sZ4"/>
</constraints>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="login_xieyi_nor">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<state key="selected" image="login_xieyi_sel"/>
<connections>
<action selector="onSelXieyi:" destination="-1" eventType="touchUpInside" id="eY8-Ug-Eb2"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstItem="7C5-F6-V9T" firstAttribute="leading" secondItem="qbi-k9-Wwa" secondAttribute="leading" id="1zE-6i-9gi"/>
<constraint firstItem="7C5-F6-V9T" firstAttribute="centerY" secondItem="qbi-k9-Wwa" secondAttribute="centerY" id="9Kr-BK-oEW"/>
<constraint firstItem="gLo-od-teD" firstAttribute="top" secondItem="qbi-k9-Wwa" secondAttribute="top" id="DPF-nM-JAD"/>
<constraint firstItem="J0b-ZX-7lN" firstAttribute="top" secondItem="qbi-k9-Wwa" secondAttribute="top" id="EjF-lw-DGR"/>
<constraint firstItem="7C5-F6-V9T" firstAttribute="trailing" secondItem="gLo-od-teD" secondAttribute="trailing" id="Hso-cP-CY7"/>
<constraint firstItem="gLo-od-teD" firstAttribute="leading" secondItem="qbi-k9-Wwa" secondAttribute="leading" constant="20" id="Pdu-s0-fzV"/>
<constraint firstAttribute="trailing" secondItem="J0b-ZX-7lN" secondAttribute="trailing" id="ZqC-sS-4Eg"/>
<constraint firstAttribute="height" constant="30" id="fGE-cX-h64"/>
<constraint firstAttribute="bottom" secondItem="J0b-ZX-7lN" secondAttribute="bottom" id="hK7-Ka-MoP"/>
<constraint firstItem="J0b-ZX-7lN" firstAttribute="leading" secondItem="gLo-od-teD" secondAttribute="trailing" id="q4o-ca-Aeg"/>
<constraint firstAttribute="bottom" secondItem="gLo-od-teD" secondAttribute="bottom" id="wok-We-6Rb"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="pk2-Ub-QGx" secondAttribute="trailing" constant="15" id="4Ek-08-PF4"/>
<constraint firstItem="OVv-tL-Qib" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="27" id="4Xe-mi-VzL"/>
<constraint firstAttribute="trailing" secondItem="7LR-A9-axh" secondAttribute="trailing" constant="15" id="7F1-Mq-nGN"/>
<constraint firstItem="j3R-fT-oJx" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="ANW-Z0-EC9"/>
<constraint firstItem="GIW-Dk-BXt" firstAttribute="leading" secondItem="RW5-IT-tTp" secondAttribute="leading" id="EH3-cd-U01"/>
<constraint firstItem="3Cn-ec-6oy" firstAttribute="leading" secondItem="zpi-CJ-wIm" secondAttribute="leading" constant="2" id="Fts-SM-9Ck"/>
<constraint firstItem="RW5-IT-tTp" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="H1m-6Q-Yyz"/>
<constraint firstItem="pk2-Ub-QGx" firstAttribute="top" secondItem="7LR-A9-axh" secondAttribute="bottom" constant="12" id="Hbz-ZF-2MI"/>
<constraint firstAttribute="trailing" secondItem="RW5-IT-tTp" secondAttribute="trailing" constant="15" id="IbJ-HG-mVw"/>
<constraint firstItem="GIW-Dk-BXt" firstAttribute="top" secondItem="RW5-IT-tTp" secondAttribute="bottom" constant="15" id="LWN-61-Zfx"/>
<constraint firstItem="pk2-Ub-QGx" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="M6g-xH-H1D"/>
<constraint firstItem="qbi-k9-Wwa" firstAttribute="centerX" secondItem="i5M-Pr-FkT" secondAttribute="centerX" id="MJh-c0-cjG"/>
<constraint firstAttribute="trailing" secondItem="j3R-fT-oJx" secondAttribute="trailing" constant="15" id="Ozc-bb-8Z1"/>
<constraint firstItem="3Cn-ec-6oy" firstAttribute="top" secondItem="j3R-fT-oJx" secondAttribute="bottom" constant="10" id="aZ0-8E-ajH"/>
<constraint firstItem="7LR-A9-axh" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="do6-vG-WEj"/>
<constraint firstItem="j3R-fT-oJx" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="g7L-WI-4xG"/>
<constraint firstItem="OVv-tL-Qib" firstAttribute="top" secondItem="7LR-A9-axh" secondAttribute="bottom" constant="200" id="hXy-0r-V8i"/>
<constraint firstItem="7LR-A9-axh" firstAttribute="top" secondItem="GIW-Dk-BXt" secondAttribute="bottom" constant="26" id="hx8-OJ-JBX"/>
<constraint firstAttribute="trailing" secondItem="OVv-tL-Qib" secondAttribute="trailing" constant="27" id="j1n-ZB-FSM"/>
<constraint firstItem="4f3-xu-Waz" firstAttribute="leading" secondItem="7LR-A9-axh" secondAttribute="leading" id="ma5-Dn-d5S"/>
<constraint firstItem="GIW-Dk-BXt" firstAttribute="trailing" secondItem="RW5-IT-tTp" secondAttribute="trailing" id="o0w-kn-2mP"/>
<constraint firstItem="OVv-tL-Qib" firstAttribute="top" secondItem="qbi-k9-Wwa" secondAttribute="bottom" constant="15" id="r5i-Ft-orN"/>
<constraint firstItem="RW5-IT-tTp" firstAttribute="top" secondItem="3Cn-ec-6oy" secondAttribute="bottom" constant="13" id="w0f-XY-40z"/>
<constraint firstItem="4f3-xu-Waz" firstAttribute="top" secondItem="7LR-A9-axh" secondAttribute="bottom" constant="84" id="zqw-Of-Grx"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="131.15942028985509" y="108.48214285714285"/>
</view>
</objects>
<resources>
<image name="login_xieyi_nor" width="20" height="20"/>
<image name="login_xieyi_sel" width="20" height="20"/>
<image name="wallet_bind_bank" width="24" height="24"/>
<image name="wallet_bind_zfb" width="24" height="24"/>
<image name="wallet_mingxi_2" width="67" height="24"/>
<image name="wallet_zuanshi" width="24" height="24"/>
<image name="wallet_zuanshi_bg" width="345" height="110"/>
<image name="xieyi_nor" width="20" height="20"/>
<image name="xieyi_sel" width="20" height="20"/>
</resources>
</document>

View File

@@ -0,0 +1,16 @@
//
// SPWalletZuanshiVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPWalletZuanshiVC : BaseViewController <JXCategoryListContentViewDelegate>
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,120 @@
//
// SPWalletZuanshiVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/10.
//
#import "SPWalletZuanshiVC.h"
#import "SPWalletModel.h"
#import "SPWalletRecordListVC.h"
#import "SPWalletTixianVC.h"
@interface SPWalletZuanshiVC ()
@property (weak, nonatomic) IBOutlet UIView *balanceBgV;
@property (weak, nonatomic) IBOutlet UILabel *balanceLab;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@property (weak, nonatomic) IBOutlet UITextField *zuanshiTF;
@property (weak, nonatomic) IBOutlet UITextField *jinbiTF;
@property (nonatomic, strong) SPWalletModel *model;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *topLayout;
@end
@implementation SPWalletZuanshiVC
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self fetchData];
}
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
// [ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-65-10, yb_StatusBar_H+7, 60, 30) text:@"明细" font:YBMediumFont(13) color:HEXCOLOR(0x111111) backguoundColor:nil imageName:nil target:self action:@selector(onRightClick)];
}
- (void)fetchData {
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/get_user_money" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
SPWalletModel *model = [SPWalletModel mj_objectWithKeyValues:responseDic[@"data"]];
self.model = model;
self.balanceLab.text = [NSString stringWithFormat:@"%.2f", [model.money doubleValue]];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)createUI {
// self.balanceBgV.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(ScreenWidth-14*2, 130) direction:FXGradientChangeDirectionHorizontal startColor:HEXCOLOR(0x7E9AF9) endColor:HEXCOLOR(0x6B42F0)];
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"home_bg")];
[self.view addSubview:bgImgV];
[self.view sendSubviewToBack:bgImgV];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[self showNaviBarWithTitle:@"兑换"];
self.topLayout.constant = yb_NavigationBar_H+10;
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-27*2, 49)];
[self.zuanshiTF addTarget:self action:@selector(textFieldChanged:) forControlEvents:UIControlEventEditingChanged];
}
- (void)textFieldChanged:(UITextField*)tf {
NSInteger zuanshi = [tf.text integerValue];
self.jinbiTF.text = [NSString stringWithFormat:@"%ld", zuanshi*10];
}
- (void)onRightClick
{
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 5;
[vc pushSelf];
}
- (IBAction)onMingxi:(id)sender {
SPWalletRecordListVC *vc = [[SPWalletRecordListVC alloc] init];
vc.type = 5;
[vc pushSelf];
}
- (IBAction)onTixian:(id)sender {
SPWalletTixianVC *vc = [[SPWalletTixianVC alloc] init];
[vc pushSelf];
}
- (IBAction)onAllDuihuan:(id)sender {
self.zuanshiTF.text = [NSString stringWithFormat:@"%ld", [self.model.money integerValue]];
NSInteger zuanshi = [self.zuanshiTF.text integerValue];
self.jinbiTF.text = [NSString stringWithFormat:@"%ld", zuanshi*10];
}
- (IBAction)onConfirm:(id)sender {
if (self.zuanshiTF.text.length <= 0) {
[HelpPageDefine showMessage:@"请输入兑换钻石数量"];
return;
}
NSDictionary *params = @{@"money":self.zuanshiTF.text, @"trade_password":@""};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/exchange" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self fetchData];
} Failure:^(id _Nonnull errorData) {
}];
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,232 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SPWalletZuanshiVC">
<connections>
<outlet property="balanceBgV" destination="j3R-fT-oJx" id="wyi-Ql-NcI"/>
<outlet property="balanceLab" destination="mJA-Uu-WO9" id="6LY-zT-85D"/>
<outlet property="confirmBtn" destination="OVv-tL-Qib" id="YT0-9b-J0k"/>
<outlet property="jinbiTF" destination="vVd-LW-Ig2" id="sa1-zi-tDR"/>
<outlet property="topLayout" destination="g7L-WI-4xG" id="soN-ON-Mj8"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
<outlet property="zuanshiTF" destination="b7F-mS-axa" id="0rr-dB-eDg"/>
</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="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="j3R-fT-oJx">
<rect key="frame" x="15" y="110" width="345" height="101"/>
<subviews>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zuanshi_bg" translatesAutoresizingMaskIntoConstraints="NO" id="zpi-CJ-wIm">
<rect key="frame" x="0.0" y="0.0" width="345" height="101"/>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的钻石" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="jNi-7J-fZp">
<rect key="frame" x="148" y="45.5" width="65.5" height="19.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.23921568627450979" green="0.23921568627450979" blue="0.23921568627450979" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mJA-Uu-WO9">
<rect key="frame" x="162" y="0.0" width="21.5" height="38.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="32"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_zuanshi" translatesAutoresizingMaskIntoConstraints="NO" id="TcG-Ha-LGF">
<rect key="frame" x="119" y="43.5" width="24" height="24"/>
</imageView>
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="TtR-AQ-ltS">
<rect key="frame" x="277" y="36.5" width="58" height="28"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="wallet_home_tixian"/>
<connections>
<action selector="onTixian:" destination="-1" eventType="touchUpInside" id="s1Y-wV-H1P"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="mJA-Uu-WO9" firstAttribute="centerX" secondItem="j3R-fT-oJx" secondAttribute="centerX" id="I4d-MC-4Az"/>
<constraint firstItem="jNi-7J-fZp" firstAttribute="centerY" secondItem="TcG-Ha-LGF" secondAttribute="centerY" id="LVq-Yb-qOO"/>
<constraint firstItem="jNi-7J-fZp" firstAttribute="leading" secondItem="TcG-Ha-LGF" secondAttribute="trailing" constant="5" id="NW5-wV-HNF"/>
<constraint firstItem="zpi-CJ-wIm" firstAttribute="top" secondItem="j3R-fT-oJx" secondAttribute="top" id="OAa-fH-XQi"/>
<constraint firstAttribute="trailing" secondItem="zpi-CJ-wIm" secondAttribute="trailing" id="RRS-N3-iVU"/>
<constraint firstItem="zpi-CJ-wIm" firstAttribute="leading" secondItem="j3R-fT-oJx" secondAttribute="leading" id="RSJ-QW-1Vt"/>
<constraint firstAttribute="trailing" secondItem="TtR-AQ-ltS" secondAttribute="trailing" constant="10" id="ZWh-iJ-44D"/>
<constraint firstItem="mJA-Uu-WO9" firstAttribute="top" secondItem="j3R-fT-oJx" secondAttribute="top" id="bja-nu-OBr"/>
<constraint firstAttribute="bottom" secondItem="zpi-CJ-wIm" secondAttribute="bottom" id="hmf-rO-fDe"/>
<constraint firstAttribute="height" constant="101" id="ihs-HU-KgS"/>
<constraint firstItem="TtR-AQ-ltS" firstAttribute="centerY" secondItem="j3R-fT-oJx" secondAttribute="centerY" id="mAQ-vt-dd4"/>
<constraint firstItem="jNi-7J-fZp" firstAttribute="centerX" secondItem="j3R-fT-oJx" secondAttribute="centerX" constant="8" id="q8T-WI-tXb"/>
<constraint firstItem="jNi-7J-fZp" firstAttribute="top" secondItem="mJA-Uu-WO9" secondAttribute="bottom" constant="7" id="xQh-Ph-idq"/>
</constraints>
</view>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="OVv-tL-Qib">
<rect key="frame" x="34" y="474" width="307" height="47"/>
<color key="backgroundColor" red="0.050980392156862744" green="1" blue="0.72549019607843135" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="47" id="Jl3-rC-mIk"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="立即兑换">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="23.5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="-1" eventType="touchUpInside" id="yAH-Cp-8qg"/>
</connections>
</button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="gRZ-Jx-mUO">
<rect key="frame" x="15" y="256" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入您要兑换的钻石数量" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="b7F-mS-axa">
<rect key="frame" x="20" y="0.0" width="225" height="54"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9Gm-Ob-e6l">
<rect key="frame" x="15" y="53.5" width="315" height="0.5"/>
<color key="backgroundColor" red="0.2784313725" green="0.2784313725" blue="0.35686274509999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="R6p-CA-cNo"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="j5b-Pi-fCj">
<rect key="frame" x="263" y="0.0" width="70" height="53.5"/>
<constraints>
<constraint firstAttribute="width" constant="70" id="MAw-Ac-U6s"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="全部兑换">
<color key="titleColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onAllDuihuan:" destination="-1" eventType="touchUpInside" id="MyL-7F-nj7"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="j5b-Pi-fCj" secondAttribute="trailing" constant="12" id="4pq-3P-PA8"/>
<constraint firstAttribute="bottom" secondItem="9Gm-Ob-e6l" secondAttribute="bottom" id="5qG-e0-5b7"/>
<constraint firstItem="9Gm-Ob-e6l" firstAttribute="top" secondItem="j5b-Pi-fCj" secondAttribute="bottom" id="BFI-9z-dRh"/>
<constraint firstItem="j5b-Pi-fCj" firstAttribute="top" secondItem="gRZ-Jx-mUO" secondAttribute="top" id="EHo-BX-pae"/>
<constraint firstAttribute="height" constant="54" id="JG5-h5-5Ag"/>
<constraint firstAttribute="bottom" secondItem="b7F-mS-axa" secondAttribute="bottom" id="UT3-JZ-WIL"/>
<constraint firstAttribute="trailing" secondItem="9Gm-Ob-e6l" secondAttribute="trailing" constant="15" id="Wfg-Lq-ajc"/>
<constraint firstItem="b7F-mS-axa" firstAttribute="leading" secondItem="gRZ-Jx-mUO" secondAttribute="leading" constant="20" id="ZFl-68-zEt"/>
<constraint firstItem="9Gm-Ob-e6l" firstAttribute="leading" secondItem="gRZ-Jx-mUO" secondAttribute="leading" constant="15" id="afi-p4-zWU"/>
<constraint firstAttribute="trailing" secondItem="b7F-mS-axa" secondAttribute="trailing" constant="100" id="cc0-vC-3Os"/>
<constraint firstItem="b7F-mS-axa" firstAttribute="top" secondItem="gRZ-Jx-mUO" secondAttribute="top" id="xyx-9y-fnk"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Ji0-oH-F8z">
<rect key="frame" x="15" y="325" width="345" height="54"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" enabled="NO" contentHorizontalAlignment="left" contentVerticalAlignment="center" text="0" textAlignment="right" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="vVd-LW-Ig2">
<rect key="frame" x="100" y="0.0" width="225" height="54"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="16"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Iew-gG-3qi">
<rect key="frame" x="15" y="53.5" width="315" height="0.5"/>
<color key="backgroundColor" red="0.2784313725" green="0.2784313725" blue="0.35686274509999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="6al-A0-jJS"/>
</constraints>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="wallet_jinbi" translatesAutoresizingMaskIntoConstraints="NO" id="jmi-aD-sI6">
<rect key="frame" x="14" y="15" width="24" height="24"/>
</imageView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="vVd-LW-Ig2" secondAttribute="bottom" id="0sX-GD-BKP"/>
<constraint firstAttribute="trailing" secondItem="vVd-LW-Ig2" secondAttribute="trailing" constant="20" id="4dP-em-JDc"/>
<constraint firstAttribute="bottom" secondItem="Iew-gG-3qi" secondAttribute="bottom" id="7Qh-E3-ePv"/>
<constraint firstItem="Iew-gG-3qi" firstAttribute="leading" secondItem="Ji0-oH-F8z" secondAttribute="leading" constant="15" id="AkQ-vl-Ita"/>
<constraint firstItem="jmi-aD-sI6" firstAttribute="leading" secondItem="Ji0-oH-F8z" secondAttribute="leading" constant="14" id="Kzm-vb-6CQ"/>
<constraint firstItem="vVd-LW-Ig2" firstAttribute="top" secondItem="Ji0-oH-F8z" secondAttribute="top" id="Q0i-Dy-7SK"/>
<constraint firstAttribute="trailing" secondItem="Iew-gG-3qi" secondAttribute="trailing" constant="15" id="Rcf-Zw-zE3"/>
<constraint firstItem="jmi-aD-sI6" firstAttribute="centerY" secondItem="Ji0-oH-F8z" secondAttribute="centerY" id="RhE-Od-oHD"/>
<constraint firstAttribute="height" constant="54" id="WMt-Ao-sjp"/>
<constraint firstItem="vVd-LW-Ig2" firstAttribute="leading" secondItem="Ji0-oH-F8z" secondAttribute="leading" constant="100" id="goX-Fh-u1f"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="钻石兑换" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="LBt-1D-x6v">
<rect key="frame" x="17" y="221" width="61.5" height="18"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<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="QTx-Ey-cJl">
<rect key="frame" x="15" y="393" width="53" height="14.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.60051971227944301" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="兑换比例1钻石=10金币" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oe1-sX-Id0">
<rect key="frame" x="15" y="412.5" width="137.5" height="14.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.60051971230000001" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="OVv-tL-Qib" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="34" id="4Xe-mi-VzL"/>
<constraint firstItem="Ji0-oH-F8z" firstAttribute="top" secondItem="gRZ-Jx-mUO" secondAttribute="bottom" constant="15" id="4qt-KE-AZf"/>
<constraint firstItem="gRZ-Jx-mUO" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="6hh-El-q4N"/>
<constraint firstItem="j3R-fT-oJx" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="ANW-Z0-EC9"/>
<constraint firstItem="LBt-1D-x6v" firstAttribute="top" secondItem="j3R-fT-oJx" secondAttribute="bottom" constant="10" id="Epv-cI-YJ7"/>
<constraint firstItem="LBt-1D-x6v" firstAttribute="leading" secondItem="zpi-CJ-wIm" secondAttribute="leading" constant="2" id="GgH-mI-GNf"/>
<constraint firstItem="QTx-Ey-cJl" firstAttribute="leading" secondItem="Ji0-oH-F8z" secondAttribute="leading" id="Ncj-DW-orm"/>
<constraint firstAttribute="trailing" secondItem="j3R-fT-oJx" secondAttribute="trailing" constant="15" id="Ozc-bb-8Z1"/>
<constraint firstAttribute="trailing" secondItem="gRZ-Jx-mUO" secondAttribute="trailing" constant="15" id="bNn-A5-GG5"/>
<constraint firstItem="Ji0-oH-F8z" firstAttribute="leading" secondItem="gRZ-Jx-mUO" secondAttribute="leading" id="f67-sf-n8r"/>
<constraint firstItem="j3R-fT-oJx" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="g7L-WI-4xG"/>
<constraint firstItem="oe1-sX-Id0" firstAttribute="leading" secondItem="QTx-Ey-cJl" secondAttribute="leading" id="ib0-jH-VCl"/>
<constraint firstItem="QTx-Ey-cJl" firstAttribute="top" secondItem="Ji0-oH-F8z" secondAttribute="bottom" constant="14" id="ibU-C8-D3j"/>
<constraint firstAttribute="trailing" secondItem="OVv-tL-Qib" secondAttribute="trailing" constant="34" id="j1n-ZB-FSM"/>
<constraint firstItem="OVv-tL-Qib" firstAttribute="top" secondItem="Ji0-oH-F8z" secondAttribute="bottom" constant="95" id="oJe-Kv-87B"/>
<constraint firstItem="gRZ-Jx-mUO" firstAttribute="top" secondItem="LBt-1D-x6v" secondAttribute="bottom" constant="17" id="pQK-zZ-XDL"/>
<constraint firstItem="oe1-sX-Id0" firstAttribute="top" secondItem="QTx-Ey-cJl" secondAttribute="bottom" constant="5" id="sLB-BH-m8v"/>
<constraint firstItem="Ji0-oH-F8z" firstAttribute="trailing" secondItem="gRZ-Jx-mUO" secondAttribute="trailing" id="tvx-TO-EHQ"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-169" y="180"/>
</view>
</objects>
<resources>
<image name="wallet_home_tixian" width="58" height="28"/>
<image name="wallet_jinbi" width="24" height="24"/>
<image name="wallet_zuanshi" width="24" height="24"/>
<image name="wallet_zuanshi_bg" width="345" height="110"/>
</resources>
</document>

View File

@@ -0,0 +1,21 @@
//
// ZMKHBindBankVC.h
// sugar
//
// Created by bj_szd on 2022/6/21.
// Copyright © 2022 sugar. All rights reserved.
//
#import "BaseController.h"
#import "SPWalletModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface ZMKHBindBankVC : BaseController
@property(nonatomic, strong) SPWalletModel *model;
@property(nonatomic, copy) void (^winBlock)(void);
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,103 @@
//
// ZMKHBindBankVC.m
// sugar
//
// Created by bj_szd on 2022/6/21.
// Copyright © 2022 sugar. All rights reserved.
//
#import "ZMKHBindBankVC.h"
@interface ZMKHBindBankVC ()
@property (weak, nonatomic) IBOutlet UITextField *nameTF;
@property (weak, nonatomic) IBOutlet UITextField *cardTF;
@property (weak, nonatomic) IBOutlet UITextField *bankTF;
@property (weak, nonatomic) IBOutlet UITextField *openTF;
@property (weak, nonatomic) IBOutlet UITextField *phoneTF;
@property (weak, nonatomic) IBOutlet UITextField *idcardTF;
@property (weak, nonatomic) IBOutlet UIButton *quitBtn;
@end
@implementation ZMKHBindBankVC
- (void)viewDidLoad {
[super viewDidLoad];
[self loadBar:YES needBack:YES needBackground:NO];
self.titleLabel.text = @"绑定银行卡";
self.titleLabel.textColor = HEXCOLOR(0x333333);
self.leftButtonView.image = ImageNamed(@"blackBack");
self.barView.backgroundColor = kClearColor;
self.bgView.backgroundColor = HEXCOLOR(0xFFFFFF);
// UIImageView *topBgImgV = [[UIImageView alloc] init];
// topBgImgV.image = ImageNamed(@"home_top_bg");
// [self.bgView insertSubview:topBgImgV atIndex:0];
// [topBgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
// make.top.left.right.equalTo(self.bgView);
// make.height.mas_equalTo(ScreenWidth/375*812);
// }];
self.nameTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的真实姓名" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0xBBBBBB, 1)}];
self.cardTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的银行卡号" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0xBBBBBB, 1)}];
self.bankTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的开卡银行" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0xBBBBBB, 1)}];
self.openTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入银行卡绑定的手机号" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0xBBBBBB, 1)}];
self.idcardTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"请输入您的身份证号" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0xBBBBBB, 1)}];
_quitBtn.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(APPW-32*2, 46) direction:(FXGradientChangeDirectionHorizontal) startColor:mainLightColor endColor:mainDeepColor];
if (self.model.bank_card_number.length > 0) {
self.nameTF.text = self.model.bank_user_name;
self.cardTF.text = self.model.bank_card_number;
self.bankTF.text = self.model.bank_card_name;
self.openTF.text = self.model.bank_tel_no;
self.idcardTF.text = self.model.bank_cert_id;
}
}
- (IBAction)onConfirm:(id)sender {
if (self.nameTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入真实姓名"];
return;
}
if (self.cardTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入银行卡号"];
return;
}
if (self.bankTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入银行名称"];
return;
}
if (self.openTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入您的手机号"];
return;
}
if (self.idcardTF.text.length==0) {
[SVProgressHUD showImage:[UIImage imageNamed:@""] status:@"请输入您的身份证号"];
return;
}
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
[dict setValue:self.bankTF.text forKey:@"bank_card_name"];
[dict setValue:self.cardTF.text forKey:@"bank_card_number"];
[dict setValue:self.nameTF.text forKey:@"bank_user_name"];
[dict setValue:self.openTF.text forKey:@"bank_tel_no"];
[dict setValue:self.idcardTF.text forKey:@"bank_cert_id"];
[MBProgressHUD showLoadToView:MainWindow()];
[BJHttpTool BJ_binding_bank_cardWithParameters:dict success:^(id response) {
if ([response[@"code"] integerValue]==200) {
[self.navigationController popViewControllerAnimated:YES];
}
[MBProgressHUD hideHUD];
[MBProgressHUD showAutoMessage:response[@"msg"]];
} failure:^(NSError *error) {
}];
}
@end

View File

@@ -0,0 +1,285 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="ZMKHBindBankVC">
<connections>
<outlet property="bankTF" destination="5FS-UR-08q" id="PhG-u6-LrP"/>
<outlet property="cardTF" destination="N5A-ZE-PR3" id="Ic5-od-HA1"/>
<outlet property="idcardTF" destination="UjC-eR-HlU" id="taj-Kp-Gov"/>
<outlet property="nameTF" destination="SjY-rJ-Tj7" id="b6o-vv-Eka"/>
<outlet property="openTF" destination="1gk-nZ-KZO" id="6mb-yy-NqE"/>
<outlet property="quitBtn" destination="coK-yZ-nwt" id="ccX-eE-O7g"/>
<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="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_bg" translatesAutoresizingMaskIntoConstraints="NO" id="cc7-CK-xJK">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
</imageView>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="JeP-Pc-A2p">
<rect key="frame" x="15" y="262" width="345" height="48"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入银行卡银行" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="5FS-UR-08q">
<rect key="frame" x="22" y="0.0" width="323" height="48"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9IZ-T4-eZr">
<rect key="frame" x="0.0" y="47.5" width="345" height="0.5"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="6th-mT-MTx"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="4oX-rz-eY5"/>
<constraint firstAttribute="trailing" secondItem="9IZ-T4-eZr" secondAttribute="trailing" id="7iT-eV-Cny"/>
<constraint firstAttribute="bottom" secondItem="5FS-UR-08q" secondAttribute="bottom" id="E4z-OU-iNl"/>
<constraint firstAttribute="bottom" secondItem="9IZ-T4-eZr" secondAttribute="bottom" id="UaK-Gd-NpR"/>
<constraint firstItem="5FS-UR-08q" firstAttribute="leading" secondItem="JeP-Pc-A2p" secondAttribute="leading" constant="22" id="VTG-Kg-vVN"/>
<constraint firstItem="5FS-UR-08q" firstAttribute="top" secondItem="JeP-Pc-A2p" secondAttribute="top" id="WDj-S6-mo4"/>
<constraint firstItem="9IZ-T4-eZr" firstAttribute="leading" secondItem="JeP-Pc-A2p" secondAttribute="leading" id="qD7-Z7-ZJJ"/>
<constraint firstAttribute="trailing" secondItem="5FS-UR-08q" secondAttribute="trailing" id="xYa-H2-JaC"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W2R-4a-Ekk">
<rect key="frame" x="15" y="132" width="345" height="48"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入您的真实姓名" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="SjY-rJ-Tj7">
<rect key="frame" x="22" y="0.0" width="323" height="48"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1fF-xA-7jr">
<rect key="frame" x="0.0" y="47.5" width="345" height="0.5"/>
<color key="backgroundColor" red="0.93333333333333335" green="0.93333333333333335" blue="0.93333333333333335" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="COx-6Z-wFe"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="SjY-rJ-Tj7" secondAttribute="trailing" id="7F0-x0-Vlf"/>
<constraint firstItem="SjY-rJ-Tj7" firstAttribute="top" secondItem="W2R-4a-Ekk" secondAttribute="top" id="Au5-sj-Jvm"/>
<constraint firstItem="1fF-xA-7jr" firstAttribute="leading" secondItem="W2R-4a-Ekk" secondAttribute="leading" id="LP1-3R-OBc"/>
<constraint firstAttribute="height" constant="48" id="WOM-BT-pFj"/>
<constraint firstAttribute="bottom" secondItem="1fF-xA-7jr" secondAttribute="bottom" id="bM8-xF-Fzq"/>
<constraint firstItem="SjY-rJ-Tj7" firstAttribute="leading" secondItem="W2R-4a-Ekk" secondAttribute="leading" constant="22" id="rAc-w0-aqM"/>
<constraint firstAttribute="trailing" secondItem="1fF-xA-7jr" secondAttribute="trailing" id="sGm-fa-ktM"/>
<constraint firstAttribute="bottom" secondItem="SjY-rJ-Tj7" secondAttribute="bottom" id="vP9-S6-m8O"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="K5y-MN-9ry">
<rect key="frame" x="15" y="197" width="345" height="48"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入您的银行卡号" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="N5A-ZE-PR3">
<rect key="frame" x="22" y="0.0" width="323" height="48"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits" keyboardType="numberPad"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="IA2-5z-qcs">
<rect key="frame" x="0.0" y="47.5" width="345" height="0.5"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="rIs-12-xTO"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="48" id="3uz-1E-Ahh"/>
<constraint firstAttribute="trailing" secondItem="N5A-ZE-PR3" secondAttribute="trailing" id="9Et-Ot-AAV"/>
<constraint firstAttribute="bottom" secondItem="N5A-ZE-PR3" secondAttribute="bottom" id="D8P-6G-DDa"/>
<constraint firstAttribute="trailing" secondItem="IA2-5z-qcs" secondAttribute="trailing" id="Rgy-Vy-irx"/>
<constraint firstItem="N5A-ZE-PR3" firstAttribute="top" secondItem="K5y-MN-9ry" secondAttribute="top" id="cQ3-Di-grK"/>
<constraint firstItem="IA2-5z-qcs" firstAttribute="leading" secondItem="K5y-MN-9ry" secondAttribute="leading" id="oQy-Dc-jUk"/>
<constraint firstAttribute="bottom" secondItem="IA2-5z-qcs" secondAttribute="bottom" id="p9y-6h-pEX"/>
<constraint firstItem="N5A-ZE-PR3" firstAttribute="leading" secondItem="K5y-MN-9ry" secondAttribute="leading" constant="22" id="wC3-dh-zTZ"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="obf-s4-8MK">
<rect key="frame" x="15" y="327" width="345" height="48"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入您的手机号" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="1gk-nZ-KZO">
<rect key="frame" x="22" y="0.0" width="323" height="48"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="MJp-a8-vSC">
<rect key="frame" x="0.0" y="47.5" width="345" height="0.5"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="g2P-PH-u99"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="MJp-a8-vSC" firstAttribute="leading" secondItem="obf-s4-8MK" secondAttribute="leading" id="3S9-hp-3vo"/>
<constraint firstAttribute="bottom" secondItem="1gk-nZ-KZO" secondAttribute="bottom" id="9XI-9m-GO8"/>
<constraint firstAttribute="trailing" secondItem="1gk-nZ-KZO" secondAttribute="trailing" id="AoH-Qj-5Ww"/>
<constraint firstItem="1gk-nZ-KZO" firstAttribute="top" secondItem="obf-s4-8MK" secondAttribute="top" id="I0W-gN-fcN"/>
<constraint firstAttribute="bottom" secondItem="MJp-a8-vSC" secondAttribute="bottom" id="roU-NF-Pt2"/>
<constraint firstAttribute="trailing" secondItem="MJp-a8-vSC" secondAttribute="trailing" id="siN-PQ-u96"/>
<constraint firstItem="1gk-nZ-KZO" firstAttribute="leading" secondItem="obf-s4-8MK" secondAttribute="leading" constant="22" id="t86-FA-oeV"/>
<constraint firstAttribute="height" constant="48" id="wB7-PZ-0U2"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="coK-yZ-nwt">
<rect key="frame" x="32" y="560" width="311" height="46"/>
<color key="backgroundColor" red="0.050980392156862744" green="1" blue="0.72549019607843135" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="46" id="CNq-aP-q44"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<state key="normal" title="确认绑定">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="23"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="-1" eventType="touchUpInside" id="zDG-gN-yZu"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="银行卡信息" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="gGv-yK-pPp">
<rect key="frame" x="15" y="100" width="72" height="17"/>
<fontDescription key="fontDescription" type="system" pointSize="14"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<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="otv-Ij-GtC">
<rect key="frame" x="22" y="462" width="196.5" height="14.5"/>
<fontDescription key="fontDescription" type="system" pointSize="12"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3zo-Id-Qwy">
<rect key="frame" x="14" y="392" width="347" height="48"/>
<subviews>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="请输入您的身份证号" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="UjC-eR-HlU">
<rect key="frame" x="22" y="0.0" width="325" height="48"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<textInputTraits key="textInputTraits"/>
</textField>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1gd-OB-9DU">
<rect key="frame" x="0.0" y="47.5" width="347" height="0.5"/>
<color key="backgroundColor" red="0.93333333330000001" green="0.93333333330000001" blue="0.93333333330000001" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="6Y3-Xg-KMC"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="UjC-eR-HlU" firstAttribute="top" secondItem="3zo-Id-Qwy" secondAttribute="top" id="Dtp-zh-wCn"/>
<constraint firstAttribute="trailing" secondItem="UjC-eR-HlU" secondAttribute="trailing" id="TnH-XW-Gnc"/>
<constraint firstItem="1gd-OB-9DU" firstAttribute="leading" secondItem="3zo-Id-Qwy" secondAttribute="leading" id="Ves-OV-U9d"/>
<constraint firstAttribute="trailing" secondItem="1gd-OB-9DU" secondAttribute="trailing" id="ZYn-F9-NKC"/>
<constraint firstAttribute="bottom" secondItem="UjC-eR-HlU" secondAttribute="bottom" id="fkS-gv-sdm"/>
<constraint firstAttribute="height" constant="48" id="naV-KY-Qgd"/>
<constraint firstAttribute="bottom" secondItem="1gd-OB-9DU" secondAttribute="bottom" id="rO0-Fw-QR4"/>
<constraint firstItem="UjC-eR-HlU" firstAttribute="leading" secondItem="3zo-Id-Qwy" secondAttribute="leading" constant="22" id="zgj-vl-3p6"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="obf-s4-8MK" firstAttribute="top" secondItem="JeP-Pc-A2p" secondAttribute="bottom" constant="17" id="8mB-sb-gDW"/>
<constraint firstItem="JeP-Pc-A2p" firstAttribute="leading" secondItem="W2R-4a-Ekk" secondAttribute="leading" id="BF6-rw-wH1"/>
<constraint firstAttribute="trailing" secondItem="W2R-4a-Ekk" secondAttribute="trailing" constant="15" id="MMZ-3Z-PTB"/>
<constraint firstItem="gGv-yK-pPp" firstAttribute="leading" secondItem="W2R-4a-Ekk" secondAttribute="leading" id="O6a-7g-FdH"/>
<constraint firstItem="obf-s4-8MK" firstAttribute="leading" secondItem="W2R-4a-Ekk" secondAttribute="leading" id="Thj-Xh-PmD"/>
<constraint firstItem="3zo-Id-Qwy" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="14" id="UDs-IK-MZ4"/>
<constraint firstAttribute="trailing" secondItem="cc7-CK-xJK" secondAttribute="trailing" id="Vxt-C7-kgn"/>
<constraint firstItem="gGv-yK-pPp" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="100" id="Yau-Ey-CNl"/>
<constraint firstItem="cc7-CK-xJK" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="ZY7-td-ZSG"/>
<constraint firstItem="obf-s4-8MK" firstAttribute="trailing" secondItem="W2R-4a-Ekk" secondAttribute="trailing" id="a2U-Hn-Vno"/>
<constraint firstItem="SjY-rJ-Tj7" firstAttribute="top" secondItem="gGv-yK-pPp" secondAttribute="bottom" constant="15" id="bbi-kr-Yyk"/>
<constraint firstItem="W2R-4a-Ekk" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="bpq-EC-b78"/>
<constraint firstAttribute="bottom" secondItem="cc7-CK-xJK" secondAttribute="bottom" id="eXa-jL-a8Z"/>
<constraint firstItem="3zo-Id-Qwy" firstAttribute="top" secondItem="obf-s4-8MK" secondAttribute="bottom" constant="17" id="hcm-Mc-luO"/>
<constraint firstItem="coK-yZ-nwt" firstAttribute="top" secondItem="3zo-Id-Qwy" secondAttribute="bottom" constant="120" id="hgg-Qu-LH9"/>
<constraint firstItem="K5y-MN-9ry" firstAttribute="top" secondItem="W2R-4a-Ekk" secondAttribute="bottom" constant="17" id="jsw-9m-eCq"/>
<constraint firstItem="cc7-CK-xJK" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="kW6-JO-0sj"/>
<constraint firstAttribute="trailing" secondItem="coK-yZ-nwt" secondAttribute="trailing" constant="32" id="lWV-kd-Flh"/>
<constraint firstAttribute="trailing" secondItem="3zo-Id-Qwy" secondAttribute="trailing" constant="14" id="oEp-MT-9bZ"/>
<constraint firstItem="coK-yZ-nwt" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="32" id="t5A-EJ-hJV"/>
<constraint firstItem="K5y-MN-9ry" firstAttribute="leading" secondItem="W2R-4a-Ekk" secondAttribute="leading" id="teA-3S-8K2"/>
<constraint firstItem="otv-Ij-GtC" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="22" id="uoS-wU-FCL"/>
<constraint firstItem="otv-Ij-GtC" firstAttribute="top" secondItem="3zo-Id-Qwy" secondAttribute="bottom" constant="22" id="vBq-6R-Fq0"/>
<constraint firstItem="JeP-Pc-A2p" firstAttribute="trailing" secondItem="W2R-4a-Ekk" secondAttribute="trailing" id="xg7-bD-fTX"/>
<constraint firstItem="K5y-MN-9ry" firstAttribute="trailing" secondItem="W2R-4a-Ekk" secondAttribute="trailing" id="ydH-kx-Q1h"/>
<constraint firstItem="JeP-Pc-A2p" firstAttribute="top" secondItem="K5y-MN-9ry" secondAttribute="bottom" constant="17" id="zoH-id-kWz"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="138" y="68"/>
</view>
</objects>
<resources>
<image name="home_bg" width="375" height="812"/>
</resources>
</document>