首次提交
This commit is contained in:
31
SweetParty/主类/音悦新增/拍卖厅/PMInfoView.h
Normal file
31
SweetParty/主类/音悦新增/拍卖厅/PMInfoView.h
Normal file
@@ -0,0 +1,31 @@
|
||||
//
|
||||
// PMInfoView.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by Mac on 2024/11/28.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface PMInfoView : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIButton *guanxiBtn;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *shichangBtn;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *liwuBtn;
|
||||
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UILabel *guanxiLab;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *shichangLab;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *liwuLab;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *liwuImg;
|
||||
|
||||
// 关系 时长 礼物点击事件
|
||||
@property (nonatomic, copy) void (^guanxiAction)(void);
|
||||
@property (nonatomic, copy) void (^shichangAction)(void);
|
||||
@property (nonatomic, copy) void (^liwuAction)(void);
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
43
SweetParty/主类/音悦新增/拍卖厅/PMInfoView.m
Normal file
43
SweetParty/主类/音悦新增/拍卖厅/PMInfoView.m
Normal file
@@ -0,0 +1,43 @@
|
||||
//
|
||||
// PMInfoView.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by Mac on 2024/11/28.
|
||||
//
|
||||
|
||||
#import "PMInfoView.h"
|
||||
#import "UIButton+BAKit.h"
|
||||
|
||||
@interface PMInfoView ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation PMInfoView
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
[self.guanxiBtn ba_button_setButtonLayoutType:BAKit_ButtonLayoutTypeCenterImageTop padding:6];
|
||||
[self.shichangBtn ba_button_setButtonLayoutType:BAKit_ButtonLayoutTypeCenterImageTop padding:6];
|
||||
[self.liwuBtn ba_button_setButtonLayoutType:BAKit_ButtonLayoutTypeCenterImageTop padding:6];
|
||||
}
|
||||
|
||||
- (IBAction)guanxiClick:(id)sender {
|
||||
if(self.guanxiAction) {
|
||||
self.guanxiAction();
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)shichangClick:(id)sender {
|
||||
if(self.shichangAction) {
|
||||
self.shichangAction();
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)liwuClick:(id)sender {
|
||||
if(self.liwuAction) {
|
||||
self.liwuAction();
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
183
SweetParty/主类/音悦新增/拍卖厅/PMInfoView.xib
Normal file
183
SweetParty/主类/音悦新增/拍卖厅/PMInfoView.xib
Normal file
@@ -0,0 +1,183 @@
|
||||
<?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_12" 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"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="PMInfoView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="173" height="60"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<stackView hidden="YES" opaque="NO" contentMode="scaleToFill" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="M47-XO-rJS">
|
||||
<rect key="frame" x="0.0" y="0.0" width="173" height="60"/>
|
||||
<subviews>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="fdq-8O-e1N">
|
||||
<rect key="frame" x="0.0" y="0.0" width="57.666666666666664" height="60"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="10"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="关系" image="pm_guanxi">
|
||||
<color key="titleColor" red="1" green="1" blue="1" alpha="0.5" colorSpace="custom" customColorSpace="calibratedRGB"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="guanxiClick:" destination="iN0-l3-epB" eventType="touchUpInside" id="chN-KE-aSo"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mCZ-uC-lab">
|
||||
<rect key="frame" x="57.666666666666671" y="0.0" width="57.666666666666671" height="60"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="10"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="时长" image="pm_shichang">
|
||||
<color key="titleColor" red="1" green="1" blue="1" alpha="0.5" colorSpace="custom" customColorSpace="calibratedRGB"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="shichangClick:" destination="iN0-l3-epB" eventType="touchUpInside" id="wCf-eE-drp"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="f0d-CC-WWx">
|
||||
<rect key="frame" x="115.33333333333333" y="0.0" width="57.666666666666671" height="60"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="10"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="礼物" image="pm_liwu">
|
||||
<color key="titleColor" red="1" green="1" blue="1" alpha="0.5" colorSpace="custom" customColorSpace="calibratedRGB"/>
|
||||
</state>
|
||||
<connections>
|
||||
<action selector="liwuClick:" destination="iN0-l3-epB" eventType="touchUpInside" id="Tyv-A1-cBu"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</stackView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="SLb-kc-kzU">
|
||||
<rect key="frame" x="0.0" y="0.0" width="173" height="60"/>
|
||||
<subviews>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="qTe-hh-9Qp">
|
||||
<rect key="frame" x="0.0" y="0.0" width="57.666666666666664" height="60"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pm_guanxi" translatesAutoresizingMaskIntoConstraints="NO" id="8my-eI-fFY">
|
||||
<rect key="frame" x="13" y="5" width="32" height="32"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="32" id="i1O-ac-5iR"/>
|
||||
<constraint firstAttribute="height" constant="32" id="xq0-60-uxu"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="关系" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1fj-cP-WtZ">
|
||||
<rect key="frame" x="18.666666666666664" y="42" width="20.666666666666664" height="12"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="10"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="0.5" colorSpace="custom" customColorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="8my-eI-fFY" firstAttribute="centerX" secondItem="qTe-hh-9Qp" secondAttribute="centerX" id="Wl1-9P-7ty"/>
|
||||
<constraint firstItem="1fj-cP-WtZ" firstAttribute="top" secondItem="8my-eI-fFY" secondAttribute="bottom" constant="5" id="cHv-mo-QB1"/>
|
||||
<constraint firstItem="1fj-cP-WtZ" firstAttribute="centerX" secondItem="qTe-hh-9Qp" secondAttribute="centerX" id="cq5-Ki-kGS"/>
|
||||
<constraint firstItem="8my-eI-fFY" firstAttribute="top" secondItem="qTe-hh-9Qp" secondAttribute="top" constant="5" id="g25-Rp-P5s"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fkP-oe-kFL">
|
||||
<rect key="frame" x="57.666666666666671" y="0.0" width="57.666666666666671" height="60"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pm_shichang" translatesAutoresizingMaskIntoConstraints="NO" id="dKf-dr-FAu">
|
||||
<rect key="frame" x="13.000000000000007" y="5" width="32" height="32"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="32" id="EJU-KM-LxY"/>
|
||||
<constraint firstAttribute="width" constant="32" id="hDV-3N-6Fn"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="时长" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="9BH-SU-WXz">
|
||||
<rect key="frame" x="18.666666666666664" y="42" width="20.666666666666664" height="12"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="10"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="0.5" colorSpace="custom" customColorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="9BH-SU-WXz" firstAttribute="centerX" secondItem="fkP-oe-kFL" secondAttribute="centerX" id="JHt-OF-A4y"/>
|
||||
<constraint firstItem="dKf-dr-FAu" firstAttribute="top" secondItem="fkP-oe-kFL" secondAttribute="top" constant="5" id="L3R-jQ-BN3"/>
|
||||
<constraint firstItem="dKf-dr-FAu" firstAttribute="centerX" secondItem="fkP-oe-kFL" secondAttribute="centerX" id="ptr-5C-JkY"/>
|
||||
</constraints>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="lOU-2C-uQl">
|
||||
<rect key="frame" x="115.33333333333333" y="0.0" width="57.666666666666671" height="60"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pm_liwu" translatesAutoresizingMaskIntoConstraints="NO" id="ztu-6E-eHt">
|
||||
<rect key="frame" x="13.000000000000014" y="5" width="32" height="32"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="32" id="13y-jf-52f"/>
|
||||
<constraint firstAttribute="width" constant="32" id="zBy-2s-mDf"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="礼物" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qlj-rk-K94">
|
||||
<rect key="frame" x="18.666666666666671" y="42" width="20.666666666666671" height="12"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="10"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="0.5" colorSpace="custom" customColorSpace="calibratedRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="ztu-6E-eHt" firstAttribute="top" secondItem="lOU-2C-uQl" secondAttribute="top" constant="5" id="G4e-pn-REN"/>
|
||||
<constraint firstItem="Qlj-rk-K94" firstAttribute="centerX" secondItem="lOU-2C-uQl" secondAttribute="centerX" id="anI-2R-5Y8"/>
|
||||
<constraint firstItem="ztu-6E-eHt" firstAttribute="centerX" secondItem="lOU-2C-uQl" secondAttribute="centerX" id="kLX-uJ-2xx"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="lOU-2C-uQl" firstAttribute="top" secondItem="SLb-kc-kzU" secondAttribute="top" id="3cS-Eb-b3g"/>
|
||||
<constraint firstItem="fkP-oe-kFL" firstAttribute="width" secondItem="qTe-hh-9Qp" secondAttribute="width" id="JBb-eZ-nFt"/>
|
||||
<constraint firstItem="fkP-oe-kFL" firstAttribute="leading" secondItem="qTe-hh-9Qp" secondAttribute="trailing" id="JkN-HQ-P00"/>
|
||||
<constraint firstItem="lOU-2C-uQl" firstAttribute="width" secondItem="qTe-hh-9Qp" secondAttribute="width" id="Lrb-yK-98Z"/>
|
||||
<constraint firstItem="9BH-SU-WXz" firstAttribute="centerY" secondItem="1fj-cP-WtZ" secondAttribute="centerY" id="Mya-mG-pIy"/>
|
||||
<constraint firstItem="fkP-oe-kFL" firstAttribute="top" secondItem="SLb-kc-kzU" secondAttribute="top" id="Myw-6N-UeZ"/>
|
||||
<constraint firstItem="lOU-2C-uQl" firstAttribute="leading" secondItem="fkP-oe-kFL" secondAttribute="trailing" id="OPJ-Dw-I02"/>
|
||||
<constraint firstItem="qTe-hh-9Qp" firstAttribute="leading" secondItem="SLb-kc-kzU" secondAttribute="leading" id="PKy-1z-Z9F"/>
|
||||
<constraint firstAttribute="bottom" secondItem="qTe-hh-9Qp" secondAttribute="bottom" id="b47-5G-Q3C"/>
|
||||
<constraint firstAttribute="bottom" secondItem="fkP-oe-kFL" secondAttribute="bottom" id="bMn-bd-bU9"/>
|
||||
<constraint firstAttribute="bottom" secondItem="lOU-2C-uQl" secondAttribute="bottom" id="fSJ-SH-U69"/>
|
||||
<constraint firstItem="Qlj-rk-K94" firstAttribute="centerY" secondItem="1fj-cP-WtZ" secondAttribute="centerY" id="giV-cp-Dx9"/>
|
||||
<constraint firstItem="qTe-hh-9Qp" firstAttribute="top" secondItem="SLb-kc-kzU" secondAttribute="top" id="u8h-wd-qOr"/>
|
||||
<constraint firstAttribute="trailing" secondItem="lOU-2C-uQl" secondAttribute="trailing" id="vhu-xv-iSO"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="M47-XO-rJS" secondAttribute="bottom" id="6Hw-rv-anc"/>
|
||||
<constraint firstItem="SLb-kc-kzU" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Fi7-7u-JAq"/>
|
||||
<constraint firstAttribute="trailing" secondItem="M47-XO-rJS" secondAttribute="trailing" id="MUe-ga-Gkh"/>
|
||||
<constraint firstAttribute="trailing" secondItem="SLb-kc-kzU" secondAttribute="trailing" id="QbU-Ep-68k"/>
|
||||
<constraint firstItem="M47-XO-rJS" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="cGu-9j-fh5"/>
|
||||
<constraint firstAttribute="bottom" secondItem="SLb-kc-kzU" secondAttribute="bottom" id="haq-6b-NGt"/>
|
||||
<constraint firstItem="M47-XO-rJS" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="lMp-vY-kBZ"/>
|
||||
<constraint firstItem="SLb-kc-kzU" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="yB5-51-DJd"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<connections>
|
||||
<outlet property="guanxiBtn" destination="fdq-8O-e1N" id="whe-1H-ib7"/>
|
||||
<outlet property="guanxiLab" destination="1fj-cP-WtZ" id="54z-uc-Qtw"/>
|
||||
<outlet property="liwuBtn" destination="f0d-CC-WWx" id="IRE-QB-TPg"/>
|
||||
<outlet property="liwuImg" destination="ztu-6E-eHt" id="6s9-pe-HxZ"/>
|
||||
<outlet property="liwuLab" destination="Qlj-rk-K94" id="WGN-GZ-O0N"/>
|
||||
<outlet property="shichangBtn" destination="mCZ-uC-lab" id="Z8y-So-f6D"/>
|
||||
<outlet property="shichangLab" destination="9BH-SU-WXz" id="jJn-J1-V0u"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="47" y="-11"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="pm_guanxi" width="32" height="32"/>
|
||||
<image name="pm_liwu" width="32" height="32"/>
|
||||
<image name="pm_shichang" width="32" height="32"/>
|
||||
</resources>
|
||||
</document>
|
||||
20
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlert.h
Executable file
20
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlert.h
Executable file
@@ -0,0 +1,20 @@
|
||||
//
|
||||
// PMMoreAlert.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by bj_szd on 2023/12/25.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface PMMoreAlert : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UITableView *tableView;
|
||||
@property (copy, nonatomic) NSString *rid;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
96
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlert.m
Executable file
96
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlert.m
Executable file
@@ -0,0 +1,96 @@
|
||||
//
|
||||
// PMMoreAlert.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by bj_szd on 2023/12/25.
|
||||
//
|
||||
|
||||
#import "PMMoreAlert.h"
|
||||
#import "PMMoreAlertCell.h"
|
||||
#import "LMDeleteMiyouAlertView.h"
|
||||
|
||||
@interface PMMoreAlert () <UITableViewDataSource, UITableViewDelegate>
|
||||
|
||||
@property (nonatomic, strong) NSArray *dataArray;
|
||||
|
||||
@end
|
||||
|
||||
@implementation PMMoreAlert
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
[self createUI];
|
||||
}
|
||||
|
||||
- (void)setRid:(NSString *)rid {
|
||||
_rid = rid;
|
||||
|
||||
[self fetchData];
|
||||
}
|
||||
|
||||
- (void)fetchData {
|
||||
NSDictionary *params = @{@"rid":self.rid,@"page":@"1",@"page_limit":@"100"};
|
||||
NSString *urlStr = @"/api/auction_room/auction_room_rank";
|
||||
|
||||
WEAK_SELF
|
||||
[AFNetworkRequset.shared postRequestWithParams:params Path:urlStr Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
|
||||
weakSelf.dataArray = [PMMoreModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
|
||||
[weakSelf.tableView reloadData];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
|
||||
self.tableView.separatorStyle = NO;
|
||||
self.tableView.delegate = self;
|
||||
self.tableView.dataSource = self;
|
||||
[self.tableView registerNib:[UINib nibWithNibName:@"PMMoreAlertCell" bundle:nil] forCellReuseIdentifier:@"PMMoreAlertCell"];
|
||||
self.tableView.rowHeight = 64;
|
||||
}
|
||||
|
||||
- (IBAction)onDismiss:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
#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 {
|
||||
PMMoreAlertCell *cell = [tableView dequeueReusableCellWithIdentifier:@"PMMoreAlertCell" forIndexPath:indexPath];
|
||||
PMMoreModel *model = self.dataArray[indexPath.row];
|
||||
|
||||
if (indexPath.row < 3) {
|
||||
cell.rankImg.hidden = NO;
|
||||
cell.orderLab.hidden = YES;
|
||||
NSString *rankImgName = [NSString stringWithFormat:@"love_mtl_rank_%ld",indexPath.row+1];
|
||||
cell.rankImg.image = ImageNamed(rankImgName);
|
||||
}else {
|
||||
cell.rankImg.hidden = YES;
|
||||
cell.orderLab.hidden = NO;
|
||||
cell.orderLab.text = [NSString stringWithFormat:@"%02ld",indexPath.row+1];
|
||||
}
|
||||
|
||||
cell.model = model;
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
74
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlert.xib
Executable file
74
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlert.xib
Executable file
@@ -0,0 +1,74 @@
|
||||
<?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"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="PMMoreAlert">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="iOi-zt-Uy5">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.29999999999999999" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="PzA-fC-a6k">
|
||||
<rect key="frame" x="0.0" y="382" width="375" height="430"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="common_alert_bg" translatesAutoresizingMaskIntoConstraints="NO" id="spi-fw-0TT">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="430"/>
|
||||
</imageView>
|
||||
<tableView clipsSubviews="YES" contentMode="scaleToFill" alwaysBounceVertical="YES" style="plain" separatorStyle="default" rowHeight="-1" estimatedRowHeight="-1" sectionHeaderHeight="-1" estimatedSectionHeaderHeight="-1" sectionFooterHeight="-1" estimatedSectionFooterHeight="-1" translatesAutoresizingMaskIntoConstraints="NO" id="HLR-ha-zFy">
|
||||
<rect key="frame" x="0.0" y="55" width="375" height="340"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</tableView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="出价榜单" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="YsJ-0e-UF3">
|
||||
<rect key="frame" x="151" y="15" width="73.5" height="21"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="HLR-ha-zFy" secondAttribute="bottom" constant="35" id="428-WV-AXp"/>
|
||||
<constraint firstItem="spi-fw-0TT" firstAttribute="top" secondItem="PzA-fC-a6k" secondAttribute="top" id="5DF-0X-SX5"/>
|
||||
<constraint firstItem="HLR-ha-zFy" firstAttribute="top" secondItem="PzA-fC-a6k" secondAttribute="top" constant="55" id="5k2-f5-x62"/>
|
||||
<constraint firstItem="spi-fw-0TT" firstAttribute="leading" secondItem="PzA-fC-a6k" secondAttribute="leading" id="V4H-0g-x5k"/>
|
||||
<constraint firstAttribute="trailing" secondItem="HLR-ha-zFy" secondAttribute="trailing" id="WXx-Yx-Oq7"/>
|
||||
<constraint firstItem="HLR-ha-zFy" firstAttribute="leading" secondItem="PzA-fC-a6k" secondAttribute="leading" id="iuI-zX-IDy"/>
|
||||
<constraint firstItem="YsJ-0e-UF3" firstAttribute="centerX" secondItem="PzA-fC-a6k" secondAttribute="centerX" id="j9w-sf-Pxi"/>
|
||||
<constraint firstAttribute="bottom" secondItem="spi-fw-0TT" secondAttribute="bottom" id="jcq-og-Vfg"/>
|
||||
<constraint firstItem="YsJ-0e-UF3" firstAttribute="top" secondItem="PzA-fC-a6k" secondAttribute="top" constant="15" id="sNF-pB-bcD"/>
|
||||
<constraint firstAttribute="height" constant="430" id="sdD-kW-q9q"/>
|
||||
<constraint firstAttribute="trailing" secondItem="spi-fw-0TT" secondAttribute="trailing" id="uQV-rG-Aew"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="PzA-fC-a6k" secondAttribute="bottom" id="9Qz-br-nwq"/>
|
||||
<constraint firstAttribute="trailing" secondItem="PzA-fC-a6k" secondAttribute="trailing" id="CMa-9H-ZNA"/>
|
||||
<constraint firstItem="PzA-fC-a6k" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="QrX-RW-SNp"/>
|
||||
<constraint firstAttribute="trailing" secondItem="iOi-zt-Uy5" secondAttribute="trailing" id="auO-5z-Ce6"/>
|
||||
<constraint firstItem="iOi-zt-Uy5" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="k2y-8M-4VZ"/>
|
||||
<constraint firstAttribute="bottom" secondItem="iOi-zt-Uy5" secondAttribute="bottom" id="mdX-U3-TGT"/>
|
||||
<constraint firstItem="iOi-zt-Uy5" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="wI1-hD-BeC"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<connections>
|
||||
<outlet property="tableView" destination="HLR-ha-zFy" id="8h1-dS-jyE"/>
|
||||
<outlet property="touchImgV" destination="iOi-zt-Uy5" id="9H4-Zl-aAc"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="24" y="-173"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="common_alert_bg" width="375" height="358"/>
|
||||
</resources>
|
||||
</document>
|
||||
27
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlertCell.h
Executable file
27
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlertCell.h
Executable file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// PMMoreAlertCell.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by bj_szd on 2022/6/8.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
#import "PMMoreModel.h"
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface PMMoreAlertCell : UITableViewCell
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *rankImg;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *orderLab;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *levelImgV;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *charmImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *valueLab;
|
||||
|
||||
@property (nonatomic, strong) PMMoreModel *model;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
27
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlertCell.m
Executable file
27
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlertCell.m
Executable file
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// PMMoreAlertCell.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by bj_szd on 2022/6/8.
|
||||
//
|
||||
|
||||
#import "PMMoreAlertCell.h"
|
||||
|
||||
@implementation PMMoreAlertCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
}
|
||||
|
||||
- (void)setModel:(PMMoreModel *)model {
|
||||
_model = model;
|
||||
|
||||
_nicknameLab.text = model.nick_name;
|
||||
_valueLab.text = model.total_price;
|
||||
[_avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic]];
|
||||
[_levelImgV sd_setImageWithURL:[NSURL URLWithString:model.contribution_level_image]];
|
||||
[_charmImgV sd_setImageWithURL:[NSURL URLWithString:model.charm_level_image]];
|
||||
}
|
||||
|
||||
@end
|
||||
121
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlertCell.xib
Executable file
121
SweetParty/主类/音悦新增/拍卖厅/PMMoreAlertCell.xib
Executable file
@@ -0,0 +1,121 @@
|
||||
<?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="none" indentationWidth="10" rowHeight="166" id="KGk-i7-Jjw" customClass="PMMoreAlertCell">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="76"/>
|
||||
<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="375" height="76"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="3R1-bh-gyx">
|
||||
<rect key="frame" x="44" y="16" width="44" height="44"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="5Nk-K6-VDf"/>
|
||||
<constraint firstAttribute="width" constant="44" id="8k2-CZ-usO"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="22"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="borderWidth">
|
||||
<real key="value" value="0.0"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
|
||||
<color key="value" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Zpa-89-lCL">
|
||||
<rect key="frame" x="93" y="16" width="37.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>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="rUb-1x-xhu">
|
||||
<rect key="frame" x="93" y="38" width="40" height="20"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="0gx-Zd-XXd"/>
|
||||
<constraint firstAttribute="width" constant="40" id="R7f-Dn-jqo"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wZc-kA-Cae">
|
||||
<rect key="frame" x="137" y="38" width="40" height="20"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="20" id="I6N-xY-qxF"/>
|
||||
<constraint firstAttribute="width" constant="40" id="SVO-Gj-k9B"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="room_person_charm" translatesAutoresizingMaskIntoConstraints="NO" id="HRq-tx-Vg3">
|
||||
<rect key="frame" x="321.5" y="26" width="24" height="24"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="24" id="H1D-ES-QVw"/>
|
||||
<constraint firstAttribute="width" constant="24" id="lwg-HR-brK"/>
|
||||
</constraints>
|
||||
</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="MkP-zl-nr8">
|
||||
<rect key="frame" x="350.5" y="29.5" width="9.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>
|
||||
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="love_mtl_rank_1" translatesAutoresizingMaskIntoConstraints="NO" id="MoE-nI-Fio">
|
||||
<rect key="frame" x="15" y="26" width="24" height="24"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="24" id="IOK-il-hnI"/>
|
||||
<constraint firstAttribute="width" constant="24" id="yCz-LM-Xxu"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label hidden="YES" opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="04" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QoN-Cr-c3r">
|
||||
<rect key="frame" x="15" y="27.5" width="24" 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>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="rUb-1x-xhu" firstAttribute="top" secondItem="Zpa-89-lCL" secondAttribute="bottom" constant="5" id="83g-V4-cr2"/>
|
||||
<constraint firstItem="HRq-tx-Vg3" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="B2e-Ez-mdb"/>
|
||||
<constraint firstItem="MkP-zl-nr8" firstAttribute="leading" secondItem="HRq-tx-Vg3" secondAttribute="trailing" constant="5" id="C1i-pP-1oh"/>
|
||||
<constraint firstItem="rUb-1x-xhu" firstAttribute="leading" secondItem="Zpa-89-lCL" secondAttribute="leading" id="HQk-AS-X2a"/>
|
||||
<constraint firstAttribute="trailing" secondItem="MkP-zl-nr8" secondAttribute="trailing" constant="15" id="N8y-BI-hw5"/>
|
||||
<constraint firstItem="wZc-kA-Cae" firstAttribute="centerY" secondItem="rUb-1x-xhu" secondAttribute="centerY" id="OmT-nO-V7b"/>
|
||||
<constraint firstItem="QoN-Cr-c3r" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Pj2-fb-gDW"/>
|
||||
<constraint firstItem="MoE-nI-Fio" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="aOr-7T-YSA"/>
|
||||
<constraint firstItem="wZc-kA-Cae" firstAttribute="leading" secondItem="rUb-1x-xhu" secondAttribute="trailing" constant="4" id="jpY-6s-2Zw"/>
|
||||
<constraint firstItem="QoN-Cr-c3r" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="kcN-pu-bt9"/>
|
||||
<constraint firstItem="MoE-nI-Fio" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="lhh-ZI-4EB"/>
|
||||
<constraint firstItem="Zpa-89-lCL" firstAttribute="top" secondItem="3R1-bh-gyx" secondAttribute="top" id="lmV-Qi-LCM"/>
|
||||
<constraint firstItem="Zpa-89-lCL" firstAttribute="leading" secondItem="3R1-bh-gyx" secondAttribute="trailing" constant="5" id="stg-cA-HhJ"/>
|
||||
<constraint firstItem="3R1-bh-gyx" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="tx2-9L-sFE"/>
|
||||
<constraint firstItem="3R1-bh-gyx" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="44" id="u1r-M7-Iof"/>
|
||||
<constraint firstItem="MkP-zl-nr8" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="xoL-Bq-zIs"/>
|
||||
</constraints>
|
||||
</tableViewCellContentView>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<connections>
|
||||
<outlet property="avatarImgV" destination="3R1-bh-gyx" id="9Zy-t2-W0g"/>
|
||||
<outlet property="charmImgV" destination="wZc-kA-Cae" id="ubk-fR-dvJ"/>
|
||||
<outlet property="levelImgV" destination="rUb-1x-xhu" id="kCQ-VB-3Ly"/>
|
||||
<outlet property="nicknameLab" destination="Zpa-89-lCL" id="wFu-tM-DSj"/>
|
||||
<outlet property="orderLab" destination="QoN-Cr-c3r" id="tzQ-Ye-ULs"/>
|
||||
<outlet property="rankImg" destination="MoE-nI-Fio" id="HeT-N5-iOy"/>
|
||||
<outlet property="valueLab" destination="MkP-zl-nr8" id="8Vg-jG-lTz"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="-7" y="17"/>
|
||||
</tableViewCell>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="love_mtl_rank_1" width="16" height="16"/>
|
||||
<image name="room_person_charm" width="24" height="24"/>
|
||||
</resources>
|
||||
</document>
|
||||
23
SweetParty/主类/音悦新增/拍卖厅/PMMoreModel.h
Normal file
23
SweetParty/主类/音悦新增/拍卖厅/PMMoreModel.h
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// PMMoreModel.h
|
||||
// SweetParty
|
||||
//
|
||||
// Created by Mac on 2024/12/5.
|
||||
//
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface PMMoreModel : NSObject
|
||||
|
||||
@property (nonatomic, copy) NSString *nick_name;
|
||||
@property (nonatomic, copy) NSString *charm_level_image;
|
||||
@property (nonatomic, copy) NSString *contribution_level_image;
|
||||
@property (nonatomic, copy) NSString *auction_uid;
|
||||
@property (nonatomic, copy) NSString *total_price;
|
||||
@property (nonatomic, copy) NSString *head_pic;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
12
SweetParty/主类/音悦新增/拍卖厅/PMMoreModel.m
Normal file
12
SweetParty/主类/音悦新增/拍卖厅/PMMoreModel.m
Normal file
@@ -0,0 +1,12 @@
|
||||
//
|
||||
// PMMoreModel.m
|
||||
// SweetParty
|
||||
//
|
||||
// Created by Mac on 2024/12/5.
|
||||
//
|
||||
|
||||
#import "PMMoreModel.h"
|
||||
|
||||
@implementation PMMoreModel
|
||||
|
||||
@end
|
||||
25
SweetParty/主类/音悦新增/拍卖厅/YYPMPickGiftView.h
Executable file
25
SweetParty/主类/音悦新增/拍卖厅/YYPMPickGiftView.h
Executable file
@@ -0,0 +1,25 @@
|
||||
//
|
||||
// YYPMPickGiftView.h
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface YYPMPickGiftView : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
|
||||
|
||||
@property(nonatomic, copy) NSString *rid;
|
||||
@property(nonatomic, copy) NSString *relation_id;//关系ID
|
||||
@property(nonatomic, copy) NSString *day;//天数
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
119
SweetParty/主类/音悦新增/拍卖厅/YYPMPickGiftView.m
Executable file
119
SweetParty/主类/音悦新增/拍卖厅/YYPMPickGiftView.m
Executable file
@@ -0,0 +1,119 @@
|
||||
//
|
||||
// YYPMPickGiftView.m
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import "YYPMPickGiftView.h"
|
||||
#import "BJGiftItemCell.h"
|
||||
#import "HLHorizontalPageLayout.h"
|
||||
#import "BJRoomGiftModel.h"
|
||||
|
||||
@interface YYPMPickGiftView ()<UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
|
||||
|
||||
@property (nonatomic, strong) NSArray *dataArray;
|
||||
@property (nonatomic, assign) NSInteger selectedIndex;
|
||||
|
||||
@end
|
||||
|
||||
@implementation YYPMPickGiftView
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
self.selectedIndex = -1;
|
||||
|
||||
[self createUI];
|
||||
|
||||
[self fetchGiftData];
|
||||
}
|
||||
|
||||
- (void)fetchGiftData {
|
||||
NSDictionary *params = @{};
|
||||
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/auction_room/get_gift_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
|
||||
NSArray *arr = [BJRoomGiftModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
|
||||
self.dataArray = arr;
|
||||
[self.collectionView reloadData];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-30*2, 46)];
|
||||
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
|
||||
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
|
||||
CGFloat itemW = (ScreenWidth-15*2-15*2)/3;
|
||||
layout.itemSize = CGSizeMake(itemW, 126);
|
||||
layout.minimumInteritemSpacing = 15;
|
||||
layout.minimumLineSpacing = 15;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 15, 0, 15);
|
||||
|
||||
_collectionView.collectionViewLayout = layout;
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
[_collectionView registerClass:[BJGiftItemCell class] forCellWithReuseIdentifier:@"BJGiftItemCell"];
|
||||
_collectionView.showsHorizontalScrollIndicator = NO;
|
||||
_collectionView.pagingEnabled = YES;
|
||||
_collectionView.multipleTouchEnabled = NO;
|
||||
}
|
||||
|
||||
- (IBAction)onDismiss:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
- (IBAction)onConfirm:(id)sender {
|
||||
if (self.selectedIndex == -1) {
|
||||
[HelpPageDefine showMessage:@"请选择礼物"];
|
||||
return;
|
||||
}
|
||||
BJRoomGiftModel *model = self.dataArray[self.selectedIndex];
|
||||
|
||||
NSDictionary *params = @{@"rid":C_string(self.rid), @"relation_id":C_string(self.relation_id), @"day":C_string(self.day), @"gid":model.gid};
|
||||
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/auction_room/options_user_auction_info" Loading:NO Hud:YES Success:^(id _Nonnull responseDic) {
|
||||
[self removeFromSuperview];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
|
||||
}
|
||||
|
||||
#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{
|
||||
BJGiftItemCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"BJGiftItemCell" forIndexPath:indexPath];
|
||||
BJRoomGiftModel *model = self.dataArray[indexPath.row];
|
||||
// cell.model = model;
|
||||
[cell configApplyupMicModel:model];
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
BJRoomGiftModel *model = self.dataArray[indexPath.row];
|
||||
self.selectedIndex = indexPath.row;
|
||||
for (BJRoomGiftModel *model in self.dataArray) {
|
||||
model.isItemSelected = NO;
|
||||
}
|
||||
model.isItemSelected = YES;
|
||||
[self.collectionView reloadData];
|
||||
}
|
||||
|
||||
@end
|
||||
120
SweetParty/主类/音悦新增/拍卖厅/YYPMPickGiftView.xib
Executable file
120
SweetParty/主类/音悦新增/拍卖厅/YYPMPickGiftView.xib
Executable file
@@ -0,0 +1,120 @@
|
||||
<?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"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="YYPMPickGiftView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Tg5-mr-M63">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.49647200190000002" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="e3c-c8-hjW">
|
||||
<rect key="frame" x="0.0" y="367" width="375" height="445"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="common_alert_bg" translatesAutoresizingMaskIntoConstraints="NO" id="mJ2-Ui-FG3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="445"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="选择礼物" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OKo-D1-veG">
|
||||
<rect key="frame" x="155" y="15" width="65.5" height="19.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bRc-Zq-7P8">
|
||||
<rect key="frame" x="30" y="355" width="315" height="46"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="46" id="C1g-zl-vDP"/>
|
||||
</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" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</state>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="23"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onConfirm:" destination="iN0-l3-epB" eventType="touchUpInside" id="khQ-Ik-8fQ"/>
|
||||
</connections>
|
||||
</button>
|
||||
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="5IG-xR-ASk">
|
||||
<rect key="frame" x="0.0" y="55" width="375" height="270"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="270" id="Zus-jD-aRT"/>
|
||||
</constraints>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="FiI-zu-2w6">
|
||||
<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" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="579-h6-0Kd">
|
||||
<rect key="frame" x="7" y="10" width="30" height="30"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="30" id="R6I-5p-Utc"/>
|
||||
<constraint firstAttribute="width" constant="30" id="jdg-pU-S5p"/>
|
||||
</constraints>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="whiteBack"/>
|
||||
<connections>
|
||||
<action selector="onDismiss:" destination="iN0-l3-epB" eventType="touchUpInside" id="U4B-MT-br2"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="mJ2-Ui-FG3" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" id="166-Fh-NC1"/>
|
||||
<constraint firstItem="5IG-xR-ASk" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="41G-2z-bMB"/>
|
||||
<constraint firstAttribute="trailing" secondItem="bRc-Zq-7P8" secondAttribute="trailing" constant="30" id="4HR-nJ-CBr"/>
|
||||
<constraint firstItem="579-h6-0Kd" firstAttribute="centerY" secondItem="OKo-D1-veG" secondAttribute="centerY" id="8sX-lu-IYI"/>
|
||||
<constraint firstAttribute="height" constant="445" id="FQK-QB-MuB"/>
|
||||
<constraint firstAttribute="bottom" secondItem="mJ2-Ui-FG3" secondAttribute="bottom" id="JAF-6d-zdl"/>
|
||||
<constraint firstItem="579-h6-0Kd" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" constant="7" id="VWv-x8-k85"/>
|
||||
<constraint firstAttribute="trailing" secondItem="mJ2-Ui-FG3" secondAttribute="trailing" id="W4f-68-1JU"/>
|
||||
<constraint firstItem="bRc-Zq-7P8" firstAttribute="top" secondItem="5IG-xR-ASk" secondAttribute="bottom" constant="30" id="X68-p4-TuF"/>
|
||||
<constraint firstItem="5IG-xR-ASk" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="55" id="hD8-cb-wfA"/>
|
||||
<constraint firstItem="mJ2-Ui-FG3" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="hDc-JA-W36"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="15" id="k9y-J3-zwD"/>
|
||||
<constraint firstItem="bRc-Zq-7P8" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" constant="30" id="onJ-JO-9Zf"/>
|
||||
<constraint firstAttribute="trailing" secondItem="5IG-xR-ASk" secondAttribute="trailing" id="vWj-dv-cyO"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="x4a-8A-6j8"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Ajp-Bi-NrC"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="C1U-cI-Wga"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Tg5-mr-M63" secondAttribute="bottom" id="edO-pm-1fM"/>
|
||||
<constraint firstAttribute="bottom" secondItem="e3c-c8-hjW" secondAttribute="bottom" id="jQU-jb-oOs"/>
|
||||
<constraint firstAttribute="trailing" secondItem="e3c-c8-hjW" secondAttribute="trailing" id="phH-ga-80f"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Tg5-mr-M63" secondAttribute="trailing" id="tQS-q4-FdB"/>
|
||||
<constraint firstItem="e3c-c8-hjW" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="uGX-78-j8U"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<connections>
|
||||
<outlet property="collectionView" destination="5IG-xR-ASk" id="zVV-hw-brb"/>
|
||||
<outlet property="confirmBtn" destination="bRc-Zq-7P8" id="EHY-bQ-Ajz"/>
|
||||
<outlet property="touchImgV" destination="Tg5-mr-M63" id="rZP-D8-cyf"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="131.8840579710145" y="95.758928571428569"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="common_alert_bg" width="375" height="358"/>
|
||||
<image name="whiteBack" width="8.5" height="15"/>
|
||||
</resources>
|
||||
</document>
|
||||
23
SweetParty/主类/音悦新增/拍卖厅/YYPMPickRelationView.h
Executable file
23
SweetParty/主类/音悦新增/拍卖厅/YYPMPickRelationView.h
Executable file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// YYPMPickRelationView.h
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface YYPMPickRelationView : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *applyBtn;
|
||||
|
||||
@property(nonatomic, copy) NSString *rid;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
117
SweetParty/主类/音悦新增/拍卖厅/YYPMPickRelationView.m
Executable file
117
SweetParty/主类/音悦新增/拍卖厅/YYPMPickRelationView.m
Executable file
@@ -0,0 +1,117 @@
|
||||
//
|
||||
// YYPMPickRelationView.m
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import "YYPMPickRelationView.h"
|
||||
#import "YYJYRelationCell.h"
|
||||
#import "YYPMPickTimeView.h"
|
||||
|
||||
@interface YYPMPickRelationView ()<UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
|
||||
|
||||
@property (nonatomic, strong) NSArray *dataArray;
|
||||
@property (nonatomic, assign) NSInteger selectedIndex;
|
||||
|
||||
@end
|
||||
|
||||
@implementation YYPMPickRelationView
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
self.selectedIndex = -1;
|
||||
|
||||
[self createUI];
|
||||
|
||||
[self fetchRelationData];
|
||||
}
|
||||
|
||||
- (IBAction)onDismiss:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
[self.applyBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-30*2, 46)];
|
||||
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
|
||||
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
|
||||
CGFloat itemW = (ScreenWidth-15*2-15*2)/3;
|
||||
layout.itemSize = CGSizeMake(itemW, 44);
|
||||
layout.minimumInteritemSpacing = 15;
|
||||
layout.minimumLineSpacing = 15;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 15, 0, 15);
|
||||
|
||||
_collectionView.collectionViewLayout = layout;
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
[_collectionView registerNib:[UINib nibWithNibName:@"YYJYRelationCell" bundle:nil] forCellWithReuseIdentifier:@"YYJYRelationCell"];
|
||||
}
|
||||
|
||||
- (void)fetchRelationData {
|
||||
NSDictionary *params = @{@"type":@"2"};
|
||||
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/dating_room/get_relation_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
|
||||
NSArray *arr = [YYJYRelationModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
|
||||
self.dataArray = arr;
|
||||
[self.collectionView reloadData];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (IBAction)onApplyUp:(id)sender {
|
||||
if (self.selectedIndex == -1) {
|
||||
[HelpPageDefine showMessage:@"请选择关系"];
|
||||
return;
|
||||
}
|
||||
|
||||
YYJYRelationModel *model = self.dataArray[self.selectedIndex];
|
||||
|
||||
YYPMPickTimeView *view = LoadNib(@"YYPMPickTimeView");
|
||||
view.frame = [UIScreen mainScreen].bounds;
|
||||
[MainWindow() addSubview:view];
|
||||
view.rid = self.rid;
|
||||
view.relation_id = model.id;
|
||||
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
#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{
|
||||
YYJYRelationCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"YYJYRelationCell" forIndexPath:indexPath];
|
||||
YYJYRelationModel *model = self.dataArray[indexPath.row];
|
||||
cell.titleLab.text = model.name;
|
||||
if (self.selectedIndex == indexPath.row) {
|
||||
cell.bgImgV.image = ImageNamed(@"relation_item_sel");
|
||||
cell.titleLab.textColor = kBlackColor;
|
||||
}else {
|
||||
cell.bgImgV.image = ImageNamed(@"relation_item_nor");
|
||||
cell.titleLab.textColor = kWhiteColor;
|
||||
}
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
self.selectedIndex = indexPath.row;
|
||||
[self.collectionView reloadData];
|
||||
}
|
||||
|
||||
@end
|
||||
121
SweetParty/主类/音悦新增/拍卖厅/YYPMPickRelationView.xib
Executable file
121
SweetParty/主类/音悦新增/拍卖厅/YYPMPickRelationView.xib
Executable file
@@ -0,0 +1,121 @@
|
||||
<?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"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="YYPMPickRelationView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Tg5-mr-M63">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.49647200190000002" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="e3c-c8-hjW">
|
||||
<rect key="frame" x="0.0" y="532" width="375" height="280"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="common_alert_bg" translatesAutoresizingMaskIntoConstraints="NO" id="1QI-2R-ixK">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="280"/>
|
||||
</imageView>
|
||||
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MGV-FA-EHP">
|
||||
<rect key="frame" x="7" y="10.5" width="30" height="30"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="30" id="hqP-9p-hu1"/>
|
||||
<constraint firstAttribute="width" constant="30" id="o1I-ZG-ROa"/>
|
||||
</constraints>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="whiteBack"/>
|
||||
<connections>
|
||||
<action selector="onDismiss:" destination="iN0-l3-epB" eventType="touchUpInside" id="3p7-kp-wcO"/>
|
||||
</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="OKo-D1-veG">
|
||||
<rect key="frame" x="153" y="15" width="69.5" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bRc-Zq-7P8">
|
||||
<rect key="frame" x="34" y="199" width="307" height="46"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="46" id="C1g-zl-vDP"/>
|
||||
</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="确定"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="23"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onApplyUp:" destination="iN0-l3-epB" eventType="touchUpInside" id="Jq1-fr-dja"/>
|
||||
</connections>
|
||||
</button>
|
||||
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="5IG-xR-ASk">
|
||||
<rect key="frame" x="0.0" y="55" width="375" height="124"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="FiI-zu-2w6">
|
||||
<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>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="5IG-xR-ASk" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="41G-2z-bMB"/>
|
||||
<constraint firstAttribute="trailing" secondItem="bRc-Zq-7P8" secondAttribute="trailing" constant="34" id="4HR-nJ-CBr"/>
|
||||
<constraint firstItem="5IG-xR-ASk" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="55" id="6EO-Cq-SuX"/>
|
||||
<constraint firstAttribute="height" constant="280" id="FQK-QB-MuB"/>
|
||||
<constraint firstAttribute="trailing" secondItem="1QI-2R-ixK" secondAttribute="trailing" id="KPH-LV-ftz"/>
|
||||
<constraint firstItem="1QI-2R-ixK" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="aQF-em-meM"/>
|
||||
<constraint firstAttribute="bottom" secondItem="bRc-Zq-7P8" secondAttribute="bottom" constant="35" id="aRn-R0-XsJ"/>
|
||||
<constraint firstItem="1QI-2R-ixK" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" id="fub-0y-YS4"/>
|
||||
<constraint firstItem="bRc-Zq-7P8" firstAttribute="top" secondItem="5IG-xR-ASk" secondAttribute="bottom" constant="20" id="hpV-vX-jr4"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="15" id="k9y-J3-zwD"/>
|
||||
<constraint firstItem="bRc-Zq-7P8" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" constant="34" id="onJ-JO-9Zf"/>
|
||||
<constraint firstItem="MGV-FA-EHP" firstAttribute="centerY" secondItem="OKo-D1-veG" secondAttribute="centerY" id="sfu-wV-dES"/>
|
||||
<constraint firstAttribute="trailing" secondItem="5IG-xR-ASk" secondAttribute="trailing" id="vWj-dv-cyO"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="x4a-8A-6j8"/>
|
||||
<constraint firstAttribute="bottom" secondItem="1QI-2R-ixK" secondAttribute="bottom" id="y70-Oe-8ot"/>
|
||||
<constraint firstItem="MGV-FA-EHP" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" constant="7" id="zVA-mX-1oV"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="15"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="e3c-c8-hjW" secondAttribute="bottom" id="4EO-5X-MPB"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Ajp-Bi-NrC"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="C1U-cI-Wga"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Tg5-mr-M63" secondAttribute="bottom" id="edO-pm-1fM"/>
|
||||
<constraint firstAttribute="trailing" secondItem="e3c-c8-hjW" secondAttribute="trailing" id="phH-ga-80f"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Tg5-mr-M63" secondAttribute="trailing" id="tQS-q4-FdB"/>
|
||||
<constraint firstItem="e3c-c8-hjW" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="uGX-78-j8U"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<connections>
|
||||
<outlet property="applyBtn" destination="bRc-Zq-7P8" id="ora-4p-ttN"/>
|
||||
<outlet property="collectionView" destination="5IG-xR-ASk" id="zVV-hw-brb"/>
|
||||
<outlet property="touchImgV" destination="Tg5-mr-M63" id="rZP-D8-cyf"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="138" y="-91"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="common_alert_bg" width="375" height="358"/>
|
||||
<image name="whiteBack" width="8.5" height="15"/>
|
||||
</resources>
|
||||
</document>
|
||||
24
SweetParty/主类/音悦新增/拍卖厅/YYPMPickTimeView.h
Executable file
24
SweetParty/主类/音悦新增/拍卖厅/YYPMPickTimeView.h
Executable file
@@ -0,0 +1,24 @@
|
||||
//
|
||||
// YYPMPickTimeView.h
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface YYPMPickTimeView : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *applyBtn;
|
||||
|
||||
@property(nonatomic, copy) NSString *rid;
|
||||
@property(nonatomic, copy) NSString *relation_id;//关系ID
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
117
SweetParty/主类/音悦新增/拍卖厅/YYPMPickTimeView.m
Executable file
117
SweetParty/主类/音悦新增/拍卖厅/YYPMPickTimeView.m
Executable file
@@ -0,0 +1,117 @@
|
||||
//
|
||||
// YYPMPickTimeView.m
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import "YYPMPickTimeView.h"
|
||||
#import "YYJYRelationCell.h"
|
||||
#import "YYPMPickGiftView.h"
|
||||
|
||||
@interface YYPMPickTimeView ()<UICollectionViewDataSource, UICollectionViewDelegateFlowLayout>
|
||||
|
||||
@property (nonatomic, strong) NSArray *dataArray;
|
||||
@property (nonatomic, assign) NSInteger selectedIndex;
|
||||
|
||||
@end
|
||||
|
||||
@implementation YYPMPickTimeView
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
self.selectedIndex = -1;
|
||||
|
||||
[self createUI];
|
||||
|
||||
[self fetchDaysData];
|
||||
}
|
||||
|
||||
- (IBAction)onDismiss:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
[self.applyBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-30*2, 46)];
|
||||
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
|
||||
UICollectionViewFlowLayout *layout = [[UICollectionViewFlowLayout alloc] init];
|
||||
CGFloat itemW = (ScreenWidth-15*2-15*2)/3;
|
||||
layout.itemSize = CGSizeMake(itemW, 44);
|
||||
layout.minimumInteritemSpacing = 15;
|
||||
layout.minimumLineSpacing = 15;
|
||||
layout.sectionInset = UIEdgeInsetsMake(0, 15, 0, 15);
|
||||
|
||||
_collectionView.collectionViewLayout = layout;
|
||||
_collectionView.delegate = self;
|
||||
_collectionView.dataSource = self;
|
||||
[_collectionView registerNib:[UINib nibWithNibName:@"YYJYRelationCell" bundle:nil] forCellWithReuseIdentifier:@"YYJYRelationCell"];
|
||||
}
|
||||
|
||||
- (void)fetchDaysData {
|
||||
NSDictionary *params = @{};
|
||||
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/auction_room/get_day_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
|
||||
NSArray *arr = [YYJYRelationModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
|
||||
self.dataArray = arr;
|
||||
[self.collectionView reloadData];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (IBAction)onApplyUp:(id)sender {
|
||||
if (self.selectedIndex == -1) {
|
||||
[HelpPageDefine showMessage:@"请选择时长"];
|
||||
return;
|
||||
}
|
||||
YYJYRelationModel *model = self.dataArray[self.selectedIndex];
|
||||
|
||||
YYPMPickGiftView *view = LoadNib(@"YYPMPickGiftView");
|
||||
view.frame = [UIScreen mainScreen].bounds;
|
||||
[MainWindow() addSubview:view];
|
||||
view.rid = self.rid;
|
||||
view.relation_id = self.relation_id;
|
||||
view.day = model.day;
|
||||
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
#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{
|
||||
YYJYRelationCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"YYJYRelationCell" forIndexPath:indexPath];
|
||||
YYJYRelationModel *model = self.dataArray[indexPath.row];
|
||||
cell.titleLab.text = [NSString stringWithFormat:@"%@天", model.day];
|
||||
if (self.selectedIndex == indexPath.row) {
|
||||
cell.bgImgV.image = ImageNamed(@"relation_item_sel");
|
||||
cell.titleLab.textColor = kBlackColor;
|
||||
}else {
|
||||
cell.bgImgV.image = ImageNamed(@"relation_item_nor");
|
||||
cell.titleLab.textColor = kWhiteColor;
|
||||
}
|
||||
|
||||
return cell;
|
||||
}
|
||||
|
||||
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
|
||||
self.selectedIndex = indexPath.row;
|
||||
[self.collectionView reloadData];
|
||||
}
|
||||
|
||||
@end
|
||||
123
SweetParty/主类/音悦新增/拍卖厅/YYPMPickTimeView.xib
Executable file
123
SweetParty/主类/音悦新增/拍卖厅/YYPMPickTimeView.xib
Executable file
@@ -0,0 +1,123 @@
|
||||
<?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"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="YYPMPickTimeView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Tg5-mr-M63">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.49647200190000002" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="e3c-c8-hjW">
|
||||
<rect key="frame" x="0.0" y="532" width="375" height="280"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="common_alert_bg" translatesAutoresizingMaskIntoConstraints="NO" id="1QI-2R-ixK">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="280"/>
|
||||
</imageView>
|
||||
<button hidden="YES" opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="MGV-FA-EHP">
|
||||
<rect key="frame" x="7" y="10.5" width="30" height="30"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="30" id="hqP-9p-hu1"/>
|
||||
<constraint firstAttribute="width" constant="30" id="o1I-ZG-ROa"/>
|
||||
</constraints>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" image="whiteBack"/>
|
||||
<connections>
|
||||
<action selector="onDismiss:" destination="iN0-l3-epB" eventType="touchUpInside" id="3p7-kp-wcO"/>
|
||||
</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="OKo-D1-veG">
|
||||
<rect key="frame" x="135.5" y="15" width="104" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bRc-Zq-7P8">
|
||||
<rect key="frame" x="30" y="201" width="315" height="44"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="C1g-zl-vDP"/>
|
||||
</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" 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="onApplyUp:" destination="iN0-l3-epB" eventType="touchUpInside" id="Jq1-fr-dja"/>
|
||||
</connections>
|
||||
</button>
|
||||
<collectionView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" showsHorizontalScrollIndicator="NO" showsVerticalScrollIndicator="NO" dataMode="none" translatesAutoresizingMaskIntoConstraints="NO" id="5IG-xR-ASk">
|
||||
<rect key="frame" x="0.0" y="55" width="375" height="126"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<collectionViewFlowLayout key="collectionViewLayout" minimumLineSpacing="10" minimumInteritemSpacing="10" id="FiI-zu-2w6">
|
||||
<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>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="5IG-xR-ASk" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="41G-2z-bMB"/>
|
||||
<constraint firstAttribute="trailing" secondItem="bRc-Zq-7P8" secondAttribute="trailing" constant="30" id="4HR-nJ-CBr"/>
|
||||
<constraint firstItem="5IG-xR-ASk" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="55" id="6EO-Cq-SuX"/>
|
||||
<constraint firstAttribute="height" constant="280" id="FQK-QB-MuB"/>
|
||||
<constraint firstAttribute="trailing" secondItem="1QI-2R-ixK" secondAttribute="trailing" id="KPH-LV-ftz"/>
|
||||
<constraint firstItem="1QI-2R-ixK" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="aQF-em-meM"/>
|
||||
<constraint firstAttribute="bottom" secondItem="bRc-Zq-7P8" secondAttribute="bottom" constant="35" id="aRn-R0-XsJ"/>
|
||||
<constraint firstItem="1QI-2R-ixK" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" id="fub-0y-YS4"/>
|
||||
<constraint firstItem="bRc-Zq-7P8" firstAttribute="top" secondItem="5IG-xR-ASk" secondAttribute="bottom" constant="20" id="hpV-vX-jr4"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="15" id="k9y-J3-zwD"/>
|
||||
<constraint firstItem="bRc-Zq-7P8" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" constant="30" id="onJ-JO-9Zf"/>
|
||||
<constraint firstItem="MGV-FA-EHP" firstAttribute="centerY" secondItem="OKo-D1-veG" secondAttribute="centerY" id="sfu-wV-dES"/>
|
||||
<constraint firstAttribute="trailing" secondItem="5IG-xR-ASk" secondAttribute="trailing" id="vWj-dv-cyO"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="x4a-8A-6j8"/>
|
||||
<constraint firstAttribute="bottom" secondItem="1QI-2R-ixK" secondAttribute="bottom" id="y70-Oe-8ot"/>
|
||||
<constraint firstItem="MGV-FA-EHP" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" constant="7" id="zVA-mX-1oV"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="15"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="e3c-c8-hjW" secondAttribute="bottom" id="4EO-5X-MPB"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Ajp-Bi-NrC"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="C1U-cI-Wga"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Tg5-mr-M63" secondAttribute="bottom" id="edO-pm-1fM"/>
|
||||
<constraint firstAttribute="trailing" secondItem="e3c-c8-hjW" secondAttribute="trailing" id="phH-ga-80f"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Tg5-mr-M63" secondAttribute="trailing" id="tQS-q4-FdB"/>
|
||||
<constraint firstItem="e3c-c8-hjW" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="uGX-78-j8U"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<connections>
|
||||
<outlet property="applyBtn" destination="bRc-Zq-7P8" id="ora-4p-ttN"/>
|
||||
<outlet property="collectionView" destination="5IG-xR-ASk" id="zVV-hw-brb"/>
|
||||
<outlet property="touchImgV" destination="Tg5-mr-M63" id="rZP-D8-cyf"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="131.8840579710145" y="95.758928571428569"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="common_alert_bg" width="375" height="358"/>
|
||||
<image name="whiteBack" width="8.5" height="15"/>
|
||||
</resources>
|
||||
</document>
|
||||
23
SweetParty/主类/音悦新增/拍卖厅/YYPMSelfAlert.h
Executable file
23
SweetParty/主类/音悦新增/拍卖厅/YYPMSelfAlert.h
Executable file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// YYPMSelfAlert.h
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface YYPMSelfAlert : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *resultLab;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
|
||||
|
||||
@property (nonatomic, strong) NSDictionary *dataDict;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
38
SweetParty/主类/音悦新增/拍卖厅/YYPMSelfAlert.m
Executable file
38
SweetParty/主类/音悦新增/拍卖厅/YYPMSelfAlert.m
Executable file
@@ -0,0 +1,38 @@
|
||||
//
|
||||
// YYPMSelfAlert.m
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import "YYPMSelfAlert.h"
|
||||
|
||||
@interface YYPMSelfAlert ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation YYPMSelfAlert
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
[self createUI];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
[self.confirmBtn styleGradiBlueColor];
|
||||
}
|
||||
|
||||
- (void)setDataDict:(NSDictionary *)dataDict {
|
||||
_dataDict = dataDict;
|
||||
|
||||
NSString *nick_name = [dataDict[@"sign_user_info"] safeStringForKey:@"nick_name"];
|
||||
self.resultLab.text = [NSString stringWithFormat:@"您和%@已经是%@关系了", nick_name, dataDict[@"relation_name"]];
|
||||
}
|
||||
|
||||
- (IBAction)onConfirm:(id)sender {
|
||||
[self removeFromSuperview];
|
||||
}
|
||||
|
||||
@end
|
||||
117
SweetParty/主类/音悦新增/拍卖厅/YYPMSelfAlert.xib
Executable file
117
SweetParty/主类/音悦新增/拍卖厅/YYPMSelfAlert.xib
Executable file
@@ -0,0 +1,117 @@
|
||||
<?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"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="YYPMSelfAlert">
|
||||
<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="Tg5-mr-M63">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.49647200190000002" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="e3c-c8-hjW">
|
||||
<rect key="frame" x="12" y="233" width="390" height="430"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="tankuang_bg" translatesAutoresizingMaskIntoConstraints="NO" id="mJ2-Ui-FG3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="390" height="430"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="拍卖成功" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OKo-D1-veG">
|
||||
<rect key="frame" x="160.5" y="22" width="69.5" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="xin_qianyue_result" translatesAutoresizingMaskIntoConstraints="NO" id="wq5-SZ-nrX">
|
||||
<rect key="frame" x="87.5" y="50" width="215" height="215"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="您和会飞的猫已经是情侣关系了" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="F7K-Tg-1hU">
|
||||
<rect key="frame" x="66.5" y="316.5" width="257" height="21.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="5IN-5o-bUb">
|
||||
<rect key="frame" x="115" y="357" width="160" height="44"/>
|
||||
<color key="backgroundColor" red="1" green="0.59215686270000001" blue="0.8980392157" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="0iM-sN-klc"/>
|
||||
<constraint firstAttribute="width" constant="160" id="WX9-W2-lJh"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
|
||||
<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="22"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onConfirm:" destination="iN0-l3-epB" eventType="touchUpInside" id="SEh-7D-25a"/>
|
||||
</connections>
|
||||
</button>
|
||||
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pm_success_1" translatesAutoresizingMaskIntoConstraints="NO" id="Tmr-0o-mlE">
|
||||
<rect key="frame" x="110.5" y="285" width="169.5" height="17.5"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="恭喜您竞拍成功!" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="GzP-hg-VGA">
|
||||
<rect key="frame" x="113" y="282" width="164" height="24"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
|
||||
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" 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="mJ2-Ui-FG3" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" id="166-Fh-NC1"/>
|
||||
<constraint firstItem="wq5-SZ-nrX" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="5qO-gh-M69"/>
|
||||
<constraint firstItem="F7K-Tg-1hU" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="8na-xw-evR"/>
|
||||
<constraint firstItem="Tmr-0o-mlE" firstAttribute="centerX" secondItem="GzP-hg-VGA" secondAttribute="centerX" id="Aeu-J7-2hs"/>
|
||||
<constraint firstItem="wq5-SZ-nrX" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="50" id="DNC-02-fhR"/>
|
||||
<constraint firstAttribute="height" constant="430" id="FQK-QB-MuB"/>
|
||||
<constraint firstItem="Tmr-0o-mlE" firstAttribute="centerY" secondItem="GzP-hg-VGA" secondAttribute="centerY" id="Hr5-JU-SDr"/>
|
||||
<constraint firstAttribute="bottom" secondItem="mJ2-Ui-FG3" secondAttribute="bottom" id="JAF-6d-zdl"/>
|
||||
<constraint firstItem="5IN-5o-bUb" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="VJJ-1n-fVV"/>
|
||||
<constraint firstAttribute="trailing" secondItem="mJ2-Ui-FG3" secondAttribute="trailing" id="W4f-68-1JU"/>
|
||||
<constraint firstItem="Tmr-0o-mlE" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="XAL-as-cFY"/>
|
||||
<constraint firstAttribute="bottom" secondItem="5IN-5o-bUb" secondAttribute="bottom" constant="29" id="YkM-QF-68f"/>
|
||||
<constraint firstItem="F7K-Tg-1hU" firstAttribute="top" secondItem="Tmr-0o-mlE" secondAttribute="bottom" constant="14" id="ZsL-b2-hsA"/>
|
||||
<constraint firstItem="Tmr-0o-mlE" firstAttribute="top" secondItem="wq5-SZ-nrX" secondAttribute="bottom" constant="20" id="ead-G5-f6W"/>
|
||||
<constraint firstItem="mJ2-Ui-FG3" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="hDc-JA-W36"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="22" id="k9y-J3-zwD"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="x4a-8A-6j8"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="e3c-c8-hjW" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="0zQ-W3-YEK"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Ajp-Bi-NrC"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="C1U-cI-Wga"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Tg5-mr-M63" secondAttribute="bottom" id="edO-pm-1fM"/>
|
||||
<constraint firstAttribute="trailing" secondItem="e3c-c8-hjW" secondAttribute="trailing" constant="12" id="phH-ga-80f"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Tg5-mr-M63" secondAttribute="trailing" id="tQS-q4-FdB"/>
|
||||
<constraint firstItem="e3c-c8-hjW" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="12" id="uGX-78-j8U"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="confirmBtn" destination="5IN-5o-bUb" id="TBt-52-x2N"/>
|
||||
<outlet property="resultLab" destination="F7K-Tg-1hU" id="aqc-4y-9d3"/>
|
||||
<outlet property="touchImgV" destination="Tg5-mr-M63" id="rZP-D8-cyf"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="131.8840579710145" y="95.758928571428569"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="pm_success_1" width="169.5" height="17.5"/>
|
||||
<image name="tankuang_bg" width="345" height="380"/>
|
||||
<image name="xin_qianyue_result" width="215" height="215"/>
|
||||
</resources>
|
||||
</document>
|
||||
28
SweetParty/主类/音悦新增/拍卖厅/YYPMSendGiftView.h
Executable file
28
SweetParty/主类/音悦新增/拍卖厅/YYPMSendGiftView.h
Executable file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// YYPMSendGiftView.h
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface YYPMSendGiftView : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *giftImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *giftNameLab;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *giftPriceLab;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *applyBtn;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *balanceLab;
|
||||
|
||||
@property(nonatomic, copy) NSString *rid;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
84
SweetParty/主类/音悦新增/拍卖厅/YYPMSendGiftView.m
Executable file
84
SweetParty/主类/音悦新增/拍卖厅/YYPMSendGiftView.m
Executable file
@@ -0,0 +1,84 @@
|
||||
//
|
||||
// YYPMSendGiftView.m
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import "YYPMSendGiftView.h"
|
||||
#import "BJRoomGiftModel.h"
|
||||
|
||||
@interface YYPMSendGiftView ()
|
||||
|
||||
@property (nonatomic, strong) BJRoomGiftModel *model;
|
||||
|
||||
@end
|
||||
|
||||
@implementation YYPMSendGiftView
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
[self createUI];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
[self.applyBtn setJianBianWithCGSize:CGSizeMake(ScreenWidth-32*2, 44)];
|
||||
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)setRid:(NSString *)rid {
|
||||
_rid = rid;
|
||||
|
||||
[self fetchGiftData];
|
||||
}
|
||||
|
||||
- (void)fetchGiftData {
|
||||
NSDictionary *params = @{@"rid":C_string(self.rid)};
|
||||
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/auction_room/get_auction_info" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
|
||||
BJRoomGiftModel *model = [BJRoomGiftModel mj_objectWithKeyValues:responseDic[@"data"]];
|
||||
self.model = model;
|
||||
[self onUpdateUIWith:model];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)onUpdateUIWith:(BJRoomGiftModel *)model {
|
||||
[self.giftImgV sd_setImageWithURL:[NSURL URLWithString:model.base_image]];
|
||||
self.giftNameLab.text = model.gift_name;
|
||||
self.giftPriceLab.text = [NSString stringWithFormat:@"%@", model.gift_price];
|
||||
|
||||
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
|
||||
self.nicknameLab.text = model.nick_name;
|
||||
|
||||
self.balanceLab.text = model.integral;
|
||||
}
|
||||
|
||||
- (IBAction)onApplyUp:(id)sender {
|
||||
if (self.model == nil) {
|
||||
return;
|
||||
}
|
||||
NSDictionary *params = @{@"rid":C_string(self.rid),
|
||||
@"gid":C_string(self.model.gid),
|
||||
@"num":@(1),
|
||||
@"to_uid_list":C_string(self.model.uid),
|
||||
@"pack":@(1)
|
||||
};
|
||||
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/gift/send_gift" Loading:NO Hud:YES Success:^(id _Nonnull responseDic) {
|
||||
[self removeFromSuperview];
|
||||
} Failure:^(id _Nonnull errorData) {
|
||||
|
||||
}];
|
||||
}
|
||||
|
||||
- (IBAction)onRecharge:(id)sender {
|
||||
[UIViewController goRechageCtrl];
|
||||
}
|
||||
|
||||
@end
|
||||
198
SweetParty/主类/音悦新增/拍卖厅/YYPMSendGiftView.xib
Executable file
198
SweetParty/主类/音悦新增/拍卖厅/YYPMSendGiftView.xib
Executable file
@@ -0,0 +1,198 @@
|
||||
<?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"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="YYPMSendGiftView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Tg5-mr-M63">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.49647200190000002" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="e3c-c8-hjW">
|
||||
<rect key="frame" x="0.0" y="442" width="375" height="370"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="common_alert_bg" translatesAutoresizingMaskIntoConstraints="NO" id="BNm-hk-wUR">
|
||||
<rect key="frame" x="0.0" y="0.0" width="375" height="370"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="竞拍礼物" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OKo-D1-veG">
|
||||
<rect key="frame" x="153" y="22" width="69.5" height="20.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
|
||||
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="bRc-Zq-7P8">
|
||||
<rect key="frame" x="32" y="241.5" width="311" height="44"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="44" id="C1g-zl-vDP"/>
|
||||
</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="确定"/>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="22"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
<connections>
|
||||
<action selector="onApplyUp:" destination="iN0-l3-epB" eventType="touchUpInside" id="Jq1-fr-dja"/>
|
||||
</connections>
|
||||
</button>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Lk0-B3-7gt">
|
||||
<rect key="frame" x="139" y="193.5" width="33" height="33"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="33" id="E3X-Ms-JW3"/>
|
||||
<constraint firstAttribute="width" constant="33" id="drt-eF-EAu"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="16.5"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DX2-Gu-bvS">
|
||||
<rect key="frame" x="135" y="64.5" width="105" height="110"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Zcu-LI-DEd">
|
||||
<rect key="frame" x="31.5" y="11" width="42" height="42"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="42" id="djZ-Dh-fux"/>
|
||||
<constraint firstAttribute="width" constant="42" id="mIP-lh-nRL"/>
|
||||
</constraints>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="b8O-ZF-0jx">
|
||||
<rect key="frame" x="35.5" y="57" width="34" height="16"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<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="Yls-PM-M17">
|
||||
<rect key="frame" x="55.5" y="79" width="8" height="19"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="room_gift_coin" translatesAutoresizingMaskIntoConstraints="NO" id="Ifc-WD-svH">
|
||||
<rect key="frame" x="36.5" y="80.5" width="16" height="16"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="1" alpha="0.057309105280199842" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="Zcu-LI-DEd" firstAttribute="top" secondItem="DX2-Gu-bvS" secondAttribute="top" constant="11" id="43h-xM-UEC"/>
|
||||
<constraint firstItem="Ifc-WD-svH" firstAttribute="centerY" secondItem="Yls-PM-M17" secondAttribute="centerY" id="55G-AO-Tnb"/>
|
||||
<constraint firstItem="b8O-ZF-0jx" firstAttribute="top" secondItem="Zcu-LI-DEd" secondAttribute="bottom" constant="4" id="7JA-Ev-Xqs"/>
|
||||
<constraint firstItem="b8O-ZF-0jx" firstAttribute="centerX" secondItem="DX2-Gu-bvS" secondAttribute="centerX" id="HXF-zz-UZl"/>
|
||||
<constraint firstAttribute="width" constant="105" id="NKm-Lx-xk8"/>
|
||||
<constraint firstAttribute="height" constant="110" id="SGy-9P-5H8"/>
|
||||
<constraint firstItem="Yls-PM-M17" firstAttribute="top" secondItem="b8O-ZF-0jx" secondAttribute="bottom" constant="6" id="a0q-el-egc"/>
|
||||
<constraint firstItem="Zcu-LI-DEd" firstAttribute="centerX" secondItem="DX2-Gu-bvS" secondAttribute="centerX" id="aph-Qb-Uyq"/>
|
||||
<constraint firstItem="Yls-PM-M17" firstAttribute="leading" secondItem="Ifc-WD-svH" secondAttribute="trailing" constant="3" id="bWy-Sz-SOQ"/>
|
||||
<constraint firstItem="Yls-PM-M17" firstAttribute="centerX" secondItem="DX2-Gu-bvS" secondAttribute="centerX" constant="7" id="cKb-tt-2ia"/>
|
||||
</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="Rm0-SL-1yX">
|
||||
<rect key="frame" x="104" y="202" width="27" height="16"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<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="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xSD-Wk-h2Y">
|
||||
<rect key="frame" x="180" y="202" width="93" height="16"/>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<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="KdG-wB-xBi">
|
||||
<rect key="frame" x="34" y="315.5" width="8" height="19"/>
|
||||
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="16"/>
|
||||
<color key="textColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="room_gift_coin" translatesAutoresizingMaskIntoConstraints="NO" id="dCT-KC-H5Q">
|
||||
<rect key="frame" x="15" y="317" width="16" height="16"/>
|
||||
</imageView>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="HN0-jd-1gN">
|
||||
<rect key="frame" x="295" y="310" width="80" height="30"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="80" id="XNM-po-hdK"/>
|
||||
<constraint firstAttribute="height" constant="30" id="sKL-V3-a0E"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="充值 >"/>
|
||||
<connections>
|
||||
<action selector="onRecharge:" destination="iN0-l3-epB" eventType="touchUpInside" id="j9U-TE-cvq"/>
|
||||
</connections>
|
||||
</button>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="bRc-Zq-7P8" firstAttribute="top" secondItem="Lk0-B3-7gt" secondAttribute="bottom" constant="15" id="15t-Q7-I2F"/>
|
||||
<constraint firstItem="xSD-Wk-h2Y" firstAttribute="leading" secondItem="Lk0-B3-7gt" secondAttribute="trailing" constant="8" id="3EV-sm-7ed"/>
|
||||
<constraint firstAttribute="trailing" secondItem="bRc-Zq-7P8" secondAttribute="trailing" constant="32" id="4HR-nJ-CBr"/>
|
||||
<constraint firstAttribute="bottom" secondItem="dCT-KC-H5Q" secondAttribute="bottom" constant="37" id="5Nz-D2-C8o"/>
|
||||
<constraint firstItem="KdG-wB-xBi" firstAttribute="leading" secondItem="dCT-KC-H5Q" secondAttribute="trailing" constant="3" id="C98-rE-EcX"/>
|
||||
<constraint firstItem="Lk0-B3-7gt" firstAttribute="top" secondItem="DX2-Gu-bvS" secondAttribute="bottom" constant="19" id="CZR-Ww-X27"/>
|
||||
<constraint firstAttribute="height" constant="370" id="FQK-QB-MuB"/>
|
||||
<constraint firstAttribute="trailing" secondItem="HN0-jd-1gN" secondAttribute="trailing" id="FVd-hc-t6f"/>
|
||||
<constraint firstItem="xSD-Wk-h2Y" firstAttribute="centerY" secondItem="Lk0-B3-7gt" secondAttribute="centerY" id="IFH-BH-d4S"/>
|
||||
<constraint firstItem="dCT-KC-H5Q" firstAttribute="centerY" secondItem="KdG-wB-xBi" secondAttribute="centerY" id="SDO-lV-RZa"/>
|
||||
<constraint firstItem="Rm0-SL-1yX" firstAttribute="centerY" secondItem="Lk0-B3-7gt" secondAttribute="centerY" id="U58-4h-i1p"/>
|
||||
<constraint firstAttribute="bottom" secondItem="BNm-hk-wUR" secondAttribute="bottom" id="UHC-2S-i3c"/>
|
||||
<constraint firstItem="Lk0-B3-7gt" firstAttribute="leading" secondItem="Rm0-SL-1yX" secondAttribute="trailing" constant="8" id="ULU-kQ-5lq"/>
|
||||
<constraint firstItem="DX2-Gu-bvS" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="WNr-uV-MTm"/>
|
||||
<constraint firstItem="dCT-KC-H5Q" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" constant="15" id="aBH-fa-bM4"/>
|
||||
<constraint firstItem="Lk0-B3-7gt" firstAttribute="leading" secondItem="DX2-Gu-bvS" secondAttribute="leading" constant="4" id="aK7-H2-UVp"/>
|
||||
<constraint firstItem="BNm-hk-wUR" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" id="cCG-Oj-Z0w"/>
|
||||
<constraint firstItem="DX2-Gu-bvS" firstAttribute="top" secondItem="OKo-D1-veG" secondAttribute="bottom" constant="22" id="fT2-zC-L80"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="22" id="k9y-J3-zwD"/>
|
||||
<constraint firstItem="HN0-jd-1gN" firstAttribute="centerY" secondItem="KdG-wB-xBi" secondAttribute="centerY" id="muf-xi-6dL"/>
|
||||
<constraint firstItem="BNm-hk-wUR" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="ndJ-jY-8tg"/>
|
||||
<constraint firstItem="bRc-Zq-7P8" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" constant="32" id="onJ-JO-9Zf"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="x4a-8A-6j8"/>
|
||||
<constraint firstAttribute="trailing" secondItem="BNm-hk-wUR" secondAttribute="trailing" id="xCx-65-CCu"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="bottom" secondItem="e3c-c8-hjW" secondAttribute="bottom" id="4EO-5X-MPB"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Ajp-Bi-NrC"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="C1U-cI-Wga"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Tg5-mr-M63" secondAttribute="bottom" id="edO-pm-1fM"/>
|
||||
<constraint firstAttribute="trailing" secondItem="e3c-c8-hjW" secondAttribute="trailing" id="phH-ga-80f"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Tg5-mr-M63" secondAttribute="trailing" id="tQS-q4-FdB"/>
|
||||
<constraint firstItem="e3c-c8-hjW" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="uGX-78-j8U"/>
|
||||
</constraints>
|
||||
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
|
||||
<connections>
|
||||
<outlet property="applyBtn" destination="bRc-Zq-7P8" id="ora-4p-ttN"/>
|
||||
<outlet property="avatarImgV" destination="Lk0-B3-7gt" id="892-oo-5iQ"/>
|
||||
<outlet property="balanceLab" destination="KdG-wB-xBi" id="JmF-a7-ch7"/>
|
||||
<outlet property="giftImgV" destination="Zcu-LI-DEd" id="4Ii-Hi-gq9"/>
|
||||
<outlet property="giftNameLab" destination="b8O-ZF-0jx" id="KmN-sZ-uZa"/>
|
||||
<outlet property="giftPriceLab" destination="Yls-PM-M17" id="cGe-R1-N6a"/>
|
||||
<outlet property="nicknameLab" destination="xSD-Wk-h2Y" id="ZSi-jf-Fxu"/>
|
||||
<outlet property="touchImgV" destination="Tg5-mr-M63" id="rZP-D8-cyf"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="131.8840579710145" y="95.758928571428569"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="common_alert_bg" width="375" height="358"/>
|
||||
<image name="room_gift_coin" width="16" height="16"/>
|
||||
</resources>
|
||||
</document>
|
||||
26
SweetParty/主类/音悦新增/拍卖厅/YYPMSuccessAlert.h
Executable file
26
SweetParty/主类/音悦新增/拍卖厅/YYPMSuccessAlert.h
Executable file
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// YYPMSuccessAlert.h
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import <UIKit/UIKit.h>
|
||||
|
||||
NS_ASSUME_NONNULL_BEGIN
|
||||
|
||||
@interface YYPMSuccessAlert : UIView
|
||||
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *touchImgV;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV_1;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab_1;
|
||||
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV_2;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab_2;
|
||||
@property (weak, nonatomic) IBOutlet UILabel *resultLab;
|
||||
|
||||
@property (nonatomic, strong) NSDictionary *dataDict;
|
||||
|
||||
@end
|
||||
|
||||
NS_ASSUME_NONNULL_END
|
||||
48
SweetParty/主类/音悦新增/拍卖厅/YYPMSuccessAlert.m
Executable file
48
SweetParty/主类/音悦新增/拍卖厅/YYPMSuccessAlert.m
Executable file
@@ -0,0 +1,48 @@
|
||||
//
|
||||
// YYPMSuccessAlert.m
|
||||
// YaYin
|
||||
//
|
||||
// Created by bj_szd on 2023/7/12.
|
||||
// Copyright © 2023 YaYin. All rights reserved.
|
||||
//
|
||||
|
||||
#import "YYPMSuccessAlert.h"
|
||||
|
||||
@interface YYPMSuccessAlert ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation YYPMSuccessAlert
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
|
||||
[self createUI];
|
||||
}
|
||||
|
||||
- (void)createUI {
|
||||
WEAK_SELF
|
||||
[self.touchImgV dg_Tapped:^{
|
||||
[weakSelf removeFromSuperview];
|
||||
}];
|
||||
}
|
||||
|
||||
- (void)setDataDict:(NSDictionary *)dataDict {
|
||||
_dataDict = dataDict;
|
||||
|
||||
//制作人
|
||||
NSString *nick_name1 = [dataDict[@"auction_user_info"] safeStringForKey:@"nick_name"];
|
||||
NSString *head_pic1 = [dataDict[@"auction_user_info"] safeStringForKey:@"head_pic"];
|
||||
[self.avatarImgV_1 sd_setImageWithURL:[NSURL URLWithString:head_pic1] placeholderImage:kDefaultUserIcon];
|
||||
self.nicknameLab_1.text = nick_name1;
|
||||
|
||||
//艺人
|
||||
NSString *nick_name2 = [dataDict[@"sign_user_info"] safeStringForKey:@"nick_name"];
|
||||
NSString *head_pic2 = [dataDict[@"sign_user_info"] safeStringForKey:@"head_pic"];
|
||||
[self.avatarImgV_2 sd_setImageWithURL:[NSURL URLWithString:head_pic2] placeholderImage:kDefaultUserIcon];
|
||||
self.nicknameLab_2.text = nick_name2;
|
||||
|
||||
self.resultLab.text = [NSString stringWithFormat:@"已成为%@关系", dataDict[@"relation_name"]];
|
||||
}
|
||||
|
||||
@end
|
||||
133
SweetParty/主类/音悦新增/拍卖厅/YYPMSuccessAlert.xib
Executable file
133
SweetParty/主类/音悦新增/拍卖厅/YYPMSuccessAlert.xib
Executable file
@@ -0,0 +1,133 @@
|
||||
<?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"/>
|
||||
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
|
||||
<view contentMode="scaleToFill" id="iN0-l3-epB" customClass="YYPMSuccessAlert">
|
||||
<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="Tg5-mr-M63">
|
||||
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.49647200190000002" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
</imageView>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="e3c-c8-hjW">
|
||||
<rect key="frame" x="15" y="328" width="384" height="240"/>
|
||||
<subviews>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="tankuang_bg" translatesAutoresizingMaskIntoConstraints="NO" id="mJ2-Ui-FG3">
|
||||
<rect key="frame" x="0.0" y="0.0" width="384" height="240"/>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="拍卖成功" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="OKo-D1-veG">
|
||||
<rect key="frame" x="159.5" y="22" width="65.5" height="19.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pm_success_2" translatesAutoresizingMaskIntoConstraints="NO" id="wq5-SZ-nrX">
|
||||
<rect key="frame" x="119.5" y="63" width="145" height="20"/>
|
||||
</imageView>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="KMA-Vg-L1L">
|
||||
<rect key="frame" x="236.5" y="73.5" width="68" height="68"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="68" id="75f-ce-AYJ"/>
|
||||
<constraint firstAttribute="height" constant="68" id="VUv-Ni-NX6"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="34"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="昵称" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iQk-pW-s8O">
|
||||
<rect key="frame" x="256" y="151.5" width="29" height="17"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="vht-zk-e2H">
|
||||
<rect key="frame" x="79.5" y="73.5" width="68" height="68"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="width" constant="68" id="7al-3g-jm2"/>
|
||||
<constraint firstAttribute="height" constant="68" id="bRT-we-ypL"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
|
||||
<real key="value" value="34"/>
|
||||
</userDefinedRuntimeAttribute>
|
||||
</userDefinedRuntimeAttributes>
|
||||
</imageView>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="昵称" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ohr-v8-m7S">
|
||||
<rect key="frame" x="99" y="151.5" width="29" height="17"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" 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="dWJ-pL-dnR">
|
||||
<rect key="frame" x="128" y="188.5" width="128.5" height="21.5"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
|
||||
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="pm_success_heart" translatesAutoresizingMaskIntoConstraints="NO" id="Y5s-BX-tuG">
|
||||
<rect key="frame" x="169.5" y="85" width="45" height="45"/>
|
||||
</imageView>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="mJ2-Ui-FG3" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" id="166-Fh-NC1"/>
|
||||
<constraint firstItem="ohr-v8-m7S" firstAttribute="top" secondItem="vht-zk-e2H" secondAttribute="bottom" constant="10" id="2OX-a2-3bu"/>
|
||||
<constraint firstItem="dWJ-pL-dnR" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="3k8-yR-ych"/>
|
||||
<constraint firstItem="wq5-SZ-nrX" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="5qO-gh-M69"/>
|
||||
<constraint firstItem="iQk-pW-s8O" firstAttribute="centerX" secondItem="KMA-Vg-L1L" secondAttribute="centerX" id="7hU-dh-qpT"/>
|
||||
<constraint firstItem="wq5-SZ-nrX" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="63" id="DNC-02-fhR"/>
|
||||
<constraint firstAttribute="height" constant="240" id="FQK-QB-MuB"/>
|
||||
<constraint firstAttribute="bottom" secondItem="mJ2-Ui-FG3" secondAttribute="bottom" id="JAF-6d-zdl"/>
|
||||
<constraint firstItem="iQk-pW-s8O" firstAttribute="top" secondItem="KMA-Vg-L1L" secondAttribute="bottom" constant="10" id="KiY-wF-L6T"/>
|
||||
<constraint firstItem="Y5s-BX-tuG" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="85" id="Q1q-v0-9vz"/>
|
||||
<constraint firstAttribute="trailing" secondItem="mJ2-Ui-FG3" secondAttribute="trailing" id="W4f-68-1JU"/>
|
||||
<constraint firstItem="Y5s-BX-tuG" firstAttribute="centerY" secondItem="vht-zk-e2H" secondAttribute="centerY" id="a3e-4x-xBb"/>
|
||||
<constraint firstItem="Y5s-BX-tuG" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="aJa-Dd-RsJ"/>
|
||||
<constraint firstItem="Y5s-BX-tuG" firstAttribute="leading" secondItem="vht-zk-e2H" secondAttribute="trailing" constant="22" id="dED-A9-XT4"/>
|
||||
<constraint firstAttribute="bottom" secondItem="dWJ-pL-dnR" secondAttribute="bottom" constant="30" id="dut-gV-8xZ"/>
|
||||
<constraint firstItem="mJ2-Ui-FG3" firstAttribute="leading" secondItem="e3c-c8-hjW" secondAttribute="leading" id="hDc-JA-W36"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="top" secondItem="e3c-c8-hjW" secondAttribute="top" constant="22" id="k9y-J3-zwD"/>
|
||||
<constraint firstItem="KMA-Vg-L1L" firstAttribute="leading" secondItem="Y5s-BX-tuG" secondAttribute="trailing" constant="22" id="ldD-fI-lZt"/>
|
||||
<constraint firstItem="ohr-v8-m7S" firstAttribute="centerX" secondItem="vht-zk-e2H" secondAttribute="centerX" id="vmf-yX-Lur"/>
|
||||
<constraint firstItem="vht-zk-e2H" firstAttribute="centerY" secondItem="KMA-Vg-L1L" secondAttribute="centerY" id="wMf-Tj-nnR"/>
|
||||
<constraint firstItem="OKo-D1-veG" firstAttribute="centerX" secondItem="e3c-c8-hjW" secondAttribute="centerX" id="x4a-8A-6j8"/>
|
||||
</constraints>
|
||||
</view>
|
||||
</subviews>
|
||||
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
|
||||
<constraints>
|
||||
<constraint firstItem="e3c-c8-hjW" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="0zQ-W3-YEK"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="Ajp-Bi-NrC"/>
|
||||
<constraint firstItem="Tg5-mr-M63" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="C1U-cI-Wga"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Tg5-mr-M63" secondAttribute="bottom" id="edO-pm-1fM"/>
|
||||
<constraint firstAttribute="trailing" secondItem="e3c-c8-hjW" secondAttribute="trailing" constant="15" id="phH-ga-80f"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Tg5-mr-M63" secondAttribute="trailing" id="tQS-q4-FdB"/>
|
||||
<constraint firstItem="e3c-c8-hjW" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="uGX-78-j8U"/>
|
||||
</constraints>
|
||||
<connections>
|
||||
<outlet property="avatarImgV_1" destination="vht-zk-e2H" id="Zle-St-2q4"/>
|
||||
<outlet property="avatarImgV_2" destination="KMA-Vg-L1L" id="kjt-ok-YSc"/>
|
||||
<outlet property="nicknameLab_1" destination="ohr-v8-m7S" id="7AF-eA-wKm"/>
|
||||
<outlet property="nicknameLab_2" destination="iQk-pW-s8O" id="4gt-py-Q1B"/>
|
||||
<outlet property="resultLab" destination="dWJ-pL-dnR" id="8tC-6O-7XG"/>
|
||||
<outlet property="touchImgV" destination="Tg5-mr-M63" id="rZP-D8-cyf"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="131.8840579710145" y="95.758928571428569"/>
|
||||
</view>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="pm_success_2" width="145" height="20"/>
|
||||
<image name="pm_success_heart" width="45" height="45"/>
|
||||
<image name="tankuang_bg" width="345" height="380"/>
|
||||
</resources>
|
||||
</document>
|
||||
Reference in New Issue
Block a user