首次提交

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

View File

@@ -0,0 +1,24 @@
//
// HXMineLevelCell.h
// huixiang
//
// Created by bj_szd on 2023/2/10.
// Copyright © 2023 Echo. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "HXMineLevelModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface HXMineLevelCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *valueLab;
@property (weak, nonatomic) IBOutlet UILabel *levelLab;
@property (weak, nonatomic) IBOutlet UIImageView *levelImgV;
@property (nonatomic, strong) HXMineLevelModel *model;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,24 @@
//
// HXMineLevelCell.m
// huixiang
//
// Created by bj_szd on 2023/2/10.
// Copyright © 2023 Echo. All rights reserved.
//
#import "HXMineLevelCell.h"
@implementation HXMineLevelCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setModel:(HXMineLevelModel *)model {
[self.levelImgV sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:kDefaultUserIcon];
self.levelLab.text = model.level;
self.valueLab.text = model.number;
}
@end

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner"/>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="HXMineLevelCell">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<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="320" height="44"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="7wX-gp-A4L">
<rect key="frame" x="0.0" y="0.0" width="320" height="44"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="n6C-3w-GJs">
<rect key="frame" x="149.5" y="14.5" width="21.5" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1-10" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="X9a-2P-tzC">
<rect key="frame" x="35.5" y="14.5" width="25" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aRM-Qj-XCr">
<rect key="frame" x="252" y="12" width="40" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="C53-i6-oLe"/>
<constraint firstAttribute="height" constant="20" id="G4y-eF-GRt"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="n6C-3w-GJs" firstAttribute="centerX" secondItem="7wX-gp-A4L" secondAttribute="centerX" id="1ZY-FX-xrn"/>
<constraint firstItem="aRM-Qj-XCr" firstAttribute="centerY" secondItem="7wX-gp-A4L" secondAttribute="centerY" id="5xj-k5-oAL"/>
<constraint firstItem="aRM-Qj-XCr" firstAttribute="centerX" secondItem="7wX-gp-A4L" secondAttribute="centerX" multiplier="1.7" id="c29-gz-C6M"/>
<constraint firstItem="n6C-3w-GJs" firstAttribute="centerY" secondItem="7wX-gp-A4L" secondAttribute="centerY" id="l6V-ok-ujJ"/>
<constraint firstItem="X9a-2P-tzC" firstAttribute="centerY" secondItem="7wX-gp-A4L" secondAttribute="centerY" id="qyK-xK-l5a"/>
<constraint firstItem="X9a-2P-tzC" firstAttribute="centerX" secondItem="7wX-gp-A4L" secondAttribute="centerX" multiplier="0.3" id="vzT-IO-bpi"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="7wX-gp-A4L" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="0DC-ff-F12"/>
<constraint firstItem="7wX-gp-A4L" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="1fT-ED-lSu"/>
<constraint firstAttribute="bottom" secondItem="7wX-gp-A4L" secondAttribute="bottom" id="Xd7-Wl-lhF"/>
<constraint firstAttribute="trailing" secondItem="7wX-gp-A4L" secondAttribute="trailing" id="sts-TA-4Tc"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="levelImgV" destination="aRM-Qj-XCr" id="Dzs-oG-YKE"/>
<outlet property="levelLab" destination="X9a-2P-tzC" id="bjs-qW-hVQ"/>
<outlet property="valueLab" destination="n6C-3w-GJs" id="nkr-yL-mDM"/>
</connections>
<point key="canvasLocation" x="132" y="117"/>
</tableViewCell>
</objects>
</document>

View File

@@ -0,0 +1,21 @@
//
// HXMineLevelModel.h
// huixiang
//
// Created by bj_szd on 2023/2/10.
// Copyright © 2023 Echo. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface HXMineLevelModel : NSObject
@property (nonatomic, copy) NSString *level;
@property (nonatomic, copy) NSString *number;
@property (nonatomic, copy) NSString *image;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,13 @@
//
// HXMineLevelModel.m
// huixiang
//
// Created by bj_szd on 2023/2/10.
// Copyright © 2023 Echo. All rights reserved.
//
#import "HXMineLevelModel.h"
@implementation HXMineLevelModel
@end

View File

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

View File

@@ -0,0 +1,61 @@
//
// LMWechatKefuViewController.m
// SweetParty
//
// Created by Xmac on 2024/9/11.
//
#import "LMWechatKefuViewController.h"
@interface LMWechatKefuViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *zaoCodeIMG;
@property (weak, nonatomic) IBOutlet UIImageView *wanCodeIMG;
@property (weak, nonatomic) IBOutlet UILabel *wanTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *zaoTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *zaoTitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *wanTitleLabel;
@property (weak, nonatomic) IBOutlet UIImageView *bottomIMG;
@property (weak, nonatomic) IBOutlet UILabel *bottomTitleLabel;
@property (weak, nonatomic) IBOutlet UILabel *bottomTimeLabel;
@end
@implementation LMWechatKefuViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.navTitle = @"运营";
[self.customNavBar styleClear];
[self requestWechatKefuInfo];
}
- (void)requestWechatKefuInfo
{
[BJHttpTool BJ_User_get_kf_messageParameters:@{} success:^(id response) {
NSArray *data = [response safeArrayForKey:@"data"];
if (data.count>1){
NSDictionary *zao = [data objectAtIndex:0];
[self.zaoCodeIMG sd_setImageWithURL:[NSURL URLWithString:[zao safeStringForKey:@"image"]]];
self.zaoTimeLabel.text = [zao safeStringForKey:@"content"];
self.zaoTitleLabel.text = [zao safeStringForKey:@"contents"];
NSDictionary *wan = [data objectAtIndex:1];
[self.wanCodeIMG sd_setImageWithURL:[NSURL URLWithString:[wan safeStringForKey:@"image"]]];
self.wanTimeLabel.text = [wan safeStringForKey:@"content"];
self.wanTitleLabel.text = [wan safeStringForKey:@"contents"];
NSDictionary *bottom = [data objectAtIndex:2];
[self.bottomIMG sd_setImageWithURL:[NSURL URLWithString:[bottom safeStringForKey:@"image"]]];
self.bottomTimeLabel.text = [bottom safeStringForKey:@"content"];
self.bottomTitleLabel.text = [bottom safeStringForKey:@"contents"];
}
} failure:^(NSError *error) {
}];
}
@end

View File

@@ -0,0 +1,177 @@
<?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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="LMWechatKefuViewController">
<connections>
<outlet property="bottomIMG" destination="wWO-HT-KUK" id="r5O-xo-3Cu"/>
<outlet property="bottomTimeLabel" destination="IXR-hK-PZ9" id="2yk-bB-W6f"/>
<outlet property="bottomTitleLabel" destination="dH9-sz-rQq" id="ZBY-c4-Wgc"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
<outlet property="wanCodeIMG" destination="g17-xZ-RDh" id="WEw-Nj-NLd"/>
<outlet property="wanTimeLabel" destination="qnR-gc-lfv" id="xiO-Vu-brm"/>
<outlet property="wanTitleLabel" destination="7oI-id-syV" id="Zq5-4S-lhE"/>
<outlet property="zaoCodeIMG" destination="m0q-SI-a17" id="My5-RN-uVl"/>
<outlet property="zaoTimeLabel" destination="pXa-SG-Mup" id="jEB-rf-Ji8"/>
<outlet property="zaoTitleLabel" destination="N3B-ZP-MoU" id="Cqz-CT-0ek"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="home_bg" translatesAutoresizingMaskIntoConstraints="NO" id="0Nc-WD-b8X">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="HPJ-rS-FTv">
<rect key="frame" x="15" y="110" width="167.66666666666666" height="224"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="m0q-SI-a17">
<rect key="frame" x="10" y="10" width="147.66666666666666" height="147.66666666666666"/>
<constraints>
<constraint firstAttribute="width" secondItem="m0q-SI-a17" secondAttribute="height" multiplier="1:1" id="2K8-zx-PQF"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="运营1" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="N3B-ZP-MoU">
<rect key="frame" x="66" y="167.66666666666669" width="35.333333333333343" height="17"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="时间9:00-18:00" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pXa-SG-Mup">
<rect key="frame" x="32.333333333333343" y="194.66666666666669" width="103" height="14.333333333333343"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="pXa-SG-Mup" secondAttribute="bottom" constant="15" id="Frc-61-lnJ"/>
<constraint firstAttribute="trailing" secondItem="m0q-SI-a17" secondAttribute="trailing" constant="10" id="GiV-NX-Wkp"/>
<constraint firstItem="pXa-SG-Mup" firstAttribute="centerX" secondItem="HPJ-rS-FTv" secondAttribute="centerX" id="SUb-c0-bvJ"/>
<constraint firstItem="m0q-SI-a17" firstAttribute="top" secondItem="HPJ-rS-FTv" secondAttribute="top" constant="10" id="ofV-yf-4xg"/>
<constraint firstItem="pXa-SG-Mup" firstAttribute="top" secondItem="N3B-ZP-MoU" secondAttribute="bottom" constant="10" id="p6S-KO-70P"/>
<constraint firstItem="N3B-ZP-MoU" firstAttribute="centerX" secondItem="HPJ-rS-FTv" secondAttribute="centerX" id="vLj-NU-3tc"/>
<constraint firstItem="m0q-SI-a17" firstAttribute="leading" secondItem="HPJ-rS-FTv" secondAttribute="leading" constant="10" id="wYL-uy-DOp"/>
<constraint firstItem="N3B-ZP-MoU" firstAttribute="top" secondItem="m0q-SI-a17" secondAttribute="bottom" constant="10" id="xQg-yC-VUb"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Q3I-ZH-H31">
<rect key="frame" x="192.66666666666663" y="110" width="167.33333333333337" height="224"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="g17-xZ-RDh">
<rect key="frame" x="10" y="10" width="147.33333333333334" height="147.66666666666666"/>
<constraints>
<constraint firstAttribute="width" secondItem="g17-xZ-RDh" secondAttribute="height" multiplier="1:1" id="uaS-IM-YgL"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="运营2" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="7oI-id-syV">
<rect key="frame" x="65.000000000000028" y="167.66666666666669" width="37.333333333333343" height="17"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="时间9:00-18:00" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qnR-gc-lfv">
<rect key="frame" x="32" y="194.66666666666669" width="103" height="14.333333333333343"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="g17-xZ-RDh" secondAttribute="trailing" constant="10" id="50R-HD-fEp"/>
<constraint firstItem="g17-xZ-RDh" firstAttribute="leading" secondItem="Q3I-ZH-H31" secondAttribute="leading" constant="10" id="6Lw-e6-Uyk"/>
<constraint firstItem="g17-xZ-RDh" firstAttribute="top" secondItem="Q3I-ZH-H31" secondAttribute="top" constant="10" id="6jL-Oo-Sgg"/>
<constraint firstItem="7oI-id-syV" firstAttribute="centerX" secondItem="Q3I-ZH-H31" secondAttribute="centerX" id="CnZ-US-FSK"/>
<constraint firstItem="qnR-gc-lfv" firstAttribute="top" secondItem="7oI-id-syV" secondAttribute="bottom" constant="10" id="EfC-KF-cJp"/>
<constraint firstItem="qnR-gc-lfv" firstAttribute="centerX" secondItem="Q3I-ZH-H31" secondAttribute="centerX" id="MnC-b5-NLo"/>
<constraint firstItem="7oI-id-syV" firstAttribute="top" secondItem="g17-xZ-RDh" secondAttribute="bottom" constant="10" id="d5n-Ij-3z8"/>
<constraint firstAttribute="bottom" secondItem="qnR-gc-lfv" secondAttribute="bottom" constant="15" id="i0g-T0-9OB"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="12q-9A-9Ip">
<rect key="frame" x="15" y="344" width="345" height="167.33333333333337"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wWO-HT-KUK">
<rect key="frame" x="10" y="10" width="147.66666666666666" height="147.33333333333334"/>
<constraints>
<constraint firstAttribute="width" secondItem="wWO-HT-KUK" secondAttribute="height" multiplier="1:1" id="Y4k-7O-mHR"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="运营3" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dH9-sz-rQq">
<rect key="frame" x="242.66666666666671" y="65" width="37.333333333333343" height="17"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="时间9:00-18:00" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="2" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="IXR-hK-PZ9">
<rect key="frame" x="209.66666666666663" y="92" width="103" height="14.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="wWO-HT-KUK" secondAttribute="bottom" constant="10" id="CDK-iJ-Tl1"/>
<constraint firstItem="IXR-hK-PZ9" firstAttribute="top" secondItem="dH9-sz-rQq" secondAttribute="bottom" constant="10" id="WLC-lT-oxb"/>
<constraint firstItem="dH9-sz-rQq" firstAttribute="centerY" secondItem="12q-9A-9Ip" secondAttribute="centerY" constant="-10" id="WYN-nD-loK"/>
<constraint firstItem="wWO-HT-KUK" firstAttribute="top" secondItem="12q-9A-9Ip" secondAttribute="top" constant="10" id="Xm4-uH-BzK"/>
<constraint firstItem="wWO-HT-KUK" firstAttribute="leading" secondItem="12q-9A-9Ip" secondAttribute="leading" constant="10" id="oIv-K2-9Xc"/>
<constraint firstItem="dH9-sz-rQq" firstAttribute="centerX" secondItem="IXR-hK-PZ9" secondAttribute="centerX" id="xgM-3p-YlC"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="HPJ-rS-FTv" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="3V9-MY-Rhq"/>
<constraint firstAttribute="trailing" secondItem="12q-9A-9Ip" secondAttribute="trailing" constant="15" id="6DA-kZ-ckS"/>
<constraint firstItem="wWO-HT-KUK" firstAttribute="width" secondItem="m0q-SI-a17" secondAttribute="width" id="7At-gF-WDk"/>
<constraint firstItem="0Nc-WD-b8X" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="7sF-xF-wgT"/>
<constraint firstItem="Q3I-ZH-H31" firstAttribute="width" secondItem="HPJ-rS-FTv" secondAttribute="width" id="87C-xp-oVH"/>
<constraint firstItem="0Nc-WD-b8X" firstAttribute="trailing" secondItem="i5M-Pr-FkT" secondAttribute="trailing" id="Msp-iT-9fW"/>
<constraint firstItem="HPJ-rS-FTv" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="Qod-ss-Lmm"/>
<constraint firstItem="12q-9A-9Ip" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="WY3-y3-BVC"/>
<constraint firstItem="0Nc-WD-b8X" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="WnC-6K-xT3"/>
<constraint firstItem="Q3I-ZH-H31" firstAttribute="top" secondItem="HPJ-rS-FTv" secondAttribute="top" id="XdZ-mu-AYl"/>
<constraint firstItem="dH9-sz-rQq" firstAttribute="centerX" secondItem="7oI-id-syV" secondAttribute="centerX" id="YdO-og-cJS"/>
<constraint firstAttribute="trailing" secondItem="Q3I-ZH-H31" secondAttribute="trailing" constant="15" id="e3L-Tk-3ev"/>
<constraint firstItem="12q-9A-9Ip" firstAttribute="top" secondItem="HPJ-rS-FTv" secondAttribute="bottom" constant="10" id="etm-ac-CqB"/>
<constraint firstItem="Q3I-ZH-H31" firstAttribute="leading" secondItem="HPJ-rS-FTv" secondAttribute="trailing" constant="10" id="gdX-zX-teh"/>
<constraint firstAttribute="bottom" secondItem="0Nc-WD-b8X" secondAttribute="bottom" id="pRD-Hh-oZO"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-662" y="685"/>
</view>
</objects>
<resources>
<image name="home_bg" width="375" height="812"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,18 @@
//
// SPFocusFansListVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/8.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPFocusFansListVC : BaseTableViewController
@property (nonatomic, assign) NSInteger type;//1关注 2粉丝 3收藏
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,137 @@
//
// SPFocusFansListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/8.
//
#import "SPFocusFansListVC.h"
#import "SPFocusFansCell.h"
@interface SPFocusFansListVC ()
@end
@implementation SPFocusFansListVC
- (void)viewDidLoad {
[super viewDidLoad];
NSString *titleStr = @"";
if (self.type == 1) {
titleStr = @"关注";
}else if (self.type == 2) {
titleStr = @"粉丝";
}else if (self.type == 3) {
titleStr = @"收藏";
}
[self showNaviBarWithTitle:titleStr];
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"home_bg")];
[self.view insertSubview:bgImgV atIndex:0];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[self createUI];
[self fetchData];
}
-(void)createUI {
[self.tableView registerNib:[UINib nibWithNibName:@"SPFocusFansCell" bundle:nil] forCellReuseIdentifier:@"SPFocusFansCell"];
self.tableView.rowHeight = 85;
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSDictionary *params = @{@"page":@(self.page), @"page_limit":@(10)};
NSString *urlStr = @"api/user/get_user_follow_list";
if (self.type == 1) {
urlStr = @"api/user/get_user_follow_list";
}else if (self.type == 2) {
urlStr = @"api/user/get_user_fans_list";
}else if (self.type == 3) {
urlStr = @"api/room/get_user_collect_list";
}
[AFNetworkRequset.shared postRequestWithParams:params Path:urlStr Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPFocusFansModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
[self.dataArray addObjectsFromArray:arr];
if (self.type == 3) {
for (SPFocusFansModel *model in self.dataArray) {
model.is_collect = YES;
}
}
[self.tableView reloadData];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPFocusFansCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPFocusFansCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPFocusFansModel *model = self.dataArray[indexPath.row];
[cell onUpdateSPFocusFansCell:model type:self.type];
WEAK_SELF
cell.refreshAction = ^{
[weakSelf fetchData];
};
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
SPFocusFansModel *model = self.dataArray[indexPath.row];
if (self.type == 3) {
[UIViewController goMicRoomWithRid:model.rid withPwd:@""];
}else {
[UIViewController goUserMainpageWith:model.uid withRid:@""];
}
}
@end

View File

@@ -0,0 +1,21 @@
//
// SPGiftMingxiVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/27.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGiftMingxiVC : BaseTableViewController
@property (nonatomic, assign) NSInteger type;//1收入记录 2赠送记录
@property (nonatomic, copy) NSString *userId;
@property (nonatomic, assign) NSInteger gift_from_type;//1为金币礼物 2为背包礼物
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,101 @@
//
// SPGiftMingxiVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/27.
//
#import "SPGiftMingxiVC.h"
#import "SPGiftMingxiCell.h"
@interface SPGiftMingxiVC ()
@end
@implementation SPGiftMingxiVC
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
[self fetchData];
}
-(void)createUI {
[self showNaviBarWithTitle:@"礼物明细"];
[self.tableView registerNib:[UINib nibWithNibName:@"SPGiftMingxiCell" bundle:nil] forCellReuseIdentifier:@"SPGiftMingxiCell"];
self.tableView.rowHeight = 60;
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSString *urlStr = @"";
if (self.type == 1) {
urlStr = @"api/user/get_receive_gift_list";
}else if (self.type == 2) {
urlStr = @"api/user/get_send_gift_list";
}
NSDictionary *params = @{@"page":@(self.page), @"page_limit":@(20), @"uid":C_string(self.userId), @"gift_from_type":@(self.gift_from_type)};
[AFNetworkRequset.shared postRequestWithParams:params Path:urlStr Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPGiftMingxiModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPGiftMingxiCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPGiftMingxiCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPGiftMingxiModel *model = self.dataArray[indexPath.row];
cell.model = model;
return cell;
}
@end

View File

@@ -0,0 +1,19 @@
//
// SPGiftRecordListVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/15.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGiftRecordListVC : BaseTableViewController <JXCategoryListContentViewDelegate>
@property (nonatomic, assign) NSInteger type;//1收入记录 2赠送记录
@property (nonatomic, assign) NSInteger gift_from_type;//1为金币礼物 2为背包礼物
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,123 @@
//
// SPGiftRecordListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/15.
//
#import "SPGiftRecordListVC.h"
#import "SPGiftRecordListCell.h"
#import "SPGiftMingxiVC.h"
@interface SPGiftRecordListVC ()
@end
@implementation SPGiftRecordListVC
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
[self fetchData];
}
-(void)createUI {
self.view.backgroundColor = [UIColor clearColor];
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
[self.tableView registerNib:[UINib nibWithNibName:@"SPGiftRecordListCell" bundle:nil] forCellReuseIdentifier:@"SPGiftRecordListCell"];
self.tableView.rowHeight = 107;
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSString *urlStr = @"";
if (self.type == 1) {
urlStr = @"api/user/get_receive_gift_user_list";
}else if (self.type == 2) {
urlStr = @"api/user/get_send_gift_user_list";
}
NSDictionary *params = @{@"page":@(self.page), @"page_limit":@(10), @"gift_from_type":@(self.gift_from_type)};
[AFNetworkRequset.shared postRequestWithParams:params Path:urlStr Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPGiftRecordListModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPGiftRecordListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPGiftRecordListCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPGiftRecordListModel *model = self.dataArray[indexPath.row];
cell.model = model;
WEAK_SELF
cell.onMingxiBlock = ^{
SPGiftMingxiVC *vc = [[SPGiftMingxiVC alloc] init];
vc.type = weakSelf.type;
vc.userId = model.send_user_info.uid;
vc.gift_from_type = weakSelf.gift_from_type;
[vc pushSelf];
};
return cell;
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,18 @@
//
// SPGiftRecordVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/15.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGiftRecordVC : BaseViewController
@property (nonatomic, assign) NSInteger type;//1收入记录 2赠送记录
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,118 @@
//
// SPGiftRecordVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/15.
//
#import "SPGiftRecordVC.h"
#import "SPGiftRecordListVC.h"
@interface SPGiftRecordVC ()<JXCategoryListContainerViewDelegate>
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) JXCategoryTitleView *categoryView;
@property (nonatomic, strong) JXCategoryListContainerView *listContainerView;
@end
@implementation SPGiftRecordVC
- (void)viewDidLoad {
[super viewDidLoad];
if (self.type == 1) {
[self showNaviBarWithTitle:@"礼物记录"];
}else {
[self showNaviBarWithTitle:@"赠送记录"];
}
self.titles = @[@"金币礼物", @"背包礼物"];
[self createUI];
}
- (void)createUI {
[self.view addSubview:self.categoryView];
[self.view addSubview:self.listContainerView];
[self.categoryView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(yb_NavigationBar_H+15);
make.left.equalTo(self.view).offset(15);
make.right.equalTo(self.view).offset(-15);
make.height.mas_equalTo(34);
}];
[self.listContainerView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.categoryView.mas_bottom);
make.left.right.bottom.equalTo(self.view);
}];
}
//
- (JXCategoryTitleView *)categoryView {
if (!_categoryView) {
_categoryView = [[JXCategoryTitleView alloc] init];
_categoryView.titleFont = YBMediumFont(15);
_categoryView.titleSelectedFont = YBMediumFont(15);
_categoryView.titleColor = HEXCOLOR(0x333333);
_categoryView.titleSelectedColor = HEXCOLOR(0x333333);
_categoryView.backgroundColor = HEXCOLOR(0xF5F5F5);
_categoryView.layer.cornerRadius = 17;
_categoryView.layer.masksToBounds = YES;
_categoryView.cellSpacing = 0;
_categoryView.cellWidth = (ScreenWidth-15*2)/self.titles.count;
_categoryView.titleLabelMaskEnabled = YES;
_categoryView.listContainer = self.listContainerView;
_categoryView.titles = self.titles;
JXCategoryIndicatorBackgroundView *backgroundView = [[JXCategoryIndicatorBackgroundView alloc] init];
backgroundView.indicatorHeight = 34;
backgroundView.indicatorWidthIncrement = 0;
backgroundView.indicatorColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(_categoryView.cellWidth, 34) direction:FXGradientChangeDirectionHorizontal startColor:mainLightColor endColor:mainDeepColor];
backgroundView.indicatorCornerRadius = 0;
// JXCategoryIndicatorLineView *lineView = [[JXCategoryIndicatorLineView alloc] init];
// lineView.indicatorColor = HEXCOLOR(0xBA63DD);
// lineView.indicatorWidth = 20;
// lineView.indicatorHeight = 4;
// lineView.indicatorCornerRadius = 2;
// lineView.verticalMargin = 0;
_categoryView.indicators = @[backgroundView];
}
return _categoryView;
}
//
- (JXCategoryListContainerView *)listContainerView {
if (!_listContainerView) {
_listContainerView = [[JXCategoryListContainerView alloc] initWithType:JXCategoryListContainerType_ScrollView delegate:self];
}
return _listContainerView;
}
#pragma mark - JXCategoryListContainerViewDelegate
//
- (NSInteger)numberOfListsInlistContainerView:(JXCategoryListContainerView *)listContainerView {
return self.titles.count;
}
// <JXCategoryListContentViewDelegate>
- (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index {
SPGiftRecordListVC *list = [[SPGiftRecordListVC alloc] init];
list.type = self.type;
list.gift_from_type = index+1;
return list;
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,16 @@
//
// SPInviteFriendListVC.h
// SweetParty
//
// Created by bj_szd on 2023/1/11.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPInviteFriendListVC : BaseTableViewController
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,108 @@
//
// SPInviteFriendListVC.m
// SweetParty
//
// Created by bj_szd on 2023/1/11.
//
#import "SPInviteFriendListVC.h"
#import "SPInviteFriendListCell.h"
@interface SPInviteFriendListVC ()
@property (weak, nonatomic) IBOutlet UILabel *totalValueLab;
@end
@implementation SPInviteFriendListVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"邀请列表"];
[self createUI];
[self fetchData];
}
-(void)createUI {
[self.tableView registerNib:[UINib nibWithNibName:@"SPInviteFriendListCell" bundle:nil] forCellReuseIdentifier:@"SPInviteFriendListCell"];
self.tableView.rowHeight = 75;
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(yb_NavigationBar_H);
make.left.right.mas_equalTo(0);
make.bottom.mas_equalTo(-70);
}];
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSDictionary *params = @{@"page":@(self.page), @"page_limit":@(10)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"/api/user/get_user_child_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPFocusFansModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"][@"list"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
self.totalValueLab.text = [NSString stringWithFormat:@"总收益:%@钻石", responseDic[@"data"][@"user_total_earnings"]];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPInviteFriendListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPInviteFriendListCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPFocusFansModel *model = self.dataArray[indexPath.row];
cell.model = model;
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
SPFocusFansModel *model = self.dataArray[indexPath.row];
[UIViewController goUserMainpageWith:model.uid withRid:@""];
}
@end

