Commit e34a78f9 by suolong

Merge branch 'feature/v57版本pk迁移' of http://git.yabolive.net:88/pidan/FuSiLive…

Merge branch 'feature/v57版本pk迁移' of http://git.yabolive.net:88/pidan/FuSiLive into feature/v57版本pk迁移
parents 4cfd9c4f 209ac1af
Showing with 584 additions and 88 deletions
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_board_rank_no1@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_board_rank_no1@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_board_rank_no2@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_board_rank_no2@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_board_rank_no3@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_board_rank_no3@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_list_room_popular_img@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_list_room_popular_img@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_contribution_winStreak_bg@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_contribution_winStreak_bg@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_matching_img@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_matching_img@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_pkGamePlay_game_tag@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_pkGamePlay_game_tag@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_pkGamePlay_gift_tag@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_pkGamePlay_gift_tag.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_pkGamePlay_welcomeNew_tag@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_pkGamePlay_welcomeNew_tag@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_pkMode_game_bigIcon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_pkMode_game_bigIcon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_pkMode_gift_bigIcon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_pkMode_gift_bigIcon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_pkMode_pop_bigIcon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_pkMode_pop_bigIcon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_pkMode_welcomeNew_bigIcon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_pkMode_welcomeNew_bigIcon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_question_btn@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_question_btn@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_record_btn@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_record_btn@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_search_icon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_search_icon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_search_randomMatch@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_search_randomMatch@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_search_refresh_icon@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_search_refresh_icon@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_setting_btn@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_setting_btn@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "live_pk_control_title_image@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "live_pk_control_title_image@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -44,7 +44,7 @@ import UIKit ...@@ -44,7 +44,7 @@ import UIKit
}).disposed(by: disposeBag) }).disposed(by: disposeBag)
menuBgView.layer.masksToBounds = true menuBgView.layer.masksToBounds = true
menuBgView.backgroundColor = .white menuBgView.backgroundColor = .init(hex: "#E7E8EC")
menuBgView.layer.cornerRadius = 12 menuBgView.layer.cornerRadius = 12
menuBgView.showsVerticalScrollIndicator = false menuBgView.showsVerticalScrollIndicator = false
bgBtn.addSubview(menuBgView) bgBtn.addSubview(menuBgView)
...@@ -68,7 +68,7 @@ import UIKit ...@@ -68,7 +68,7 @@ import UIKit
let btn = UIButton(type: .custom) let btn = UIButton(type: .custom)
btn.setTitle(titleName, for: .normal) btn.setTitle(titleName, for: .normal)
btn.titleLabel?.font = .fus_themeFont(13) btn.titleLabel?.font = .fus_themeFont(13)
btn.setTitleColor(.white, for: .normal) btn.setTitleColor(.fus_textColorRich(), for: .normal)
btn.setTitleColor(.fus_theme(), for: .selected) btn.setTitleColor(.fus_theme(), for: .selected)
// btn.setTitleColor(.black.withAlphaComponent(0.2), for: .highlighted) // btn.setTitleColor(.black.withAlphaComponent(0.2), for: .highlighted)
btn.setBackgroundImage(UIImage.init(color: .black.withAlphaComponent(0.2)), for: .highlighted) btn.setBackgroundImage(UIImage.init(color: .black.withAlphaComponent(0.2)), for: .highlighted)
......
...@@ -145,6 +145,7 @@ ...@@ -145,6 +145,7 @@
@(FUSLiveBottomToolTypeTool2), @(FUSLiveBottomToolTypeTool2),
@(FUSLiveBottomToolTypeBeautySticker), @(FUSLiveBottomToolTypeBeautySticker),
@(FUSLiveBottomToolTypeRoomScope), @(FUSLiveBottomToolTypeRoomScope),
@(FUSLiveBottomToolTypePK),
@(FUSLiveBottomToolTypeGift)]]; @(FUSLiveBottomToolTypeGift)]];
} }
} }
...@@ -984,6 +985,7 @@ ...@@ -984,6 +985,7 @@
@(FUSLiveBottomToolTypeTool2), @(FUSLiveBottomToolTypeTool2),
@(FUSLiveBottomToolTypeBeautySticker), @(FUSLiveBottomToolTypeBeautySticker),
@(FUSLiveBottomToolTypeRoomScope), @(FUSLiveBottomToolTypeRoomScope),
@(FUSLiveBottomToolTypePK),
@(FUSLiveBottomToolTypeGift)]]; @(FUSLiveBottomToolTypeGift)]];
} }
} else { } else {
......
...@@ -26,11 +26,12 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{ ...@@ -26,11 +26,12 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{
fatalError("init(coder:) has not been implemented") fatalError("init(coder:) has not been implemented")
} }
let bgImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_contribution_blank_all")) // let bgImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_contribution_blank_all"))
let bgImageView = UIImageView()
let faceView = UIImageView(frame: CGRectMake(0, 0, 40, 40)) let faceView = UIImageView(frame: CGRectMake(0, 0, 40, 40))
// let richImageView = UIImageView(frame: .init(x: 0, y: 0, width: 37, height: 14)) // let richImageView = UIImageView(frame: .init(x: 0, y: 0, width: 37, height: 14))
let nicknameLabel = UILabel() let nicknameLabel = UILabel()
let winSteakBgImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_contribution_winStreak_bg")) let winSteakBgImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_contribution_winStreak_bg"))
let winStreakLabel = UILabel() let winStreakLabel = UILabel()
let pkCountLabel = UILabel() let pkCountLabel = UILabel()
...@@ -40,6 +41,9 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{ ...@@ -40,6 +41,9 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{
func makeUI() { func makeUI() {
bgImageView.layer.cornerRadius = 8
bgImageView.layer.masksToBounds = true
bgImageView.backgroundColor = .init(hex: "#F0F0F0")
self.contentView.addSubview(bgImageView) self.contentView.addSubview(bgImageView)
bgImageView.snp.makeConstraints { make in bgImageView.snp.makeConstraints { make in
make.top.bottom.equalToSuperview() make.top.bottom.equalToSuperview()
...@@ -62,7 +66,7 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{ ...@@ -62,7 +66,7 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{
make.size.equalTo(CGSizeMake(40, 40)) make.size.equalTo(CGSizeMake(40, 40))
} }
nicknameLabel.textColor = .white nicknameLabel.textColor = .fus_textColorRich()
nicknameLabel.font = .fus_themeMediumFont(15) nicknameLabel.font = .fus_themeMediumFont(15)
infoBgView.addSubview(nicknameLabel) infoBgView.addSubview(nicknameLabel)
nicknameLabel.snp.makeConstraints { make in nicknameLabel.snp.makeConstraints { make in
...@@ -79,7 +83,7 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{ ...@@ -79,7 +83,7 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{
let winStreakTitleLabel = UILabel() let winStreakTitleLabel = UILabel()
winStreakTitleLabel.font = .fus_themeMediumFont(12) winStreakTitleLabel.font = .fus_themeMediumFont(12)
winStreakTitleLabel.textColor = .fus_diamondBlue() winStreakTitleLabel.textColor = .fus_textColorRich()
winStreakTitleLabel.text = .fus_versionLocalString("连胜") winStreakTitleLabel.text = .fus_versionLocalString("连胜")
winSteakBgImageView.addSubview(winStreakTitleLabel) winSteakBgImageView.addSubview(winStreakTitleLabel)
winStreakTitleLabel.snp.makeConstraints { make in winStreakTitleLabel.snp.makeConstraints { make in
...@@ -88,7 +92,7 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{ ...@@ -88,7 +92,7 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{
} }
winStreakLabel.font = .fus_custom1ItalicFont(17) winStreakLabel.font = .fus_custom1ItalicFont(17)
winStreakLabel.textColor = .fus_diamondBlue() winStreakLabel.textColor = .fus_textColorRich()
winStreakLabel.text = "0" winStreakLabel.text = "0"
winSteakBgImageView.addSubview(winStreakLabel) winSteakBgImageView.addSubview(winStreakLabel)
winStreakLabel.snp.makeConstraints { make in winStreakLabel.snp.makeConstraints { make in
...@@ -109,7 +113,7 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{ ...@@ -109,7 +113,7 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{
let todayDetailTitleLabel = UILabel() let todayDetailTitleLabel = UILabel()
todayDetailTitleLabel.font = .fus_themeMediumFont(15) todayDetailTitleLabel.font = .fus_themeMediumFont(15)
todayDetailTitleLabel.textColor = .white todayDetailTitleLabel.textColor = .fus_textColorRich()
todayDetailTitleLabel.text = .fus_versionLocalString("今日战绩") todayDetailTitleLabel.text = .fus_versionLocalString("今日战绩")
bgImageView.addSubview(todayDetailTitleLabel) bgImageView.addSubview(todayDetailTitleLabel)
todayDetailTitleLabel.snp.makeConstraints { make in todayDetailTitleLabel.snp.makeConstraints { make in
...@@ -208,24 +212,24 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{ ...@@ -208,24 +212,24 @@ class FFPKControlContributionUserBlankCell: UITableViewCell{
// 下半部分 // 下半部分
self.pkCountLabel.font = .fus_custom1ItalicFont(20) self.pkCountLabel.font = .fus_custom1ItalicFont(20)
self.pkCountLabel.textColor = .white self.pkCountLabel.textColor = .fus_textColorRich()
self.pkCountLabel.text = "\(model.showTotal)" self.pkCountLabel.text = "\(model.showTotal)"
self.winCountLabel.font = .fus_custom1ItalicFont(20) self.winCountLabel.font = .fus_custom1ItalicFont(20)
self.winCountLabel.textColor = .white self.winCountLabel.textColor = .fus_textColorRich()
self.winCountLabel.text = "\(model.winsTotal)" self.winCountLabel.text = "\(model.winsTotal)"
self.winRateLabel.font = .fus_custom1ItalicFont(20) self.winRateLabel.font = .fus_custom1ItalicFont(20)
self.winRateLabel.textColor = .white self.winRateLabel.textColor = .fus_textColorRich()
self.winRateLabel.text = "\(model.winsRate)%" self.winRateLabel.text = "\(model.winsRate)%"
self.hotNumLabel.attributedText = .sj.makeText({ make in self.hotNumLabel.attributedText = .sj.makeText({ make in
make.append { make in make.append { make in
make.image = FUSShowRoomCenterBunble.versionImageNamed("live_list_room_popular_img") make.image = FUSShowRoomCenterBunble.imageNamed("live_list_room_popular_img")
make.bounds = CGRectMake(0, 0, 18, 17) make.bounds = CGRectMake(0, 0, 18, 17)
make.alignment = .bottom make.alignment = .bottom
}.baseLineOffset(-2) }.baseLineOffset(-2)
make.append("\(model.popularTotal)").textColor(.white) make.append("\(model.popularTotal)").textColor(.fus_textColorRich())
make.font(.fus_custom1ItalicFont(20)) make.font(.fus_custom1ItalicFont(20))
}) })
} }
...@@ -247,7 +251,7 @@ class FFPKControlContributionHotDataListHeader: FUSBaseView { ...@@ -247,7 +251,7 @@ class FFPKControlContributionHotDataListHeader: FUSBaseView {
self.backgroundColor = .clear self.backgroundColor = .clear
titleLabel.font = .fus_themeMediumFont(15) titleLabel.font = .fus_themeMediumFont(15)
titleLabel.textColor = .white titleLabel.textColor = .fus_textColorRich()
titleLabel.text = .fus_versionLocalString("PKの贡献") titleLabel.text = .fus_versionLocalString("PKの贡献")
self.addSubview(titleLabel) self.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
...@@ -256,7 +260,7 @@ class FFPKControlContributionHotDataListHeader: FUSBaseView { ...@@ -256,7 +260,7 @@ class FFPKControlContributionHotDataListHeader: FUSBaseView {
} }
menuBtn.layer.cornerRadius = 20 / 2.0 menuBtn.layer.cornerRadius = 20 / 2.0
menuBtn.backgroundColor = .white.withAlphaComponent(0.1) menuBtn.backgroundColor = .init(hex: "#E7E8EC")
self.addSubview(menuBtn) self.addSubview(menuBtn)
menuBtn.snp.makeConstraints { make in menuBtn.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
...@@ -269,7 +273,7 @@ class FFPKControlContributionHotDataListHeader: FUSBaseView { ...@@ -269,7 +273,7 @@ class FFPKControlContributionHotDataListHeader: FUSBaseView {
public func ff_setMenuBtn(title: String) { public func ff_setMenuBtn(title: String) {
menuBtn.setAttributedTitle(.sj.makeText({ make in menuBtn.setAttributedTitle(.sj.makeText({ make in
make.append(" ") make.append(" ")
make.append(title + " ").textColor(.white) make.append(title + " ").textColor(.fus_textColorRich())
make.append { make in make.append { make in
make.image = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_menu_down_arrow") make.image = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_menu_down_arrow")
make.alignment = .center make.alignment = .center
...@@ -279,7 +283,7 @@ class FFPKControlContributionHotDataListHeader: FUSBaseView { ...@@ -279,7 +283,7 @@ class FFPKControlContributionHotDataListHeader: FUSBaseView {
}), for: .normal) }), for: .normal)
menuBtn.setAttributedTitle(.sj.makeText({ make in menuBtn.setAttributedTitle(.sj.makeText({ make in
make.append(" ") make.append(" ")
make.append(title + " ").textColor(.white) make.append(title + " ").textColor(.fus_textColorRich())
make.append { make in make.append { make in
make.image = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_menu_down_arrow")?.byRotate180() make.image = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_menu_down_arrow")?.byRotate180()
make.alignment = .center make.alignment = .center
...@@ -324,14 +328,14 @@ class FFPKControlContributionHotDataCell: UITableViewCell { ...@@ -324,14 +328,14 @@ class FFPKControlContributionHotDataCell: UITableViewCell {
let richImageView = UIImageView(frame: .init(x: 0, y: 0, width: 37, height: 14)) let richImageView = UIImageView(frame: .init(x: 0, y: 0, width: 37, height: 14))
let nicknameLabel = UILabel() let nicknameLabel = UILabel()
let hotNumLabel = UILabel() let hotNumLabel = UILabel()
let hotImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_list_room_popular_img")) let hotImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_list_room_popular_img"))
let firstBloodImageView = UIImageView() let firstBloodImageView = UIImageView()
func makeUI(){ func makeUI(){
rankBtn.titleLabel?.font = .fus_themeMediumFont(17) rankBtn.titleLabel?.font = .fus_themeMediumFont(17)
rankBtn.setTitleColor(.white, for: .normal) rankBtn.setTitleColor(.white, for: .normal)
rankBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_board_rank_no1"), for: .normal) rankBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_board_rank_no1"), for: .normal)
self.contentView.addSubview(rankBtn) self.contentView.addSubview(rankBtn)
rankBtn.snp.makeConstraints { make in rankBtn.snp.makeConstraints { make in
make.centerX.equalTo(self.contentView.snp.left).offset(30) make.centerX.equalTo(self.contentView.snp.left).offset(30)
...@@ -401,7 +405,7 @@ class FFPKControlContributionHotDataCell: UITableViewCell { ...@@ -401,7 +405,7 @@ class FFPKControlContributionHotDataCell: UITableViewCell {
func ff_setup(model: FUSVSIndexDevoteUserModel, icon: UIImage?, indexPath: IndexPath) { func ff_setup(model: FUSVSIndexDevoteUserModel, icon: UIImage?, indexPath: IndexPath) {
if indexPath.row <= 2 { if indexPath.row <= 2 {
rankBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_board_rank_no" + "\(indexPath.row + 1)"), for: .normal) rankBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_board_rank_no" + "\(indexPath.row + 1)"), for: .normal)
rankBtn.setTitle("", for: .normal) rankBtn.setTitle("", for: .normal)
}else { }else {
rankBtn.setTitle("\(indexPath.row + 1)", for: .normal) rankBtn.setTitle("\(indexPath.row + 1)", for: .normal)
......
...@@ -25,33 +25,44 @@ class FFPKControlPKModeCell: UICollectionViewCell { ...@@ -25,33 +25,44 @@ class FFPKControlPKModeCell: UICollectionViewCell {
/// 垃圾袋 /// 垃圾袋
public let disposeBag = DisposeBag() public let disposeBag = DisposeBag()
let selectImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_pkMode_cell_unselect")) let selectImageView = UIImageView()
let iconImageView = UIImageView() let iconImageView = UIImageView()
let selectBgImage = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_pkGamePlay_light_bg"))
let sortImageIcon = UIImageView() let sortImageIcon = UIImageView()
let nameLabel = UILabel() let nameLabel = UILabel()
func makeUI() { func makeUI() {
selectImageView.backgroundColor = .init(hex: "#EBEBEB")
selectImageView.layer.cornerRadius = 9
selectImageView.layer.masksToBounds = true
selectImageView.layer.borderColor = UIColor.fus_theme().cgColor
selectImageView.layer.borderWidth = 2
self.addSubview(selectImageView) self.addSubview(selectImageView)
selectImageView.snp.makeConstraints { make in selectImageView.snp.makeConstraints { make in
make.edges.equalToSuperview() make.edges.equalToSuperview().inset(2)
} }
selectBgImage.isHidden = true let centerBgView = UIView()
self.addSubview(selectBgImage) self.addSubview(centerBgView)
selectBgImage.snp.makeConstraints { make in centerBgView.snp.makeConstraints { make in
make.centerX.equalToSuperview() make.center.equalToSuperview()
make.centerY.equalToSuperview().offset(-6) make.height.equalToSuperview().multipliedBy(0.8)
make.width.equalToSuperview().multipliedBy(0.8)
} }
iconImageView.isUserInteractionEnabled = true iconImageView.isUserInteractionEnabled = true
iconImageView.contentMode = .scaleAspectFit iconImageView.contentMode = .scaleAspectFit
self.addSubview(iconImageView) centerBgView.addSubview(iconImageView)
iconImageView.snp.makeConstraints { make in iconImageView.snp.makeConstraints { make in
// make.centerX.equalToSuperview()
// make.centerY.equalToSuperview().offset(-6)
// make.size.equalTo(CGSizeMake(115, 115))
make.top.equalToSuperview()
make.centerX.equalToSuperview() make.centerX.equalToSuperview()
make.centerY.equalToSuperview().offset(-6) make.left.greaterThanOrEqualTo(centerBgView.snp.left)
make.size.equalTo(CGSizeMake(115, 115)) make.right.lessThanOrEqualTo(centerBgView.snp.right)
make.bottom.lessThanOrEqualTo(centerBgView.snp.bottom)
// make.width.equalTo(iconImageView.snp.height)
} }
self.addSubview(sortImageIcon) self.addSubview(sortImageIcon)
...@@ -60,12 +71,15 @@ class FFPKControlPKModeCell: UICollectionViewCell { ...@@ -60,12 +71,15 @@ class FFPKControlPKModeCell: UICollectionViewCell {
} }
nameLabel.font = .fus_themeMediumFont(17) nameLabel.font = .fus_themeMediumFont(17)
nameLabel.textColor = .white nameLabel.textColor = .fus_textColorRich()
nameLabel.textAlignment = .center nameLabel.textAlignment = .center
self.addSubview(nameLabel) centerBgView.addSubview(nameLabel)
nameLabel.snp.makeConstraints { make in nameLabel.snp.makeConstraints { make in
make.top.equalTo(iconImageView.snp.bottom).offset(6) // make.top.equalTo(iconImageView.snp.bottom).offset(6)
make.left.right.equalToSuperview().inset(12) make.left.right.equalToSuperview().inset(12)
// make.top.equalTo(iconImageView.snp.bottom)
make.bottom.equalToSuperview()
make.height.equalTo(24)
} }
} }
...@@ -78,20 +92,24 @@ class FFPKControlPKModeCell: UICollectionViewCell { ...@@ -78,20 +92,24 @@ class FFPKControlPKModeCell: UICollectionViewCell {
var sortImage: UIImage? var sortImage: UIImage?
var iconImage: UIImage? = .fus_emptyImg() var iconImage: UIImage? = .fus_emptyImg()
if model.sort == 1 { if model.sort == 1 {
sortImage = FUSShowRoomCenterBunble.versionImageNamed("live_list_room_popular_img") sortImage = FUSShowRoomCenterBunble.imageNamed("live_list_room_popular_img")
iconImage = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_pkMode_pop_bigIcon") iconImage = FUSShowRoomCenterBunble.imageNamed("live_pk_control_pkMode_pop_bigIcon")
} }
else if model.sort == 2{ else if model.sort == 2{
sortImage = .fus_fireIcon() sortImage = .fus_fireIcon()
iconImage = .fus_emptyImg() iconImage = .fus_emptyImg()
} }
else if model.sort == 3{ else if model.sort == 3{
sortImage = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_pkGamePlay_game_tag") sortImage = FUSShowRoomCenterBunble.imageNamed("live_pk_control_pkGamePlay_game_tag")
iconImage = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_pkMode_game_bigIcon") iconImage = FUSShowRoomCenterBunble.imageNamed("live_pk_control_pkMode_game_bigIcon")
} }
else if model.sort == 4 { else if model.sort == 4 {
sortImage = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_pkGamePlay_welcomeNew_tag") sortImage = FUSShowRoomCenterBunble.imageNamed("live_pk_control_pkGamePlay_welcomeNew_tag")
iconImage = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_pkMode_welcomeNew_bigIcon") iconImage = FUSShowRoomCenterBunble.imageNamed("live_pk_control_pkMode_welcomeNew_bigIcon")
}
else if model.sort == 5 {
sortImage = FUSShowRoomCenterBunble.imageNamed("live_pk_control_pkGamePlay_gift_tag")
iconImage = FUSShowRoomCenterBunble.imageNamed("live_pk_control_pkMode_gift_bigIcon")
} }
if let sortImage = sortImage { if let sortImage = sortImage {
...@@ -110,7 +128,13 @@ class FFPKControlPKModeCell: UICollectionViewCell { ...@@ -110,7 +128,13 @@ class FFPKControlPKModeCell: UICollectionViewCell {
self.nameLabel.text = model.name self.nameLabel.text = model.name
self.selectImageView.image = FUSShowRoomCenterBunble.versionImageNamed(isSelect ? "live_pk_control_pkMode_cell_select" : "live_pk_control_pkMode_cell_unselect") // 最后确定选择诓
self.selectBgImage.isHidden = !isSelect self.selectImageView.layer.borderWidth = isSelect ? 2 : 0
if viewType == .pkGamePlay {
nameLabel.font = .fus_themeMediumFont(15)
}
else {
nameLabel.font = .fus_themeMediumFont(17)
}
} }
} }
...@@ -25,14 +25,17 @@ class FFPKControlSearchPlayerRandomCell: UITableViewCell { ...@@ -25,14 +25,17 @@ class FFPKControlSearchPlayerRandomCell: UITableViewCell {
fatalError("init(coder:) has not been implemented") fatalError("init(coder:) has not been implemented")
} }
let bgImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_search_random_bg")) let bgImageView = UIImageView()
let randomImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_search_randomMatch")) let randomImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_search_randomMatch"))
let randomTitleLabel = UILabel() let randomTitleLabel = UILabel()
let descLabel = UILabel() let descLabel = UILabel()
let rightArrow = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_search_rightArrow")) let rightArrow = UIImageView(image: .fus_rightArrowIcon())
func makeUI(){ func makeUI(){
bgImageView.layer.cornerRadius = 8
bgImageView.layer.masksToBounds = true
bgImageView.backgroundColor = .init(hex: "#F0F0F0")
bgImageView.isUserInteractionEnabled = true bgImageView.isUserInteractionEnabled = true
self.addSubview(bgImageView) self.addSubview(bgImageView)
bgImageView.snp.makeConstraints { make in bgImageView.snp.makeConstraints { make in
...@@ -57,7 +60,7 @@ class FFPKControlSearchPlayerRandomCell: UITableViewCell { ...@@ -57,7 +60,7 @@ class FFPKControlSearchPlayerRandomCell: UITableViewCell {
} }
randomTitleLabel.font = .fus_themeMediumFont(17) randomTitleLabel.font = .fus_themeMediumFont(17)
randomTitleLabel.textColor = .white randomTitleLabel.textColor = .fus_textColorRich()
randomTitleLabel.text = .fus_versionLocalString("随机匹配") randomTitleLabel.text = .fus_versionLocalString("随机匹配")
contentCenterView.addSubview(randomTitleLabel) contentCenterView.addSubview(randomTitleLabel)
randomTitleLabel.snp.makeConstraints { make in randomTitleLabel.snp.makeConstraints { make in
...@@ -96,7 +99,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView { ...@@ -96,7 +99,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView {
/// 点击搜索 /// 点击搜索
public var searchBtnDidClick: ((String?) -> Void)? public var searchBtnDidClick: ((String?) -> Void)?
let bgImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_search_player_top_bg")) let bgImageView = UIImageView()
let titleLabel = UILabel() let titleLabel = UILabel()
let refreshBtn = UIButton(type: .custom) let refreshBtn = UIButton(type: .custom)
let searchTF = FUSTextView() let searchTF = FUSTextView()
...@@ -105,6 +108,18 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView { ...@@ -105,6 +108,18 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView {
override func makeUI() { override func makeUI() {
super.makeUI() super.makeUI()
let bottomBgColorView = UIView()
bottomBgColorView.backgroundColor = .init(hex: "#F0F0F0")
self.addSubview(bottomBgColorView)
bottomBgColorView.snp.makeConstraints { make in
make.left.right.equalToSuperview().inset(16)
make.bottom.equalToSuperview()
make.height.equalTo(10)
}
bgImageView.backgroundColor = .init(hex: "#F0F0F0")
bgImageView.layer.cornerRadius = 8
bgImageView.layer.masksToBounds = true
bgImageView.isUserInteractionEnabled = true bgImageView.isUserInteractionEnabled = true
self.addSubview(bgImageView) self.addSubview(bgImageView)
bgImageView.snp.makeConstraints { make in bgImageView.snp.makeConstraints { make in
...@@ -114,7 +129,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView { ...@@ -114,7 +129,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView {
} }
titleLabel.font = .fus_themeMediumFont(17) titleLabel.font = .fus_themeMediumFont(17)
titleLabel.textColor = .white titleLabel.textColor = .fus_textColorRich()
titleLabel.text = .fus_versionLocalString("主播列表") titleLabel.text = .fus_versionLocalString("主播列表")
bgImageView.addSubview(titleLabel) bgImageView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
...@@ -122,7 +137,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView { ...@@ -122,7 +137,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView {
make.top.equalToSuperview() make.top.equalToSuperview()
} }
refreshBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_search_refresh_icon"), for: .normal) refreshBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_search_refresh_icon"), for: .normal)
bgImageView.addSubview(refreshBtn) bgImageView.addSubview(refreshBtn)
refreshBtn.snp.makeConstraints { make in refreshBtn.snp.makeConstraints { make in
make.right.equalTo(-6) make.right.equalTo(-6)
...@@ -131,7 +146,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView { ...@@ -131,7 +146,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView {
} }
let searchBgView = UIView() let searchBgView = UIView()
searchBgView.backgroundColor = .white.withAlphaComponent(0.1) searchBgView.backgroundColor = .white
searchBgView.layer.cornerRadius = 34/2.0 searchBgView.layer.cornerRadius = 34/2.0
searchBgView.layer.masksToBounds = true searchBgView.layer.masksToBounds = true
bgImageView.addSubview(searchBgView) bgImageView.addSubview(searchBgView)
...@@ -143,7 +158,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView { ...@@ -143,7 +158,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView {
make.top.equalTo(titleLabel.snp.bottom) make.top.equalTo(titleLabel.snp.bottom)
} }
let searchIcon = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_search_icon")) let searchIcon = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_search_icon"))
searchBgView.addSubview(searchIcon) searchBgView.addSubview(searchIcon)
searchIcon.snp.makeConstraints { make in searchIcon.snp.makeConstraints { make in
make.left.equalTo(10) make.left.equalTo(10)
...@@ -152,10 +167,10 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView { ...@@ -152,10 +167,10 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView {
} }
searchTF.attributedPlaceholder = .sj.makeText({ make in searchTF.attributedPlaceholder = .sj.makeText({ make in
make.append(.fus_versionLocalString("通过ID/暱称搜寻主播")).textColor(.init(hex: "#717172")).font(.fus_themeFont(12)) make.append(.fus_versionLocalString("通过ID/暱称搜寻主播")).textColor(.init(hex: "#808080")).font(.fus_themeFont(12))
}) })
searchTF.font = .fus_themeFont(12) searchTF.font = .fus_themeFont(12)
searchTF.textColor = .white searchTF.textColor = .fus_textColorRich()
searchTF.shouldTakeLineBreakAsConfirm = true searchTF.shouldTakeLineBreakAsConfirm = true
searchTF.backgroundColor = .clear searchTF.backgroundColor = .clear
searchBgView.addSubview(searchTF) searchBgView.addSubview(searchTF)
...@@ -166,7 +181,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView { ...@@ -166,7 +181,7 @@ class FFPKControlSearchPlayerPlayerListHeader: FUSBaseView {
} }
searchBtn.titleLabel?.font = .fus_themeFont(12) searchBtn.titleLabel?.font = .fus_themeFont(12)
searchBtn.setTitleColor(.fus_theme(), for: .normal) searchBtn.setTitleColor(.fus_textColorRich(), for: .normal)
searchBtn.setTitle(.fus_versionLocalString("搜寻"), for: .normal) searchBtn.setTitle(.fus_versionLocalString("搜寻"), for: .normal)
bgImageView.addSubview(searchBtn) bgImageView.addSubview(searchBtn)
searchBtn.snp.makeConstraints { make in searchBtn.snp.makeConstraints { make in
...@@ -346,17 +361,17 @@ class FFPKControlSearchPlayerPlayerListCell: UITableViewCell { ...@@ -346,17 +361,17 @@ class FFPKControlSearchPlayerPlayerListCell: UITableViewCell {
if model.status == -1 { if model.status == -1 {
self.inviteBtn.isEnabled = false self.inviteBtn.isEnabled = false
self.inviteBtn.backgroundColor = .white.withAlphaComponent(0.1) self.inviteBtn.backgroundColor = .init(hex: "#E5E5E5")
}else { }else {
self.inviteBtn.isEnabled = true self.inviteBtn.isEnabled = true
self.inviteBtn.isSelected = inviteState self.inviteBtn.isSelected = inviteState
self.inviteBtn.backgroundColor = inviteState ? .white.withAlphaComponent(0.1) : .fus_theme() self.inviteBtn.backgroundColor = inviteState ? .init(hex: "#E5E5E5") : .fus_theme()
} }
self.inviteState = inviteState self.inviteState = inviteState
let isVip = model.vip let isVip = model.vip
var level = model.level var level = model.level
self.nicknameLabel.textColor = .white self.nicknameLabel.textColor = .fus_textColorRich()
if isVip, let levelModel = FUSSwiftCacheDataShare.share.fus_levelModel(level: level) { if isVip, let levelModel = FUSSwiftCacheDataShare.share.fus_levelModel(level: level) {
self.nicknameLabel.textColor = .init(hex: levelModel.color) self.nicknameLabel.textColor = .init(hex: levelModel.color)
...@@ -401,11 +416,23 @@ class FFPKControlSearchPlayerNoDataCell: UITableViewCell { ...@@ -401,11 +416,23 @@ class FFPKControlSearchPlayerNoDataCell: UITableViewCell {
fatalError("init(coder:) has not been implemented") fatalError("init(coder:) has not been implemented")
} }
let bgImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_search_player_bottom_bg")) let bgImageView = UIImageView()
let emptyView = FUSEmptyView(frame: CGRectMake(0, 0, UIView.fus_screenW() - 16*2, FFPKControlSearchPlayerNoDataCell.cellHeight)) let emptyView = FUSEmptyView(frame: CGRectMake(0, 0, UIView.fus_screenW() - 16*2, FFPKControlSearchPlayerNoDataCell.cellHeight))
func makeUI(){ func makeUI(){
let topColorView = UIView()
topColorView.backgroundColor = .init(hex: "#F0F0F0")
self.contentView.addSubview(topColorView)
topColorView.snp.makeConstraints { make in
make.left.right.equalToSuperview().inset(16)
make.top.equalToSuperview()
make.height.equalTo(10)
}
bgImageView.layer.cornerRadius = 8
bgImageView.layer.masksToBounds = true
bgImageView.backgroundColor = .init(hex: "#F0F0F0")
self.contentView.addSubview(bgImageView) self.contentView.addSubview(bgImageView)
bgImageView.snp.makeConstraints { make in bgImageView.snp.makeConstraints { make in
make.top.bottom.equalToSuperview() make.top.bottom.equalToSuperview()
......
...@@ -36,7 +36,6 @@ class FFPKUserContributionLogCell: UITableViewCell { ...@@ -36,7 +36,6 @@ class FFPKUserContributionLogCell: UITableViewCell {
let nicknameLabel = UILabel() let nicknameLabel = UILabel()
let noRichNickNameLabel = UILabel() let noRichNickNameLabel = UILabel()
let hotNumLabel = UILabel() let hotNumLabel = UILabel()
// let hotImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_list_room_popular_img"))
let hotImageView = UIImageView() let hotImageView = UIImageView()
let plusLabel = UILabel() let plusLabel = UILabel()
let firstBloodImageView = UIImageView() let firstBloodImageView = UIImageView()
......
...@@ -19,7 +19,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView { ...@@ -19,7 +19,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView {
case hotData case hotData
} }
let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_title_image")) let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_title_image"))
let recordBtn = UIButton(type: .custom) let recordBtn = UIButton(type: .custom)
let questionBtn = UIButton(type: .custom) let questionBtn = UIButton(type: .custom)
let settingBtn = UIButton(type: .custom) let settingBtn = UIButton(type: .custom)
...@@ -44,7 +44,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView { ...@@ -44,7 +44,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView {
public override func makeUI() { public override func makeUI() {
super.makeUI() super.makeUI()
recordBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_record_btn"), for: .normal) recordBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_record_btn"), for: .normal)
naviView.addSubview(recordBtn) naviView.addSubview(recordBtn)
recordBtn.snp.makeConstraints { make in recordBtn.snp.makeConstraints { make in
make.left.equalTo(18) make.left.equalTo(18)
...@@ -57,7 +57,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView { ...@@ -57,7 +57,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView {
make.center.equalToSuperview() make.center.equalToSuperview()
} }
settingBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_setting_btn"), for: .normal) settingBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_setting_btn"), for: .normal)
naviView.addSubview(settingBtn) naviView.addSubview(settingBtn)
settingBtn.snp.makeConstraints { make in settingBtn.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
...@@ -65,7 +65,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView { ...@@ -65,7 +65,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView {
make.size.equalTo(CGSizeMake(32, 32)) make.size.equalTo(CGSizeMake(32, 32))
} }
questionBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_question_btn"), for: .normal) questionBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_question_btn"), for: .normal)
naviView.addSubview(questionBtn) naviView.addSubview(questionBtn)
questionBtn.snp.makeConstraints { make in questionBtn.snp.makeConstraints { make in
make.right.equalTo(settingBtn.snp.left).offset(-4) make.right.equalTo(settingBtn.snp.left).offset(-4)
...@@ -124,7 +124,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView { ...@@ -124,7 +124,7 @@ public class FFPKControlContributionView: FFPKControlSubBaseView {
make.top.equalTo(bottomStatusBgView.snp.bottom) make.top.equalTo(bottomStatusBgView.snp.bottom)
} }
goPkBtn.style = .gradientLeftToRight goPkBtn.style = .blue
goPkBtn.titleLabel?.font = .fus_themeMediumFont(17) goPkBtn.titleLabel?.font = .fus_themeMediumFont(17)
goPkBtn.setTitle(.fus_versionLocalString("开启PK"), for: .normal) goPkBtn.setTitle(.fus_versionLocalString("开启PK"), for: .normal)
bottomStatusBgView.addSubview(goPkBtn) bottomStatusBgView.addSubview(goPkBtn)
...@@ -394,7 +394,7 @@ extension FFPKControlContributionView: UITableViewDelegate, UITableViewDataSourc ...@@ -394,7 +394,7 @@ extension FFPKControlContributionView: UITableViewDelegate, UITableViewDataSourc
if let cell = tableView.dequeueReusableCell(withIdentifier: FFPKControlContributionHotDataCell.cellID, for: indexPath) as? FFPKControlContributionHotDataCell{ if let cell = tableView.dequeueReusableCell(withIdentifier: FFPKControlContributionHotDataCell.cellID, for: indexPath) as? FFPKControlContributionHotDataCell{
if let model = self.devoteDataList?[indexPath.row] { if let model = self.devoteDataList?[indexPath.row] {
cell.ff_setup(model: model, icon: FUSShowRoomCenterBunble.versionImageNamed("live_list_room_popular_img"), indexPath: indexPath) cell.ff_setup(model: model, icon: FUSShowRoomCenterBunble.imageNamed("live_list_room_popular_img"), indexPath: indexPath)
cell.avatarDidClick = {[weak self] in cell.avatarDidClick = {[weak self] in
let userModel = FUSRoomUserInfoModel() let userModel = FUSRoomUserInfoModel()
userModel.fus_setValue(with: model) userModel.fus_setValue(with: model)
......
...@@ -11,9 +11,9 @@ import RxCocoa ...@@ -11,9 +11,9 @@ import RxCocoa
class FFPKControlMatchingView: FFPKControlSubBaseView { class FFPKControlMatchingView: FFPKControlSubBaseView {
let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_title_image")) let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_title_image"))
let backBtn = UIButton(type: .custom) let backBtn = UIButton(type: .custom)
let matchingImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_matching_img")) let matchingImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_matching_img"))
let matchingNameLabel = UILabel() let matchingNameLabel = UILabel()
let matchingStateLabel = UILabel() let matchingStateLabel = UILabel()
let cancelBtn = FUSStyleButton(type: .custom) let cancelBtn = FUSStyleButton(type: .custom)
...@@ -57,7 +57,7 @@ class FFPKControlMatchingView: FFPKControlSubBaseView { ...@@ -57,7 +57,7 @@ class FFPKControlMatchingView: FFPKControlSubBaseView {
} }
matchingNameLabel.font = .fus_themeMediumFont(19) matchingNameLabel.font = .fus_themeMediumFont(19)
matchingNameLabel.textColor = .white matchingNameLabel.textColor = .fus_textColorRich()
contentView.addSubview(matchingNameLabel) contentView.addSubview(matchingNameLabel)
matchingNameLabel.snp.makeConstraints { make in matchingNameLabel.snp.makeConstraints { make in
make.centerX.equalToSuperview() make.centerX.equalToSuperview()
...@@ -72,7 +72,7 @@ class FFPKControlMatchingView: FFPKControlSubBaseView { ...@@ -72,7 +72,7 @@ class FFPKControlMatchingView: FFPKControlSubBaseView {
make.top.equalTo(matchingNameLabel.snp.bottom).offset(8) make.top.equalTo(matchingNameLabel.snp.bottom).offset(8)
} }
cancelBtn.style = .gradientLeftToRight cancelBtn.style = .blue
cancelBtn.titleLabel?.font = .fus_themeMediumFont(17) cancelBtn.titleLabel?.font = .fus_themeMediumFont(17)
cancelBtn.setTitle(.fus_versionLocalString("取消匹配"), for: .normal) cancelBtn.setTitle(.fus_versionLocalString("取消匹配"), for: .normal)
contentView.addSubview(cancelBtn) contentView.addSubview(cancelBtn)
......
...@@ -9,7 +9,7 @@ import UIKit ...@@ -9,7 +9,7 @@ import UIKit
class FFPKControlOpponentView: FFPKControlSubBaseView { class FFPKControlOpponentView: FFPKControlSubBaseView {
let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_title_image")) let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_title_image"))
let backBtn = UIButton(type: .custom) let backBtn = UIButton(type: .custom)
let pkNameLabel = UILabel() let pkNameLabel = UILabel()
let opponentInfoView = FFPKControlOpponentInfoView() let opponentInfoView = FFPKControlOpponentInfoView()
......
...@@ -9,7 +9,7 @@ import UIKit ...@@ -9,7 +9,7 @@ import UIKit
class FFPKControlPKModeView: FFPKControlSubBaseView { class FFPKControlPKModeView: FFPKControlSubBaseView {
let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_title_image")) let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_title_image"))
let backBtn = UIButton(type: .custom) let backBtn = UIButton(type: .custom)
let modeTitleLabel = UILabel() let modeTitleLabel = UILabel()
let modeDescLabel = UILabel() let modeDescLabel = UILabel()
...@@ -45,7 +45,7 @@ class FFPKControlPKModeView: FFPKControlSubBaseView { ...@@ -45,7 +45,7 @@ class FFPKControlPKModeView: FFPKControlSubBaseView {
} }
modeTitleLabel.font = .fus_themeMediumFont(19) modeTitleLabel.font = .fus_themeMediumFont(19)
modeTitleLabel.textColor = .white modeTitleLabel.textColor = .init(hex: "#222222")
contentView.addSubview(modeTitleLabel) contentView.addSubview(modeTitleLabel)
modeTitleLabel.snp.makeConstraints { make in modeTitleLabel.snp.makeConstraints { make in
make.centerX.equalToSuperview() make.centerX.equalToSuperview()
...@@ -89,7 +89,7 @@ class FFPKControlPKModeView: FFPKControlSubBaseView { ...@@ -89,7 +89,7 @@ class FFPKControlPKModeView: FFPKControlSubBaseView {
// make.height.equalTo(210) // make.height.equalTo(210)
} }
self.nextBtn.style = .gradientLeftToRight self.nextBtn.style = .blue
self.nextBtn.titleLabel?.font = .fus_themeMediumFont(17) self.nextBtn.titleLabel?.font = .fus_themeMediumFont(17)
self.nextBtn.setTitle(.fus_versionLocalString("下一步"), for: .normal) self.nextBtn.setTitle(.fus_versionLocalString("下一步"), for: .normal)
contentView.addSubview(self.nextBtn) contentView.addSubview(self.nextBtn)
......
...@@ -9,7 +9,7 @@ import UIKit ...@@ -9,7 +9,7 @@ import UIKit
class FFPKControlSearchPlayerView: FFPKControlSubBaseView { class FFPKControlSearchPlayerView: FFPKControlSubBaseView {
let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_title_image")) let titleImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_title_image"))
let backBtn = UIButton(type: .custom) let backBtn = UIButton(type: .custom)
let tableView = UITableView(frame: .zero, style: .grouped) let tableView = UITableView(frame: .zero, style: .grouped)
let resetKeyBoardBtn = UIButton(type: .custom) let resetKeyBoardBtn = UIButton(type: .custom)
...@@ -362,7 +362,7 @@ extension FFPKControlSearchPlayerView: UITableViewDelegate, UITableViewDataSourc ...@@ -362,7 +362,7 @@ extension FFPKControlSearchPlayerView: UITableViewDelegate, UITableViewDataSourc
if section == 0 { if section == 0 {
let titleLabel = UILabel(frame: CGRectMake(0, 0, UIView.fus_screenW(), 50)) let titleLabel = UILabel(frame: CGRectMake(0, 0, UIView.fus_screenW(), 50))
titleLabel.font = .fus_themeMediumFont(19) titleLabel.font = .fus_themeMediumFont(19)
titleLabel.textColor = .white titleLabel.textColor = .fus_textColorRich()
titleLabel.text = .fus_versionLocalString("PK对手") titleLabel.text = .fus_versionLocalString("PK对手")
titleLabel.textAlignment = .center titleLabel.textAlignment = .center
return titleLabel return titleLabel
......
...@@ -35,7 +35,7 @@ class FFPKControlSettingView: FFPKControlSubBaseView { ...@@ -35,7 +35,7 @@ class FFPKControlSettingView: FFPKControlSubBaseView {
} }
titleLabel.font = .fus_themeMediumFont(18) titleLabel.font = .fus_themeMediumFont(18)
titleLabel.textColor = .white titleLabel.textColor = .fus_textColorRich()
titleLabel.text = .fus_versionLocalString("PK设置") titleLabel.text = .fus_versionLocalString("PK设置")
naviView.addSubview(titleLabel) naviView.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
...@@ -211,16 +211,16 @@ class FFPKControlSettingSwitchView: FUSBaseView { ...@@ -211,16 +211,16 @@ class FFPKControlSettingSwitchView: FUSBaseView {
override func makeUI() { override func makeUI() {
super.makeUI() super.makeUI()
// bgView.backgroundColor = .white.withAlphaComponent(0.05) bgView.backgroundColor = .init(hex: "#F0F0F0")
// bgView.layer.cornerRadius = 8 bgView.layer.cornerRadius = 8
// bgView.layer.masksToBounds = true bgView.layer.masksToBounds = true
self.addSubview(bgView) self.addSubview(bgView)
bgView.snp.makeConstraints { make in bgView.snp.makeConstraints { make in
make.edges.equalToSuperview() make.edges.equalToSuperview()
} }
titleLabel.font = .fus_themeMediumFont(15) titleLabel.font = .fus_themeMediumFont(15)
titleLabel.textColor = .white titleLabel.textColor = .fus_textColorRich()
self.addSubview(titleLabel) self.addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in titleLabel.snp.makeConstraints { make in
make.left.equalTo(14) make.left.equalTo(14)
......
...@@ -186,7 +186,7 @@ extension FFPKMessageAlertView{ ...@@ -186,7 +186,7 @@ extension FFPKMessageAlertView{
else if type == 2 { else if type == 2 {
self.titleLabel.attributedText = .sj.makeText({ make in self.titleLabel.attributedText = .sj.makeText({ make in
make.append { make in make.append { make in
make.image = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_title_image") make.image = FUSShowRoomCenterBunble.imageNamed("live_pk_control_title_image")
make.alignment = .center make.alignment = .center
} }
make.font(.fus_themeBoldFont(20)).alignment(.center) make.font(.fus_themeBoldFont(20)).alignment(.center)
......
...@@ -46,7 +46,7 @@ class FFPKPunishActivatedAlertView: FFPKControlSubBaseView { ...@@ -46,7 +46,7 @@ class FFPKPunishActivatedAlertView: FFPKControlSubBaseView {
make.center.equalToSuperview() make.center.equalToSuperview()
} }
questionBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_question_btn"), for: .normal) questionBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_question_btn"), for: .normal)
naviView.addSubview(questionBtn) naviView.addSubview(questionBtn)
questionBtn.snp.makeConstraints { make in questionBtn.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
......
...@@ -40,7 +40,7 @@ class FFPKPunishDetailAlertView: FFPKControlSubBaseView { ...@@ -40,7 +40,7 @@ class FFPKPunishDetailAlertView: FFPKControlSubBaseView {
make.center.equalToSuperview() make.center.equalToSuperview()
} }
questionBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_question_btn"), for: .normal) questionBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_question_btn"), for: .normal)
naviView.addSubview(questionBtn) naviView.addSubview(questionBtn)
questionBtn.snp.makeConstraints { make in questionBtn.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
......
...@@ -46,7 +46,7 @@ class FFPKPunishSelectAlertView: FFPKControlSubBaseView { ...@@ -46,7 +46,7 @@ class FFPKPunishSelectAlertView: FFPKControlSubBaseView {
make.center.equalToSuperview() make.center.equalToSuperview()
} }
questionBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_question_btn"), for: .normal) questionBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_question_btn"), for: .normal)
naviView.addSubview(questionBtn) naviView.addSubview(questionBtn)
questionBtn.snp.makeConstraints { make in questionBtn.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
......
...@@ -37,7 +37,7 @@ class FFPKResaultRewardAlertView: FUSBaseView { ...@@ -37,7 +37,7 @@ class FFPKResaultRewardAlertView: FUSBaseView {
let iconImageView = UIImageView() let iconImageView = UIImageView()
let titleLabel = UILabel() let titleLabel = UILabel()
let contentLabel = UILabel() let contentLabel = UILabel()
let winSteakBgImageView = UIImageView(image: FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_contribution_winStreak_bg")) let winSteakBgImageView = UIImageView(image: FUSShowRoomCenterBunble.imageNamed("live_pk_control_contribution_winStreak_bg"))
let winStreakLabel = UILabel() let winStreakLabel = UILabel()
let collectionView = UICollectionView(frame: .zero, collectionViewLayout: JJCollectionViewRoundFlowLayout_Swift()) let collectionView = UICollectionView(frame: .zero, collectionViewLayout: JJCollectionViewRoundFlowLayout_Swift())
let drawBtn = FUSStyleButton(type: .custom) let drawBtn = FUSStyleButton(type: .custom)
...@@ -77,7 +77,7 @@ class FFPKResaultRewardAlertView: FUSBaseView { ...@@ -77,7 +77,7 @@ class FFPKResaultRewardAlertView: FUSBaseView {
make.centerY.equalTo(contentView.snp.top).offset(10) make.centerY.equalTo(contentView.snp.top).offset(10)
} }
winSteakBgImageView.image = FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_contribution_winStreak_bg") winSteakBgImageView.image = FUSShowRoomCenterBunble.imageNamed("live_pk_control_contribution_winStreak_bg")
contentView.addSubview(winSteakBgImageView) contentView.addSubview(winSteakBgImageView)
winSteakBgImageView.snp.makeConstraints { make in winSteakBgImageView.snp.makeConstraints { make in
make.right.equalTo(-14) make.right.equalTo(-14)
......
...@@ -70,7 +70,7 @@ class FFPKUserContributionInLiveAlertView: FFPKControlSubBaseView { ...@@ -70,7 +70,7 @@ class FFPKUserContributionInLiveAlertView: FFPKControlSubBaseView {
make.left.equalTo(titleImageView.snp.right).offset(3) make.left.equalTo(titleImageView.snp.right).offset(3)
} }
questionBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_question_btn"), for: .normal) questionBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_question_btn"), for: .normal)
naviView.addSubview(questionBtn) naviView.addSubview(questionBtn)
questionBtn.snp.makeConstraints { make in questionBtn.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
......
...@@ -43,7 +43,7 @@ class FFPKUserContributionLogInLiveAlertView: FFPKControlSubBaseView { ...@@ -43,7 +43,7 @@ class FFPKUserContributionLogInLiveAlertView: FFPKControlSubBaseView {
make.center.equalToSuperview() make.center.equalToSuperview()
} }
questionBtn.setImage(FUSShowRoomCenterBunble.versionImageNamed("live_pk_control_question_btn"), for: .normal) questionBtn.setImage(FUSShowRoomCenterBunble.imageNamed("live_pk_control_question_btn"), for: .normal)
naviView.addSubview(questionBtn) naviView.addSubview(questionBtn)
questionBtn.snp.makeConstraints { make in questionBtn.snp.makeConstraints { make in
make.right.equalTo(-18) make.right.equalTo(-18)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment