Commit 1c811e0a authored by pete谢兆麟's avatar pete谢兆麟

Merge branch 'develop' of http://gitlab.galaxy-immi.com/mobile-group/galaxy-iOS into develop

parents 63f7e6fe 5757a222
...@@ -8140,7 +8140,7 @@ ...@@ -8140,7 +8140,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxyTestEnv.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxyTestEnv.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -8286,7 +8286,7 @@ ...@@ -8286,7 +8286,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -8494,7 +8494,7 @@ ...@@ -8494,7 +8494,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxyDebug.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxyDebug.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -8542,7 +8542,7 @@ ...@@ -8542,7 +8542,7 @@
CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements; CODE_SIGN_ENTITLEMENTS = galaxy/galaxy.entitlements;
CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic; CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1; CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
......
...@@ -46,6 +46,9 @@ class YHOrderTipsItemView: UIView { ...@@ -46,6 +46,9 @@ class YHOrderTipsItemView: UIView {
} else if msg.type == YHMessageType.renewal.rawValue { } else if msg.type == YHMessageType.renewal.rawValue {
return "身份续签" return "身份续签"
} else if msg.type == YHMessageType.business.rawValue {
return "银河商务"
} else { } else {
return "--" return "--"
} }
......
...@@ -67,7 +67,7 @@ class YHResignInfoValidTimeItemView: UIView { ...@@ -67,7 +67,7 @@ class YHResignInfoValidTimeItemView: UIView {
handleLabel.font = UIFont.PFSC_R(ofSize: 12) handleLabel.font = UIFont.PFSC_R(ofSize: 12)
handleLabel.textColor = UIColor.brandMainColor handleLabel.textColor = UIColor.brandMainColor
handleLabel.textAlignment = .right handleLabel.textAlignment = .right
handleLabel.text = "去处理" handleLabel.text = "去更新"
view.addSubview(handleLabel) view.addSubview(handleLabel)
errorTipsLabel.snp.makeConstraints { make in errorTipsLabel.snp.makeConstraints { make in
......
...@@ -505,13 +505,20 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource { ...@@ -505,13 +505,20 @@ extension YHEducationDetailVC : UITableViewDelegate, UITableViewDataSource {
vc.orderId = self.orderId vc.orderId = self.orderId
vc.searchMajorName = detailInfo.major vc.searchMajorName = detailInfo.major
vc.selectBlock = { vc.selectBlock = {
[weak self] text in [weak self] fullName, chineseName in
guard let self = self else { return } guard let self = self else { return }
if let text = text, !text.isEmpty { if let text = fullName, !text.isEmpty {
detailInfo.major = text detailInfo.major = text
} else { } else {
detailInfo.major = "" detailInfo.major = ""
} }
if let chineseName = chineseName, !chineseName.isEmpty {
detailInfo.tempMajor = chineseName
} else {
detailInfo.tempMajor = ""
}
loadInfo() loadInfo()
saveInfoSilent() saveInfoSilent()
} }
......
...@@ -12,13 +12,14 @@ class YHMajorSearchViewController: YHBaseViewController { ...@@ -12,13 +12,14 @@ class YHMajorSearchViewController: YHBaseViewController {
var orderId:Int = 0 var orderId:Int = 0
var searchMajorName:String? var searchMajorName:String?
var selectBlock:((String?)->Void)? var selectBlock:((String?, String?)->Void)?
var majors:[YHMajorInfo] = [] var majors:[YHMajorInfo] = []
let educationRequest:YHEducationRequestViewModel = YHEducationRequestViewModel() let educationRequest:YHEducationRequestViewModel = YHEducationRequestViewModel()
lazy var searchBar: YHCollegeSearchBar = { lazy var searchBar: YHCollegeSearchBar = {
let bar = YHCollegeSearchBar.createBar() let bar = YHCollegeSearchBar.createBar()
bar.placeHolder = "请输入专业" bar.placeHolder = "请输入专业"
bar.textField.clearButtonMode = .whileEditing
return bar return bar
}() }()
...@@ -76,7 +77,7 @@ class YHMajorSearchViewController: YHBaseViewController { ...@@ -76,7 +77,7 @@ class YHMajorSearchViewController: YHBaseViewController {
[weak self] in [weak self] in
guard let self = self else { return } guard let self = self else { return }
if let selectBlock = selectBlock { if let selectBlock = selectBlock {
selectBlock(searchBar.textField.text) selectBlock(searchBar.textField.text, searchBar.textField.text)
self.navigationController?.popViewController(animated: true) self.navigationController?.popViewController(animated: true)
} }
} }
...@@ -151,7 +152,7 @@ extension YHMajorSearchViewController: UITableViewDelegate, UITableViewDataSourc ...@@ -151,7 +152,7 @@ extension YHMajorSearchViewController: UITableViewDelegate, UITableViewDataSourc
if let selectBlock = selectBlock { if let selectBlock = selectBlock {
if indexPath.row < majors.count { if indexPath.row < majors.count {
let major:YHMajorInfo = majors[indexPath.row] let major:YHMajorInfo = majors[indexPath.row]
selectBlock(major.getMajorName()) selectBlock(major.getMajorName(), major.ch_name)
self.navigationController?.popViewController(animated: true) self.navigationController?.popViewController(animated: true)
} }
} }
......
...@@ -110,6 +110,7 @@ class YHEducationDetailInfo: SmartCodable { ...@@ -110,6 +110,7 @@ class YHEducationDetailInfo: SmartCodable {
var graduateTime: String = "" var graduateTime: String = ""
var degree: String = "" var degree: String = ""
var major: String = "" var major: String = ""
var tempMajor : String = "" //保存专业中文名称
var degreeType: String = "" var degreeType: String = ""
var schoolAddress: YHCollegeAddress = YHCollegeAddress() var schoolAddress: YHCollegeAddress = YHCollegeAddress()
var isAboardSchool: Bool = false var isAboardSchool: Bool = false
...@@ -142,6 +143,7 @@ class YHEducationDetailInfo: SmartCodable { ...@@ -142,6 +143,7 @@ class YHEducationDetailInfo: SmartCodable {
case graduateTime = "graduate_time" case graduateTime = "graduate_time"
case degree = "degree" case degree = "degree"
case major = "major" case major = "major"
case tempMajor = "temp_major"
case degreeType = "degree_type" case degreeType = "degree_type"
case schoolAddress = "school_address" case schoolAddress = "school_address"
case isAboardSchool = "is_aboard_school" case isAboardSchool = "is_aboard_school"
......
...@@ -329,6 +329,10 @@ extension YHMessageDetailListVC: UITableViewDelegate, UITableViewDataSource { ...@@ -329,6 +329,10 @@ extension YHMessageDetailListVC: UITableViewDelegate, UITableViewDataSource {
} }
} }
if self.type == YHMessageType.business.rawValue {
return
}
printLog("redirectPage:\(item.redirectPage)") printLog("redirectPage:\(item.redirectPage)")
if item.redirectPage == YHRedirectPage.serviceTab.rawValue { // 服务tab页 if item.redirectPage == YHRedirectPage.serviceTab.rawValue { // 服务tab页
......
...@@ -247,6 +247,10 @@ class YHMessageListVC: YHBaseViewController { ...@@ -247,6 +247,10 @@ class YHMessageListVC: YHBaseViewController {
hasUnreadMsg = true hasUnreadMsg = true
} }
if !self.viewModel.msgList.business.lastMessage.isEmpty {
hasUnreadMsg = true
}
if hasUnreadMsg { if hasUnreadMsg {
if !isHidden { if !isHidden {
msgArr.append(self.viewModel.msgList.information) msgArr.append(self.viewModel.msgList.information)
...@@ -259,6 +263,7 @@ class YHMessageListVC: YHBaseViewController { ...@@ -259,6 +263,7 @@ class YHMessageListVC: YHBaseViewController {
msgArr.append(self.viewModel.msgList.approval) msgArr.append(self.viewModel.msgList.approval)
msgArr.append(self.viewModel.msgList.goToHK) msgArr.append(self.viewModel.msgList.goToHK)
msgArr.append(self.viewModel.msgList.renewal) msgArr.append(self.viewModel.msgList.renewal)
msgArr.append(self.viewModel.msgList.business)
} }
} }
......
...@@ -69,6 +69,10 @@ class YHMessageInfoModel: SmartCodable { ...@@ -69,6 +69,10 @@ class YHMessageInfoModel: SmartCodable {
} else if type == YHMessageType.renewal.rawValue { } else if type == YHMessageType.renewal.rawValue {
return "身份续签" return "身份续签"
} else if type == YHMessageType.business.rawValue {
return "银河商务"
} }
return "" return ""
} }
...@@ -83,6 +87,7 @@ class YHMsgListModel: SmartCodable { ...@@ -83,6 +87,7 @@ class YHMsgListModel: SmartCodable {
var approval: YHMessageInfoModel = YHMessageInfoModel() var approval: YHMessageInfoModel = YHMessageInfoModel()
var goToHK: YHMessageInfoModel = YHMessageInfoModel() var goToHK: YHMessageInfoModel = YHMessageInfoModel()
var renewal: YHMessageInfoModel = YHMessageInfoModel() var renewal: YHMessageInfoModel = YHMessageInfoModel()
var business: YHMessageInfoModel = YHMessageInfoModel()
required init() { required init() {
self.information.type = YHMessageType.infoFill.rawValue self.information.type = YHMessageType.infoFill.rawValue
...@@ -93,10 +98,11 @@ class YHMsgListModel: SmartCodable { ...@@ -93,10 +98,11 @@ class YHMsgListModel: SmartCodable {
self.approval.type = YHMessageType.identityApproved.rawValue self.approval.type = YHMessageType.identityApproved.rawValue
self.goToHK.type = YHMessageType.goToHK.rawValue self.goToHK.type = YHMessageType.goToHK.rawValue
self.renewal.type = YHMessageType.renewal.rawValue self.renewal.type = YHMessageType.renewal.rawValue
self.business.type = YHMessageType.business.rawValue
} }
enum CodingKeys: String, CodingKey { enum CodingKeys: String, CodingKey {
case information, certificate, draft, signature, approval, renewal case information, certificate, draft, signature, approval, renewal, business
case dataSubmission = "data_submission" case dataSubmission = "data_submission"
case goToHK = "go_to_hk" case goToHK = "go_to_hk"
} }
......
...@@ -38,6 +38,7 @@ class YHDetailMessageCell: UITableViewCell { ...@@ -38,6 +38,7 @@ class YHDetailMessageCell: UITableViewCell {
detailLabel.text = model.content detailLabel.text = model.content
unreadPointView.isHidden = model.isRead unreadPointView.isHidden = model.isRead
timeLabel.text = formatTimestamp(Double(model.time)) timeLabel.text = formatTimestamp(Double(model.time))
lineView.isHidden = false
if type == YHMessageType.infoFill.rawValue { if type == YHMessageType.infoFill.rawValue {
bottomBtn.setTitle("去填写".local, for: .normal) bottomBtn.setTitle("去填写".local, for: .normal)
...@@ -65,7 +66,18 @@ class YHDetailMessageCell: UITableViewCell { ...@@ -65,7 +66,18 @@ class YHDetailMessageCell: UITableViewCell {
} else if type == YHMessageType.renewal.rawValue { } else if type == YHMessageType.renewal.rawValue {
bottomBtn.setTitle("去查看".local, for: .normal) bottomBtn.setTitle("去查看".local, for: .normal)
} else if type == YHMessageType.business.rawValue {
bottomBtn.setTitle("".local, for: .normal)
lineView.isHidden = true
}
var bottomBtnHeight = (type == YHMessageType.business.rawValue) ? 0.0 : 52.0
bottomBtn.snp.updateConstraints { make in
make.height.equalTo(bottomBtnHeight)
} }
self.setNeedsLayout()
self.layoutIfNeeded()
} }
...@@ -191,17 +203,4 @@ class YHDetailMessageCell: UITableViewCell { ...@@ -191,17 +203,4 @@ class YHDetailMessageCell: UITableViewCell {
@objc func didBottomBtnClicked() { @objc func didBottomBtnClicked() {
} }
func updateModel() {
let text1: ASAttributedString = .init("林先生,您好,您尚有20%内容未填写,请到", .font(UIFont.PFSC_R(ofSize: 14)), .foreground(UIColor.mainTextColor70))
let text2: ASAttributedString = .init("服务中心-资料上传", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.brandMainColor), .action {
})
let text3: ASAttributedString = .init("去填写,请您尽快完成~", .font(UIFont.PFSC_R(ofSize: 14)),.foreground(UIColor.mainTextColor70))
detailLabel.attributed.text = text1 + text2 + text3
}
} }
...@@ -60,6 +60,9 @@ class YHMessageSessionCell: UITableViewCell { ...@@ -60,6 +60,9 @@ class YHMessageSessionCell: UITableViewCell {
} else if model.type == YHMessageType.renewal.rawValue { } else if model.type == YHMessageType.renewal.rawValue {
self.iconImgView.image = UIImage(named: "msg_icon_renewal") self.iconImgView.image = UIImage(named: "msg_icon_renewal")
} else if model.type == YHMessageType.business.rawValue {
self.iconImgView.image = UIImage(named: "msg_icon_business")
} }
self.badgeLabel.isHidden = model.unreadCount <= 0 self.badgeLabel.isHidden = model.unreadCount <= 0
......
...@@ -39,7 +39,7 @@ class YHMsgViewModel: NSObject { ...@@ -39,7 +39,7 @@ class YHMsgViewModel: NSObject {
self.msgList.approval.type = YHMessageType.identityApproved.rawValue self.msgList.approval.type = YHMessageType.identityApproved.rawValue
self.msgList.goToHK.type = YHMessageType.goToHK.rawValue self.msgList.goToHK.type = YHMessageType.goToHK.rawValue
self.msgList.renewal.type = YHMessageType.renewal.rawValue self.msgList.renewal.type = YHMessageType.renewal.rawValue
self.msgList.business.type = YHMessageType.business.rawValue
callBackBlock(true, nil) callBackBlock(true, nil)
} else { } else {
let error : YHErrorModel = YHErrorModel(errorCode:Int32(json.code), errorMsg: json.msg) let error : YHErrorModel = YHErrorModel(errorCode:Int32(json.code), errorMsg: json.msg)
......
...@@ -293,6 +293,10 @@ class YHMemberCenterViewController: YHBaseViewController { ...@@ -293,6 +293,10 @@ class YHMemberCenterViewController: YHBaseViewController {
} }
@objc private func didHistoryButtonClicked() { @objc private func didHistoryButtonClicked() {
Self.goExchangeHistory()
}
static func goExchangeHistory() {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/vip/order" var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/vip/order"
if YHLoginManager.shared.isLogin() { if YHLoginManager.shared.isLogin() {
let token = YHLoginManager.shared.h5Token let token = YHLoginManager.shared.h5Token
...@@ -313,7 +317,7 @@ class YHMemberCenterViewController: YHBaseViewController { ...@@ -313,7 +317,7 @@ class YHMemberCenterViewController: YHBaseViewController {
let vc = YHH5WebViewVC() let vc = YHH5WebViewVC()
vc.url = tUrl vc.url = tUrl
vc.isFullScreenFlag = false vc.isFullScreenFlag = false
navigationController?.pushViewController(vc) UIViewController.current?.navigationController?.pushViewController(vc)
} }
@objc private func didShareButtonClicked() { @objc private func didShareButtonClicked() {
...@@ -396,7 +400,7 @@ class YHMemberCenterViewController: YHBaseViewController { ...@@ -396,7 +400,7 @@ class YHMemberCenterViewController: YHBaseViewController {
vc.title = "积分中心" vc.title = "积分中心"
vc.navTitle = "积分中心" vc.navTitle = "积分中心"
vc.url = url vc.url = url
vc.isFullScreenFlag = false vc.isFullScreenFlag = true
vc.isSupportWebviewInterBackFlag = true vc.isSupportWebviewInterBackFlag = true
navigationController?.pushViewController(vc) navigationController?.pushViewController(vc)
} }
......
...@@ -255,6 +255,11 @@ class YHMyNewViewController: YHBaseViewController { ...@@ -255,6 +255,11 @@ class YHMyNewViewController: YHBaseViewController {
serviceGroupArr.append(item) serviceGroupArr.append(item)
} }
do {
let item = PersonalModuleItem(icon: "mine_item_exchange_history", title: "兑换历史".local, type:.exchangeHistory)
serviceGroupArr.append(item)
}
// 其他功能 // 其他功能
do { do {
let item = PersonalModuleItem(icon: "mine_item_msg", title: "我的消息".local, type:.myMessage) let item = PersonalModuleItem(icon: "mine_item_msg", title: "我的消息".local, type:.myMessage)
...@@ -648,7 +653,7 @@ extension YHMyNewViewController { ...@@ -648,7 +653,7 @@ extension YHMyNewViewController {
vc.title = "积分中心" vc.title = "积分中心"
vc.navTitle = "积分中心" vc.navTitle = "积分中心"
vc.url = url vc.url = url
vc.isFullScreenFlag = false vc.isFullScreenFlag = true
vc.isSupportWebviewInterBackFlag = true vc.isSupportWebviewInterBackFlag = true
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} }
...@@ -669,6 +674,8 @@ extension YHMyNewViewController { ...@@ -669,6 +674,8 @@ extension YHMyNewViewController {
let vc = YHActivityListViewController() let vc = YHActivityListViewController()
vc.type = 1 vc.type = 1
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
case .exchangeHistory:
YHMemberCenterViewController.goExchangeHistory()
case .aboutUs: case .aboutUs:
let vc = YHAboutGalaxyViewController() let vc = YHAboutGalaxyViewController()
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
......
...@@ -23,6 +23,7 @@ enum YHPersonalModuleItemType: Int { ...@@ -23,6 +23,7 @@ enum YHPersonalModuleItemType: Int {
case myPoster case myPoster
case myTestCode case myTestCode
case appointGalaxyBay case appointGalaxyBay
case exchangeHistory
case notifySettings case notifySettings
case permissionSettings case permissionSettings
...@@ -440,7 +441,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource { ...@@ -440,7 +441,7 @@ extension YHMyViewController : UITableViewDelegate, UITableViewDataSource {
vc.title = "积分中心" vc.title = "积分中心"
vc.navTitle = "积分中心" vc.navTitle = "积分中心"
vc.url = url vc.url = url
vc.isFullScreenFlag = false vc.isFullScreenFlag = true
vc.isSupportWebviewInterBackFlag = true vc.isSupportWebviewInterBackFlag = true
self.navigationController?.pushViewController(vc) self.navigationController?.pushViewController(vc)
} }
......
...@@ -18,7 +18,7 @@ enum YHMembershipLevel: Int, CaseIterable { ...@@ -18,7 +18,7 @@ enum YHMembershipLevel: Int, CaseIterable {
var description: String { var description: String {
switch self { switch self {
case .normal: case .normal:
return "大众会员" return "普通会员"
case .gold: case .gold:
return "黄金会员" return "黄金会员"
case .platinum: case .platinum:
......
...@@ -60,7 +60,7 @@ class YHMyFunctionGroupItemCell: UICollectionViewCell { ...@@ -60,7 +60,7 @@ class YHMyFunctionGroupItemCell: UICollectionViewCell {
iconImgView.snp.makeConstraints { make in iconImgView.snp.makeConstraints { make in
make.top.equalTo(20) make.top.equalTo(0)
make.width.height.equalTo(24) make.width.height.equalTo(24)
make.centerX.equalToSuperview() make.centerX.equalToSuperview()
} }
......
...@@ -22,7 +22,7 @@ class YHMySectionGroupCell: UITableViewCell { ...@@ -22,7 +22,7 @@ class YHMySectionGroupCell: UITableViewCell {
var groupArr: [PersonalModuleItem] = [] { var groupArr: [PersonalModuleItem] = [] {
didSet { didSet {
let countPerRow = 4 let countPerRow = 4
let rowHeight = 90.0 let rowHeight = 70.0
var listHeight = rowHeight var listHeight = rowHeight
if groupArr.count%countPerRow == 0 { if groupArr.count%countPerRow == 0 {
listHeight = rowHeight * Double(groupArr.count/countPerRow) listHeight = rowHeight * Double(groupArr.count/countPerRow)
...@@ -101,7 +101,7 @@ class YHMySectionGroupCell: UITableViewCell { ...@@ -101,7 +101,7 @@ class YHMySectionGroupCell: UITableViewCell {
make.height.equalTo(20) make.height.equalTo(20)
} }
collectionView.snp.makeConstraints { make in collectionView.snp.makeConstraints { make in
make.top.equalTo(titleLabel.snp.bottom).offset(0) make.top.equalTo(titleLabel.snp.bottom).offset(20)
make.bottom.left.right.equalToSuperview() make.bottom.left.right.equalToSuperview()
make.height.equalTo(90) make.height.equalTo(90)
} }
...@@ -121,7 +121,7 @@ extension YHMySectionGroupCell: UICollectionViewDelegate, UICollectionViewDataSo ...@@ -121,7 +121,7 @@ extension YHMySectionGroupCell: UICollectionViewDelegate, UICollectionViewDataSo
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
let width = floor((KScreenWidth-20.0*2.0)/4.0) let width = floor((KScreenWidth-20.0*2.0)/4.0)
return CGSize(width: width, height: 90.0) return CGSize(width: width, height: 70.0)
} }
// 返回自定义单元格 // 返回自定义单元格
......
...@@ -116,7 +116,7 @@ class YHUserVipInfoView: UIView { ...@@ -116,7 +116,7 @@ class YHUserVipInfoView: UIView {
lazy var titleLabel: UILabel = { lazy var titleLabel: UILabel = {
let label = UILabel() let label = UILabel()
label.text = "大众会员" label.text = "普通会员"
label.textColor = .white label.textColor = .white
label.textAlignment = .left label.textAlignment = .left
label.font = UIFont.PFSC_B(ofSize: 17) label.font = UIFont.PFSC_B(ofSize: 17)
...@@ -275,7 +275,7 @@ class YHUserVipInfoView: UIView { ...@@ -275,7 +275,7 @@ class YHUserVipInfoView: UIView {
} else { } else {
self.bgImgView.image = UIImage(named: "mine_member_bg_vip_0") self.bgImgView.image = UIImage(named: "mine_member_bg_vip_0")
self.titleLabel.text = "大众会员" self.titleLabel.text = "普通会员"
self.titleLabel.textColor = .white self.titleLabel.textColor = .white
self.rightBtn.backgroundColor = UIColor(hex: 0x323849) self.rightBtn.backgroundColor = UIColor(hex: 0x323849)
self.rightBtn.setTitleColor(.white, for: .normal) self.rightBtn.setTitleColor(.white, for: .normal)
......
...@@ -44,7 +44,7 @@ class YHVipLevelRightHeaderView: UIView, UIScrollViewDelegate { ...@@ -44,7 +44,7 @@ class YHVipLevelRightHeaderView: UIView, UIScrollViewDelegate {
} }
let baseTag = 9527 let baseTag = 9527
var arr:[YHVipLevelRightsModel] = [ var arr:[YHVipLevelRightsModel] = [
YHVipLevelRightsModel(type: .none, title: "大众会员", num: 5, isLock: false), YHVipLevelRightsModel(type: .none, title: "普通会员", num: 5, isLock: false),
YHVipLevelRightsModel(type: .gold, title: "黄金会员", num: 7, isLock: true), YHVipLevelRightsModel(type: .gold, title: "黄金会员", num: 7, isLock: true),
YHVipLevelRightsModel(type: .platinum, title: "铂金会员", num: 8, isLock: true), YHVipLevelRightsModel(type: .platinum, title: "铂金会员", num: 8, isLock: true),
YHVipLevelRightsModel(type: .diamond, title: "钻石会员", num: 13, isLock: true), YHVipLevelRightsModel(type: .diamond, title: "钻石会员", num: 13, isLock: true),
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "icon_兑换记录@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "icon_兑换记录@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
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 to comment