View File

@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SPInviteFriendListVC">
<connections>
<outlet property="totalValueLab" destination="qd5-Dx-6dQ" id="3e2-fO-8F9"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="V4h-ti-AVD">
<rect key="frame" x="0.0" y="732" width="375" height="80"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="总收益0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qd5-Dx-6dQ">
<rect key="frame" x="15" y="15" width="71" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<color key="textColor" red="0.027450980390000001" green="0.027450980390000001" blue="0.027450980390000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.96862745098039216" green="0.96862745098039216" blue="0.96862745098039216" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="qd5-Dx-6dQ" firstAttribute="leading" secondItem="V4h-ti-AVD" secondAttribute="leading" constant="15" id="Eo2-4m-vhL"/>
<constraint firstAttribute="height" constant="80" id="oyx-Fj-4ed"/>
<constraint firstItem="qd5-Dx-6dQ" firstAttribute="top" secondItem="V4h-ti-AVD" secondAttribute="top" constant="15" id="tRZ-7p-vDQ"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="V4h-ti-AVD" secondAttribute="trailing" id="ELZ-ph-5sS"/>
<constraint firstItem="V4h-ti-AVD" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="Q6n-aH-8qx"/>
<constraint firstAttribute="bottom" secondItem="V4h-ti-AVD" secondAttribute="bottom" id="sBP-nK-3uf"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="132" y="-11"/>
</view>
</objects>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

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

View File

@@ -0,0 +1,61 @@
//
// SPInviteFriendVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/8.
//
#import "SPInviteFriendVC.h"
#import "SGQRCode.h"
#import "MSCommonTool.h"
#import "SPInviteFriendListVC.h"
@interface SPInviteFriendVC ()
@property (weak, nonatomic) IBOutlet UILabel *inviteCodeLab;
@property (weak, nonatomic) IBOutlet UIImageView *qrCodeImgV;
@property (weak, nonatomic) IBOutlet UIButton *saveBtn;
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV;
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab;
@end
@implementation SPInviteFriendVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@""];
// [self.saveBtn styleGradiBlueColor];
// [self.naviView.backBtn setImage:ImageNamed(@"whiteBack") forState:(UIControlStateNormal)];
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:self.model.head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab.text = self.model.nick_name;
self.inviteCodeLab.text = self.model.reg_code;
dispatch_async(dispatch_get_main_queue(),^{
self.qrCodeImgV.image = [SGQRCodeObtain generateQRCodeWithData:self.model.reg_url size:160];
});
[ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-60-10, yb_StatusBar_H+7, 60, 30) text:@"邀请列表" font:YBMediumFont(14) color:HEXCOLOR(0x333333) backguoundColor:nil imageName:nil target:self action:@selector(onInviteList)];
}
- (void)onInviteList {
SPInviteFriendListVC *vc = [[SPInviteFriendListVC alloc] init];
[self.navigationController pushViewController:vc animated:YES];
}
- (IBAction)onSave:(id)sender {
UIImage *shareImg = [MSCommonTool convertViewToImage:self.view];
[MSCommonTool saveImage:shareImg assetCollectionName:@"最近"];
}
- (IBAction)onDuplicate:(id)sender {
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = self.model.reg_url;
[HelpPageDefine showMessage:@"复制成功"];
}
@end

View File

@@ -0,0 +1,169 @@
<?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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SPInviteFriendVC">
<connections>
<outlet property="avatarImgV" destination="arF-wA-rje" id="akV-9X-iOD"/>
<outlet property="inviteCodeLab" destination="zxV-ka-KUg" id="h0n-Ur-Do9"/>
<outlet property="nicknameLab" destination="EvW-OC-7G7" id="fTd-1b-kt0"/>
<outlet property="qrCodeImgV" destination="WKS-G2-rZR" id="KZZ-b9-Tei"/>
<outlet property="saveBtn" destination="Iic-gW-tqR" id="oKI-Ek-k1S"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="invite_bg" translatesAutoresizingMaskIntoConstraints="NO" id="Qb9-tJ-7sV">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
</imageView>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="m7c-oG-Yjl">
<rect key="frame" x="15" y="305" width="345" height="457"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="arF-wA-rje">
<rect key="frame" x="30" y="30" width="44" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="44" id="MDS-pD-7le"/>
<constraint firstAttribute="height" constant="44" id="ZjK-2W-rUq"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="22"/>
</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="EvW-OC-7G7">
<rect key="frame" x="84" y="30" width="40.5" height="19.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="邀请好友一起来玩呀~" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="sPR-Sk-PuO">
<rect key="frame" x="84" y="54.5" width="118.5" height="14.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="WKS-G2-rZR">
<rect key="frame" x="90" y="89" width="165" height="165"/>
<constraints>
<constraint firstAttribute="height" constant="165" id="FBQ-57-jM5"/>
<constraint firstAttribute="width" constant="165" id="aLn-TR-rZH"/>
</constraints>
</imageView>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="A B C D" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="zxV-ka-KUg">
<rect key="frame" x="90" y="293.5" width="165" height="32"/>
<color key="backgroundColor" red="0.0" green="0.71372549019607845" blue="0.50980392156862742" alpha="0.10000000000000001" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="165" id="9Kz-zt-7L0"/>
<constraint firstAttribute="height" constant="32" id="Gua-f1-mQ9"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="20"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="我的邀请码" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Ls4-yF-JIJ">
<rect key="frame" x="131.5" y="264" width="82" height="19.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="Iic-gW-tqR">
<rect key="frame" x="180" y="388" width="135" height="44"/>
<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" image="invite_save_img"/>
<connections>
<action selector="onSave:" destination="-1" eventType="touchUpInside" id="rjJ-R4-NXg"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="t3H-N8-Qsy">
<rect key="frame" x="30" y="388" width="135" height="44"/>
<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" image="invite_duplicate">
<color key="titleColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onDuplicate:" destination="-1" eventType="touchUpInside" id="bXe-O0-029"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="邀请充值福利只要被邀请人通过你的邀请链接注册下载app被邀请人的每一次充值你都会获得千分之三的钻石奖励绑定支付宝后满50元可直接提现。提现手续费7%" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="v4N-CP-Nhs">
<rect key="frame" x="15" y="335.5" width="315" height="39.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="11"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="v4N-CP-Nhs" secondAttribute="trailing" constant="15" id="0C9-aI-evc"/>
<constraint firstItem="sPR-Sk-PuO" firstAttribute="leading" secondItem="EvW-OC-7G7" secondAttribute="leading" id="2KE-ry-CjB"/>
<constraint firstItem="arF-wA-rje" firstAttribute="top" secondItem="m7c-oG-Yjl" secondAttribute="top" constant="30" id="6WE-3H-XoS"/>
<constraint firstItem="zxV-ka-KUg" firstAttribute="top" secondItem="Ls4-yF-JIJ" secondAttribute="bottom" constant="10" id="Cgg-Ag-lTA"/>
<constraint firstItem="EvW-OC-7G7" firstAttribute="leading" secondItem="arF-wA-rje" secondAttribute="trailing" constant="10" id="DP0-Yk-CHO"/>
<constraint firstAttribute="trailing" secondItem="Iic-gW-tqR" secondAttribute="trailing" constant="30" id="LHY-Qv-jyL"/>
<constraint firstItem="zxV-ka-KUg" firstAttribute="centerX" secondItem="m7c-oG-Yjl" secondAttribute="centerX" id="Myr-dn-67F"/>
<constraint firstItem="EvW-OC-7G7" firstAttribute="top" secondItem="arF-wA-rje" secondAttribute="top" id="THz-za-NIs"/>
<constraint firstItem="WKS-G2-rZR" firstAttribute="top" secondItem="sPR-Sk-PuO" secondAttribute="bottom" constant="20" id="TpZ-R4-Plo"/>
<constraint firstAttribute="bottom" secondItem="t3H-N8-Qsy" secondAttribute="bottom" constant="25" id="WUg-Yj-PZ7"/>
<constraint firstItem="arF-wA-rje" firstAttribute="leading" secondItem="m7c-oG-Yjl" secondAttribute="leading" constant="30" id="Yz2-JM-dwE"/>
<constraint firstItem="t3H-N8-Qsy" firstAttribute="leading" secondItem="m7c-oG-Yjl" secondAttribute="leading" constant="30" id="a4I-Qg-5iR"/>
<constraint firstItem="WKS-G2-rZR" firstAttribute="centerX" secondItem="m7c-oG-Yjl" secondAttribute="centerX" id="bdH-1j-smc"/>
<constraint firstItem="Ls4-yF-JIJ" firstAttribute="centerX" secondItem="m7c-oG-Yjl" secondAttribute="centerX" id="dCY-oC-cwh"/>
<constraint firstItem="Ls4-yF-JIJ" firstAttribute="top" secondItem="WKS-G2-rZR" secondAttribute="bottom" constant="10" id="gQS-H4-3KT"/>
<constraint firstItem="v4N-CP-Nhs" firstAttribute="leading" secondItem="m7c-oG-Yjl" secondAttribute="leading" constant="15" id="hhz-TN-Cu5"/>
<constraint firstItem="v4N-CP-Nhs" firstAttribute="top" secondItem="zxV-ka-KUg" secondAttribute="bottom" constant="10" id="iW3-sy-pf4"/>
<constraint firstItem="sPR-Sk-PuO" firstAttribute="top" secondItem="EvW-OC-7G7" secondAttribute="bottom" constant="5" id="rHg-g4-8Om"/>
<constraint firstAttribute="height" constant="457" id="rMR-L5-c3n"/>
<constraint firstAttribute="bottom" secondItem="Iic-gW-tqR" secondAttribute="bottom" constant="25" id="xMD-wj-uge"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="Qb9-tJ-7sV" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="AQ3-dg-xLj"/>
<constraint firstAttribute="bottom" secondItem="Qb9-tJ-7sV" secondAttribute="bottom" id="GnL-wW-MWk"/>
<constraint firstItem="m7c-oG-Yjl" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="H89-0b-nSx"/>
<constraint firstAttribute="bottom" secondItem="m7c-oG-Yjl" secondAttribute="bottom" constant="50" id="L4W-Xz-McP"/>
<constraint firstAttribute="trailing" secondItem="Qb9-tJ-7sV" secondAttribute="trailing" id="Ute-ws-IcF"/>
<constraint firstAttribute="trailing" secondItem="m7c-oG-Yjl" secondAttribute="trailing" constant="15" id="ovZ-bS-zkx"/>
<constraint firstItem="Qb9-tJ-7sV" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="q3D-1r-5WZ"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="159" y="117"/>
</view>
</objects>
<resources>
<image name="invite_bg" width="375" height="812"/>
<image name="invite_duplicate" width="135" height="44"/>
<image name="invite_save_img" width="135" height="44"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

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

View File

@@ -0,0 +1,200 @@
//
// SPMineEditInfoVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/9.
//
#import "SPMineEditInfoVC.h"
#import "SPMineEditInfoCell.h"
#import "SPMineEditAlbumView.h"
#import "BRPickerView.h"
@interface SPMineEditInfoVC () <UITextFieldDelegate>
@property (nonatomic, strong) SPMineEditAlbumView *albumView;
@property (nonatomic, strong) NSArray *titlesArr;
@end
@implementation SPMineEditInfoVC
- (void)viewDidLoad {
[super viewDidLoad];
self.titlesArr = @[@"头像", @"昵称", @"性别", @"生日", @"个性签名"];
[self showNaviBarWithTitle:@"编辑资料"];
[self createUI];
[self fetchAlbumData];
}
-(void)createUI {
[self.tableView registerNib:[UINib nibWithNibName:@"SPMineEditInfoCell" bundle:nil] forCellReuseIdentifier:@"SPMineEditInfoCell"];
[ControlCreator createButton:self.naviView rect:CGRectMake(ScreenWidth-40-12, yb_StatusBar_H+7, 40, 30) text:@"保存" font:YBMediumFont(14) color:HEXCOLOR(0x333333) backguoundColor:nil imageName:nil target:self action:@selector(onSave)];
}
-(void)fetchAlbumData {
NSDictionary *params = @{@"from_id":C_string(self.model.uid)};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/player/player_home_page" Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
SPHomepageModel *model = [SPHomepageModel mj_objectWithKeyValues:responseDic[@"data"]];
self.albumView.model = model;
self.tableView.tableFooterView = self.albumView;
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onSave {
if (self.model.nick_name <= 0) {
[HelpPageDefine showMessage:@"请输入昵称"];
return;
}
if (self.model.autograph <= 0) {
[HelpPageDefine showMessage:@"请输入个性签名"];
return;
}
NSDictionary *params = @{@"head_pic":self.model.head_pic, @"nick_name":self.model.nick_name, @"autograph":self.model.autograph, @"sex":@(self.model.sex), @"birthday":self.model.birthday};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/modify_user_info" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self.navigationController popViewControllerAnimated:YES];
} Failure:^(id _Nonnull errorData) {
}];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.titlesArr.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPMineEditInfoCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPMineEditInfoCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
WEAK_SELF
cell.contentTF.tag = indexPath.row;
cell.contentTF.delegate = self;
NSString *title = self.titlesArr[indexPath.row];
cell.titleLab.text = title;
if ([title isEqualToString:@"头像"]) {
cell.avatarImgV.hidden = NO;
cell.contentTF.hidden = YES;
}else {
cell.avatarImgV.hidden = YES;
cell.contentTF.hidden = NO;
}
if ([title isEqualToString:@"头像"]) {
[cell.avatarImgV sd_setImageWithURL:[NSURL URLWithString:self.model.head_pic] placeholderImage:kDefaultUserIcon];
cell.onUploadAvatarBlock = ^(NSString * _Nonnull headUrlStr) {
weakSelf.model.head_pic = headUrlStr;
};
} else if ([title isEqualToString:@"昵称"]) {
cell.contentTF.text = self.model.nick_name;
cell.textChangeBlock = ^(NSString * _Nonnull text) {
weakSelf.model.nick_name = text;
};
} else if ([title isEqualToString:@"性别"]) {
cell.contentTF.text = self.model.sex == 1 ? @"男" : @"女";
} else if ([title isEqualToString:@"生日"]) {
cell.contentTF.text = self.model.birthday;
} else if ([title isEqualToString:@"个性签名"]) {
cell.contentTF.text = self.model.autograph;
cell.textChangeBlock = ^(NSString * _Nonnull text) {
weakSelf.model.autograph = text;
};
}
return cell;
}
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
if (0 == indexPath.row) {
return 80;
}else {
return 54;
}
}
#pragma mark - UITextFieldDelegate
- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField {
NSString *title = self.titlesArr[textField.tag];
if ([title isEqualToString:@"昵称"] || [title isEqualToString:@"个性签名"]) {
return YES; // textField
} else {
[self.view endEditing:YES];
[self handlerTextFieldSelect:textField];
return NO; // textField
}
}
#pragma mark -
- (void)handlerTextFieldSelect:(UITextField *)textField {
NSString *title = self.titlesArr[textField.tag];
if ([title isEqualToString:@"性别"]) {
BRStringPickerView *stringPickerView = [[BRStringPickerView alloc] init];
stringPickerView.pickerMode = BRStringPickerComponentSingle;
stringPickerView.dataSourceArr = @[@"男", @"女"];
stringPickerView.resultModelBlock = ^(BRResultModel *resultModel) {
self.model.sex = resultModel.index+1;
textField.text = resultModel.selectValue;
};
stringPickerView.pickerStyle = [self customPickerViewUI];
[stringPickerView show];
} else if ([title isEqualToString:@"生日"]) {
BRDatePickerView *datePickerView = [[BRDatePickerView alloc] init];
datePickerView.pickerMode = BRDatePickerModeYMD;
datePickerView.minDate = [NSDate br_setYear:1900 month:1 day:1];
datePickerView.maxDate = [NSDate date];
datePickerView.showUnitType = BRShowUnitTypeNone;
datePickerView.resultBlock = ^(NSDate *selectDate, NSString *selectValue) {
self.model.birthday = selectValue;
textField.text = selectValue;
};
datePickerView.pickerStyle = [self customPickerViewUI];
[datePickerView show];
}
}
- (BRPickerStyle *)customPickerViewUI {
BRPickerStyle *style = [[BRPickerStyle alloc] init];
style.selectedColor = [UIColor whiteColor];
style.topCornerRadius = 10;
style.hiddenShadowLine = YES;
style.hiddenTitleLine = YES;
style.hiddenTitleLabel = YES;
style.titleBarColor = HEXCOLOR(0xF5F7F7);
style.cancelTextColor = HEXCOLOR(0x999999);
style.cancelTextFont = [UIFont boldSystemFontOfSize:16];
style.cancelBtnFrame = CGRectMake(0, 0, 60, 50);
style.cancelBtnTitle = @"取消";
style.doneTextColor = mainDeepColor;
style.doneTextFont = [UIFont boldSystemFontOfSize:16];
style.doneBtnFrame = CGRectMake(SCREEN_WIDTH-60, 0, 60, 50);
style.doneBtnTitle = @"确定";
style.separatorColor = [UIColor clearColor];
style.pickerTextColor = HEXCOLOR(0x333333);
style.pickerTextFont = [UIFont systemFontOfSize:16];
style.pickerColor = HEXCOLOR(0xF5F7F7);;
style.rowHeight = 44;
return style;
}
- (SPMineEditAlbumView *)albumView {
if (!_albumView) {
_albumView = [[NSBundle mainBundle] loadNibNamed:@"SPMineEditAlbumView" owner:self options:nil].firstObject;
CGFloat itemW = (ScreenWidth-15*2-12*2)/3;
_albumView.frame = CGRectMake(0, 0, ScreenWidth, 70+itemW*2+12);
}
return _albumView;
}
@end

View File

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

View File

@@ -0,0 +1,129 @@
//
// SPMineLevelVC.m
// SweetParty
//
// Created by bj_szd on 2022/7/5.
//
#import "SPMineLevelVC.h"
#import "HXMineLevelCell.h"
@interface SPMineLevelVC () <JXCategoryViewDelegate, UITableViewDelegate, UITableViewDataSource>
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV;
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab;
@property (weak, nonatomic) IBOutlet UIImageView *gxImgV;
@property (weak, nonatomic) IBOutlet UIImageView *mlImgV;
@property (weak, nonatomic) IBOutlet UITableView *tableView;
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) JXCategoryTitleView *categoryView;
@property (nonatomic, strong) NSArray *dataArray;
@end
@implementation SPMineLevelVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"等级"];
self.titles = @[@"贡献等级介绍", @"魅力等级介绍"];
[self createUI];
[self fetchData];
[self fetchLevelData:2];
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:[BJUserManager userInfo].head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab.text = [BJUserManager userInfo].nick_name;
}
- (void)createUI {
[self.view addSubview:self.categoryView];
[self.categoryView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(yb_NavigationBar_H+8+110+18);
make.left.equalTo(self.view).offset(0);
make.right.equalTo(self.view).offset(0);
make.height.mas_equalTo(44);
}];
self.tableView.separatorStyle = NO;
self.tableView.delegate = self;
self.tableView.dataSource = self;
[self.tableView registerNib:[UINib nibWithNibName:@"HXMineLevelCell" bundle:nil] forCellReuseIdentifier:@"HXMineLevelCell"];
self.tableView.rowHeight = 36;
}
- (void)fetchData {
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/get_user_level_info" Loading:YES Hud:NO Success:^(id _Nonnull responseDic) {
NSDictionary *gxDic = [responseDic[@"data"] safeDictionaryForKey:@"contribution_level_info"];
NSDictionary *mlDic = [responseDic[@"data"] safeDictionaryForKey:@"charm_level_info"];
[self.gxImgV sd_setImageWithURL:[NSURL URLWithString:gxDic[@"now_level_image"]]];
[self.mlImgV sd_setImageWithURL:[NSURL URLWithString:mlDic[@"now_level_image"]]];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)fetchLevelData:(NSInteger)type {
//2 1
NSDictionary *params = @{@"type":@(type)};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/user/get_level_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
self.dataArray = [HXMineLevelModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"][@"level_list"]];
[self.tableView reloadData];
} Failure:^(id _Nonnull errorData) {
}];
}
#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 {
HXMineLevelCell *cell = [tableView dequeueReusableCellWithIdentifier:@"HXMineLevelCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
HXMineLevelModel *model = self.dataArray[indexPath.row];
cell.model = model;
return cell;
}
- (void)categoryView:(JXCategoryBaseView *)categoryView didSelectedItemAtIndex:(NSInteger)index {
[self fetchLevelData:index==0?2:1];
}
//
- (JXCategoryTitleView *)categoryView {
if (!_categoryView) {
_categoryView = [[JXCategoryTitleView alloc] init];
_categoryView.delegate = self;
_categoryView.titleFont = YBFont(14);
_categoryView.titleSelectedFont = YBBoldFont(15);
_categoryView.titleColor = HEXCOLOR(0x999999);
_categoryView.titleSelectedColor = HEXCOLOR(0x333333);
_categoryView.contentEdgeInsetLeft = 15;
_categoryView.cellSpacing = 30;
_categoryView.averageCellSpacingEnabled = NO;
_categoryView.titles = self.titles;
}
return _categoryView;
}
@end

View File

@@ -0,0 +1,155 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="19529" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_1" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="19519"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="SPMineLevelVC">
<connections>
<outlet property="avatarImgV" destination="5cG-tt-6sW" id="12Z-Ys-jzd"/>
<outlet property="gxImgV" destination="ZWl-rs-yLB" id="aQR-WB-DZm"/>
<outlet property="mlImgV" destination="wBs-qd-Es2" id="smc-yf-glc"/>
<outlet property="nicknameLab" destination="yKO-zG-Kr0" id="exs-W3-QIR"/>
<outlet property="tableView" destination="0R9-3h-Uhm" id="BCZ-qN-BuM"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ecP-Jx-c6L">
<rect key="frame" x="15" y="96" width="384" height="110"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="default_userIcon" translatesAutoresizingMaskIntoConstraints="NO" id="5cG-tt-6sW">
<rect key="frame" x="18" y="19" width="72" height="72"/>
<constraints>
<constraint firstAttribute="width" constant="72" id="JAv-SP-m6Y"/>
<constraint firstAttribute="height" constant="72" id="LBW-ti-dUJ"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="36"/>
</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="yKO-zG-Kr0">
<rect key="frame" x="100" y="30" width="35" height="20.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="ZWl-rs-yLB">
<rect key="frame" x="100" y="59.5" width="40" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="cst-aE-KTn"/>
<constraint firstAttribute="height" constant="20" id="yUd-v7-QIE"/>
</constraints>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="wBs-qd-Es2">
<rect key="frame" x="150" y="59.5" width="40" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="Nb9-C4-9Hf"/>
<constraint firstAttribute="width" constant="40" id="tfU-5H-atT"/>
</constraints>
</imageView>
</subviews>
<color key="backgroundColor" red="0.96078431369999995" green="0.96078431369999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="wBs-qd-Es2" firstAttribute="centerY" secondItem="ZWl-rs-yLB" secondAttribute="centerY" id="13p-ZU-5gn"/>
<constraint firstAttribute="height" constant="110" id="6tA-01-NI7"/>
<constraint firstItem="yKO-zG-Kr0" firstAttribute="leading" secondItem="5cG-tt-6sW" secondAttribute="trailing" constant="10" id="KDJ-pH-oNR"/>
<constraint firstItem="5cG-tt-6sW" firstAttribute="centerY" secondItem="ecP-Jx-c6L" secondAttribute="centerY" id="KL6-if-1YC"/>
<constraint firstItem="yKO-zG-Kr0" firstAttribute="top" secondItem="5cG-tt-6sW" secondAttribute="top" constant="11" id="QPG-Ys-asQ"/>
<constraint firstItem="5cG-tt-6sW" firstAttribute="leading" secondItem="ecP-Jx-c6L" secondAttribute="leading" constant="18" id="W4o-oB-JhW"/>
<constraint firstItem="wBs-qd-Es2" firstAttribute="leading" secondItem="ZWl-rs-yLB" secondAttribute="trailing" constant="10" id="YBn-rC-ugo"/>
<constraint firstItem="ZWl-rs-yLB" firstAttribute="top" secondItem="yKO-zG-Kr0" secondAttribute="bottom" constant="9" id="qAu-rf-iwh"/>
<constraint firstItem="ZWl-rs-yLB" firstAttribute="leading" secondItem="yKO-zG-Kr0" secondAttribute="leading" id="x8v-XT-c7a"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="15"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="o81-k7-5y3">
<rect key="frame" x="15" y="276" width="384" height="586"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="ida-FM-nNS">
<rect key="frame" x="0.0" y="0.0" width="384" height="36"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="经验值" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="BA3-bh-Nqo">
<rect key="frame" x="173.5" y="10.5" width="37" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="等级" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="pce-0e-zcx">
<rect key="frame" x="45" y="10.5" width="25" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="等级图标" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="oKz-fu-2dZ">
<rect key="frame" x="301.5" y="10.5" width="49.5" height="15"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.96078431369999995" green="0.96078431369999995" blue="0.96078431369999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="oKz-fu-2dZ" firstAttribute="centerY" secondItem="ida-FM-nNS" secondAttribute="centerY" id="Lnn-VT-arv"/>
<constraint firstItem="BA3-bh-Nqo" firstAttribute="centerX" secondItem="ida-FM-nNS" secondAttribute="centerX" id="U3f-vN-Gm8"/>
<constraint firstItem="BA3-bh-Nqo" firstAttribute="centerY" secondItem="ida-FM-nNS" secondAttribute="centerY" id="Wu4-97-ljG"/>
<constraint firstItem="pce-0e-zcx" firstAttribute="centerX" secondItem="ida-FM-nNS" secondAttribute="centerX" multiplier="0.3" id="iyL-WW-NeI"/>
<constraint firstAttribute="height" constant="36" id="npq-bL-iDH"/>
<constraint firstItem="pce-0e-zcx" firstAttribute="centerY" secondItem="ida-FM-nNS" secondAttribute="centerY" id="uqk-23-E5G"/>
<constraint firstItem="oKz-fu-2dZ" firstAttribute="centerX" secondItem="ida-FM-nNS" secondAttribute="centerX" multiplier="1.7" id="y1h-z4-8hW"/>
</constraints>
</view>
<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="0R9-3h-Uhm">
<rect key="frame" x="0.0" y="36" width="384" height="550"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</tableView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="ida-FM-nNS" firstAttribute="top" secondItem="o81-k7-5y3" secondAttribute="top" id="0k6-kN-egs"/>
<constraint firstAttribute="trailing" secondItem="ida-FM-nNS" secondAttribute="trailing" id="BEg-hn-43k"/>
<constraint firstItem="0R9-3h-Uhm" firstAttribute="top" secondItem="ida-FM-nNS" secondAttribute="bottom" id="BW6-3b-Ddl"/>
<constraint firstAttribute="trailing" secondItem="0R9-3h-Uhm" secondAttribute="trailing" id="cUC-59-buE"/>
<constraint firstItem="0R9-3h-Uhm" firstAttribute="leading" secondItem="o81-k7-5y3" secondAttribute="leading" id="hci-TB-qEV"/>
<constraint firstAttribute="bottom" secondItem="0R9-3h-Uhm" secondAttribute="bottom" id="rfT-D6-KVx"/>
<constraint firstItem="ida-FM-nNS" firstAttribute="leading" secondItem="o81-k7-5y3" secondAttribute="leading" id="z9Y-ky-gOH"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="8"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="dUo-eB-8BI"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="ecP-Jx-c6L" secondAttribute="trailing" constant="15" id="B14-R5-TZv"/>
<constraint firstItem="ecP-Jx-c6L" firstAttribute="top" secondItem="dUo-eB-8BI" secondAttribute="top" constant="52" id="Dal-IQ-rNR"/>
<constraint firstItem="o81-k7-5y3" firstAttribute="top" secondItem="ecP-Jx-c6L" secondAttribute="bottom" constant="70" id="FYK-Um-IJO"/>
<constraint firstItem="dUo-eB-8BI" firstAttribute="bottom" secondItem="o81-k7-5y3" secondAttribute="bottom" id="HL7-7W-1ef"/>
<constraint firstItem="o81-k7-5y3" firstAttribute="leading" secondItem="dUo-eB-8BI" secondAttribute="leading" constant="15" id="TNf-oa-axv"/>
<constraint firstItem="ecP-Jx-c6L" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="h51-ef-YTM"/>
<constraint firstItem="dUo-eB-8BI" firstAttribute="trailing" secondItem="o81-k7-5y3" secondAttribute="trailing" constant="15" id="lQZ-eP-6lm"/>
</constraints>
<point key="canvasLocation" x="131.8840579710145" y="89.732142857142847"/>
</view>
</objects>
<resources>
<image name="default_userIcon" width="90" height="90"/>
</resources>
</document>

