修改提交
This commit is contained in:
@@ -161,9 +161,25 @@
|
||||
break;
|
||||
case QXMineServiceTypeSingerAuth:{
|
||||
QXLOG(@"点击了歌手认证");
|
||||
QXRoomSingerAuthViewController *vc = [[QXRoomSingerAuthViewController alloc] init];
|
||||
vc.singer_status = self.userModel.singer_status;
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
MJWeakSelf
|
||||
if (![QXGlobal shareGlobal].isRealName) {
|
||||
QXLOG(@"未实名,弹出实名认证");
|
||||
QXRealNamePopView *v = [[QXRealNamePopView alloc] init];
|
||||
v.closeActionBlock = ^{
|
||||
[[QXGlobal shareGlobal] hideViewBlock:^{}];
|
||||
};
|
||||
v.authActionBlock = ^{
|
||||
[[QXGlobal shareGlobal] hideViewBlock:^{
|
||||
QXRoomSingerAuthViewController *vc = [[QXRoomSingerAuthViewController alloc] init];
|
||||
vc.singer_status = weakSelf.userModel.singer_status;
|
||||
[weakSelf.navigationController pushViewController:vc animated:YES];
|
||||
}];
|
||||
};
|
||||
[[QXGlobal shareGlobal] showView:v popType:(PopViewTypePopFromCenter) tapDismiss:NO finishBlock:^{}];
|
||||
}else{
|
||||
QXMyRoomViewController *vc = [[QXMyRoomViewController alloc] init];
|
||||
[self.navigationController pushViewController:vc animated:YES];
|
||||
}
|
||||
}
|
||||
break;
|
||||
case QXMineServiceTypeSongList:{
|
||||
|
||||
@@ -70,7 +70,7 @@
|
||||
self.categoryView.delegate = self;
|
||||
self.categoryView.titleSelectedColor = QXConfig.textColor;
|
||||
self.categoryView.titleColor = RGB16(0x666666);
|
||||
self.categoryView.titleFont = [UIFont boldSystemFontOfSize:12];
|
||||
self.categoryView.titleFont = [UIFont boldSystemFontOfSize:14];
|
||||
self.categoryView.titleSelectedFont = [UIFont boldSystemFontOfSize:16];
|
||||
self.categoryView.titleColorGradientEnabled = YES;
|
||||
self.categoryView.titleLabelZoomEnabled = YES;
|
||||
|
||||
@@ -122,7 +122,7 @@
|
||||
MJWeakSelf
|
||||
QXIntimateMoreListCell *cell = [QXIntimateMoreListCell cellWithTableView:tableView];
|
||||
cell.userId = self.userId;
|
||||
QXRoomBestFriendListModel *md = self.dataArray.firstObject;
|
||||
QXRoomBestFriendListModel *md = self.dataArray[indexPath.section-1];
|
||||
cell.model = md.relation_list.firstObject;
|
||||
cell.delegate = self;
|
||||
cell.deleteSuccessBlock = ^(QXRelationshipListModel * _Nonnull model) {
|
||||
|
||||
@@ -61,7 +61,10 @@
|
||||
weakSelf.priceView.model = model;
|
||||
[weakSelf.tableView reloadData];
|
||||
} failBlock:^(NSError * _Nonnull error, NSString * _Nonnull msg) {
|
||||
|
||||
showToast(msg);
|
||||
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
|
||||
[weakSelf.navigationController popViewControllerAnimated:YES];
|
||||
});
|
||||
}];
|
||||
}
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
|
||||
@property (nonatomic,strong)QXRelationshipListModel *model;
|
||||
@property (nonatomic,strong)NSString *userId;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *deleteBtn;
|
||||
@property (weak, nonatomic) IBOutlet UIButton *topBtn;
|
||||
@property (nonatomic,copy)void(^topSuccessBlock)(QXRelationshipListModel*model);
|
||||
@property (nonatomic,copy)void(^deleteSuccessBlock)(QXRelationshipListModel*model);
|
||||
@property (nonatomic,weak)id<QXIntimateMoreListCellDelegate>delegate;
|
||||
|
||||
@@ -103,6 +103,13 @@
|
||||
self.rightNameLabel.text = model.nickname1;
|
||||
self.rightSexImageView.image = [UIImage imageNamed:model.sex2.intValue == 1?@"user_sex_boy":@"user_sex_girl"];
|
||||
}
|
||||
if ([self.userId isEqualToString:QXGlobal.shareGlobal.loginModel.user_id]) {
|
||||
self.topBtn.hidden = YES;
|
||||
self.deleteBtn.hidden = YES;
|
||||
}else{
|
||||
self.topBtn.hidden = NO;
|
||||
self.deleteBtn.hidden = NO;
|
||||
}
|
||||
NSTimeInterval currentTime = [[NSDate date] timeIntervalSince1970];
|
||||
long long milliseconds = (long long)(currentTime);
|
||||
NSInteger time = model.end_time.longLongValue - milliseconds;
|
||||
|
||||
@@ -166,6 +166,7 @@
|
||||
</tableViewCellContentView>
|
||||
<viewLayoutGuide key="safeArea" id="aW0-zy-SZf"/>
|
||||
<connections>
|
||||
<outlet property="deleteBtn" destination="52j-r4-V3h" id="a7Z-AB-PkR"/>
|
||||
<outlet property="leftHeaderView" destination="pS6-S4-a2G" id="pIO-eN-du1"/>
|
||||
<outlet property="leftNameLabel" destination="eAs-09-73J" id="3xn-sG-6Nz"/>
|
||||
<outlet property="leftSexImageView" destination="fJj-mx-2yM" id="TSa-Nv-4tO"/>
|
||||
@@ -173,6 +174,7 @@
|
||||
<outlet property="rightNameLabel" destination="tuv-zg-sBW" id="unH-ct-gfv"/>
|
||||
<outlet property="rightSexImageView" destination="6nc-bo-ejr" id="Xv0-nC-Nhq"/>
|
||||
<outlet property="timeLabel" destination="8wc-ZY-rQa" id="BIS-Ab-0EB"/>
|
||||
<outlet property="topBtn" destination="QZV-rH-5ej" id="HvG-Kr-kzY"/>
|
||||
</connections>
|
||||
<point key="canvasLocation" x="252.67175572519082" y="47.887323943661976"/>
|
||||
</tableViewCell>
|
||||
|
||||
@@ -47,6 +47,7 @@
|
||||
[self.priceBtn setTitle:model.market_value forState:(UIControlStateNormal)];
|
||||
self.onlineLabel.text = model.is_online==1?@"当前在线":@"当前离线";
|
||||
self.continueBtn.hidden = model.is_show_sign.intValue==1?NO:YES;
|
||||
self.continueBtn.hidden = NO;
|
||||
}
|
||||
- (IBAction)continueAction:(id)sender {
|
||||
|
||||
|
||||
@@ -53,8 +53,8 @@
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="张三张三张三" textAlignment="center" lineBreakMode="clip" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="AEg-Tu-ye6">
|
||||
<rect key="frame" x="8" y="88" width="72" height="19.333333333333329"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="16"/>
|
||||
<rect key="frame" x="8" y="88" width="72" height="18"/>
|
||||
<fontDescription key="fontDescription" type="boldSystem" pointSize="15"/>
|
||||
<color key="textColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
@@ -65,7 +65,7 @@
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="BVQ-z4-fHs">
|
||||
<rect key="frame" x="26" y="111.33333333333333" width="36" height="19.999999999999986"/>
|
||||
<rect key="frame" x="26" y="110" width="36" height="20"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="10" image="mine_recharge_corn">
|
||||
@@ -73,16 +73,16 @@
|
||||
</state>
|
||||
</button>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="当前在线" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="cha-OZ-i3U">
|
||||
<rect key="frame" x="20" y="136.33333333333334" width="48" height="15"/>
|
||||
<rect key="frame" x="20" y="135" width="48" height="15"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="12"/>
|
||||
<color key="textColor" red="0.22745098039215686" green="0.73725490196078436" blue="0.42745098039215684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="VGe-Cc-S6Q">
|
||||
<rect key="frame" x="90" y="87.666666666666686" width="85" height="66.333333333333314"/>
|
||||
<rect key="frame" x="90" y="87.666666666666686" width="116.66666666666669" height="66.333333333333314"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="今日" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="fxt-Ok-e8L">
|
||||
<rect key="frame" x="30.666666666666657" y="4" width="24" height="17"/>
|
||||
<rect key="frame" x="46.333333333333343" y="4" width="24" height="17"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="17" id="xrg-jZ-zdc"/>
|
||||
</constraints>
|
||||
@@ -91,7 +91,7 @@
|
||||
<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="9wb-6a-aQt">
|
||||
<rect key="frame" x="18.666666666666671" y="23" width="48" height="17"/>
|
||||
<rect key="frame" x="34.333333333333343" y="23" width="48" height="17"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="17" id="AoH-Ct-GM9"/>
|
||||
</constraints>
|
||||
@@ -100,7 +100,7 @@
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="dpa-gV-fxG">
|
||||
<rect key="frame" x="2" y="41.999999999999986" width="81" height="22.333333333333329"/>
|
||||
<rect key="frame" x="2" y="41.999999999999986" width="112.66666666666667" height="22.333333333333329"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="10" image="family_diamond">
|
||||
@@ -111,7 +111,6 @@
|
||||
<color key="backgroundColor" red="0.85490196078431369" green="1" blue="0.88627450980392153" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstItem="fxt-Ok-e8L" firstAttribute="centerX" secondItem="VGe-Cc-S6Q" secondAttribute="centerX" id="2pr-cg-4QY"/>
|
||||
<constraint firstAttribute="width" constant="85" id="FPA-42-3py"/>
|
||||
<constraint firstItem="9wb-6a-aQt" firstAttribute="top" secondItem="fxt-Ok-e8L" secondAttribute="bottom" constant="2" id="RzV-mu-ufj"/>
|
||||
<constraint firstAttribute="bottom" secondItem="dpa-gV-fxG" secondAttribute="bottom" constant="2" id="dtB-XL-hOC"/>
|
||||
<constraint firstItem="fxt-Ok-e8L" firstAttribute="top" secondItem="VGe-Cc-S6Q" secondAttribute="top" constant="4" id="ef4-nR-Mji"/>
|
||||
@@ -128,10 +127,10 @@
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="oGH-dJ-lZy">
|
||||
<rect key="frame" x="179" y="87.666666666666686" width="85" height="66.333333333333314"/>
|
||||
<rect key="frame" x="210.66666666666666" y="87.666666666666686" width="116.33333333333334" height="66.333333333333314"/>
|
||||
<subviews>
|
||||
<label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="昨日" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="KF6-Jg-pqn">
|
||||
<rect key="frame" x="30.666666666666657" y="4" width="24" height="17"/>
|
||||
<rect key="frame" x="46.000000000000028" y="4" width="24" height="17"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="17" id="2Du-Vr-MGL"/>
|
||||
</constraints>
|
||||
@@ -140,7 +139,7 @@
|
||||
<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="Rjt-H4-heD">
|
||||
<rect key="frame" x="18.666666666666657" y="23" width="48" height="17"/>
|
||||
<rect key="frame" x="34.000000000000028" y="23" width="48" height="17"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="17" id="nAr-LR-mvb"/>
|
||||
</constraints>
|
||||
@@ -149,7 +148,7 @@
|
||||
<nil key="highlightedColor"/>
|
||||
</label>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="3Ml-mg-Cxw">
|
||||
<rect key="frame" x="2" y="41.999999999999986" width="81" height="22.333333333333329"/>
|
||||
<rect key="frame" x="2" y="41.999999999999986" width="112.33333333333333" height="22.333333333333329"/>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="14"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
<state key="normal" title="10" image="family_diamond">
|
||||
@@ -163,7 +162,6 @@
|
||||
<constraint firstItem="Rjt-H4-heD" firstAttribute="top" secondItem="KF6-Jg-pqn" secondAttribute="bottom" constant="2" id="F2T-k5-Kgv"/>
|
||||
<constraint firstAttribute="bottom" secondItem="3Ml-mg-Cxw" secondAttribute="bottom" constant="2" id="LJz-rW-T02"/>
|
||||
<constraint firstItem="Rjt-H4-heD" firstAttribute="centerX" secondItem="oGH-dJ-lZy" secondAttribute="centerX" id="O15-tt-LOO"/>
|
||||
<constraint firstAttribute="width" constant="85" id="bmv-lS-3aZ"/>
|
||||
<constraint firstItem="3Ml-mg-Cxw" firstAttribute="leading" secondItem="oGH-dJ-lZy" secondAttribute="leading" constant="2" id="g7c-ng-N2i"/>
|
||||
<constraint firstItem="3Ml-mg-Cxw" firstAttribute="top" secondItem="Rjt-H4-heD" secondAttribute="bottom" constant="2" id="jfG-L6-goi"/>
|
||||
<constraint firstItem="KF6-Jg-pqn" firstAttribute="top" secondItem="oGH-dJ-lZy" secondAttribute="top" constant="4" id="udE-f7-Bn7"/>
|
||||
@@ -177,11 +175,11 @@
|
||||
</userDefinedRuntimeAttributes>
|
||||
</view>
|
||||
<button opaque="NO" contentMode="scaleToFill" contentHorizontalAlignment="center" contentVerticalAlignment="center" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="v1E-D6-JeF">
|
||||
<rect key="frame" x="278" y="126" width="60" height="28"/>
|
||||
<rect key="frame" x="267" y="48" width="60" height="28"/>
|
||||
<color key="backgroundColor" red="0.22745098039215686" green="0.73725490196078436" blue="0.42745098039215684" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
||||
<constraints>
|
||||
<constraint firstAttribute="height" constant="28" id="C6z-41-oB8"/>
|
||||
<constraint firstAttribute="width" constant="60" id="Qmm-ha-usv"/>
|
||||
<constraint firstAttribute="width" constant="60" id="9ui-aU-pgH"/>
|
||||
<constraint firstAttribute="height" constant="28" id="qiP-BJ-VIF"/>
|
||||
</constraints>
|
||||
<fontDescription key="fontDescription" type="system" pointSize="13"/>
|
||||
<inset key="imageEdgeInsets" minX="0.0" minY="0.0" maxX="2.2250738585072014e-308" maxY="0.0"/>
|
||||
@@ -198,12 +196,14 @@
|
||||
</button>
|
||||
</subviews>
|
||||
<constraints>
|
||||
<constraint firstItem="oGH-dJ-lZy" firstAttribute="width" secondItem="VGe-Cc-S6Q" secondAttribute="width" id="0Au-Of-wFk"/>
|
||||
<constraint firstItem="VGe-Cc-S6Q" firstAttribute="top" secondItem="D6h-bE-tlh" secondAttribute="bottom" constant="8" id="0xl-vd-Eab"/>
|
||||
<constraint firstItem="Xpt-NC-KbR" firstAttribute="top" secondItem="iH0-Pj-t8s" secondAttribute="top" constant="14" id="0yY-Uq-uIw"/>
|
||||
<constraint firstItem="uXg-p7-J2S" firstAttribute="top" secondItem="iH0-Pj-t8s" secondAttribute="top" constant="12" id="3Up-H8-deH"/>
|
||||
<constraint firstItem="BVQ-z4-fHs" firstAttribute="top" secondItem="AEg-Tu-ye6" secondAttribute="bottom" constant="4" id="45o-bc-VTo"/>
|
||||
<constraint firstItem="3c8-yw-ZcY" firstAttribute="leading" secondItem="Xpt-NC-KbR" secondAttribute="leading" id="7he-6a-LQn"/>
|
||||
<constraint firstAttribute="bottom" secondItem="VGe-Cc-S6Q" secondAttribute="bottom" constant="12" id="87e-jS-o6v"/>
|
||||
<constraint firstItem="v1E-D6-JeF" firstAttribute="top" secondItem="3c8-yw-ZcY" secondAttribute="top" constant="5" id="DQb-bK-0gp"/>
|
||||
<constraint firstItem="D6h-bE-tlh" firstAttribute="top" secondItem="3c8-yw-ZcY" secondAttribute="bottom" constant="8" id="GX3-ge-Kid"/>
|
||||
<constraint firstItem="AEg-Tu-ye6" firstAttribute="leading" secondItem="uXg-p7-J2S" secondAttribute="leading" constant="-10" id="Ggr-Ur-BTo"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Xpt-NC-KbR" secondAttribute="trailing" constant="11" id="IrF-U1-Mro"/>
|
||||
@@ -211,21 +211,22 @@
|
||||
<constraint firstItem="VGe-Cc-S6Q" firstAttribute="leading" secondItem="Xpt-NC-KbR" secondAttribute="leading" id="Jsy-KK-zrr"/>
|
||||
<constraint firstItem="Msn-nc-t9D" firstAttribute="top" secondItem="iH0-Pj-t8s" secondAttribute="top" id="Rk3-kc-29m"/>
|
||||
<constraint firstItem="D6h-bE-tlh" firstAttribute="leading" secondItem="Xpt-NC-KbR" secondAttribute="leading" id="WX5-EF-GjZ"/>
|
||||
<constraint firstItem="v1E-D6-JeF" firstAttribute="bottom" secondItem="VGe-Cc-S6Q" secondAttribute="bottom" id="Xhb-uf-REu"/>
|
||||
<constraint firstItem="oGH-dJ-lZy" firstAttribute="top" secondItem="VGe-Cc-S6Q" secondAttribute="top" id="bvy-kk-VyI"/>
|
||||
<constraint firstItem="oGH-dJ-lZy" firstAttribute="leading" secondItem="VGe-Cc-S6Q" secondAttribute="trailing" constant="4" id="c0s-Iv-yyJ"/>
|
||||
<constraint firstItem="oGH-dJ-lZy" firstAttribute="bottom" secondItem="VGe-Cc-S6Q" secondAttribute="bottom" id="fer-eg-Q8u"/>
|
||||
<constraint firstAttribute="trailing" secondItem="Msn-nc-t9D" secondAttribute="trailing" id="gQ1-bd-h8C"/>
|
||||
<constraint firstItem="uXg-p7-J2S" firstAttribute="leading" secondItem="iH0-Pj-t8s" secondAttribute="leading" constant="18" id="jUx-NP-cQj"/>
|
||||
<constraint firstItem="AEg-Tu-ye6" firstAttribute="trailing" secondItem="uXg-p7-J2S" secondAttribute="trailing" constant="10" id="nNH-Kq-QmX"/>
|
||||
<constraint firstItem="Xpt-NC-KbR" firstAttribute="leading" secondItem="uXg-p7-J2S" secondAttribute="trailing" constant="20" id="p9M-CF-kU5"/>
|
||||
<constraint firstAttribute="trailing" secondItem="oGH-dJ-lZy" secondAttribute="trailing" constant="16" id="pDS-1R-sPP"/>
|
||||
<constraint firstItem="oGH-dJ-lZy" firstAttribute="leading" secondItem="VGe-Cc-S6Q" secondAttribute="trailing" constant="4" id="qvY-IN-Sh2"/>
|
||||
<constraint firstItem="cha-OZ-i3U" firstAttribute="centerX" secondItem="uXg-p7-J2S" secondAttribute="centerX" id="r8z-sa-uZA"/>
|
||||
<constraint firstItem="cha-OZ-i3U" firstAttribute="top" secondItem="BVQ-z4-fHs" secondAttribute="bottom" constant="5" id="ri0-KS-mht"/>
|
||||
<constraint firstAttribute="trailing" secondItem="v1E-D6-JeF" secondAttribute="trailing" constant="5" id="t3Y-Ci-cqO"/>
|
||||
<constraint firstAttribute="bottom" secondItem="Msn-nc-t9D" secondAttribute="bottom" id="vAB-on-UgX"/>
|
||||
<constraint firstItem="3c8-yw-ZcY" firstAttribute="top" secondItem="Xpt-NC-KbR" secondAttribute="bottom" constant="10" id="vo1-0c-qqk"/>
|
||||
<constraint firstItem="Msn-nc-t9D" firstAttribute="leading" secondItem="iH0-Pj-t8s" secondAttribute="leading" id="xki-e1-3Kn"/>
|
||||
<constraint firstItem="BVQ-z4-fHs" firstAttribute="centerX" secondItem="uXg-p7-J2S" secondAttribute="centerX" id="zMn-Oa-xMf"/>
|
||||
<constraint firstAttribute="trailing" secondItem="v1E-D6-JeF" secondAttribute="trailing" constant="16" id="zPq-Dt-tjP"/>
|
||||
</constraints>
|
||||
<userDefinedRuntimeAttributes>
|
||||
<userDefinedRuntimeAttribute type="boolean" keyPath="layer.masksToBounds" value="YES"/>
|
||||
|
||||
@@ -56,6 +56,8 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@property (weak, nonatomic) IBOutlet UILabel *roleLabel;
|
||||
|
||||
@property (nonatomic,assign)BOOL isUpSeat;
|
||||
/// 是否显示icon标签
|
||||
@property (nonatomic,assign)BOOL isNoIcon;
|
||||
|
||||
@property (nonatomic,strong)QXRoomUserInfoModel *onlineUser;
|
||||
|
||||
|
||||
@@ -174,18 +174,21 @@
|
||||
}else{
|
||||
self.sexImageView.hidden = YES;
|
||||
}
|
||||
|
||||
if (rankModel.icon.count > 0) {
|
||||
self.iconBgView.hidden = NO;
|
||||
for (int i = 0;i < rankModel.icon.count;i++) {
|
||||
if (i < 3) {
|
||||
UIImageView *iconImageView = self.iconViewArray[i];
|
||||
iconImageView.hidden = NO;
|
||||
[iconImageView sd_setImageWithURL:[NSURL URLWithString:rankModel.icon[i]]];
|
||||
}
|
||||
}
|
||||
}else{
|
||||
if (self.isNoIcon) {
|
||||
self.iconBgView.hidden = YES;
|
||||
}else{
|
||||
if (rankModel.icon.count > 0) {
|
||||
self.iconBgView.hidden = NO;
|
||||
for (int i = 0;i < rankModel.icon.count;i++) {
|
||||
if (i < 3) {
|
||||
UIImageView *iconImageView = self.iconViewArray[i];
|
||||
iconImageView.hidden = NO;
|
||||
[iconImageView sd_setImageWithURL:[NSURL URLWithString:rankModel.icon[i]]];
|
||||
}
|
||||
}
|
||||
}else{
|
||||
self.iconBgView.hidden = YES;
|
||||
}
|
||||
}
|
||||
|
||||
[self.removeBtn setTitle:[NSString stringWithFormat:@" %@",rankModel.total?rankModel.total:rankModel.gift_prices] forState:(UIControlStateNormal)];
|
||||
@@ -271,6 +274,9 @@
|
||||
break;
|
||||
}
|
||||
}
|
||||
-(void)setIsNoIcon:(BOOL)isNoIcon{
|
||||
_isNoIcon = isNoIcon;
|
||||
}
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
|
||||
Reference in New Issue
Block a user