View File

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

View File

@@ -0,0 +1,173 @@
//
// SPMineQianyueListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/8.
//
#import "SPMineQianyueListVC.h"
#import "SPMineQianyueListCell.h"
#import "YYVipChangeAlert.h"
@interface SPMineQianyueListVC ()
@end
@implementation SPMineQianyueListVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@""];
[self onChangeNaviWhiteStyle];
[self.naviView.backBtn setImage:ImageNamed(@"whiteBack") forState:UIControlStateNormal];
[self createUI];
[self fetchData];
}
-(void)createUI {
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"mine_qianyue_bg")];
[self.view insertSubview:bgImgV atIndex:0];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[self.tableView registerNib:[UINib nibWithNibName:@"SPMineQianyueListCell" bundle:nil] forCellReuseIdentifier:@"SPMineQianyueListCell"];
self.tableView.rowHeight = 85;
self.tableView.backgroundColor = HEXCOLOR(0xFFF7F7);
self.tableView.layer.cornerRadius = 10;
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(294);
make.left.mas_equalTo(15);
make.right.mas_equalTo(-15);
make.bottom.mas_equalTo(-34);
}];
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSDictionary *params = @{@"page":@(self.page), @"page_limit":@(10), @"uid":BJUserManager.userInfo.uid};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"/api/Contract/get_user_contract_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPFocusFansModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPMineQianyueListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPMineQianyueListCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPFocusFansModel *model = self.dataArray[indexPath.row];
cell.model = model;
cell.focusBtnTopCon.constant = 7.5;
cell.jieyueBtn.hidden = NO;
WEAK_SELF
[cell.focusBtn buttonAddTaget:^(UIButton *btn) {
[weakSelf onRequestXuyue:model.id];
} forControlEvents:UIControlEventTouchUpInside];
[cell.jieyueBtn buttonAddTaget:^(UIButton *btn) {
[weakSelf onRequestJieyue:model.id];
} forControlEvents:UIControlEventTouchUpInside];
return cell;
}
- (void)onRequestXuyue:(NSString *)xuyueId {
NSDictionary *params = @{@"id":xuyueId};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/Contract/user_renewal_contract_status" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
YYVipChangeAlert *view = LoadNib(@"YYVipChangeAlert");
view.frame = [UIScreen mainScreen].bounds;
view.titleLab.text = @"续约艺人";
view.contentLab.text = [NSString stringWithFormat:@"前三次免费续约,本次可花费%@金币续约7天确定续约吗", responseDic[@"data"][@"money"]];
[KEYWINDOW addSubview:view];
view.onCompleteBlock = ^{
[self onConfirm:xuyueId];
};
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onConfirm:(NSString *)xuyueId {
NSDictionary *params = @{@"id":xuyueId};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/Contract/user_renewal_contract" Loading:NO Hud:YES Success:^(id _Nonnull responseDic) {
[self refreshFetchData];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onRequestJieyue:(NSString *)xuyueId {
YYVipChangeAlert *view = LoadNib(@"YYVipChangeAlert");
view.frame = [UIScreen mainScreen].bounds;
view.titleLab.text = @"解约艺人";
view.contentLab.text = @"确定解约吗?";
[KEYWINDOW addSubview:view];
view.onCompleteBlock = ^{
NSDictionary *params = @{@"id":xuyueId};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/contract/user_cancel_contract" Loading:NO Hud:YES Success:^(id _Nonnull responseDic) {
[self refreshFetchData];
} Failure:^(id _Nonnull errorData) {
}];
};
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
SPFocusFansModel *model = self.dataArray[indexPath.row];
[UIViewController goUserMainpageWith:model.uid withRid:@""];
}
@end

View File

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

View File

@@ -0,0 +1,103 @@
//
// SPMineVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/2.
//
#import "SPMineVC.h"
#import "SPMineHeaderView.h"
@interface SPMineVC ()<UIGestureRecognizerDelegate>
@property (nonatomic, strong) SPMineHeaderView *headerView;
@property (nonatomic, assign)BOOL isCanUseSideBack; //
@end
@implementation SPMineVC
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self fetchData];
}
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
}
-(void)createUI {
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"home_bg")];
[self.view addSubview:bgImgV];
[self.view sendSubviewToBack:bgImgV];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
self.tableView.frame = CGRectMake(0, 0, ScreenWidth, ScreenHeight-TabBar_H);
self.tableView.tableHeaderView = self.headerView;
}
- (void)fetchData {
NSDictionary *params = @{};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"api/user/get_user_info" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
SPMineModel *model = [SPMineModel mj_objectWithKeyValues:responseDic[@"data"]];
self.headerView.model = model;
//
[BJUserManager saveUserInfo:responseDic[@"data"]];
} Failure:^(id _Nonnull errorData) {
}];
}
- (SPMineHeaderView *)headerView {
if (!_headerView) {
_headerView = [[NSBundle mainBundle] loadNibNamed:@"SPMineHeaderView" owner:self options:nil].firstObject;
_headerView.frame = CGRectMake(0, 0, ScreenWidth, 889);
}
return _headerView;
}
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
[self cancelSideBack];
}
- (void)viewDidDisappear:(BOOL)animated {
[super viewDidDisappear:animated];
[self startSideBack];
}
/**
* ios
*/
-(void)cancelSideBack{
self.isCanUseSideBack = NO;
if([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.delegate=self;
}
}
/*
ios
*/
- (void)startSideBack {
self.isCanUseSideBack=YES;
if([self.navigationController respondsToSelector:@selector(interactivePopGestureRecognizer)]) {
self.navigationController.interactivePopGestureRecognizer.delegate = nil;
}
}
- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer*)gestureRecognizer {
return self.isCanUseSideBack;
}
@end

View File

@@ -0,0 +1,16 @@
//
// YYMineCPVC.h
// SweetParty
//
// Created by bj_szd on 2024/1/22.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface YYMineCPVC : BaseViewController
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,108 @@
//
// YYMineCPVC.m
// SweetParty
//
// Created by bj_szd on 2024/1/22.
//
#import "YYMineCPVC.h"
#import "YYMineCPModel.h"
#import "MLMaskView.h"
@interface YYMineCPVC ()
@property (weak, nonatomic) IBOutlet UIView *cpBgView;
@property (weak, nonatomic) IBOutlet UIImageView *bgImgV;
@property (weak, nonatomic) IBOutlet UIImageView *heartImgV;
@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 *valueLab;
@property (weak, nonatomic) IBOutlet UILabel *levelLab;
@property (weak, nonatomic) IBOutlet UIImageView *cpBorderImgV_1;
@property (weak, nonatomic) IBOutlet UIImageView *cpBorderImgV_2;
@property (weak, nonatomic) IBOutlet UIImageView *sexPic_1;
@property (weak, nonatomic) IBOutlet UIImageView *sexPic_2;
@property (nonatomic, strong) YYMineCPModel *model;
@property (weak, nonatomic) IBOutlet UIImageView *onlineStatus_1;
@property (weak, nonatomic) IBOutlet UIImageView *onlineStatus_2;
@end
@implementation YYMineCPVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"CP"];
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"home_bg")];
[self.view addSubview:bgImgV];
[self.view sendSubviewToBack:bgImgV];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[self fetchData];
WEAK_SELF
[self.avatarImgV_1 dg_Tapped:^{
[UIViewController goUserMainpageWith:weakSelf.model.uid withRid:@""];
}];
[self.avatarImgV_2 dg_Tapped:^{
[UIViewController goUserMainpageWith:weakSelf.model.receive_uid withRid:@""];
}];
}
-(void)fetchData {
NSDictionary *params = @{@"uid":C_string(BJUserManager.userInfo.uid)};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/coupling/user_coupling_info" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
YYMineCPModel *model = [YYMineCPModel mj_objectWithKeyValues:responseDic[@"data"]];
self.model = model;
[self onUpdateUIWith:model];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onUpdateUIWith:(YYMineCPModel *)model {
if (model.receive_uid.length > 0) {
self.cpBgView.hidden = NO;
[self.avatarImgV_1 sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab_1.text = model.nick_name;
[self.cpBorderImgV_1 sd_setImageWithURL:[NSURL URLWithString:model.win_base_image]];
[self.avatarImgV_2 sd_setImageWithURL:[NSURL URLWithString:model.receive_head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab_2.text = model.receive_nick_name;
[self.cpBorderImgV_2 sd_setImageWithURL:[NSURL URLWithString:model.receive_win_base_image]];
self.levelLab.text = [NSString stringWithFormat:@"LV%@", model.cp_level];
self.valueLab.text = [NSString stringWithFormat:@"%@/%@", model.now_value, model.next_value];
if (model.is_online == 1){
self.onlineStatus_1.image = ImageNamed(@"msg_online");
}else{
self.onlineStatus_1.image = ImageNamed(@"msg_offline");
}
if (model.receive_is_online == 1){
self.onlineStatus_2.image = ImageNamed(@"msg_online");
}else{
self.onlineStatus_2.image = ImageNamed(@"msg_offline");
}
}else {
self.cpBgView.hidden = YES;
[self.view addSubview:self.noContentV];
[self.noContentV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(yb_NavigationBar_H);
make.left.right.bottom.mas_equalTo(0);
}];
}
}
@end

View File

@@ -0,0 +1,166 @@
<?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="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="YYMineCPVC">
<connections>
<outlet property="avatarImgV_1" destination="oha-H5-zdH" id="igm-1m-bWG"/>
<outlet property="avatarImgV_2" destination="zDy-ab-pfV" id="tBQ-9l-CZY"/>
<outlet property="bgImgV" destination="7Lx-Rj-NdJ" id="CIm-P4-HuP"/>
<outlet property="cpBgView" destination="rJZ-Mq-QdQ" id="l2N-ZG-xLY"/>
<outlet property="cpBorderImgV_1" destination="U0h-2o-Keh" id="jvF-vv-kgP"/>
<outlet property="cpBorderImgV_2" destination="Jbd-nk-E1w" id="1PV-KJ-a6L"/>
<outlet property="heartImgV" destination="wM8-DK-ua3" id="hdS-sx-vaZ"/>
<outlet property="levelLab" destination="Rkd-sR-hus" id="hXc-r2-eUa"/>
<outlet property="nicknameLab_1" destination="mX8-nz-YaS" id="w8P-T6-TjT"/>
<outlet property="nicknameLab_2" destination="x3f-Br-mos" id="zlQ-UA-sXf"/>
<outlet property="valueLab" destination="fML-Aq-H4d" id="I4J-s8-2kB"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rJZ-Mq-QdQ">
<rect key="frame" x="15" y="110" width="345" height="128"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="mine_cp_bg" translatesAutoresizingMaskIntoConstraints="NO" id="7Lx-Rj-NdJ">
<rect key="frame" x="0.0" y="0.0" width="345" height="128"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="mine_cp_heart" translatesAutoresizingMaskIntoConstraints="NO" id="wM8-DK-ua3">
<rect key="frame" x="123.5" y="15" width="98" height="98"/>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="default_userIcon" translatesAutoresizingMaskIntoConstraints="NO" id="oha-H5-zdH">
<rect key="frame" x="35" y="25" width="58" height="58"/>
<constraints>
<constraint firstAttribute="height" constant="58" id="Nfs-Yh-LZ8"/>
<constraint firstAttribute="width" constant="58" id="mZM-fx-ppd"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="29"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="U0h-2o-Keh">
<rect key="frame" x="25" y="15" width="78" height="78"/>
<constraints>
<constraint firstAttribute="width" constant="78" id="PxU-vg-Itr"/>
<constraint firstAttribute="height" constant="78" id="Whi-L3-ibW"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="旺仔.牛奶" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="mX8-nz-YaS">
<rect key="frame" x="37.5" y="95" width="53.5" height="15"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
<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" image="default_userIcon" translatesAutoresizingMaskIntoConstraints="NO" id="zDy-ab-pfV">
<rect key="frame" x="252" y="25" width="58" height="58"/>
<constraints>
<constraint firstAttribute="height" constant="58" id="R22-0g-L3f"/>
<constraint firstAttribute="width" constant="58" id="sc7-YX-h8d"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="29"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Jbd-nk-E1w">
<rect key="frame" x="242" y="15" width="78" height="78"/>
<constraints>
<constraint firstAttribute="width" constant="78" id="Wp1-TN-Isz"/>
<constraint firstAttribute="height" constant="78" id="ojf-CE-e93"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="旺仔.牛奶" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="x3f-Br-mos">
<rect key="frame" x="254.5" y="95" width="53.5" height="15"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
<color key="textColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="100/200" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fML-Aq-H4d">
<rect key="frame" x="137.5" y="93" width="70" height="20"/>
<color key="backgroundColor" red="1" green="1" blue="1" alpha="0.5" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="70" id="5P1-xz-63x"/>
<constraint firstAttribute="height" constant="20" id="LD8-Tg-ID8"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
<color key="textColor" red="0.94901960784313721" green="0.46666666666666667" blue="0.74117647058823533" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Lv.1" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Rkd-sR-hus">
<rect key="frame" x="158.5" y="54.5" width="28.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>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="mX8-nz-YaS" firstAttribute="top" secondItem="U0h-2o-Keh" secondAttribute="bottom" constant="2" id="1rZ-nF-20N"/>
<constraint firstItem="mX8-nz-YaS" firstAttribute="centerX" secondItem="oha-H5-zdH" secondAttribute="centerX" id="4OJ-fa-V07"/>
<constraint firstAttribute="trailing" secondItem="7Lx-Rj-NdJ" secondAttribute="trailing" id="4lf-8s-s9Y"/>
<constraint firstAttribute="trailing" secondItem="Jbd-nk-E1w" secondAttribute="trailing" constant="25" id="7v9-fx-GGk"/>
<constraint firstItem="wM8-DK-ua3" firstAttribute="centerX" secondItem="rJZ-Mq-QdQ" secondAttribute="centerX" id="93f-RI-Xet"/>
<constraint firstItem="fML-Aq-H4d" firstAttribute="bottom" secondItem="wM8-DK-ua3" secondAttribute="bottom" id="9YK-cj-fj4"/>
<constraint firstItem="x3f-Br-mos" firstAttribute="centerX" secondItem="Jbd-nk-E1w" secondAttribute="centerX" id="ABK-ah-wcY"/>
<constraint firstItem="wM8-DK-ua3" firstAttribute="centerY" secondItem="rJZ-Mq-QdQ" secondAttribute="centerY" id="G7a-GI-vcD"/>
<constraint firstItem="zDy-ab-pfV" firstAttribute="centerY" secondItem="Jbd-nk-E1w" secondAttribute="centerY" id="H0p-gr-EiV"/>
<constraint firstItem="Rkd-sR-hus" firstAttribute="centerX" secondItem="wM8-DK-ua3" secondAttribute="centerX" id="MxS-7g-3am"/>
<constraint firstItem="U0h-2o-Keh" firstAttribute="top" secondItem="rJZ-Mq-QdQ" secondAttribute="top" constant="15" id="TlZ-84-IMH"/>
<constraint firstItem="7Lx-Rj-NdJ" firstAttribute="top" secondItem="rJZ-Mq-QdQ" secondAttribute="top" id="agi-3g-8C3"/>
<constraint firstItem="zDy-ab-pfV" firstAttribute="centerX" secondItem="Jbd-nk-E1w" secondAttribute="centerX" id="ckt-Ep-bCo"/>
<constraint firstAttribute="bottom" secondItem="7Lx-Rj-NdJ" secondAttribute="bottom" id="deR-C0-bji"/>
<constraint firstItem="U0h-2o-Keh" firstAttribute="leading" secondItem="rJZ-Mq-QdQ" secondAttribute="leading" constant="25" id="e17-Py-qBk"/>
<constraint firstItem="fML-Aq-H4d" firstAttribute="centerX" secondItem="rJZ-Mq-QdQ" secondAttribute="centerX" id="eqi-9e-yzz"/>
<constraint firstItem="Rkd-sR-hus" firstAttribute="centerY" secondItem="wM8-DK-ua3" secondAttribute="centerY" id="jjA-xO-su0"/>
<constraint firstItem="7Lx-Rj-NdJ" firstAttribute="leading" secondItem="rJZ-Mq-QdQ" secondAttribute="leading" id="pFv-Bw-ZTi"/>
<constraint firstAttribute="height" constant="128" id="uN0-sz-03n"/>
<constraint firstItem="oha-H5-zdH" firstAttribute="centerX" secondItem="U0h-2o-Keh" secondAttribute="centerX" id="wnj-k5-g05"/>
<constraint firstItem="x3f-Br-mos" firstAttribute="top" secondItem="Jbd-nk-E1w" secondAttribute="bottom" constant="2" id="x7m-as-DYd"/>
<constraint firstItem="oha-H5-zdH" firstAttribute="centerY" secondItem="U0h-2o-Keh" secondAttribute="centerY" id="ykY-h9-Lql"/>
<constraint firstItem="Jbd-nk-E1w" firstAttribute="top" secondItem="rJZ-Mq-QdQ" secondAttribute="top" constant="15" id="z3T-ob-DUe"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="rJZ-Mq-QdQ" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="VOl-XH-lrK"/>
<constraint firstAttribute="trailing" secondItem="rJZ-Mq-QdQ" secondAttribute="trailing" constant="15" id="b8G-sk-vKa"/>
<constraint firstItem="rJZ-Mq-QdQ" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="miy-mJ-62a"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-844" y="120"/>
</view>
</objects>
<resources>
<image name="default_userIcon" width="512" height="512"/>
<image name="mine_cp_bg" width="345" height="128"/>
<image name="mine_cp_heart" width="98" height="98"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,16 @@
//
// YYMineRoomListVC.h
// SweetParty
//
// Created by MAC on 2024/5/9.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface YYMineRoomListVC : BaseTableViewController
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,133 @@
//
// YYMineRoomListVC.m
// SweetParty
//
// Created by MAC on 2024/5/9.
//
#import "YYMineRoomListVC.h"
#import "YYMineRoomListCell.h"
#import "SPCommonAlert.h"
@interface YYMineRoomListVC ()
@end
@implementation YYMineRoomListVC
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self fetchData];
}
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"房间列表"];
[self createUI];
}
-(void)createUI {
[ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-60-10, yb_StatusBar_H+7, 60, 30) text:@"创建房间" font:YBMediumFont(13) color:HEXCOLOR(0x333333) backguoundColor:nil imageName:nil target:self action:@selector(onCreateRoom)];
[self.tableView registerNib:[UINib nibWithNibName:@"YYMineRoomListCell" bundle:nil] forCellReuseIdentifier:@"YYMineRoomListCell"];
self.tableView.rowHeight = 67;
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(yb_NavigationBar_H+40);
make.left.right.mas_equalTo(0);
make.bottom.mas_equalTo(-yb_HomeIndicator_H);
}];
[self showPullToRefresh];
// [self showLoadMoreRefresh];
}
- (void)onCreateRoom {
[UIViewController roomOwnerGoSelfRoom];
}
- (void)fetchData {
// NSDictionary *params = @{@"page":@(self.page), @"page_limit":@(10), @"uid":BJUserManager.userInfo.uid};
NSDictionary *params = @{};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"/api/room/get_user_room_power_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPFocusFansModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
YYMineRoomListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"YYMineRoomListCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPFocusFansModel *model = self.dataArray[indexPath.row];
cell.model = model;
WEAK_SELF
[cell.cituiBtn buttonAddTaget:^(UIButton *btn) {
[SPCommonAlert showWithTitle:@"确定辞退该房间身份吗?" cancelTitle:@"取消" confirmTitle:@"确定" complete:^{
[weakSelf onRequestCitui:model];
}];
} forControlEvents:UIControlEventTouchUpInside];
[cell.jinruBtn buttonAddTaget:^(UIButton *btn) {
[UIViewController goMicRoomWithRid:model.rid withPwd:@""];
} forControlEvents:UIControlEventTouchUpInside];
return cell;
}
- (void)onRequestCitui:(SPFocusFansModel *)model {
NSDictionary *params = @{@"rid":C_string(model.rid), @"user_type":@(model.user_type)};
[[AFNetworkRequset shared] postRequestWithParams:params Path:@"/api/room/user_retire_room_power" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self refreshFetchData];
} Failure:^(id _Nonnull errorData) {
}];
}
@end

View File

@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="YYMineRoomListVC">
<connections>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="rQj-0b-Puf">
<rect key="frame" x="0.0" y="103" width="393" height="40"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="房间名" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="DYn-65-BvQ">
<rect key="frame" x="15" y="11" width="46" height="18"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="身份" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="1dv-cq-uiF">
<rect key="frame" x="181.33333333333334" y="11" width="30.666666666666657" height="18"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="设置" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="N2K-X5-7p2">
<rect key="frame" x="347.33333333333331" y="11" width="30.666666666666686" height="18"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<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="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="N2K-X5-7p2" secondAttribute="trailing" constant="15" id="1Y8-Cu-ggS"/>
<constraint firstItem="1dv-cq-uiF" firstAttribute="centerX" secondItem="rQj-0b-Puf" secondAttribute="centerX" id="HUS-TD-T7l"/>
<constraint firstAttribute="height" constant="40" id="HWK-qb-jny"/>
<constraint firstItem="1dv-cq-uiF" firstAttribute="centerY" secondItem="rQj-0b-Puf" secondAttribute="centerY" id="KEm-ye-hWi"/>
<constraint firstItem="DYn-65-BvQ" firstAttribute="centerY" secondItem="rQj-0b-Puf" secondAttribute="centerY" id="MmE-Xv-u62"/>
<constraint firstItem="N2K-X5-7p2" firstAttribute="centerY" secondItem="rQj-0b-Puf" secondAttribute="centerY" id="bXY-kg-ShL"/>
<constraint firstItem="DYn-65-BvQ" firstAttribute="leading" secondItem="rQj-0b-Puf" secondAttribute="leading" constant="15" id="wvf-gt-jf9"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="rQj-0b-Puf" firstAttribute="top" secondItem="Q5M-cg-NOt" secondAttribute="top" constant="44" id="9jj-Zu-eUt"/>
<constraint firstItem="Q5M-cg-NOt" firstAttribute="trailing" secondItem="rQj-0b-Puf" secondAttribute="trailing" id="IWL-tQ-u4P"/>
<constraint firstItem="rQj-0b-Puf" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="sSW-HX-1ng"/>
</constraints>
<point key="canvasLocation" x="132" y="-11"/>
</view>
</objects>
<resources>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,20 @@
//
// LMGonghuiButieViewController.h
// SweetParty
//
// Created by Xmac on 2024/8/9.
//
#import "BaseController.h"
NS_ASSUME_NONNULL_BEGIN
@interface LMGonghuiButieViewController : BaseController
@property (nonatomic, strong) NSString *last_week_income;
@property (nonatomic, strong) NSString *this_week_income;
@property (nonatomic, strong) NSString *last_week_income_money;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,57 @@
//
// LMGonghuiButieViewController.m
// SweetParty
//
// Created by Xmac on 2024/8/9.
//
#import "LMGonghuiButieViewController.h"
#import <WebKit/WebKit.h>
@interface LMGonghuiButieViewController ()<WKNavigationDelegate,WKUIDelegate>
@property (weak, nonatomic) IBOutlet UIView *webCover;
@property (strong, nonatomic) WKWebView *webView;
@property (weak, nonatomic) IBOutlet UILabel *lastWeekLabel;
@property (weak, nonatomic) IBOutlet UILabel *currentWeekLabel;
@property (weak, nonatomic) IBOutlet UILabel *butieLabel;
@end
@implementation LMGonghuiButieViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.navTitle = @"公会流水";
[self.customNavBar styleClear];
//
[self setupWebview];
self.lastWeekLabel.text = [NSString stringWithFormat:@"上周流水:%@",self.last_week_income];
self.currentWeekLabel.text = [NSString stringWithFormat:@"本周流水:%@",self.this_week_income];
self.butieLabel.text = [NSString stringWithFormat:@"获得补贴:%@",self.last_week_income_money];
}
- (void)setupWebview
{
WKWebViewConfiguration *configuration = [[WKWebViewConfiguration alloc] init];
configuration.userContentController = [[WKUserContentController alloc] init];
configuration.preferences = [[WKPreferences alloc] init];
configuration.preferences.minimumFontSize = 10;
configuration.preferences.javaScriptEnabled = YES;
configuration.preferences.javaScriptCanOpenWindowsAutomatically = YES;
_webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, APPW, APPH) configuration:configuration];
_webView.navigationDelegate = self;
_webView.UIDelegate = self;
_webView.backgroundColor = kClearColor;
_webView.scrollView.backgroundColor = kClearColor;
[self.webCover addSubview:_webView];
NSURL *url = [NSURL URLWithString:[VERSION_HTTPS_SERVER stringByAppendingString:@"index.php/index/index/page_show?id=19"]];
[_webView loadRequest:[NSURLRequest requestWithURL:url]];
[_webView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(_webCover);
}];
}
@end

View File

@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="21701" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="21679"/>
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="LMGonghuiButieViewController">
<connections>
<outlet property="butieLabel" destination="ihV-FV-XsU" id="EJC-5D-B64"/>
<outlet property="currentWeekLabel" destination="AsF-Au-q8h" id="z1e-PP-YeE"/>
<outlet property="lastWeekLabel" destination="JrG-rm-EOF" id="CXM-wb-QRU"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
<outlet property="webCover" destination="Wd1-br-Iae" id="HhN-vT-9JV"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_bg" translatesAutoresizingMaskIntoConstraints="NO" id="Bec-su-l3i">
<rect key="frame" x="0.0" y="0.0" width="393" height="852"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="Wd1-br-Iae">
<rect key="frame" x="0.0" y="210" width="393" height="642"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="k8o-ML-5BS">
<rect key="frame" x="15" y="90" width="363" height="100"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="room_subsidy_bg" translatesAutoresizingMaskIntoConstraints="NO" id="YKQ-kU-MRc">
<rect key="frame" x="0.0" y="0.0" width="363" height="100"/>
</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="JrG-rm-EOF">
<rect key="frame" x="19" y="12" width="71.666666666666671" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="获得补贴:0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="ihV-FV-XsU">
<rect key="frame" x="115.66666666666666" y="12" width="71.333333333333343" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="o3X-JX-wEy">
<rect key="frame" x="15" y="42" width="333" height="47"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="当前流水:0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AsF-Au-q8h">
<rect key="frame" x="11" y="15" width="71.666666666666671" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="0.1010285462" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="47" id="bJL-qA-f9v"/>
<constraint firstItem="AsF-Au-q8h" firstAttribute="centerY" secondItem="o3X-JX-wEy" secondAttribute="centerY" id="lU4-HS-ou1"/>
<constraint firstItem="AsF-Au-q8h" firstAttribute="leading" secondItem="o3X-JX-wEy" secondAttribute="leading" constant="11" id="wt8-9u-wiu"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="YKQ-kU-MRc" secondAttribute="bottom" id="2AA-Lw-BO2"/>
<constraint firstItem="o3X-JX-wEy" firstAttribute="leading" secondItem="k8o-ML-5BS" secondAttribute="leading" constant="15" id="Aqz-75-oiR"/>
<constraint firstItem="YKQ-kU-MRc" firstAttribute="leading" secondItem="k8o-ML-5BS" secondAttribute="leading" id="BOY-Z5-SPI"/>
<constraint firstAttribute="trailing" secondItem="o3X-JX-wEy" secondAttribute="trailing" constant="15" id="QF6-sD-oUm"/>
<constraint firstItem="JrG-rm-EOF" firstAttribute="top" secondItem="k8o-ML-5BS" secondAttribute="top" constant="12" id="Qva-iP-UqX"/>
<constraint firstItem="ihV-FV-XsU" firstAttribute="leading" secondItem="JrG-rm-EOF" secondAttribute="trailing" constant="25" id="SQU-O5-lL6"/>
<constraint firstItem="ihV-FV-XsU" firstAttribute="centerY" secondItem="JrG-rm-EOF" secondAttribute="centerY" id="YkY-2A-WS5"/>
<constraint firstAttribute="trailing" secondItem="YKQ-kU-MRc" secondAttribute="trailing" id="lhA-Sq-eyb"/>
<constraint firstItem="o3X-JX-wEy" firstAttribute="top" secondItem="JrG-rm-EOF" secondAttribute="bottom" constant="13" id="mZ2-2G-qvI"/>
<constraint firstItem="YKQ-kU-MRc" firstAttribute="top" secondItem="k8o-ML-5BS" secondAttribute="top" id="oGQ-nt-3io"/>
<constraint firstItem="JrG-rm-EOF" firstAttribute="leading" secondItem="k8o-ML-5BS" secondAttribute="leading" constant="19" id="ta3-Yj-3if"/>
<constraint firstAttribute="height" constant="100" id="ytZ-m8-A1L"/>
</constraints>
</view>
</subviews>
<viewLayoutGuide key="safeArea" id="Q5M-cg-NOt"/>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="k8o-ML-5BS" secondAttribute="trailing" constant="15" id="10s-BG-Fha"/>
<constraint firstItem="Bec-su-l3i" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="Bhx-h3-fds"/>
<constraint firstAttribute="bottom" secondItem="Wd1-br-Iae" secondAttribute="bottom" id="CW5-tW-luw"/>
<constraint firstItem="k8o-ML-5BS" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="90" id="DFk-n1-8Hp"/>
<constraint firstItem="k8o-ML-5BS" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" constant="15" id="GdT-zX-Dcz"/>
<constraint firstItem="Bec-su-l3i" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="L0m-ME-THA"/>
<constraint firstItem="Bec-su-l3i" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="MEY-o1-Oke"/>
<constraint firstItem="Wd1-br-Iae" firstAttribute="top" secondItem="k8o-ML-5BS" secondAttribute="bottom" constant="20" id="NlG-3T-WDQ"/>
<constraint firstAttribute="bottom" secondItem="Bec-su-l3i" secondAttribute="bottom" id="QYE-UT-p76"/>
<constraint firstItem="Wd1-br-Iae" firstAttribute="trailing" secondItem="Q5M-cg-NOt" secondAttribute="trailing" id="Wlo-IC-KSX"/>
<constraint firstItem="Wd1-br-Iae" firstAttribute="leading" secondItem="Q5M-cg-NOt" secondAttribute="leading" id="ace-NT-yIc"/>
</constraints>
<point key="canvasLocation" x="130.53435114503816" y="-11.267605633802818"/>
</view>
</objects>
<resources>
<image name="gonghui_bg" width="375" height="812"/>
<image name="room_subsidy_bg" width="345" height="109"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,44 @@
//
// LMGonghuiDetailModel.h
// SweetParty
//
// Created by Xmac on 2024/8/8.
//
#import <Foundation/Foundation.h>
@class LMGonghuiDetailGhzModel;
NS_ASSUME_NONNULL_BEGIN
@interface LMGonghuiDetailModel : NSObject
@property (nonatomic, strong) NSString *guild_id;
@property (nonatomic, strong) NSString *guild_special_id;
@property (nonatomic, strong) NSString *uid;
@property (nonatomic, strong) NSString *guild_name;
@property (nonatomic, strong) NSString *cover;
@property (nonatomic, strong) NSString *money;
@property (nonatomic, strong) NSString *num;
@property (nonatomic, strong) NSString *contribution_value;
@property (nonatomic, strong) NSString *last_week_income;
@property (nonatomic, strong) NSString *this_week_income;
@property (nonatomic, strong) NSString *intro;
@property (nonatomic, strong) NSString *last_week_income_money; //上周补贴
@property (nonatomic, strong) NSString *add_time;
@property (nonatomic, strong) LMGonghuiDetailGhzModel *ghz;
@end
@interface LMGonghuiDetailGhzModel : NSObject
@property (nonatomic, strong) NSString *uid;
@property (nonatomic, strong) NSString *nick_name;
@property (nonatomic, strong) NSString *head_pic;
@property (nonatomic, strong) NSString *special_uid;
@property (nonatomic, strong) NSString *noblity_image;
@property (nonatomic, copy) NSString *charm_level_image;
@property (nonatomic, copy) NSString *contribution_level_image;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,28 @@
//
// LMGonghuiDetailModel.m
// SweetParty
//
// Created by Xmac on 2024/8/8.
//
#import "LMGonghuiDetailModel.h"
@implementation LMGonghuiDetailModel
+ (NSDictionary *)mj_objectClassInArray
{
return @{@"ghz":[LMGonghuiDetailGhzModel class]};
}
+ (NSDictionary *)mj_replacedKeyFromPropertyName
{
return @{@"guild_id" : @"id"};
}
@end
@implementation LMGonghuiDetailGhzModel
@end

View File

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

View File

@@ -0,0 +1,233 @@
//
// LMGonghuiDetailsViewController.m
// SweetParty
//
// Created by Xmac on 2024/8/8.
//
#import "LMGonghuiDetailsViewController.h"
#import "LMGonghuiDetailModel.h"
#import "SPGonghuiJoinAlert.h"
#import "SPGonghuiApplyListVC.h"
#import "SPGonghuiDetailListVC.h"
#import "LMGonghuiButieViewController.h"
#import "NSString+category.h"
@interface LMGonghuiDetailsViewController ()
@property (weak, nonatomic) IBOutlet UIImageView *gonghuiCover;
@property (weak, nonatomic) IBOutlet UILabel *gonghuiNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *gonghuiIDLabel;
@property (weak, nonatomic) IBOutlet UILabel *gonghuiPersonNumLabel;
@property (weak, nonatomic) IBOutlet UILabel *totalValueLabel;
@property (weak, nonatomic) IBOutlet UIView *gonghuiRoomView;
@property (weak, nonatomic) IBOutlet UIView *gonghuiPersonView;
@property (weak, nonatomic) IBOutlet UIView *gonghuiButieView;
@property (weak, nonatomic) IBOutlet UIImageView *huizhangHeaderPic;
@property (weak, nonatomic) IBOutlet UILabel *huizhangNameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *huizhangGXPic;
@property (weak, nonatomic) IBOutlet UIImageView *huizhangMLpic;
@property (weak, nonatomic) IBOutlet UIImageView *huizhangJueweiPic;
@property (weak, nonatomic) IBOutlet UIView *huizhangInfoCoverView;
@property (weak, nonatomic) IBOutlet UIButton *joinButton;
@property (weak, nonatomic) IBOutlet UILabel *createTimeLab;
@property (weak, nonatomic) IBOutlet UILabel *gonghuiIntroLabel;
@property (nonatomic, strong) LMGonghuiDetailModel *infoModel;
@property (nonatomic, strong) UIButton *applyListBtn;
@property (nonatomic, assign) NSInteger is_deacon;
@property (nonatomic, strong) NSString *quit_money;//退
@end
@implementation LMGonghuiDetailsViewController
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view from its nib.
self.navTitle = @"公会";
[self.customNavBar styleClear];
self.joinButton.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(APPW-15*2, 48) direction:(FXGradientChangeDirectionHorizontal) startColor:mainLightColor endColor:mainDeepColor];
[self requestGonghuiDetails];
[self onJudgeHuizhang];
WEAK_SELF;
[self.gonghuiRoomView dg_Tapped:^{
SPGonghuiDetailListVC *list = [[SPGonghuiDetailListVC alloc] init];
list.type = 2;
list.guild_id = weakSelf.guild_id;
[list pushSelf];
}];
[self.gonghuiPersonView dg_Tapped:^{
SPGonghuiDetailListVC *list = [[SPGonghuiDetailListVC alloc] init];
list.type = 1;
list.guild_id = weakSelf.guild_id;
[list pushSelf];
}];
[self.gonghuiButieView dg_Tapped:^{
LMGonghuiButieViewController *vc = [[LMGonghuiButieViewController alloc] init];
vc.last_week_income = weakSelf.infoModel.last_week_income;
vc.this_week_income = weakSelf.infoModel.this_week_income;
vc.last_week_income_money = weakSelf.infoModel.last_week_income_money;
[vc pushSelf];
}];
// self.applyListBtn = [ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-60-12, yb_StatusBar_H+7, 60, 30) text:@"申请列表" font:YBMediumFont(12) color:HEXCOLOR(0x333333) backguoundColor:nil imageName:nil target:self action:@selector(onApplyList)];
// self.applyListBtn.hidden = YES;
}
- (void)setupGonghuiInfo
{
[self.gonghuiCover sd_setImageWithURL:[NSURL URLWithString:self.infoModel.cover] placeholderImage:kDefaultUserIcon];
self.createTimeLab.text = [NSString stringWithFormat:@"创建时间:%@",self.infoModel.add_time.formateDateYMD];
if ([self.infoModel.guild_special_id isEqualToString:@"0"]){
self.gonghuiIDLabel.text = [NSString stringWithFormat:@"%@",self.infoModel.guild_id];
}else{
self.gonghuiIDLabel.text = [NSString stringWithFormat:@"%@",self.infoModel.guild_special_id];
}
self.gonghuiNameLabel.text = self.infoModel.guild_name;
self.gonghuiPersonNumLabel.text = self.infoModel.num;
self.totalValueLabel.text = self.infoModel.contribution_value;
[self.huizhangHeaderPic sd_setImageWithURL:[NSURL URLWithString:self.infoModel.ghz.head_pic] placeholderImage:kDefaultUserIcon];
self.huizhangNameLabel.text = self.infoModel.ghz.nick_name;
[self.huizhangGXPic sd_setImageWithURL:[NSURL URLWithString:self.infoModel.ghz.contribution_level_image]];
[self.huizhangMLpic sd_setImageWithURL:[NSURL URLWithString:self.infoModel.ghz.charm_level_image]];
[self.huizhangJueweiPic sd_setImageWithURL:[NSURL URLWithString:self.infoModel.ghz.noblity_image]];
[self.huizhangInfoCoverView dg_Tapped:^{
[UIViewController goUserMainpageWith:self.infoModel.ghz.uid withRid:@""];
}];
self.quit_money = self.infoModel.money;
if (self.infoModel.intro.length > 0){
self.gonghuiIntroLabel.text = self.infoModel.intro;
}else{
self.gonghuiIntroLabel.text = @"暂无简介";
}
}
- (void)onApplyList {
SPGonghuiApplyListVC *vc = [[SPGonghuiApplyListVC alloc] init];
vc.guild_id = self.guild_id;
[vc pushSelf];
}
- (void)requestGonghuiDetails
{
[BJHttpTool BJ_Get_the_guild_infoWithParameters:@{@"guild_id":self.guild_id} success:^(id response) {
self.infoModel = [LMGonghuiDetailModel mj_objectWithKeyValues:response[@"data"]];
[self setupGonghuiInfo];
} failure:^(NSError *error) {
}];
}
- (void)onJudgeHuizhang {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/user_is_deacon" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
NSInteger is_deacon = [responseDic[@"data"] safeIntForKey:@"is_deacon"];
self.is_deacon = is_deacon;
if (is_deacon == 1) {
if ([BJUserManager.userInfo.guild_id integerValue] == [self.guild_id integerValue]){
[self.joinButton setTitle:@"解散公会" forState:(UIControlStateNormal)];
self.gonghuiButieView.hidden = NO;
}
}else {
if ([BJUserManager.userInfo.guild_id integerValue] == [self.guild_id integerValue]){
[self.joinButton setTitle:@"退出公会" forState:(UIControlStateNormal)];
}
self.gonghuiButieView.hidden = YES;
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (IBAction)gonghuiIDCopyButtonClick:(UIButton *)sender {
UIPasteboard *pasteboard = [UIPasteboard generalPasteboard];
pasteboard.string = self.gonghuiIDLabel.text;
[HelpPageDefine showMessage:@"复制成功"];
}
- (IBAction)joinButtonClick:(UIButton *)sender {
if (_is_deacon == 1) {
//
[self onJiesanGonghui];
}else{
[self onJoinOrQuitGonghui];
}
}
- (void)onJoinOrQuitGonghui {
WEAK_SELF
SPGonghuiJoinAlert *alert = [[NSBundle mainBundle] loadNibNamed:@"SPGonghuiJoinAlert" owner:self options:nil].firstObject;
alert.frame = [UIScreen mainScreen].bounds;
[MainWindow() addSubview:alert];
if ([BJUserManager.userInfo.guild_id integerValue] == [self.guild_id integerValue]) {
//退
alert.onConfirmBlock = ^{
[self onQuitRequest];
};
alert.contentLab.text = [NSString stringWithFormat:@"退出公会需要支付%@金币,您确定要退出吗?", self.quit_money];
[alert.confirmBtn setTitle:@"申请退出" forState:UIControlStateNormal];
}else {
//
alert.onConfirmBlock = ^{
[weakSelf onJoinRequest];
};
}
}
- (void)onJoinRequest {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/join_guild" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onQuitRequest {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/quit_guild" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self.navigationController popToRootViewControllerAnimated:YES];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)ondissGuildRequest {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/diss_guild" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self.navigationController popToRootViewControllerAnimated:YES];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onJiesanGonghui {
WEAK_SELF
SPGonghuiJoinAlert *alert = [[NSBundle mainBundle] loadNibNamed:@"SPGonghuiJoinAlert" owner:self options:nil].firstObject;
alert.frame = [UIScreen mainScreen].bounds;
[MainWindow() addSubview:alert];
alert.onConfirmBlock = ^{
[weakSelf ondissGuildRequest];
};
alert.contentLab.text = @"确定要解散该公会吗?";
[alert.confirmBtn setTitle:@"解散公会" forState:UIControlStateNormal];
}
@end

View File

@@ -0,0 +1,447 @@
<?xml version="1.0" encoding="UTF-8"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.XIB" version="3.0" toolsVersion="22505" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES">
<device id="retina6_12" orientation="portrait" appearance="light"/>
<dependencies>
<deployment identifier="iOS"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="22504"/>
<capability name="System colors in document resources" minToolsVersion="11.0"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<objects>
<placeholder placeholderIdentifier="IBFilesOwner" id="-1" userLabel="File's Owner" customClass="LMGonghuiDetailsViewController">
<connections>
<outlet property="createTimeLab" destination="fQQ-zD-3U8" id="Ywf-kR-Hwt"/>
<outlet property="gonghuiButieView" destination="jhn-5q-0zO" id="XQd-dK-wKy"/>
<outlet property="gonghuiCover" destination="r1k-9V-4Gt" id="jeE-TF-OuC"/>
<outlet property="gonghuiIDLabel" destination="UuH-JQ-DDx" id="ML3-8U-VFd"/>
<outlet property="gonghuiIntroLabel" destination="yMZ-J3-xqN" id="fhu-bx-zBo"/>
<outlet property="gonghuiNameLabel" destination="iWv-kP-4f5" id="kiH-1F-xBO"/>
<outlet property="gonghuiPersonNumLabel" destination="MpU-zP-WUL" id="IGz-G0-s5u"/>
<outlet property="gonghuiPersonView" destination="AQC-qx-w6p" id="b1o-oI-Mhh"/>
<outlet property="gonghuiRoomView" destination="fIt-ZL-ajx" id="dpn-1V-89n"/>
<outlet property="huizhangGXPic" destination="3vC-dm-v9Z" id="KcR-ym-Qma"/>
<outlet property="huizhangHeaderPic" destination="70M-P3-Shg" id="K3d-mf-CSN"/>
<outlet property="huizhangInfoCoverView" destination="FEL-Qe-Yyl" id="OfL-Ht-lOg"/>
<outlet property="huizhangJueweiPic" destination="m0w-qe-hfb" id="e0Y-Df-g1p"/>
<outlet property="huizhangMLpic" destination="aQM-yv-2qy" id="dZ5-qH-9NN"/>
<outlet property="huizhangNameLabel" destination="ltT-xg-VHo" id="7bC-BX-cxL"/>
<outlet property="joinButton" destination="KxX-6a-RXv" id="GCP-bJ-IVf"/>
<outlet property="totalValueLabel" destination="EnF-EH-rg5" id="0Ry-kl-WKh"/>
<outlet property="view" destination="i5M-Pr-FkT" id="sfx-zR-JGt"/>
</connections>
</placeholder>
<placeholder placeholderIdentifier="IBFirstResponder" id="-2" customClass="UIResponder"/>
<view clearsContextBeforeDrawing="NO" contentMode="scaleToFill" id="i5M-Pr-FkT">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_bg" translatesAutoresizingMaskIntoConstraints="NO" id="2Z4-4J-nnk">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="3Ua-CN-eS5">
<rect key="frame" x="15" y="110" width="345" height="602"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="default_userIcon" translatesAutoresizingMaskIntoConstraints="NO" id="r1k-9V-4Gt">
<rect key="frame" x="0.0" y="0.0" width="68" height="68"/>
<constraints>
<constraint firstAttribute="height" constant="68" id="8l6-dJ-ZUx"/>
<constraint firstAttribute="width" constant="68" id="N0h-dA-87u"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="8"/>
</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="iWv-kP-4f5">
<rect key="frame" x="83" y="4.9999999999999982" width="89.333333333333314" height="26.333333333333329"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="22"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4aR-RD-fhR">
<rect key="frame" x="29.333333333333336" y="97.333333333333343" width="98.333333333333314" height="30"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="123456" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="UuH-JQ-DDx">
<rect key="frame" x="10.000000000000004" y="0.0" width="53.333333333333343" height="30"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="ygr-cF-uNl">
<rect key="frame" x="68.333333333333343" y="0.0" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="ZWQ-pp-HFr"/>
<constraint firstAttribute="width" constant="30" id="nEh-mw-inN"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="gonghui_copy">
<color key="titleColor" red="0.98431372549019602" green="0.4392156862745098" blue="0.4392156862745098" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="gonghuiIDCopyButtonClick:" destination="-1" eventType="touchUpInside" id="lBc-no-50r"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="ygr-cF-uNl" secondAttribute="trailing" id="38r-kL-FoC"/>
<constraint firstItem="UuH-JQ-DDx" firstAttribute="top" secondItem="4aR-RD-fhR" secondAttribute="top" id="6xX-I4-9fb"/>
<constraint firstItem="UuH-JQ-DDx" firstAttribute="centerY" secondItem="4aR-RD-fhR" secondAttribute="centerY" id="AjE-ft-cKf"/>
<constraint firstItem="ygr-cF-uNl" firstAttribute="centerY" secondItem="4aR-RD-fhR" secondAttribute="centerY" id="WBJ-Md-375"/>
<constraint firstItem="UuH-JQ-DDx" firstAttribute="leading" secondItem="4aR-RD-fhR" secondAttribute="leading" constant="10" id="bZJ-5F-u9U"/>
<constraint firstItem="ygr-cF-uNl" firstAttribute="leading" secondItem="UuH-JQ-DDx" secondAttribute="trailing" constant="5" id="mpD-bE-Ifm"/>
<constraint firstAttribute="height" constant="30" id="sbE-yz-HJ9"/>
<constraint firstAttribute="bottom" secondItem="UuH-JQ-DDx" secondAttribute="bottom" id="wOd-ZM-bd4"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="9"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="EnF-EH-rg5">
<rect key="frame" x="335.33333333333331" y="25.666666666666657" width="9.6666666666666856" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0人" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MpU-zP-WUL">
<rect key="frame" x="253.33333333333331" y="104" width="24" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<stackView opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" distribution="fillEqually" translatesAutoresizingMaskIntoConstraints="NO" id="v5g-Fr-SPW">
<rect key="frame" x="0.0" y="137.33333333333334" width="345" height="80"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="fIt-ZL-ajx">
<rect key="frame" x="0.0" y="0.0" width="115" height="80"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_home_room" translatesAutoresizingMaskIntoConstraints="NO" id="x40-wU-GRO">
<rect key="frame" x="42.666666666666664" y="14.999999999999972" width="29.999999999999993" height="30"/>
<constraints>
<constraint firstAttribute="width" constant="30" id="0cL-ar-yzs"/>
<constraint firstAttribute="height" constant="30" id="UId-9h-gtV"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="公会房间" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="2a8-mh-NI7">
<rect key="frame" x="33" y="49.999999999999972" width="49.333333333333343" height="14.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="x40-wU-GRO" firstAttribute="centerX" secondItem="fIt-ZL-ajx" secondAttribute="centerX" id="DF0-rr-XBv"/>
<constraint firstItem="x40-wU-GRO" firstAttribute="top" secondItem="fIt-ZL-ajx" secondAttribute="top" constant="15" id="LMP-E0-YMM"/>
<constraint firstItem="2a8-mh-NI7" firstAttribute="centerX" secondItem="fIt-ZL-ajx" secondAttribute="centerX" id="ZNJ-P4-rRW"/>
<constraint firstItem="2a8-mh-NI7" firstAttribute="top" secondItem="x40-wU-GRO" secondAttribute="bottom" constant="5" id="jVs-Oa-Wr8"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="AQC-qx-w6p">
<rect key="frame" x="115" y="0.0" width="115" height="80"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_home_person" translatesAutoresizingMaskIntoConstraints="NO" id="BzP-Ao-lMY">
<rect key="frame" x="42.666666666666657" y="14.999999999999972" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="13W-Bq-aaz"/>
<constraint firstAttribute="width" constant="30" id="Sva-ou-MPa"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="公会成员" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="qho-H2-oHU">
<rect key="frame" x="33" y="49.999999999999972" width="49.333333333333343" height="14.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="qho-H2-oHU" firstAttribute="centerX" secondItem="AQC-qx-w6p" secondAttribute="centerX" id="b1U-Dt-8Hr"/>
<constraint firstItem="BzP-Ao-lMY" firstAttribute="centerX" secondItem="AQC-qx-w6p" secondAttribute="centerX" id="egn-e9-g0B"/>
<constraint firstItem="BzP-Ao-lMY" firstAttribute="top" secondItem="AQC-qx-w6p" secondAttribute="top" constant="15" id="nex-hN-Zcg"/>
<constraint firstItem="qho-H2-oHU" firstAttribute="top" secondItem="BzP-Ao-lMY" secondAttribute="bottom" constant="5" id="oDE-91-4Uo"/>
</constraints>
</view>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="jhn-5q-0zO">
<rect key="frame" x="230" y="0.0" width="115" height="80"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_home_butie" translatesAutoresizingMaskIntoConstraints="NO" id="b22-Ts-xpS">
<rect key="frame" x="42.666666666666686" y="14.999999999999972" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="O3E-d8-0FG"/>
<constraint firstAttribute="width" constant="30" id="xV1-cg-cwY"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="公会补贴" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MrB-7a-UmW">
<rect key="frame" x="33" y="49.999999999999972" width="49.333333333333343" height="14.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstItem="b22-Ts-xpS" firstAttribute="centerX" secondItem="jhn-5q-0zO" secondAttribute="centerX" id="2DX-ac-rUv"/>
<constraint firstItem="MrB-7a-UmW" firstAttribute="centerX" secondItem="jhn-5q-0zO" secondAttribute="centerX" id="9yM-Wz-4e3"/>
<constraint firstItem="b22-Ts-xpS" firstAttribute="top" secondItem="jhn-5q-0zO" secondAttribute="top" constant="15" id="ST6-GX-wsg"/>
<constraint firstItem="MrB-7a-UmW" firstAttribute="top" secondItem="b22-Ts-xpS" secondAttribute="bottom" constant="5" id="tY8-uc-iWU"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstAttribute="height" constant="80" id="a2W-lM-y73"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</stackView>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="2e3-8U-bc3">
<rect key="frame" x="0.0" y="232.33333333333331" width="345" height="221"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="公会会长" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="kdG-2l-uXC">
<rect key="frame" x="15" y="15.000000000000002" width="73.666666666666671" height="21.666666666666671"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="FEL-Qe-Yyl">
<rect key="frame" x="15" y="50" width="315" height="50"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="default_userIcon" translatesAutoresizingMaskIntoConstraints="NO" id="70M-P3-Shg">
<rect key="frame" x="0.0" y="0.0" width="50" height="50"/>
<constraints>
<constraint firstAttribute="width" constant="50" id="Jmo-UE-ugP"/>
<constraint firstAttribute="height" constant="50" id="Zcm-ZD-n45"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="25"/>
</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="ltT-xg-VHo">
<rect key="frame" x="60" y="0.0" width="42.333333333333343" height="19.333333333333332"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="3vC-dm-v9Z">
<rect key="frame" x="60" y="24.333333333333371" width="40" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="2rc-Lv-l6O"/>
<constraint firstAttribute="width" constant="40" id="Y0C-lv-rpS"/>
</constraints>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="aQM-yv-2qy">
<rect key="frame" x="105" y="24.333333333333371" width="40" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="Eon-HX-ly4"/>
<constraint firstAttribute="height" constant="20" id="kw9-2O-4Cm"/>
</constraints>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="m0w-qe-hfb">
<rect key="frame" x="150" y="19.333333333333371" width="30" height="30"/>
<constraints>
<constraint firstAttribute="height" constant="30" id="A30-Bz-94K"/>
<constraint firstAttribute="width" constant="30" id="qhX-aA-wf3"/>
</constraints>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="jiantou_hui" translatesAutoresizingMaskIntoConstraints="NO" id="SaA-I5-zfc">
<rect key="frame" x="294.66666666666669" y="20" width="5.3333333333333144" height="10"/>
</imageView>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="70M-P3-Shg" firstAttribute="top" secondItem="FEL-Qe-Yyl" secondAttribute="top" id="0Gi-dA-Gkx"/>
<constraint firstItem="3vC-dm-v9Z" firstAttribute="leading" secondItem="ltT-xg-VHo" secondAttribute="leading" id="1Ab-C8-f1A"/>
<constraint firstItem="m0w-qe-hfb" firstAttribute="leading" secondItem="aQM-yv-2qy" secondAttribute="trailing" constant="5" id="Ckq-jN-U9P"/>
<constraint firstAttribute="trailing" secondItem="SaA-I5-zfc" secondAttribute="trailing" constant="15" id="ESN-Cl-AXI"/>
<constraint firstItem="ltT-xg-VHo" firstAttribute="top" secondItem="70M-P3-Shg" secondAttribute="top" id="KMC-bS-Vtk"/>
<constraint firstItem="aQM-yv-2qy" firstAttribute="centerY" secondItem="3vC-dm-v9Z" secondAttribute="centerY" id="QeY-q2-0E8"/>
<constraint firstItem="70M-P3-Shg" firstAttribute="leading" secondItem="FEL-Qe-Yyl" secondAttribute="leading" id="aJh-Om-Y3D"/>
<constraint firstItem="ltT-xg-VHo" firstAttribute="leading" secondItem="70M-P3-Shg" secondAttribute="trailing" constant="10" id="fq8-eH-FcV"/>
<constraint firstItem="m0w-qe-hfb" firstAttribute="centerY" secondItem="aQM-yv-2qy" secondAttribute="centerY" id="niH-8d-9e7"/>
<constraint firstAttribute="height" constant="50" id="rHq-4f-dle"/>
<constraint firstItem="3vC-dm-v9Z" firstAttribute="top" secondItem="ltT-xg-VHo" secondAttribute="bottom" constant="5" id="rzR-SE-Uwi"/>
<constraint firstItem="aQM-yv-2qy" firstAttribute="leading" secondItem="3vC-dm-v9Z" secondAttribute="trailing" constant="5" id="sGE-qt-J6c"/>
<constraint firstItem="SaA-I5-zfc" firstAttribute="centerY" secondItem="FEL-Qe-Yyl" secondAttribute="centerY" id="ulY-7g-WAg"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="公会介绍" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="86z-HR-r3Z">
<rect key="frame" x="15" y="130" width="73.666666666666671" height="21.666666666666657"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="18"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="W2B-3s-sBn">
<rect key="frame" x="15" y="161.66666666666669" width="315" height="44.333333333333343"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="暂无简介" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="yMZ-J3-xqN">
<rect key="frame" x="15" y="15" width="285" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="1" colorSpace="calibratedRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" red="0.0" green="0.71372549019607845" blue="0.50980392156862742" alpha="0.10000000000000001" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstItem="yMZ-J3-xqN" firstAttribute="top" secondItem="W2B-3s-sBn" secondAttribute="top" constant="15" id="648-cE-JtW"/>
<constraint firstAttribute="trailing" secondItem="yMZ-J3-xqN" secondAttribute="trailing" constant="15" id="fUa-v1-3yA"/>
<constraint firstItem="yMZ-J3-xqN" firstAttribute="leading" secondItem="W2B-3s-sBn" secondAttribute="leading" constant="15" id="ve7-ym-oml"/>
<constraint firstAttribute="bottom" secondItem="yMZ-J3-xqN" secondAttribute="bottom" constant="15" id="z7N-PD-7aa"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="8"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="kdG-2l-uXC" firstAttribute="leading" secondItem="2e3-8U-bc3" secondAttribute="leading" constant="15" id="0QD-To-NMs"/>
<constraint firstItem="86z-HR-r3Z" firstAttribute="top" secondItem="FEL-Qe-Yyl" secondAttribute="bottom" constant="30" id="1qP-jM-IQe"/>
<constraint firstAttribute="trailing" secondItem="W2B-3s-sBn" secondAttribute="trailing" constant="15" id="E31-XT-PeU"/>
<constraint firstItem="kdG-2l-uXC" firstAttribute="top" secondItem="2e3-8U-bc3" secondAttribute="top" constant="15" id="PXo-Og-u54"/>
<constraint firstItem="FEL-Qe-Yyl" firstAttribute="top" secondItem="2e3-8U-bc3" secondAttribute="top" constant="50" id="TI5-tP-759"/>
<constraint firstAttribute="trailing" secondItem="FEL-Qe-Yyl" secondAttribute="trailing" constant="15" id="U3d-zo-vLG"/>
<constraint firstItem="FEL-Qe-Yyl" firstAttribute="leading" secondItem="2e3-8U-bc3" secondAttribute="leading" constant="15" id="ct7-IH-P4h"/>
<constraint firstItem="W2B-3s-sBn" firstAttribute="top" secondItem="86z-HR-r3Z" secondAttribute="bottom" constant="10" id="dFQ-Vr-ZcE"/>
<constraint firstAttribute="bottom" secondItem="W2B-3s-sBn" secondAttribute="bottom" constant="15" id="py8-fj-Crj"/>
<constraint firstItem="86z-HR-r3Z" firstAttribute="leading" secondItem="2e3-8U-bc3" secondAttribute="leading" constant="15" id="vvc-Qw-JmH"/>
<constraint firstItem="W2B-3s-sBn" firstAttribute="leading" secondItem="2e3-8U-bc3" secondAttribute="leading" constant="15" id="z86-fi-SYL"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_hot" translatesAutoresizingMaskIntoConstraints="NO" id="a0U-4I-PjX">
<rect key="frame" x="306.33333333333331" y="22" width="24" height="24"/>
<constraints>
<constraint firstAttribute="width" constant="24" id="Jd4-Sz-Ojg"/>
<constraint firstAttribute="height" constant="24" id="sxz-9I-sZE"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="创建时间2024-09-12" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fQQ-zD-3U8">
<rect key="frame" x="83" y="42.333333333333343" width="132" height="14.333333333333336"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="公会ID" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="xat-BU-68A">
<rect key="frame" x="60" y="83" width="37" height="14.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="公会成员" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Zmx-rR-Vic">
<rect key="frame" x="240.66666666666666" y="83" width="49.333333333333343" height="14.333333333333329"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="12"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="30v-2I-Umr">
<rect key="frame" x="172" y="88.333333333333343" width="1" height="24"/>
<color key="backgroundColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="24" id="X7c-0q-zb4"/>
<constraint firstAttribute="width" constant="1" id="cTa-5u-7wf"/>
</constraints>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="v5g-Fr-SPW" secondAttribute="trailing" id="1lv-iG-QdD"/>
<constraint firstItem="iWv-kP-4f5" firstAttribute="top" secondItem="3Ua-CN-eS5" secondAttribute="top" constant="5" id="2iU-7r-Dbf"/>
<constraint firstItem="v5g-Fr-SPW" firstAttribute="top" secondItem="4aR-RD-fhR" secondAttribute="bottom" constant="10" id="3mY-Ik-gNk"/>
<constraint firstItem="4aR-RD-fhR" firstAttribute="centerX" secondItem="xat-BU-68A" secondAttribute="centerX" id="5eV-3T-s1T"/>
<constraint firstAttribute="trailing" secondItem="EnF-EH-rg5" secondAttribute="trailing" id="6Hu-tu-xqG"/>
<constraint firstItem="Zmx-rR-Vic" firstAttribute="centerY" secondItem="xat-BU-68A" secondAttribute="centerY" id="7Sc-eQ-Dig"/>
<constraint firstItem="EnF-EH-rg5" firstAttribute="centerY" secondItem="r1k-9V-4Gt" secondAttribute="centerY" id="8Ke-hz-VSY"/>
<constraint firstItem="4aR-RD-fhR" firstAttribute="top" secondItem="xat-BU-68A" secondAttribute="bottom" id="C3X-Gr-FFU"/>
<constraint firstItem="fQQ-zD-3U8" firstAttribute="leading" secondItem="iWv-kP-4f5" secondAttribute="leading" id="GRb-wr-yPq"/>
<constraint firstItem="fQQ-zD-3U8" firstAttribute="top" secondItem="iWv-kP-4f5" secondAttribute="bottom" constant="11" id="HAI-vr-ubi"/>
<constraint firstAttribute="trailing" secondItem="2e3-8U-bc3" secondAttribute="trailing" id="Maz-oM-0ui"/>
<constraint firstItem="2e3-8U-bc3" firstAttribute="leading" secondItem="3Ua-CN-eS5" secondAttribute="leading" id="POB-jO-URU"/>
<constraint firstAttribute="trailing" secondItem="Zmx-rR-Vic" secondAttribute="trailing" constant="55" id="SHp-Sz-M9h"/>
<constraint firstItem="r1k-9V-4Gt" firstAttribute="leading" secondItem="3Ua-CN-eS5" secondAttribute="leading" id="YVL-0q-0JI"/>
<constraint firstItem="iWv-kP-4f5" firstAttribute="leading" secondItem="r1k-9V-4Gt" secondAttribute="trailing" constant="15" id="YyS-cT-12v"/>
<constraint firstItem="Zmx-rR-Vic" firstAttribute="centerX" secondItem="MpU-zP-WUL" secondAttribute="centerX" id="csJ-94-Wk1"/>
<constraint firstItem="30v-2I-Umr" firstAttribute="centerX" secondItem="3Ua-CN-eS5" secondAttribute="centerX" id="h5J-m9-qlD"/>
<constraint firstItem="a0U-4I-PjX" firstAttribute="centerY" secondItem="r1k-9V-4Gt" secondAttribute="centerY" id="hrJ-sg-QdJ"/>
<constraint firstItem="30v-2I-Umr" firstAttribute="centerY" secondItem="xat-BU-68A" secondAttribute="centerY" constant="10" id="ilu-UU-Zk9"/>
<constraint firstItem="MpU-zP-WUL" firstAttribute="centerY" secondItem="4aR-RD-fhR" secondAttribute="centerY" id="lhf-rh-xuq"/>
<constraint firstItem="2e3-8U-bc3" firstAttribute="top" secondItem="v5g-Fr-SPW" secondAttribute="bottom" constant="15" id="nrM-j2-HFR"/>
<constraint firstItem="xat-BU-68A" firstAttribute="leading" secondItem="3Ua-CN-eS5" secondAttribute="leading" constant="60" id="pm7-cW-m0x"/>
<constraint firstItem="xat-BU-68A" firstAttribute="top" secondItem="r1k-9V-4Gt" secondAttribute="bottom" constant="15" id="pmR-1S-oeT"/>
<constraint firstItem="r1k-9V-4Gt" firstAttribute="top" secondItem="3Ua-CN-eS5" secondAttribute="top" id="r6c-Sd-Rer"/>
<constraint firstItem="v5g-Fr-SPW" firstAttribute="leading" secondItem="3Ua-CN-eS5" secondAttribute="leading" id="tAk-an-Uwg"/>
<constraint firstItem="EnF-EH-rg5" firstAttribute="leading" secondItem="a0U-4I-PjX" secondAttribute="trailing" constant="5" id="v8A-o2-YYI"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="KxX-6a-RXv">
<rect key="frame" x="15" y="697" width="345" height="44"/>
<color key="backgroundColor" red="0.050980392156862744" green="1" blue="0.72549019607843135" alpha="1" colorSpace="calibratedRGB"/>
<constraints>
<constraint firstAttribute="height" constant="44" id="8UG-UQ-Chj"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" title="加入公会">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="24"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="joinButtonClick:" destination="-1" eventType="touchUpInside" id="9dR-Pa-tUe"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" systemColor="systemBackgroundColor"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="3Ua-CN-eS5" secondAttribute="trailing" constant="15" id="3bC-Cr-XzP"/>
<constraint firstItem="2Z4-4J-nnk" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" id="4He-h4-UjR"/>
<constraint firstAttribute="bottom" secondItem="2Z4-4J-nnk" secondAttribute="bottom" id="641-FI-Lcn"/>
<constraint firstItem="3Ua-CN-eS5" firstAttribute="top" secondItem="i5M-Pr-FkT" secondAttribute="top" constant="110" id="AdQ-Go-7A9"/>
<constraint firstAttribute="trailing" secondItem="KxX-6a-RXv" secondAttribute="trailing" constant="15" id="PhY-HK-SOE"/>
<constraint firstItem="KxX-6a-RXv" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="QU2-Hr-dsD"/>
<constraint firstItem="3Ua-CN-eS5" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" constant="15" id="VVC-KB-78Q"/>
<constraint firstItem="2Z4-4J-nnk" firstAttribute="leading" secondItem="i5M-Pr-FkT" secondAttribute="leading" id="b7a-ZC-oEF"/>
<constraint firstAttribute="trailing" secondItem="2Z4-4J-nnk" secondAttribute="trailing" id="ksh-gS-4Cw"/>
<constraint firstItem="KxX-6a-RXv" firstAttribute="top" secondItem="3Ua-CN-eS5" secondAttribute="bottom" constant="-15" id="nh6-YW-i3X"/>
<constraint firstAttribute="bottom" secondItem="3Ua-CN-eS5" secondAttribute="bottom" constant="100" id="sCQ-Ql-a0E"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<point key="canvasLocation" x="-326" y="381"/>
</view>
</objects>
<resources>
<image name="default_userIcon" width="512" height="512"/>
<image name="gonghui_bg" width="375" height="812"/>
<image name="gonghui_copy" width="16" height="16"/>
<image name="gonghui_home_butie" width="28" height="28"/>
<image name="gonghui_home_person" width="28" height="28"/>
<image name="gonghui_home_room" width="28" height="28"/>
<image name="gonghui_hot" width="20" height="20"/>
<image name="jiantou_hui" width="5.5" height="10"/>
<systemColor name="systemBackgroundColor">
<color white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</systemColor>
</resources>
</document>

View File

@@ -0,0 +1,26 @@
//
// SPGonghuiApplyListCell.h
// SweetParty
//
// Created by bj_szd on 2022/7/4.
//
#import <UIKit/UIKit.h>
#import "SPGonghuiApplyModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiApplyListCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV;
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab;
@property (weak, nonatomic) IBOutlet UILabel *IDLab;
@property (weak, nonatomic) IBOutlet UIButton *agreeBtn;
@property (weak, nonatomic) IBOutlet UIButton *refuseBtn;
@property (weak, nonatomic) IBOutlet UILabel *statusLab;
@property (nonatomic, strong) SPGonghuiApplyModel *model;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,64 @@
//
// SPGonghuiApplyListCell.m
// SweetParty
//
// Created by bj_szd on 2022/7/4.
//
#import "SPGonghuiApplyListCell.h"
@implementation SPGonghuiApplyListCell
- (void)awakeFromNib {
[super awakeFromNib];
[self.agreeBtn styleGradiBlueColor];
}
- (void)setModel:(SPGonghuiApplyModel *)model {
_model = model;
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab.text = [NSString stringWithFormat:@"%@", model.nick_name];
self.IDLab.text = [NSString stringWithFormat:@"ID%@", model.uid];
if (model.status == 1 || model.status == 3) {
self.refuseBtn.hidden = self.agreeBtn.hidden = YES;
self.statusLab.hidden = NO;
if (model.status == 1) {
self.statusLab.text = @"已同意";
self.statusLab.textColor = HEXCOLOR(0x00D195);
}else if (model.status == 3) {
self.statusLab.text = @"已拒绝";
self.statusLab.textColor = HEXCOLOR(0x999999);
}
}else {
self.refuseBtn.hidden = self.agreeBtn.hidden = NO;
self.statusLab.hidden = YES;
}
}
- (IBAction)onRefuse:(id)sender {
NSDictionary *params = @{@"id":C_string(self.model.id), @"type":@"2"};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/operate_guild" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
SPGonghuiApplyModel *model = self.model;
model.status = 3;
self.model = model;
} Failure:^(id _Nonnull errorData) {
}];
}
- (IBAction)onAgree:(id)sender {
NSDictionary *params = @{@"id":C_string(self.model.id), @"type":@"1"};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/operate_guild" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
SPGonghuiApplyModel *model = self.model;
model.status = 1;
self.model = model;
} Failure:^(id _Nonnull errorData) {
}];
}
@end

View File

@@ -0,0 +1,139 @@
<?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"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="SPGonghuiApplyListCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="77"/>
<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="77"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="O0U-cg-IDn">
<rect key="frame" x="15" y="6" width="345" height="65"/>
<color key="backgroundColor" red="0.95294117647058818" green="0.95294117647058818" blue="0.95294117647058818" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Hj6-5H-KqB">
<rect key="frame" x="15" y="16.5" width="44" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="44" id="Euk-V9-Uid"/>
<constraint firstAttribute="height" constant="44" id="aer-xu-8yo"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="22"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="你的笑甜掉牙了" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fEb-HP-sPm">
<rect key="frame" x="74" y="20" width="100" height="14"/>
<constraints>
<constraint firstAttribute="height" constant="14" id="t84-up-Dac"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="ID123456" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="d2F-C6-vmI">
<rect key="frame" x="74" y="40" width="74" height="16"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.60491908066937705" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="USY-YU-lTp">
<rect key="frame" x="254" y="24.5" width="48" height="28"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="28" id="J9U-dn-2AQ"/>
<constraint firstAttribute="width" constant="48" id="VYZ-kG-8wD"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="gonghui_jujue">
<color key="titleColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onRefuse:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="nEY-PD-Ah3"/>
</connections>
</button>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="mU5-ZI-Cwu">
<rect key="frame" x="312" y="24.5" width="48" height="28"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="48" id="7ki-JD-PXT"/>
<constraint firstAttribute="height" constant="28" id="qnK-IH-Tmc"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
<state key="normal" image="gonghui_agree">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<connections>
<action selector="onAgree:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="MhW-sf-QT5"/>
</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="kp5-6S-GHp">
<rect key="frame" x="317" y="30" width="43" height="17"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.0" green="0.81960784313725488" blue="0.58431372549019611" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="GPk-VO-Khq">
<rect key="frame" x="15" y="76.5" width="345" height="0.5"/>
<color key="backgroundColor" white="0.0" alpha="0.09556601388113839" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="Jfs-wO-KJe"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="d2F-C6-vmI" firstAttribute="top" secondItem="fEb-HP-sPm" secondAttribute="bottom" constant="6" id="EUz-hM-F6W"/>
<constraint firstItem="kp5-6S-GHp" firstAttribute="centerY" secondItem="mU5-ZI-Cwu" secondAttribute="centerY" id="GSA-JA-ZYR"/>
<constraint firstAttribute="bottom" secondItem="O0U-cg-IDn" secondAttribute="bottom" constant="6" id="HvT-nw-V6l"/>
<constraint firstItem="O0U-cg-IDn" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="Hxc-y4-gYA"/>
<constraint firstItem="O0U-cg-IDn" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="6" id="I2t-D4-oRV"/>
<constraint firstAttribute="bottom" secondItem="GPk-VO-Khq" secondAttribute="bottom" id="NVK-Nk-fW5"/>
<constraint firstItem="mU5-ZI-Cwu" firstAttribute="leading" secondItem="USY-YU-lTp" secondAttribute="trailing" constant="10" id="UeE-xa-xcY"/>
<constraint firstItem="mU5-ZI-Cwu" firstAttribute="centerY" secondItem="Hj6-5H-KqB" secondAttribute="centerY" id="ZGS-1d-8fR"/>
<constraint firstItem="fEb-HP-sPm" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="20" id="cLl-kB-qg6"/>
<constraint firstItem="fEb-HP-sPm" firstAttribute="leading" secondItem="Hj6-5H-KqB" secondAttribute="trailing" constant="15" id="dhw-b5-YaF"/>
<constraint firstItem="Hj6-5H-KqB" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="gQO-2N-iFl"/>
<constraint firstItem="Hj6-5H-KqB" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="j8m-kr-IOw"/>
<constraint firstAttribute="trailing" secondItem="mU5-ZI-Cwu" secondAttribute="trailing" constant="15" id="mDi-c1-rbu"/>
<constraint firstItem="GPk-VO-Khq" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="oHv-YG-u9a"/>
<constraint firstItem="d2F-C6-vmI" firstAttribute="leading" secondItem="fEb-HP-sPm" secondAttribute="leading" id="qky-9h-OTr"/>
<constraint firstAttribute="trailing" secondItem="O0U-cg-IDn" secondAttribute="trailing" constant="15" id="t66-2f-y4m"/>
<constraint firstAttribute="trailing" secondItem="GPk-VO-Khq" secondAttribute="trailing" constant="15" id="tDh-Rs-7pq"/>
<constraint firstItem="USY-YU-lTp" firstAttribute="centerY" secondItem="mU5-ZI-Cwu" secondAttribute="centerY" id="yo0-Sd-mBm"/>
<constraint firstItem="kp5-6S-GHp" firstAttribute="trailing" secondItem="mU5-ZI-Cwu" secondAttribute="trailing" id="zCL-NC-0qi"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="IDLab" destination="d2F-C6-vmI" id="Apy-kD-RlH"/>
<outlet property="agreeBtn" destination="mU5-ZI-Cwu" id="mKW-5H-gVU"/>
<outlet property="avatarImgV" destination="Hj6-5H-KqB" id="9Iy-rg-b1X"/>
<outlet property="nicknameLab" destination="fEb-HP-sPm" id="QcQ-s6-1Ad"/>
<outlet property="refuseBtn" destination="USY-YU-lTp" id="pKi-bF-vso"/>
<outlet property="statusLab" destination="kp5-6S-GHp" id="fQC-fy-Rl6"/>
</connections>
<point key="canvasLocation" x="131.15942028985509" y="108.81696428571428"/>
</tableViewCell>
</objects>
<resources>
<image name="gonghui_agree" width="48" height="28"/>
<image name="gonghui_jujue" width="48" height="28"/>
</resources>
</document>

View File

@@ -0,0 +1,18 @@
//
// SPGonghuiApplyListVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiApplyListVC : BaseTableViewController
@property (nonatomic, copy) NSString *guild_id;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,112 @@
//
// SPGonghuiApplyListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiApplyListVC.h"
#import "SPGonghuiApplyListCell.h"
@interface SPGonghuiApplyListVC ()
@end
@implementation SPGonghuiApplyListVC
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@"申请列表"];
[self createUI];
[self fetchData];
}
-(void)createUI {
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"gonghui_bg")];
[self.view insertSubview:bgImgV atIndex:0];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[self.tableView registerNib:[UINib nibWithNibName:@"SPGonghuiApplyListCell" bundle:nil] forCellReuseIdentifier:@"SPGonghuiApplyListCell"];
self.tableView.rowHeight = 74;
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id), @"page":@(self.page), @"page_limit":@"10"};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/get_apply_guild_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPGonghuiApplyModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"][@"list"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPGonghuiApplyListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPGonghuiApplyListCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPGonghuiApplyModel *model = self.dataArray[indexPath.row];
cell.model = model;
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
SPGonghuiApplyModel *model = self.dataArray[indexPath.row];
[UIViewController goUserMainpageWith:model.uid withRid:@""];
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,23 @@
//
// SPGonghuiApplyModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/30.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiApplyModel : NSObject
@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString *uid;
@property (nonatomic, copy) NSString *guild_id;
@property (nonatomic, assign) NSInteger status;//状态 1通过2申请中3拒绝
@property (nonatomic, copy) NSString *nick_name;
@property (nonatomic, copy) NSString *head_pic;
@end
NS_ASSUME_NONNULL_END

View File

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

View File

@@ -0,0 +1,26 @@
//
// SPGonghuiDetailListModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/30.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiDetailListModel : NSObject
@property (nonatomic, copy) NSString *total_gift_total_price;
@property (nonatomic, copy) NSString *uid;
@property (nonatomic, copy) NSString *nick_name;
@property (nonatomic, copy) NSString *head_pic;
@property (nonatomic, copy) NSString *rid;
@property (nonatomic, copy) NSString *room_name;
@property (nonatomic, copy) NSString *room_cover;
@property (nonatomic, copy) NSString *room_owner_uid;
@property (nonatomic, copy) NSString *room_number;
@end
NS_ASSUME_NONNULL_END

View File

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

View File

@@ -0,0 +1,21 @@
//
// SPGonghuiDetailListVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "BaseController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiDetailListVC : BaseController <JXCategoryListContentViewDelegate>
@property (nonatomic, copy) NSString *guild_id;
//1房间列表 2成员列表
@property (nonatomic, assign) NSInteger type;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,121 @@
//
// SPGonghuiDetailListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiDetailListVC.h"
#import "SPGonghuiRoomListVC.h"
#import "SPGonghuiUserListVC.h"
@interface SPGonghuiDetailListVC ()<JXCategoryListContainerViewDelegate>
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) JXCategoryTitleView *categoryView;
@property (nonatomic, strong) JXCategoryListContainerView *listContainerView;
@end
@implementation SPGonghuiDetailListVC
- (void)viewDidLoad {
[super viewDidLoad];
if (self.type == 2){
self.navTitle = @"公会房间";
}else{
self.navTitle = @"公会成员";
}
[self.customNavBar styleClear];
self.titles = @[@"昨日", @"今日", @"本周", @"上周", @"月榜"];
[self createUI];
}
-(void)createUI {
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"gonghui_bg")];
[self.view insertSubview:bgImgV atIndex:0];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[self.view addSubview:self.categoryView];
[self.view addSubview:self.listContainerView];
[self.categoryView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(yb_NavigationBar_H);
make.left.right.equalTo(self.view);
make.height.mas_equalTo(40);
}];
[self.listContainerView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.categoryView.mas_bottom).offset(0);
make.left.right.bottom.equalTo(self.view);
}];
}
//
- (JXCategoryTitleView *)categoryView {
if (!_categoryView) {
_categoryView = [[JXCategoryTitleView alloc] init];
_categoryView.titleFont = YBMediumFont(14);
_categoryView.titleSelectedFont = YBBoldFont(16);
_categoryView.titleColor = HEXCOLOR(0x999999);
_categoryView.titleSelectedColor = HEXCOLOR(0x333333);
_categoryView.contentEdgeInsetLeft = 20;
_categoryView.contentEdgeInsetRight = 20;
_categoryView.listContainer = self.listContainerView;
_categoryView.titles = self.titles;
// JXCategoryIndicatorBackgroundView *backgroundView = [[JXCategoryIndicatorBackgroundView alloc] init];
// backgroundView.indicatorWidth = 69;
// backgroundView.indicatorHeight = 27;
// backgroundView.indicatorCornerRadius = 13.5;
// backgroundView.indicatorColor = HEXCOLOR(0xFFE95E);
// _categoryView.indicators = @[backgroundView];
}
return _categoryView;
}
//
- (JXCategoryListContainerView *)listContainerView {
if (!_listContainerView) {
_listContainerView = [[JXCategoryListContainerView alloc] initWithType:JXCategoryListContainerType_ScrollView delegate:self];
}
return _listContainerView;
}
#pragma mark - JXCategoryListContainerViewDelegate
//
- (NSInteger)numberOfListsInlistContainerView:(JXCategoryListContainerView *)listContainerView {
return self.titles.count;
}
// <JXCategoryListContentViewDelegate>
- (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index {
if (self.type == 1) {
SPGonghuiUserListVC *list = [[SPGonghuiUserListVC alloc] init];
list.dateType = index+1;
list.guild_id = self.guild_id;
return list;
}else {
SPGonghuiRoomListVC *list = [[SPGonghuiRoomListVC alloc] init];
list.dateType = index+1;
list.guild_id = self.guild_id;
return list;
}
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,19 @@
//
// SPGonghuiDetailVC.h
// romantic
//
// Created by bj_szd on 2022/7/27.
// Copyright © 2022 romantic. All rights reserved.
//
#import "BaseViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiDetailVC : BaseViewController
@property (nonatomic, copy) NSString *guild_id;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,213 @@
//
// SPGonghuiDetailVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiDetailVC.h"
#import "SPGonghuiDetailListVC.h"
#import "SPGonghuiApplyListVC.h"
#import "SPGonghuiJoinAlert.h"
@interface SPGonghuiDetailVC ()<JXCategoryListContainerViewDelegate>
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) JXCategoryTitleView *categoryView;
@property (nonatomic, strong) JXCategoryListContainerView *listContainerView;
@property (nonatomic, strong) UIButton *applyListBtn;
@property (nonatomic, strong) UIButton *joinBtn;
@property (nonatomic, strong) NSString *quit_money;//退
@property (nonatomic, strong) UILabel *redLab;
@end
@implementation SPGonghuiDetailVC
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self onRequestJoinNum];
}
- (void)viewDidLoad {
[super viewDidLoad];
[self showNaviBarWithTitle:@""];
self.titles = @[@"公会成员", @"房间列表"];
[self createUI];
[self onJudgeHuizhang];
}
- (void)createUI {
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"gonghui_bg")];
[self.view insertSubview:bgImgV atIndex:0];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[self.view addSubview:self.categoryView];
[self.view addSubview:self.listContainerView];
[self.categoryView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(yb_NavigationBar_H+4);
make.left.equalTo(self.view).offset(15);
make.right.equalTo(self.view).offset(-15);
make.height.mas_equalTo(40);
}];
[self.listContainerView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.categoryView.mas_bottom).offset(12);
make.left.right.bottom.equalTo(self.view);
}];
self.applyListBtn = [ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-60-12, yb_StatusBar_H+7, 60, 30) text:@"申请列表" font:YBMediumFont(12) color:HEXCOLOR(0x333333) backguoundColor:nil imageName:nil target:self action:@selector(onApplyList)];
self.applyListBtn.hidden = YES;
self.redLab = [ControlCreator createLabel:self.view rect:CGRectMake(ScreenWidth-20-2, yb_StatusBar_H+3, 18, 18) text:@"0" font:YBBoldFont(10) color:kWhiteColor backguoundColor:kRedColor align:NSTextAlignmentCenter lines:1];
self.redLab.layer.cornerRadius = 9;
self.redLab.layer.masksToBounds = YES;
self.redLab.hidden = YES;
self.joinBtn = [ControlCreator createButton:self.view rect:CGRectMake(27, ScreenHeight-50-49, ScreenWidth-27*2, 49) text:@"申请加入" font:YBBoldFont(15) color:HEXCOLOR(0x333333) backguoundColor:nil imageName:nil target:self action:@selector(onJoinOrQuitGonghui)];
[self.joinBtn setTitle:@"退出公会" forState:UIControlStateSelected];
self.joinBtn.layer.cornerRadius = 24.5;
self.joinBtn.layer.masksToBounds = YES;
[self.joinBtn styleGradiBlueColor];
self.joinBtn.hidden = YES;
}
- (void)onApplyList {
SPGonghuiApplyListVC *vc = [[SPGonghuiApplyListVC alloc] init];
vc.guild_id = self.guild_id;
[vc pushSelf];
}
- (void)onRequestJoinNum {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id), @"page":@(1), @"page_limit":@"1000"};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/get_apply_guild_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
NSArray *arr = [responseDic[@"data"] safeArrayForKey:@"list"];
self.redLab.text = [NSString stringWithFormat:@"%ld", arr.count];
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onJudgeHuizhang {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/user_is_deacon" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
self.naviView.titleLab.text = responseDic[@"data"][@"guild_name"];
self.quit_money = [responseDic[@"data"] safeStringForKey:@"quit_money"];
NSInteger is_deacon = [responseDic[@"data"] safeIntForKey:@"is_deacon"];
if (is_deacon == 1) {
self.applyListBtn.hidden = self.redLab.hidden = NO;
self.joinBtn.hidden = YES;
}else {
self.applyListBtn.hidden = self.redLab.hidden = YES;
self.joinBtn.hidden = NO;
self.joinBtn.selected = [BJUserManager.userInfo.guild_id integerValue] == [self.guild_id integerValue];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onJoinOrQuitGonghui {
WEAK_SELF
SPGonghuiJoinAlert *alert = [[NSBundle mainBundle] loadNibNamed:@"SPGonghuiJoinAlert" owner:self options:nil].firstObject;
alert.frame = [UIScreen mainScreen].bounds;
[KEYWINDOW addSubview:alert];
if ([BJUserManager.userInfo.guild_id integerValue] == [self.guild_id integerValue]) {
//退
alert.onConfirmBlock = ^{
[self onQuitRequest];
};
alert.contentLab.text = [NSString stringWithFormat:@"退出公会需要支付%@金币,您确定要退出吗?", self.quit_money];
[alert.confirmBtn setTitle:@"申请退出" forState:UIControlStateNormal];
}else {
//
alert.onConfirmBlock = ^{
[weakSelf onJoinRequest];
};
}
}
- (void)onJoinRequest {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/join_guild" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)onQuitRequest {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/quit_guild" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self.navigationController popToRootViewControllerAnimated:YES];
} Failure:^(id _Nonnull errorData) {
}];
}
//
- (JXCategoryTitleView *)categoryView {
if (!_categoryView) {
_categoryView = [[JXCategoryTitleView alloc] init];
_categoryView.titleFont = YBMediumFont(15);
_categoryView.titleSelectedFont = [UIFont systemFontOfSize:17 weight:UIFontWeightHeavy];
_categoryView.titleColor = HEXCOLOR(0x666666);
_categoryView.titleSelectedColor = HEXCOLOR(0x111111);
_categoryView.listContainer = self.listContainerView;
_categoryView.titles = self.titles;
JXCategoryIndicatorImageView *lineView = [[JXCategoryIndicatorImageView alloc] init];
lineView.indicatorImageViewSize = CGSizeMake(15, 15);
lineView.indicatorImageView.image = ImageNamed(@"common_zhishi");
lineView.verticalMargin = 20;
lineView.horizontalMargin = 34;
_categoryView.indicators = @[lineView];
}
return _categoryView;
}
//
- (JXCategoryListContainerView *)listContainerView {
if (!_listContainerView) {
_listContainerView = [[JXCategoryListContainerView alloc] initWithType:JXCategoryListContainerType_ScrollView delegate:self];
}
return _listContainerView;
}
#pragma mark - JXCategoryListContainerViewDelegate
//
- (NSInteger)numberOfListsInlistContainerView:(JXCategoryListContainerView *)listContainerView {
return self.titles.count;
}
// <JXCategoryListContentViewDelegate>
- (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index {
SPGonghuiDetailListVC *list = [[SPGonghuiDetailListVC alloc] init];
list.type = index+1;
list.guild_id = self.guild_id;
return list;
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,21 @@
//
// SPGonghuiJoinAlert.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiJoinAlert : UIView
@property (weak, nonatomic) IBOutlet UILabel *contentLab;
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@property (nonatomic, copy) void(^onConfirmBlock)(void);
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,36 @@
//
// SPGonghuiJoinAlert.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiJoinAlert.h"
@interface SPGonghuiJoinAlert ()
@property (weak, nonatomic) IBOutlet UIView *containerView;
@end
@implementation SPGonghuiJoinAlert
- (void)awakeFromNib {
[super awakeFromNib];
self.containerView.backgroundColor = [UIColor bm_colorGradientChangeWithSize:CGSizeMake(ScreenWidth, 200) direction:FXGradientChangeDirectionVertical startColor:HEXCOLOR(0xDFFFF6) endColor:HEXCOLOR(0xFFFFFF)];
[self.confirmBtn styleGradiBlueColor];
}
- (IBAction)onConfirm:(id)sender {
if (self.onConfirmBlock) {
self.onConfirmBlock();
}
[self removeFromSuperview];
}
- (IBAction)onCancel:(id)sender {
[self removeFromSuperview];
}
@end

View File

@@ -0,0 +1,116 @@
<?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="SPGonghuiJoinAlert">
<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="Znm-uz-y0a">
<rect key="frame" x="0.0" y="0.0" width="375" height="812"/>
<color key="backgroundColor" white="0.0" alpha="0.5" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</imageView>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="wez-jR-Nsb">
<rect key="frame" x="15" y="306" width="345" height="200"/>
<subviews>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="温馨提示" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="nJG-Tb-xKE">
<rect key="frame" x="140" y="24" width="65.5" height="19.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="会长同意您的加入之后您将在未来20天内不能退出公会" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MiO-QT-4cX">
<rect key="frame" x="50" y="63.5" width="245" height="33.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="DNT-td-AdG">
<rect key="frame" x="180" y="137" width="135" height="40"/>
<color key="backgroundColor" red="0.050980392156862744" green="1" blue="0.72549019607843135" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="申请加入">
<color key="titleColor" white="0.0" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="iN0-l3-epB" eventType="touchUpInside" id="0CJ-4g-cIx"/>
</connections>
</button>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="E7Z-ym-Tdb">
<rect key="frame" x="30" y="137" width="135" height="40"/>
<color key="backgroundColor" red="0.80000000000000004" green="0.80000000000000004" blue="0.80000000000000004" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="width" constant="135" id="raq-tz-pWv"/>
<constraint firstAttribute="height" constant="40" id="x6i-vd-719"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
<state key="normal" title="取消">
<color key="titleColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="20"/>
</userDefinedRuntimeAttribute>
<userDefinedRuntimeAttribute type="color" keyPath="borderColor">
<color key="value" red="0.60392156860000001" green="0.61176470589999998" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onCancel:" destination="iN0-l3-epB" eventType="touchUpInside" id="7ny-9B-5gr"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="bottom" secondItem="E7Z-ym-Tdb" secondAttribute="bottom" constant="23" id="4Xe-ls-kJm"/>
<constraint firstItem="nJG-Tb-xKE" firstAttribute="top" secondItem="wez-jR-Nsb" secondAttribute="top" constant="24" id="8iC-NR-Sqv"/>
<constraint firstItem="MiO-QT-4cX" firstAttribute="top" secondItem="nJG-Tb-xKE" secondAttribute="bottom" constant="20" id="Kur-sV-lCZ"/>
<constraint firstItem="DNT-td-AdG" firstAttribute="height" secondItem="E7Z-ym-Tdb" secondAttribute="height" id="LYe-ea-Uim"/>
<constraint firstItem="DNT-td-AdG" firstAttribute="width" secondItem="E7Z-ym-Tdb" secondAttribute="width" id="PYL-eU-BgI"/>
<constraint firstItem="nJG-Tb-xKE" firstAttribute="centerX" secondItem="wez-jR-Nsb" secondAttribute="centerX" id="dm3-ib-ERk"/>
<constraint firstAttribute="height" constant="200" id="eCg-0C-KSQ"/>
<constraint firstItem="DNT-td-AdG" firstAttribute="centerY" secondItem="E7Z-ym-Tdb" secondAttribute="centerY" id="iGc-o7-phf"/>
<constraint firstItem="MiO-QT-4cX" firstAttribute="leading" secondItem="wez-jR-Nsb" secondAttribute="leading" constant="50" id="iLr-cW-zyq"/>
<constraint firstItem="E7Z-ym-Tdb" firstAttribute="leading" secondItem="wez-jR-Nsb" secondAttribute="leading" constant="30" id="osH-hZ-sbM"/>
<constraint firstAttribute="trailing" secondItem="MiO-QT-4cX" secondAttribute="trailing" constant="50" id="uep-73-4tZ"/>
<constraint firstAttribute="trailing" secondItem="DNT-td-AdG" secondAttribute="trailing" constant="30" id="zq7-JG-AgB"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="wez-jR-Nsb" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="3wj-E5-Rhz"/>
<constraint firstItem="Znm-uz-y0a" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" id="KEa-QN-4ql"/>
<constraint firstAttribute="trailing" secondItem="wez-jR-Nsb" secondAttribute="trailing" constant="15" id="c55-5E-38a"/>
<constraint firstItem="wez-jR-Nsb" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="f9C-qW-jMk"/>
<constraint firstItem="Znm-uz-y0a" firstAttribute="top" secondItem="iN0-l3-epB" secondAttribute="top" id="ka7-P6-Ref"/>
<constraint firstAttribute="bottom" secondItem="Znm-uz-y0a" secondAttribute="bottom" id="oRj-nx-TL3"/>
<constraint firstAttribute="trailing" secondItem="Znm-uz-y0a" secondAttribute="trailing" id="yco-PA-pWm"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<connections>
<outlet property="confirmBtn" destination="DNT-td-AdG" id="cHK-nQ-BgH"/>
<outlet property="containerView" destination="wez-jR-Nsb" id="9t4-Ou-blY"/>
<outlet property="contentLab" destination="MiO-QT-4cX" id="8dV-2F-Bwx"/>
</connections>
<point key="canvasLocation" x="133" y="109"/>
</view>
</objects>
</document>

View File

@@ -0,0 +1,27 @@
//
// SPGonghuiListCell.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import <UIKit/UIKit.h>
#import "SPGonghuiListModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiListCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *bgImgV;
@property (weak, nonatomic) IBOutlet UILabel *orderLab;
@property (weak, nonatomic) IBOutlet UIImageView *orderImgV;
@property (weak, nonatomic) IBOutlet UIImageView *imgV;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *valueLab;
@property (weak, nonatomic) IBOutlet UILabel *num;
@property (nonatomic, strong) SPGonghuiListModel *model;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,26 @@
//
// SPGonghuiListCell.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiListCell.h"
@implementation SPGonghuiListCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setModel:(SPGonghuiListModel *)model {
_model = model;
[self.imgV sd_setImageWithURL:[NSURL URLWithString:model.cover] placeholderImage:kDefaultUserIcon];
self.nameLab.text = model.guild_name;
self.valueLab.text = model.total_gift_total_price;
self.num.text = [NSString stringWithFormat:@"%@人",model.num];
}
@end

View File

@@ -0,0 +1,132 @@
<?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"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="SPGonghuiListCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="85"/>
<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="85"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="91D-fK-7SU">
<rect key="frame" x="15" y="5" width="345" height="75"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="16"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<imageView hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Kxo-pM-jKT">
<rect key="frame" x="30" y="26.5" width="32" height="32"/>
<constraints>
<constraint firstAttribute="height" constant="32" id="LNB-xK-MWA"/>
<constraint firstAttribute="width" constant="32" id="rpJ-a6-mTI"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="01" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="I8Q-fx-Ie0">
<rect key="frame" x="34.5" y="30.5" width="23" 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>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="9uC-b3-wf6">
<rect key="frame" x="72" y="15.5" width="54" height="54"/>
<constraints>
<constraint firstAttribute="width" constant="54" id="Oqh-S1-OCQ"/>
<constraint firstAttribute="height" constant="54" id="TbA-nm-2Fo"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="8"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="奇迹传媒" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="5wX-m7-s2I">
<rect key="frame" x="136" y="21.5" width="65.5" height="14"/>
<constraints>
<constraint firstAttribute="height" constant="14" id="uHk-8S-Ofw"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="0" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="M7K-aK-I25">
<rect key="frame" x="335.5" y="47.5" width="9.5" height="17"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="Label" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="MQU-j3-hAC">
<rect key="frame" x="311" y="20" width="34" height="12"/>
<constraints>
<constraint firstAttribute="height" constant="12" id="uwn-wx-qbr"/>
</constraints>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<color key="textColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_hot" translatesAutoresizingMaskIntoConstraints="NO" id="8y3-Lh-l9v">
<rect key="frame" x="316.5" y="48" width="16" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="OAz-eo-7Fb"/>
<constraint firstAttribute="width" constant="16" id="gms-M1-tem"/>
</constraints>
</imageView>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="OY9-hI-EMZ">
<rect key="frame" x="15" y="84.5" width="345" height="0.5"/>
<color key="backgroundColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="0.1035301572" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="JJI-Ih-tKl"/>
</constraints>
</view>
</subviews>
<constraints>
<constraint firstItem="5wX-m7-s2I" firstAttribute="top" secondItem="9uC-b3-wf6" secondAttribute="top" constant="6" id="2UT-Lu-vCI"/>
<constraint firstAttribute="bottom" secondItem="OY9-hI-EMZ" secondAttribute="bottom" id="Aca-Gj-RTU"/>
<constraint firstItem="Kxo-pM-jKT" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="EvY-wx-ygm"/>
<constraint firstAttribute="bottom" secondItem="91D-fK-7SU" secondAttribute="bottom" constant="5" id="HI9-BS-cig"/>
<constraint firstItem="M7K-aK-I25" firstAttribute="trailing" secondItem="MQU-j3-hAC" secondAttribute="trailing" id="HUb-Om-ZvF"/>
<constraint firstItem="OY9-hI-EMZ" firstAttribute="top" secondItem="M7K-aK-I25" secondAttribute="bottom" constant="20" id="NN2-er-Mfe"/>
<constraint firstItem="5wX-m7-s2I" firstAttribute="leading" secondItem="9uC-b3-wf6" secondAttribute="trailing" constant="10" id="PgP-tu-0Mh"/>
<constraint firstItem="Kxo-pM-jKT" firstAttribute="centerY" secondItem="I8Q-fx-Ie0" secondAttribute="centerY" id="R0b-p6-G6E"/>
<constraint firstItem="91D-fK-7SU" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="5" id="WbY-6B-cd7"/>
<constraint firstItem="MQU-j3-hAC" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="20" id="bWP-Xf-0tc"/>
<constraint firstItem="9uC-b3-wf6" firstAttribute="centerY" secondItem="91D-fK-7SU" secondAttribute="centerY" id="bzK-nn-r5q"/>
<constraint firstItem="8y3-Lh-l9v" firstAttribute="centerY" secondItem="M7K-aK-I25" secondAttribute="centerY" id="eM0-yP-Zva"/>
<constraint firstItem="91D-fK-7SU" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="h1D-Ee-dQm"/>
<constraint firstAttribute="trailing" secondItem="91D-fK-7SU" secondAttribute="trailing" constant="15" id="hLy-gf-I6Z"/>
<constraint firstItem="OY9-hI-EMZ" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="k1L-di-faq"/>
<constraint firstItem="9uC-b3-wf6" firstAttribute="leading" secondItem="Kxo-pM-jKT" secondAttribute="trailing" constant="10" id="nSr-rP-hRC"/>
<constraint firstItem="Kxo-pM-jKT" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="30" id="pfa-ZO-eRx"/>
<constraint firstItem="Kxo-pM-jKT" firstAttribute="centerX" secondItem="I8Q-fx-Ie0" secondAttribute="centerX" id="r25-oZ-Q1o"/>
<constraint firstAttribute="trailing" secondItem="M7K-aK-I25" secondAttribute="trailing" constant="30" id="rGc-fm-wn1"/>
<constraint firstItem="M7K-aK-I25" firstAttribute="leading" secondItem="8y3-Lh-l9v" secondAttribute="trailing" constant="3" id="zAp-P6-B58"/>
<constraint firstAttribute="trailing" secondItem="OY9-hI-EMZ" secondAttribute="trailing" constant="15" id="zgA-6v-Dmv"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="bgImgV" destination="91D-fK-7SU" id="AYl-Ti-mqu"/>
<outlet property="imgV" destination="9uC-b3-wf6" id="NsF-jD-GSq"/>
<outlet property="nameLab" destination="5wX-m7-s2I" id="2dv-xb-iDA"/>
<outlet property="num" destination="MQU-j3-hAC" id="mHh-BF-2Aq"/>
<outlet property="orderImgV" destination="Kxo-pM-jKT" id="Zyi-2I-5xg"/>
<outlet property="orderLab" destination="I8Q-fx-Ie0" id="jBj-bm-Oze"/>
<outlet property="valueLab" destination="M7K-aK-I25" id="BaN-5Z-OAR"/>
</connections>
<point key="canvasLocation" x="130" y="71"/>
</tableViewCell>
</objects>
<resources>
<image name="gonghui_hot" width="20" height="20"/>
</resources>
</document>

View File

@@ -0,0 +1,22 @@
//
// SPGonghuiListModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiListModel : NSObject
@property (nonatomic, copy) NSString *guild_id;
@property (nonatomic, copy) NSString *total_gift_total_price;
@property (nonatomic, copy) NSString *guild_name;
@property (nonatomic, copy) NSString *cover;
@property (nonatomic, copy) NSString *num;
@end
NS_ASSUME_NONNULL_END

View File

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

View File

@@ -0,0 +1,21 @@
//
// SPGonghuiListVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiListVC : BaseTableViewController <JXCategoryListContentViewDelegate>
//1总排行 2本周 3上周
@property (nonatomic, assign) NSInteger dateType;
@property (nonatomic, copy) NSString *keywords;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,124 @@
// SPGonghuiListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiListVC.h"
#import "SPGonghuiListCell.h"
#import "SPGonghuiDetailVC.h"
#import "LMGonghuiDetailsViewController.h"
@interface SPGonghuiListVC ()
@end
@implementation SPGonghuiListVC
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
[self fetchData];
}
-(void)createUI {
self.view.backgroundColor = [UIColor clearColor];
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.edges.equalTo(self.view);
}];
[self.tableView registerNib:[UINib nibWithNibName:@"SPGonghuiListCell" bundle:nil] forCellReuseIdentifier:@"SPGonghuiListCell"];
self.tableView.rowHeight = 84;
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSDictionary *params = @{@"time":@(self.dateType), @"page":@(self.page), @"page_limit":@"20", @"keywords":C_string(self.keywords)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/get_guild_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPGonghuiListModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"][@"list"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPGonghuiListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPGonghuiListCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPGonghuiListModel *model = self.dataArray[indexPath.row];
cell.model = model;
if (indexPath.row < 3) {
cell.orderLab.hidden = YES;
cell.orderImgV.hidden = NO;
NSString *orderStr = [NSString stringWithFormat:@"gonghui_order_%ld", indexPath.row+1];
cell.orderImgV.image = ImageNamed(orderStr);
}else {
cell.orderLab.hidden = NO;
cell.orderImgV.hidden = YES;
cell.orderLab.text = [NSString stringWithFormat:@"%02ld",indexPath.row];
}
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
SPGonghuiListModel *model = self.dataArray[indexPath.row];
LMGonghuiDetailsViewController *vc = [[LMGonghuiDetailsViewController alloc] init];
vc.guild_id = model.guild_id;
[vc pushSelf];
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,24 @@
//
// SPGonghuiRoomListCell.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import <UIKit/UIKit.h>
#import "SPGonghuiDetailListModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiRoomListCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imgV;
@property (weak, nonatomic) IBOutlet UILabel *nameLab;
@property (weak, nonatomic) IBOutlet UILabel *IDLab;
@property (weak, nonatomic) IBOutlet UILabel *hotLab;
@property (nonatomic, strong) SPGonghuiDetailListModel *model;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,26 @@
//
// SPGonghuiRoomListCell.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiRoomListCell.h"
@implementation SPGonghuiRoomListCell
- (void)awakeFromNib {
[super awakeFromNib];
// Initialization code
}
- (void)setModel:(SPGonghuiDetailListModel *)model {
_model = model;
[self.imgV sd_setImageWithURL:[NSURL URLWithString:model.room_cover] placeholderImage:kDefaultUserIcon];
self.nameLab.text = model.room_name;
self.IDLab.text = model.room_number;
self.hotLab.text = model.total_gift_total_price;
}
@end

View 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"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="SPGonghuiRoomListCell">
<rect key="frame" x="0.0" y="0.0" width="375" height="77"/>
<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="77"/>
<autoresizingMask key="autoresizingMask"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="sUG-pA-2x9">
<rect key="frame" x="0.0" y="0.0" width="375" height="77"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="bvH-ii-mtj">
<rect key="frame" x="20" y="18.5" width="40" height="40"/>
<constraints>
<constraint firstAttribute="width" constant="40" id="62M-Vq-NyE"/>
<constraint firstAttribute="height" constant="40" id="XLQ-sb-VYm"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="5"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="奇迹传媒" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="WM7-W2-IGo">
<rect key="frame" x="75" y="21" width="61.5" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="bZf-Qm-OGX">
<rect key="frame" x="75" y="44" width="79.5" height="20"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="party_ID" translatesAutoresizingMaskIntoConstraints="NO" id="cDu-8M-AOW">
<rect key="frame" x="0.0" y="0.0" width="20" height="20"/>
<constraints>
<constraint firstAttribute="width" constant="20" id="K49-Nx-Woo"/>
<constraint firstAttribute="height" constant="20" id="nTh-e3-C6V"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="123456" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="3CQ-AS-w5U">
<rect key="frame" x="23" y="3" width="46.5" height="14.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
<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" red="0.0" green="0.0" blue="0.0" alpha="0.29999999999999999" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="cDu-8M-AOW" firstAttribute="centerY" secondItem="bZf-Qm-OGX" secondAttribute="centerY" id="I0A-jk-4gp"/>
<constraint firstAttribute="trailing" secondItem="3CQ-AS-w5U" secondAttribute="trailing" constant="10" id="TXv-ch-2IX"/>
<constraint firstItem="cDu-8M-AOW" firstAttribute="leading" secondItem="bZf-Qm-OGX" secondAttribute="leading" id="cv2-gi-4Nc"/>
<constraint firstItem="3CQ-AS-w5U" firstAttribute="centerY" secondItem="bZf-Qm-OGX" secondAttribute="centerY" id="hzy-w7-myR"/>
<constraint firstItem="3CQ-AS-w5U" firstAttribute="leading" secondItem="bZf-Qm-OGX" secondAttribute="leading" constant="23" id="l8p-3r-8SP"/>
<constraint firstAttribute="height" constant="20" id="oGx-JI-jaH"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_hot" translatesAutoresizingMaskIntoConstraints="NO" id="jHr-y5-hTy">
<rect key="frame" x="309" y="28.5" width="20" height="20"/>
</imageView>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="aXL-Ry-biu">
<rect key="frame" x="15" y="76.5" width="345" height="0.5"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.11059483119419643" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="vv5-jk-Z7v"/>
</constraints>
</view>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1000" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="bxZ-v5-dMg">
<rect key="frame" x="333" y="30.5" width="27" height="16.5"/>
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="14"/>
<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 firstAttribute="trailing" secondItem="bxZ-v5-dMg" secondAttribute="trailing" constant="15" id="4pb-oc-YRf"/>
<constraint firstItem="bvH-ii-mtj" firstAttribute="leading" secondItem="sUG-pA-2x9" secondAttribute="leading" constant="20" id="AAz-eF-8Tj"/>
<constraint firstItem="jHr-y5-hTy" firstAttribute="centerY" secondItem="bxZ-v5-dMg" secondAttribute="centerY" id="Ap5-55-Xir"/>
<constraint firstAttribute="trailing" secondItem="aXL-Ry-biu" secondAttribute="trailing" constant="15" id="BJ4-qE-20D"/>
<constraint firstItem="bZf-Qm-OGX" firstAttribute="leading" secondItem="WM7-W2-IGo" secondAttribute="leading" id="Gsi-gq-sz2"/>
<constraint firstItem="aXL-Ry-biu" firstAttribute="leading" secondItem="sUG-pA-2x9" secondAttribute="leading" constant="15" id="IOQ-bV-4hY"/>
<constraint firstAttribute="bottom" secondItem="aXL-Ry-biu" secondAttribute="bottom" id="VtT-01-hGi"/>
<constraint firstItem="bvH-ii-mtj" firstAttribute="centerY" secondItem="sUG-pA-2x9" secondAttribute="centerY" id="oas-Z3-XS6"/>
<constraint firstItem="bZf-Qm-OGX" firstAttribute="top" secondItem="WM7-W2-IGo" secondAttribute="bottom" constant="5" id="qvh-bx-xEt"/>
<constraint firstItem="WM7-W2-IGo" firstAttribute="leading" secondItem="bvH-ii-mtj" secondAttribute="trailing" constant="15" id="tRU-dc-uRk"/>
<constraint firstItem="bxZ-v5-dMg" firstAttribute="centerY" secondItem="sUG-pA-2x9" secondAttribute="centerY" id="trh-C6-ESK"/>
<constraint firstItem="bxZ-v5-dMg" firstAttribute="leading" secondItem="jHr-y5-hTy" secondAttribute="trailing" constant="4" id="wvB-gT-Ll3"/>
<constraint firstItem="WM7-W2-IGo" firstAttribute="top" secondItem="sUG-pA-2x9" secondAttribute="top" constant="21" id="xev-4f-vf4"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<constraints>
<constraint firstAttribute="trailing" secondItem="sUG-pA-2x9" secondAttribute="trailing" id="7L1-6A-YFB"/>
<constraint firstItem="sUG-pA-2x9" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" id="Dzx-41-q0H"/>
<constraint firstItem="sUG-pA-2x9" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" id="UQj-aP-p5j"/>
<constraint firstAttribute="bottom" secondItem="sUG-pA-2x9" secondAttribute="bottom" id="ri8-x0-mRG"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="IDLab" destination="3CQ-AS-w5U" id="6kT-Zr-6l1"/>
<outlet property="hotLab" destination="bxZ-v5-dMg" id="JdH-p7-g8e"/>
<outlet property="imgV" destination="bvH-ii-mtj" id="hvf-kt-mmn"/>
<outlet property="nameLab" destination="WM7-W2-IGo" id="SpT-Kc-w7c"/>
</connections>
<point key="canvasLocation" x="131.15942028985509" y="101.45089285714285"/>
</tableViewCell>
</objects>
<resources>
<image name="gonghui_hot" width="20" height="20"/>
<image name="party_ID" width="20" height="20"/>
</resources>
</document>

View File

@@ -0,0 +1,21 @@
//
// SPGonghuiRoomListVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiRoomListVC : BaseTableViewController <JXCategoryListContentViewDelegate>
@property (nonatomic, copy) NSString *guild_id;
//1当天 2当周 3当月
@property (nonatomic, assign) NSInteger dateType;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,120 @@
//
// SPGonghuiRoomListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiRoomListVC.h"
#import "SPGonghuiRoomListCell.h"
@interface SPGonghuiRoomListVC ()
@property (nonatomic, strong) UILabel *totalLab;
@end
@implementation SPGonghuiRoomListVC
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
[self fetchData];
}
-(void)createUI {
self.view.backgroundColor = [UIColor clearColor];
self.totalLab = [ControlCreator createLabel:self.view rect:CGRectZero text:@"" font:YBBoldFont(15) color:HEXCOLOR(0x333333) backguoundColor:nil align:NSTextAlignmentCenter lines:1];
[self.totalLab mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(0);
make.left.right.mas_equalTo(0);
make.height.mas_equalTo(40);
}];
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(40);
make.left.right.bottom.mas_equalTo(0);
}];
[self.tableView registerNib:[UINib nibWithNibName:@"SPGonghuiRoomListCell" bundle:nil] forCellReuseIdentifier:@"SPGonghuiRoomListCell"];
self.tableView.rowHeight = 76;
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id), @"type":@(1), @"time":@(self.dateType), @"page":@(self.page), @"page_limit":@"20"};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/get_guild_money_log_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPGonghuiDetailListModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"][@"list"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
self.totalLab.text = [NSString stringWithFormat:@"总流水:%@", responseDic[@"data"][@"total_gift_price"]];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
#pragma mark - Table view data source
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
return self.dataArray.count;
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
SPGonghuiRoomListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPGonghuiRoomListCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPGonghuiDetailListModel *model = self.dataArray[indexPath.row];
cell.model = model;
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
SPGonghuiDetailListModel *model = self.dataArray[indexPath.row];
[UIViewController goMicRoomWithRid:model.rid withPwd:@""];
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

@@ -0,0 +1,20 @@
//
// SPGonghuiSearchView.h
// SweetParty
//
// Created by bj_szd on 2023/1/14.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiSearchView : UIView
@property (weak, nonatomic) IBOutlet UITextField *searchTF;
@property (nonatomic, copy) void(^onSearchBlock)(NSString *str);
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,35 @@
//
// SPGonghuiSearchView.m
// SweetParty
//
// Created by bj_szd on 2023/1/14.
//
#import "SPGonghuiSearchView.h"
@interface SPGonghuiSearchView () <UITextFieldDelegate>
@end
@implementation SPGonghuiSearchView
- (void)awakeFromNib {
[super awakeFromNib];
self.searchTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"搜索公会名称/ID" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0x333333, 1)}];
self.searchTF.delegate = self;
}
- (IBAction)onSearch:(id)sender {
if (self.onSearchBlock) {
self.onSearchBlock(self.searchTF.text);
}
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
[self onSearch:nil];
return YES;
}
@end

View File

@@ -0,0 +1,63 @@
<?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="SPGonghuiSearchView">
<rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="9er-PW-K9Q">
<rect key="frame" x="15" y="0.0" width="345" height="44"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_search" translatesAutoresizingMaskIntoConstraints="NO" id="Hdv-uo-t5v">
<rect key="frame" x="15" y="10" width="24" height="24"/>
</imageView>
<textField opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="left" contentVerticalAlignment="center" placeholder="搜索公会名称/ID" textAlignment="natural" minimumFontSize="17" translatesAutoresizingMaskIntoConstraints="NO" id="VAk-3w-FUE">
<rect key="frame" x="50" y="0.0" width="280" height="44"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<color key="textColor" red="0.066666666666666666" green="0.066666666666666666" blue="0.066666666666666666" alpha="0.59999999999999998" colorSpace="custom" customColorSpace="sRGB"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="13"/>
<textInputTraits key="textInputTraits" returnKeyType="search"/>
</textField>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="VAk-3w-FUE" firstAttribute="leading" secondItem="9er-PW-K9Q" secondAttribute="leading" constant="50" id="23a-XB-hHx"/>
<constraint firstItem="Hdv-uo-t5v" firstAttribute="centerY" secondItem="9er-PW-K9Q" secondAttribute="centerY" id="Drx-U6-aC1"/>
<constraint firstItem="Hdv-uo-t5v" firstAttribute="leading" secondItem="9er-PW-K9Q" secondAttribute="leading" constant="15" id="QC3-jG-Boq"/>
<constraint firstAttribute="bottom" secondItem="VAk-3w-FUE" secondAttribute="bottom" id="Wh0-iM-PBQ"/>
<constraint firstItem="VAk-3w-FUE" firstAttribute="top" secondItem="9er-PW-K9Q" secondAttribute="top" id="hgX-BP-z1Y"/>
<constraint firstAttribute="trailing" secondItem="VAk-3w-FUE" secondAttribute="trailing" constant="15" id="kZM-mD-Aeg"/>
<constraint firstAttribute="height" constant="44" id="ok3-Y8-gOk"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="22"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="9er-PW-K9Q" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="9ae-hm-cvj"/>
<constraint firstAttribute="trailing" secondItem="9er-PW-K9Q" secondAttribute="trailing" constant="15" id="XJk-LJ-wQZ"/>
<constraint firstItem="9er-PW-K9Q" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" id="ctK-vK-rZl"/>
</constraints>
<freeformSimulatedSizeMetrics key="simulatedDestinationMetrics"/>
<connections>
<outlet property="searchTF" destination="VAk-3w-FUE" id="V8Y-eQ-qIM"/>
</connections>
<point key="canvasLocation" x="132" y="100"/>
</view>
</objects>
<resources>
<image name="gonghui_search" width="24" height="24"/>
</resources>
</document>

View File

@@ -0,0 +1,28 @@
//
// SPGonghuiUserListCell.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import <UIKit/UIKit.h>
#import "SPGonghuiDetailListModel.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiUserListCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UIImageView *avatarImgV;
@property (weak, nonatomic) IBOutlet UILabel *nicknameLab;
@property (weak, nonatomic) IBOutlet UILabel *IDLab;
@property (weak, nonatomic) IBOutlet UIButton *huizhangBtn;
@property (weak, nonatomic) IBOutlet UIButton *yichuBtn;
@property (nonatomic, copy) void(^onYichuBlock)(void);
@property (nonatomic, strong) SPGonghuiDetailListModel *model;
@property (weak, nonatomic) IBOutlet UILabel *hotValue;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,37 @@
//
// SPGonghuiUserListCell.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiUserListCell.h"
@implementation SPGonghuiUserListCell
- (void)awakeFromNib {
[super awakeFromNib];
}
- (void)setModel:(SPGonghuiDetailListModel *)model {
_model = model;
[self.avatarImgV sd_setImageWithURL:[NSURL URLWithString:model.head_pic] placeholderImage:kDefaultUserIcon];
self.nicknameLab.text = [NSString stringWithFormat:@"%@", model.nick_name];
self.IDLab.text = model.uid;
self.hotValue.text = model.total_gift_total_price;
}
- (IBAction)onYichu:(id)sender {
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"确定踢出该用户吗?" message:nil preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
if (self.onYichuBlock) {
self.onYichuBlock();
}
}]];
[alert addAction:[UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]];
[[self getCurrentVC] presentViewController:alert animated:YES completion:nil];
}
@end

View File

@@ -0,0 +1,164 @@
<?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"/>
<tableViewCell contentMode="scaleToFill" selectionStyle="default" indentationWidth="10" id="KGk-i7-Jjw" customClass="SPGonghuiUserListCell">
<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 hidden="YES" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="Rda-vF-fLE">
<rect key="frame" x="15" y="6" width="345" height="64"/>
<color key="backgroundColor" red="0.95294117647058818" green="0.95294117647058818" blue="0.95294117647058818" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" translatesAutoresizingMaskIntoConstraints="NO" id="bWe-xo-Nlp">
<rect key="frame" x="15" y="16" width="44" height="44"/>
<constraints>
<constraint firstAttribute="width" constant="44" id="hXE-Jb-nMi"/>
<constraint firstAttribute="height" constant="44" id="yl1-SR-pQu"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="22"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="你的笑甜掉牙了" textAlignment="natural" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QTl-17-9W6">
<rect key="frame" x="70" y="20" width="107.5" height="18"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="15"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view clipsSubviews="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="8iK-yJ-3Rm">
<rect key="frame" x="70" y="43" width="79.5" height="20"/>
<subviews>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="party_ID" translatesAutoresizingMaskIntoConstraints="NO" id="d9Z-p9-zRt">
<rect key="frame" x="0.0" y="0.0" width="20" height="20"/>
<constraints>
<constraint firstAttribute="height" constant="20" id="AzN-hj-eS9"/>
<constraint firstAttribute="width" constant="20" id="a4r-LZ-TS7"/>
</constraints>
</imageView>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="123456" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="uvI-6R-1Mc">
<rect key="frame" x="23" y="3" width="46.5" height="14.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
<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" red="0.0" green="0.0" blue="0.0" alpha="0.29999999999999999" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstItem="uvI-6R-1Mc" firstAttribute="centerY" secondItem="8iK-yJ-3Rm" secondAttribute="centerY" id="6Wu-5T-9Gw"/>
<constraint firstItem="d9Z-p9-zRt" firstAttribute="leading" secondItem="8iK-yJ-3Rm" secondAttribute="leading" id="P8z-p1-3qi"/>
<constraint firstAttribute="height" constant="20" id="UKj-Ec-hvn"/>
<constraint firstAttribute="trailing" secondItem="uvI-6R-1Mc" secondAttribute="trailing" constant="10" id="b4N-ol-6Cn"/>
<constraint firstItem="uvI-6R-1Mc" firstAttribute="leading" secondItem="8iK-yJ-3Rm" secondAttribute="leading" constant="23" id="lee-ee-YPM"/>
<constraint firstItem="d9Z-p9-zRt" firstAttribute="centerY" secondItem="8iK-yJ-3Rm" secondAttribute="centerY" id="vli-TY-Zcs"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
<button opaque="NO" userInteractionEnabled="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="nMW-b7-CYr">
<rect key="frame" x="295" y="24.5" width="57" height="27.5"/>
<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" image="gonghui_huizhang">
<color key="titleColor" red="0.58431372549019611" green="0.47058823529411764" blue="0.99607843137254903" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
</button>
<imageView clipsSubviews="YES" userInteractionEnabled="NO" contentMode="scaleAspectFit" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="gonghui_hot" translatesAutoresizingMaskIntoConstraints="NO" id="zYu-Ll-7gf">
<rect key="frame" x="159.5" y="45" width="13" height="16"/>
<constraints>
<constraint firstAttribute="height" constant="16" id="AA2-bO-yIB"/>
<constraint firstAttribute="width" constant="13" id="cuw-B4-NDz"/>
</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="Eyi-Dh-RdO">
<rect key="frame" x="178.5" y="44.5" width="33" height="17"/>
<fontDescription key="fontDescription" name="DINAlternate-Bold" family="DIN Alternate" pointSize="14"/>
<color key="textColor" red="0.20000000000000001" green="0.20000000000000001" blue="0.20000000000000001" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<view hidden="YES" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="c2P-pn-Z9w">
<rect key="frame" x="15" y="75.5" width="345" height="0.5"/>
<color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.095724160330636132" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="0.5" id="mpi-Cc-gI8"/>
</constraints>
</view>
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="eT7-8t-IOC">
<rect key="frame" x="292" y="24" width="68" height="28"/>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="width" constant="68" id="4cK-1Q-8c8"/>
<constraint firstAttribute="height" constant="28" id="gwl-cG-DYr"/>
</constraints>
<fontDescription key="fontDescription" type="boldSystem" pointSize="12"/>
<state key="normal" backgroundImage="gonghui_yichu">
<color key="titleColor" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<connections>
<action selector="onYichu:" destination="KGk-i7-Jjw" eventType="touchUpInside" id="4cz-o5-vt6"/>
</connections>
</button>
</subviews>
<constraints>
<constraint firstAttribute="bottom" secondItem="c2P-pn-Z9w" secondAttribute="bottom" id="6B3-xt-xfo"/>
<constraint firstItem="bWe-xo-Nlp" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="7jz-Fn-v2W"/>
<constraint firstAttribute="bottom" secondItem="Rda-vF-fLE" secondAttribute="bottom" constant="6" id="86T-3H-m2y"/>
<constraint firstItem="QTl-17-9W6" firstAttribute="leading" secondItem="bWe-xo-Nlp" secondAttribute="trailing" constant="11" id="IRl-GV-M29"/>
<constraint firstItem="eT7-8t-IOC" firstAttribute="centerY" secondItem="H2p-sc-9uM" secondAttribute="centerY" id="IeM-Jh-tfM"/>
<constraint firstItem="Rda-vF-fLE" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="J9j-eI-RDV"/>
<constraint firstItem="8iK-yJ-3Rm" firstAttribute="top" secondItem="QTl-17-9W6" secondAttribute="bottom" constant="5" id="Kll-eE-EU2"/>
<constraint firstItem="bWe-xo-Nlp" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="M2m-bs-ugb"/>
<constraint firstItem="c2P-pn-Z9w" firstAttribute="leading" secondItem="H2p-sc-9uM" secondAttribute="leading" constant="15" id="VwF-zJ-Eei"/>
<constraint firstAttribute="trailing" secondItem="Rda-vF-fLE" secondAttribute="trailing" constant="15" id="XZc-Hw-t9i"/>
<constraint firstItem="zYu-Ll-7gf" firstAttribute="centerY" secondItem="8iK-yJ-3Rm" secondAttribute="centerY" id="f5p-LM-aex"/>
<constraint firstItem="nMW-b7-CYr" firstAttribute="centerY" secondItem="eT7-8t-IOC" secondAttribute="centerY" id="hlN-3j-XK3"/>
<constraint firstItem="8iK-yJ-3Rm" firstAttribute="leading" secondItem="QTl-17-9W6" secondAttribute="leading" id="iaV-N1-T3g"/>
<constraint firstItem="zYu-Ll-7gf" firstAttribute="leading" secondItem="8iK-yJ-3Rm" secondAttribute="trailing" constant="10" id="ijN-V9-u2r"/>
<constraint firstItem="Eyi-Dh-RdO" firstAttribute="centerY" secondItem="zYu-Ll-7gf" secondAttribute="centerY" id="j2R-y8-iWP"/>
<constraint firstItem="Rda-vF-fLE" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="6" id="ooy-Ar-74K"/>
<constraint firstAttribute="trailing" secondItem="c2P-pn-Z9w" secondAttribute="trailing" constant="15" id="qGi-bh-VpB"/>
<constraint firstAttribute="trailing" secondItem="eT7-8t-IOC" secondAttribute="trailing" constant="15" id="skR-np-Hyo"/>
<constraint firstItem="Eyi-Dh-RdO" firstAttribute="leading" secondItem="zYu-Ll-7gf" secondAttribute="trailing" constant="6" id="snz-VK-EwW"/>
<constraint firstItem="QTl-17-9W6" firstAttribute="top" secondItem="H2p-sc-9uM" secondAttribute="top" constant="20" id="uLI-6S-6RB"/>
<constraint firstAttribute="trailing" secondItem="nMW-b7-CYr" secondAttribute="trailing" constant="23" id="zKT-Ji-zij"/>
</constraints>
</tableViewCellContentView>
<color key="backgroundColor" white="0.0" alpha="0.0" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<connections>
<outlet property="IDLab" destination="uvI-6R-1Mc" id="ljD-3t-AJe"/>
<outlet property="avatarImgV" destination="bWe-xo-Nlp" id="dCj-Pt-B8h"/>
<outlet property="hotValue" destination="Eyi-Dh-RdO" id="5SK-WY-nDA"/>
<outlet property="huizhangBtn" destination="nMW-b7-CYr" id="r69-3A-lx8"/>
<outlet property="nicknameLab" destination="QTl-17-9W6" id="Fuh-9d-xCP"/>
<outlet property="yichuBtn" destination="eT7-8t-IOC" id="Rs2-Eu-yrp"/>
</connections>
<point key="canvasLocation" x="131.15942028985509" y="101.78571428571428"/>
</tableViewCell>
</objects>
<resources>
<image name="gonghui_hot" width="20" height="20"/>
<image name="gonghui_huizhang" width="57" height="27.5"/>
<image name="gonghui_yichu" width="68" height="28"/>
<image name="party_ID" width="20" height="20"/>
</resources>
</document>

View File

@@ -0,0 +1,21 @@
//
// SPGonghuiUserListVC.h
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "BaseTableViewController.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGonghuiUserListVC : BaseTableViewController <JXCategoryListContentViewDelegate>
@property (nonatomic, copy) NSString *guild_id;
//1当天 2当周 3当月
@property (nonatomic, assign) NSInteger dateType;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,158 @@
//
// SPGonghuiUserListVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiUserListVC.h"
#import "SPGonghuiUserListCell.h"
@interface SPGonghuiUserListVC ()
@property (nonatomic, assign) NSInteger is_deacon;
@property (nonatomic, strong) UILabel *totalLab;
@end
@implementation SPGonghuiUserListVC
- (void)viewDidLoad {
[super viewDidLoad];
[self createUI];
[self fetchData];
[self onJudgeHuizhang];
}
-(void)createUI {
self.view.backgroundColor = [UIColor clearColor];
self.totalLab = [ControlCreator createLabel:self.view rect:CGRectZero text:@"" font:YBBoldFont(15) color:HEXCOLOR(0x333333) backguoundColor:nil align:NSTextAlignmentCenter lines:1];
[self.totalLab mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.mas_equalTo(0);
make.left.right.mas_equalTo(0);
make.height.mas_equalTo(40);
}];
[self.tableView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(40);
make.left.right.bottom.mas_equalTo(0);
}];
[self.tableView registerNib:[UINib nibWithNibName:@"SPGonghuiUserListCell" bundle:nil] forCellReuseIdentifier:@"SPGonghuiUserListCell"];
self.tableView.rowHeight = 76;
[self showPullToRefresh];
[self showLoadMoreRefresh];
}
- (void)fetchData {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id), @"type":@(2), @"time":@(self.dateType), @"page":@(self.page), @"page_limit":@"20"};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/get_guild_money_log_list" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
if (self.page == 1) {
[self.dataArray removeAllObjects];
[self.tableView reloadData];
}
[self endRefresh];
NSArray *arr = [SPGonghuiDetailListModel mj_objectArrayWithKeyValuesArray:responseDic[@"data"][@"list"]];
[self.dataArray addObjectsFromArray:arr];
[self.tableView reloadData];
self.totalLab.text = [NSString stringWithFormat:@"总流水:%@", responseDic[@"data"][@"total_gift_price"]];
if (arr.count > 0) {
[self endFooterRefreshWithMore];
}else {
[self endFooterRefreshWithNoMore];
}
if (self.dataArray.count <= 0) {
[self showNoContentView];
} else {
[self hideNoContentView];
}
} Failure:^(id _Nonnull errorData) {
}];
}
- (void)refreshFetchData {
self.page = 1;
[self fetchData];
}
- (void)fetchMoreData {
self.page ++;
[self fetchData];
}
- (void)onJudgeHuizhang {
NSDictionary *params = @{@"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/user_is_deacon" Loading:NO Hud:NO Success:^(id _Nonnull responseDic) {
NSInteger is_deacon = [responseDic[@"data"] safeIntForKey:@"is_deacon"];
self.is_deacon = is_deacon;
[self.tableView reloadData];
} Failure:^(id _Nonnull errorData) {
}];
}
#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 {
SPGonghuiUserListCell *cell = [tableView dequeueReusableCellWithIdentifier:@"SPGonghuiUserListCell" forIndexPath:indexPath];
cell.selectionStyle = NO;
SPGonghuiDetailListModel *model = self.dataArray[indexPath.row];
cell.model = model;
if (0 == indexPath.row) {
cell.huizhangBtn.hidden = NO;
cell.yichuBtn.hidden = YES;
}else {
cell.huizhangBtn.hidden = YES;
cell.yichuBtn.hidden = self.is_deacon != 1;
}
WEAK_SELF
cell.onYichuBlock = ^{
[weakSelf onYichuUserWith:model];
};
return cell;
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
SPGonghuiDetailListModel *model = self.dataArray[indexPath.row];
[UIViewController goUserMainpageWith:model.uid withRid:@""];
}
- (void)onYichuUserWith:(SPGonghuiDetailListModel *)model {
NSDictionary *params = @{@"user_id":C_string(model.uid), @"guild_id":C_string(self.guild_id)};
[AFNetworkRequset.shared postRequestWithParams:params Path:@"api/guild/kick_out_guild" Loading:YES Hud:YES Success:^(id _Nonnull responseDic) {
[self.dataArray removeObject:model];
[self.tableView reloadData];
} Failure:^(id _Nonnull errorData) {
}];
}
#pragma mark - JXCategoryListContentViewDelegate
- (UIView *)listView {
return self.view;
}
@end

View File

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

View File

@@ -0,0 +1,151 @@
//
// SPGonghuiVC.m
// SweetParty
//
// Created by bj_szd on 2022/6/29.
//
#import "SPGonghuiVC.h"
#import "SPGonghuiListVC.h"
#import "SPGonghuiDetailVC.h"
#import "SPGonghuiSearchView.h"
#import "LMGonghuiDetailsViewController.h"
@interface SPGonghuiVC ()<JXCategoryListContainerViewDelegate, JXCategoryViewDelegate>
@property (nonatomic, strong) NSArray *titles;
@property (nonatomic, strong) JXCategoryTitleView *categoryView;
@property (nonatomic, strong) JXCategoryListContainerView *listContainerView;
@property (nonatomic, strong) SPGonghuiSearchView *searchView;
@property (nonatomic, copy) NSString *keywords;
@end
@implementation SPGonghuiVC
- (void)viewDidLoad {
[super viewDidLoad];
self.titles = @[@"昨日", @"今日", @"本周", @"上周", @"月榜"];
[self showNaviBarWithTitle:@"公会"];
[self createUI];
}
-(void)createUI {
self.view.backgroundColor = kWhiteColor;
UIImageView *bgImgV = [[UIImageView alloc] initWithImage:ImageNamed(@"gonghui_bg")];
[self.view insertSubview:bgImgV atIndex:0];
[bgImgV mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.left.right.equalTo(self.view);
make.height.mas_equalTo(ScreenWidth/375*812);
}];
[ControlCreator createButton:self.view rect:CGRectMake(ScreenWidth-60-12, yb_StatusBar_H+7, 60, 30) text:@"我的公会" font:YBMediumFont(13) color:HEXCOLOR(0x111111) backguoundColor:nil imageName:nil target:self action:@selector(onMineGonghui)];
[self.view addSubview:self.searchView];
[self.view addSubview:self.categoryView];
[self.view addSubview:self.listContainerView];
[self.view addSubview:self.searchView];
[self.searchView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.view).offset(yb_NavigationBar_H);
make.left.right.equalTo(self.view);
make.height.mas_equalTo(44);
}];
[self.categoryView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.searchView.mas_bottom).offset(10);
// make.top.equalTo(self.view).offset(yb_NavigationBar_H);
make.left.right.equalTo(self.view);
make.height.mas_equalTo(40);
}];
[self.listContainerView mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.categoryView.mas_bottom).offset(0);
make.left.right.bottom.equalTo(self.view);
}];
}
- (void)onMineGonghui {
if ([BJUserManager.userInfo.guild_id integerValue] <= 0) {
[HelpPageDefine showMessage:@"您当前还没有公会哦"];
return;
}
LMGonghuiDetailsViewController *vc = [[LMGonghuiDetailsViewController alloc] init];
vc.guild_id = BJUserManager.userInfo.guild_id;
[self.navigationController pushViewController:vc animated:YES];
}
//
- (JXCategoryTitleView *)categoryView {
if (!_categoryView) {
_categoryView = [[JXCategoryTitleView alloc] init];
_categoryView.titleFont = YBMediumFont(14);
_categoryView.titleSelectedFont = YBBoldFont(16);
_categoryView.titleColor = HEXCOLOR(0x999999);
_categoryView.titleSelectedColor = HEXCOLOR(0x333333);
_categoryView.contentEdgeInsetLeft = 20;
_categoryView.contentEdgeInsetRight = 20;
_categoryView.listContainer = self.listContainerView;
_categoryView.titles = self.titles;
// JXCategoryIndicatorImageView *lineView = [[JXCategoryIndicatorImageView alloc] init];
// lineView.indicatorImageViewSize = CGSizeMake(15, 15);
// lineView.indicatorImageView.image = ImageNamed(@"common_zhishi");
// lineView.verticalMargin = 17;
// lineView.horizontalMargin = 12;
// _categoryView.indicators = @[lineView];
// JXCategoryIndicatorBackgroundView *backgroundView = [[JXCategoryIndicatorBackgroundView alloc] init];
// backgroundView.indicatorWidth = 69;
// backgroundView.indicatorHeight = 27;
// backgroundView.indicatorCornerRadius = 13.5;
// backgroundView.indicatorColor = HEXCOLOR(0xFFE95E);
// _categoryView.indicators = @[backgroundView];
}
return _categoryView;
}
//
- (JXCategoryListContainerView *)listContainerView {
if (!_listContainerView) {
_listContainerView = [[JXCategoryListContainerView alloc] initWithType:JXCategoryListContainerType_ScrollView delegate:self];
}
return _listContainerView;
}
#pragma mark - JXCategoryListContainerViewDelegate
//
- (NSInteger)numberOfListsInlistContainerView:(JXCategoryListContainerView *)listContainerView {
return self.titles.count;
}
// <JXCategoryListContentViewDelegate>
- (id<JXCategoryListContentViewDelegate>)listContainerView:(JXCategoryListContainerView *)listContainerView initListForIndex:(NSInteger)index {
SPGonghuiListVC *list = [[SPGonghuiListVC alloc] init];
list.dateType = index+1;
list.keywords = self.keywords;
return list;
}
- (SPGonghuiSearchView *)searchView {
if (!_searchView) {
_searchView = LoadNib(@"SPGonghuiSearchView");
WEAK_SELF
_searchView.onSearchBlock = ^(NSString * _Nonnull str) {
[weakSelf.view endEditing:YES];
weakSelf.keywords = str;
[weakSelf.listContainerView reloadData];
};
}
return _searchView;
}
@end

View File

@@ -0,0 +1,28 @@
//
// LMTixianRecordDetailModel.h
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LMTixianRecordDetailModel : NSObject
@property (nonatomic, strong) NSString *wid;
@property (nonatomic, assign) NSInteger type; //'提现类型 1支付宝 2银行卡',
@property (nonatomic, strong) NSString *general_money; //到账金额',
@property (nonatomic, strong) NSString *money; // 提现金额',
@property (nonatomic, strong) NSString *surplus_money; //钱包剩余
@property (nonatomic, strong) NSString *server_money; //服务费',
@property (nonatomic, assign) NSInteger status; //1待审核 2已到账3打款失败
@property (nonatomic, strong) NSString *add_time; //
@property (nonatomic, strong) NSString *remarke; // 备注',
@property (nonatomic, strong) NSString *account; //提现账号
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,12 @@
//
// LMTixianRecordDetailModel.m
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import "LMTixianRecordDetailModel.h"
@implementation LMTixianRecordDetailModel
@end

View File

@@ -0,0 +1,25 @@
//
// LMTixianRecordListModel.h
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LMTixianRecordListModel : NSObject
@property (nonatomic, strong) NSString *wid;
@property (nonatomic, strong) NSString *type;
@property (nonatomic, strong) NSString *general_money;
@property (nonatomic, strong) NSString *money;
@property (nonatomic, strong) NSString *surplus_money;
@property (nonatomic, assign) NSInteger status; //1待审核 2已到账3打款失败
@property (nonatomic, strong) NSString *deal_type;
@property (nonatomic, strong) NSString *add_time;
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,12 @@
//
// LMTixianRecordListModel.m
// SweetParty
//
// Created by Xmac on 2024/9/25.
//
#import "LMTixianRecordListModel.h"
@implementation LMTixianRecordListModel
@end

View File

@@ -0,0 +1,46 @@
//
// SPFocusFansModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/8.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPFocusFansModel : NSObject
@property (nonatomic, copy) NSString *fid;
@property (nonatomic, copy) NSString *uid;
@property (nonatomic, copy) NSString *head_pic;
@property (nonatomic, assign) NSInteger sex;
@property (nonatomic, copy) NSString *special_uid;
@property (nonatomic, copy) NSString *nick_name;
@property (nonatomic, assign) NSInteger is_follow;//是否互关 1是2否
@property (nonatomic, assign) NSInteger is_online;//是否在线 1是2否
@property (nonatomic, copy) NSString *room_number;
@property (nonatomic, copy) NSString *room_name;
@property (nonatomic, copy) NSString *rid;
@property (nonatomic, copy) NSString *room_cover;
@property (nonatomic, copy) NSString *room_owner_uid;
@property (nonatomic, assign) BOOL is_collect;
//签约列表
@property (nonatomic, copy) NSString *id;
@property (nonatomic, copy) NSString *end_time;//签约结束时间
//关系列表
@property (nonatomic, copy) NSString *relation_id;
@property (nonatomic, copy) NSString *name;//关系名称
@property (nonatomic, copy) NSString *color;//颜色
@property (nonatomic, copy) NSString *surplus_time;//剩余时间
@property (nonatomic, copy) NSString *give_earnings;//收益金额
@property (nonatomic, assign) NSInteger user_type;//用户权限 1房主 2管理 3主持
@end
NS_ASSUME_NONNULL_END

View File

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

View File

@@ -0,0 +1,22 @@
//
// SPGiftMingxiModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/27.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPGiftMingxiModel : NSObject
@property(nonatomic, copy) NSString *base_image;
@property(nonatomic, copy) NSString *gift_name;
@property(nonatomic, copy) NSString *gift_num;
@property(nonatomic, copy) NSString *gift_total_price;
@property(nonatomic, copy) NSString *add_time;
@end
NS_ASSUME_NONNULL_END

View File

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

View File

@@ -0,0 +1,24 @@
//
// SPGiftRecordListModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/15.
//
#import <Foundation/Foundation.h>
#import "SPPKUserInfo.h"
NS_ASSUME_NONNULL_BEGIN
@interface SPGiftRecordListModel : NSObject
@property(nonatomic, strong) SPPKUserInfo *send_user_info;
@property(nonatomic, copy) NSString *receive_uid;
@property(nonatomic, copy) NSString *uid;
@property(nonatomic, copy) NSString *total_send_amount;
@property(nonatomic, assign) NSInteger last_send_time;
@property(nonatomic, assign) NSInteger gift_from_type;//1为金币礼物 2为背包礼物
@end
NS_ASSUME_NONNULL_END

View File

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

View File

@@ -0,0 +1,46 @@
//
// SPMineModel.h
// SweetParty
//
// Created by bj_szd on 2022/6/2.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface SPMineModel : NSObject
@property(nonatomic, copy) NSString *head_pic;
@property(nonatomic, copy) NSString *nick_name;
@property(nonatomic, assign) NSInteger sex;
@property(nonatomic, copy) NSString *uid;
@property(nonatomic, copy) NSString *special_uid;
@property(nonatomic, copy) NSString *user_room_rid;
@property(nonatomic, copy) NSString *follow_num;
@property(nonatomic, copy) NSString *fans_num;
@property(nonatomic, copy) NSString *collect_room_num;
@property(nonatomic, copy) NSString *cp_num;
@property(nonatomic, copy) NSString *autograph;
@property(nonatomic, copy) NSString *birthday;
@property(nonatomic, copy) NSString *hobby;
@property(nonatomic, copy) NSString *contribution_level_image;
@property(nonatomic, copy) NSString *charm_level_image;
@property(nonatomic, copy) NSString *nobility_image;
@property(nonatomic, copy) NSString *reg_code;
@property(nonatomic, copy) NSString *reg_url;
@property(nonatomic, assign) NSInteger is_open_verify;//防顶号1开 2关
@property(nonatomic, copy) NSString *guild_id;
@property (nonatomic, assign) NSInteger is_room_hiding;//1 隐身进房 2 否
@property (nonatomic, assign) NSInteger is_teenager;//青少年模式 1已开启
@property (nonatomic, assign) NSInteger is_open_address;//是否开启位置信息 1是2否
@property (nonatomic, assign) NSInteger vid;//会员ID
@end
NS_ASSUME_NONNULL_END

View File

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

View File

@@ -0,0 +1,39 @@
//
// YYMineCPModel.h
// SweetParty
//
// Created by bj_szd on 2024/1/22.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface YYMineCPModel : NSObject
@property(nonatomic, copy) NSString *uid;
@property(nonatomic, copy) NSString *receive_uid;
@property(nonatomic, copy) NSString *cp_value;
@property(nonatomic, copy) NSString *cp_level;
@property(nonatomic, copy) NSString *nick_name;
@property(nonatomic, copy) NSString *head_pic;
@property(nonatomic, copy) NSString *receive_nick_name;
@property(nonatomic, copy) NSString *receive_head_pic;
@property(nonatomic, copy) NSString *now_level;
@property(nonatomic, copy) NSString *now_value;
@property(nonatomic, copy) NSString *next_level;
@property(nonatomic, copy) NSString *next_value;
@property(nonatomic, copy) NSString *avatar_play_image;
@property(nonatomic, copy) NSString *win_base_image;
@property(nonatomic, copy) NSString *win_play_image;
@property(nonatomic, copy) NSString *receive_avatar_play_image;
@property(nonatomic, copy) NSString *receive_win_base_image;
@property(nonatomic, copy) NSString *receive_win_play_image;
@property(nonatomic, assign) NSInteger is_online;
@property(nonatomic, assign) NSInteger receive_is_online;
@property(nonatomic, assign)NSInteger is_have_cp;//是否有CP
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,12 @@
//
// YYMineCPModel.m
// SweetParty
//
// Created by bj_szd on 2024/1/22.
//
#import "YYMineCPModel.h"
@implementation YYMineCPModel
@end

View File

@@ -0,0 +1,22 @@
//
// YYVipChangeAlert.h
// SweetParty
//
// Created by bj_szd on 2022/6/9.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface YYVipChangeAlert : UIView
@property (weak, nonatomic) IBOutlet UIButton *confirmBtn;
@property (weak, nonatomic) IBOutlet UILabel *titleLab;
@property (weak, nonatomic) IBOutlet UILabel *contentLab;
@property (nonatomic, copy) void(^onCompleteBlock)(void);
@end
NS_ASSUME_NONNULL_END

View File

@@ -0,0 +1,33 @@
//
// YYVipChangeAlert.m
// SweetParty
//
// Created by bj_szd on 2022/6/9.
//
#import "YYVipChangeAlert.h"
@interface YYVipChangeAlert ()
@end
@implementation YYVipChangeAlert
- (void)awakeFromNib {
[super awakeFromNib];
[self.confirmBtn setJianBianWithCGSize:CGSizeMake(155, 40)];
}
- (IBAction)onConfirm:(id)sender {
if (self.onCompleteBlock) {
self.onCompleteBlock();
}
[self removeFromSuperview];
}
- (IBAction)onCancel:(id)sender {
[self removeFromSuperview];
}
@end

View File

@@ -0,0 +1,109 @@
<?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="YYVipChangeAlert">
<rect key="frame" x="0.0" y="0.0" width="414" height="896"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hhi-L3-zWp">
<rect key="frame" x="15" y="271" width="384" height="220"/>
<subviews>
<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="51Z-tb-nQ8">
<rect key="frame" x="15" y="24" width="354" height="20.5"/>
<fontDescription key="fontDescription" type="boldSystem" pointSize="17"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="x31-ge-8OV">
<rect key="frame" x="211" y="145" width="155" height="40"/>
<color key="backgroundColor" red="0.91764705879999997" green="0.62352941179999999" blue="0.94117647059999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="4HR-wA-JQC"/>
<constraint firstAttribute="width" constant="155" id="erK-MZ-bub"/>
</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="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onConfirm:" destination="iN0-l3-epB" eventType="touchUpInside" id="ydz-GW-uuG"/>
</connections>
</button>
<button opaque="NO" clipsSubviews="YES" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="system" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="QqD-2c-HjO">
<rect key="frame" x="18" y="145" width="155" height="40"/>
<color key="backgroundColor" red="0.94901960784313721" green="0.94901960784313721" blue="0.94901960784313721" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<constraints>
<constraint firstAttribute="height" constant="40" id="DuL-EV-fTA"/>
<constraint firstAttribute="width" constant="155" id="I5S-bu-hfT"/>
</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" red="0.59999999999999998" green="0.59999999999999998" blue="0.59999999999999998" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="20"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
<connections>
<action selector="onCancel:" destination="iN0-l3-epB" eventType="touchUpInside" id="LDv-17-Kpc"/>
</connections>
</button>
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="更换邀请人需要支付0.10的费用
您确定要更换吗?" textAlignment="center" lineBreakMode="tailTruncation" numberOfLines="0" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="6xS-zO-V7m">
<rect key="frame" x="60" y="72.5" width="264" height="33.5"/>
<fontDescription key="fontDescription" type="system" weight="medium" pointSize="14"/>
<color key="textColor" red="0.066666666669999999" green="0.066666666669999999" blue="0.066666666669999999" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<nil key="highlightedColor"/>
</label>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstItem="6xS-zO-V7m" firstAttribute="leading" secondItem="hhi-L3-zWp" secondAttribute="leading" constant="60" id="0pJ-CC-dhp"/>
<constraint firstItem="QqD-2c-HjO" firstAttribute="centerY" secondItem="x31-ge-8OV" secondAttribute="centerY" id="9Ea-bO-zZW"/>
<constraint firstAttribute="trailing" secondItem="x31-ge-8OV" secondAttribute="trailing" constant="18" id="WGu-vj-XQI"/>
<constraint firstItem="QqD-2c-HjO" firstAttribute="leading" secondItem="hhi-L3-zWp" secondAttribute="leading" constant="18" id="g2A-BX-vir"/>
<constraint firstAttribute="trailing" secondItem="51Z-tb-nQ8" secondAttribute="trailing" constant="15" id="kBl-Ei-aKS"/>
<constraint firstItem="51Z-tb-nQ8" firstAttribute="top" secondItem="hhi-L3-zWp" secondAttribute="top" constant="24" id="kWk-9c-yqg"/>
<constraint firstAttribute="bottom" secondItem="x31-ge-8OV" secondAttribute="bottom" constant="35" id="lNI-xl-KAB"/>
<constraint firstAttribute="trailing" secondItem="6xS-zO-V7m" secondAttribute="trailing" constant="60" id="mgv-mm-UfH"/>
<constraint firstAttribute="height" constant="220" id="nnn-B9-SKd"/>
<constraint firstItem="6xS-zO-V7m" firstAttribute="top" secondItem="51Z-tb-nQ8" secondAttribute="bottom" constant="28" id="nrO-Ck-1Uq"/>
<constraint firstItem="51Z-tb-nQ8" firstAttribute="leading" secondItem="hhi-L3-zWp" secondAttribute="leading" constant="15" id="vR4-nn-tKF"/>
</constraints>
<userDefinedRuntimeAttributes>
<userDefinedRuntimeAttribute type="number" keyPath="cornerRadius">
<real key="value" value="10"/>
</userDefinedRuntimeAttribute>
</userDefinedRuntimeAttributes>
</view>
</subviews>
<color key="backgroundColor" white="0.0" alpha="0.30244954427083331" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
<constraints>
<constraint firstAttribute="trailing" secondItem="hhi-L3-zWp" secondAttribute="trailing" constant="15" id="FBy-df-R5A"/>
<constraint firstItem="hhi-L3-zWp" firstAttribute="leading" secondItem="iN0-l3-epB" secondAttribute="leading" constant="15" id="WgX-rh-cS6"/>
<constraint firstItem="hhi-L3-zWp" firstAttribute="centerY" secondItem="iN0-l3-epB" secondAttribute="centerY" multiplier="0.85" id="et8-jo-p37"/>
</constraints>
<connections>
<outlet property="confirmBtn" destination="x31-ge-8OV" id="Bbj-XJ-cCe"/>
<outlet property="contentLab" destination="6xS-zO-V7m" id="Z4W-yq-5j6"/>
<outlet property="titleLab" destination="51Z-tb-nQ8" id="POO-ku-HsB"/>
</connections>
<point key="canvasLocation" x="132" y="102"/>
</view>
</objects>
</document>

Some files were not shown because too many files have changed in this diff Show More