Commit 996dab94 authored by Steven杜宇's avatar Steven杜宇

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

parents d9fd6fc1 34c2ed36
...@@ -17,7 +17,7 @@ platform :ios do ...@@ -17,7 +17,7 @@ platform :ios do
youhua_branch = "youhua-dev" youhua_branch = "youhua-dev"
#打包正使用的分支 #打包正使用的分支
myPack_branch = "main" myPack_branch = "630-dev"
# 打adhoc包 执行命令 fastlane galaxyTest # 打adhoc包 执行命令 fastlane galaxyTest
lane :galaxyTest do lane :galaxyTest do
...@@ -27,9 +27,9 @@ platform :ios do ...@@ -27,9 +27,9 @@ platform :ios do
# 拉取最新代码 # 拉取最新代码
sh "git pull origin #{myPack_branch}" sh "git pull origin #{myPack_branch}"
# 显示git当前分支最新submit id # 显示git当前分支最新submit id
sh "git rev-parse HEAD" # sh "git rev-parse HEAD"
# 更新pod第三方库 # 更新pod第三方库
cocoapods(use_bundle_exec: true) # cocoapods(use_bundle_exec: true)
gym( gym(
workspace: 'galaxy.xcworkspace', workspace: 'galaxy.xcworkspace',
......
...@@ -3736,7 +3736,7 @@ ...@@ -3736,7 +3736,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 = 2; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -3940,7 +3940,7 @@ ...@@ -3940,7 +3940,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 = 2; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
...@@ -3986,7 +3986,7 @@ ...@@ -3986,7 +3986,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 = 2; CURRENT_PROJECT_VERSION = 4;
DEVELOPMENT_TEAM = RXHYW88XR7; DEVELOPMENT_TEAM = RXHYW88XR7;
ENABLE_USER_SCRIPT_SANDBOXING = NO; ENABLE_USER_SCRIPT_SANDBOXING = NO;
FRAMEWORK_SEARCH_PATHS = ( FRAMEWORK_SEARCH_PATHS = (
......
...@@ -111,6 +111,8 @@ extension YHActivityDetailViewController { ...@@ -111,6 +111,8 @@ extension YHActivityDetailViewController {
gk_navigationBar.isHidden = false gk_navigationBar.isHidden = false
gk_navigationBar.backgroundColor = .clear gk_navigationBar.backgroundColor = .clear
gk_backImage = UIImage(named: "activity_nav_back")
//1. //1.
view.addSubview(tableView) view.addSubview(tableView)
view.addSubview(bottomView) view.addSubview(bottomView)
......
...@@ -209,7 +209,7 @@ extension YHActivityListViewController { ...@@ -209,7 +209,7 @@ extension YHActivityListViewController {
self.tableView.reloadData() self.tableView.reloadData()
self.emptyDataTipsView.isHidden = self.viewModel.arrActivityListData.count > 0 ? true : false self.emptyDataTipsView.isHidden = self.viewModel.arrActivityListData.count > 0 ? true : false
DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute: { // DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute: {
self.tableView.es.stopPullToRefresh() self.tableView.es.stopPullToRefresh()
self.emptyDataTipsView.isHidden = self.viewModel.arrActivityListData.count > 0 ? true : false self.emptyDataTipsView.isHidden = self.viewModel.arrActivityListData.count > 0 ? true : false
...@@ -221,7 +221,7 @@ extension YHActivityListViewController { ...@@ -221,7 +221,7 @@ extension YHActivityListViewController {
self.tableView.footer?.alpha = 0 self.tableView.footer?.alpha = 0
} }
} }
}) // })
} }
} }
} }
......
...@@ -21,7 +21,7 @@ class YHActivityModel: YHBaseModel { ...@@ -21,7 +21,7 @@ class YHActivityModel: YHBaseModel {
private var beginTimeForUI : String = "" private var beginTimeForUI : String = ""
func getDateString() -> String { func getDateString(format : String = "MM-dd") -> String {
if beginTimeForUI.isEmpty { if beginTimeForUI.isEmpty {
if let tttt = beginTime.double() { if let tttt = beginTime.double() {
...@@ -33,7 +33,7 @@ class YHActivityModel: YHBaseModel { ...@@ -33,7 +33,7 @@ class YHActivityModel: YHBaseModel {
let dateFormatter = DateFormatter() let dateFormatter = DateFormatter()
// 设置日期格式,这里设置为"年-月-日 时:分:秒" // 设置日期格式,这里设置为"年-月-日 时:分:秒"
dateFormatter.dateFormat = "yyyy-MM-dd" // HH:mm:ss dateFormatter.dateFormat = format // HH:mm:ss
// 使用DateFormatter将Date对象转换为字符串 // 使用DateFormatter将Date对象转换为字符串
let dateString = dateFormatter.string(from: date) let dateString = dateFormatter.string(from: date)
......
...@@ -53,7 +53,7 @@ class YHActivityTitleItemView: UIView { ...@@ -53,7 +53,7 @@ class YHActivityTitleItemView: UIView {
nameLabel.textColor = UIColor.mainTextColor nameLabel.textColor = UIColor.mainTextColor
nameLabel.textAlignment = .left nameLabel.textAlignment = .left
nameLabel.font = UIFont.PFSC_R(ofSize:14) nameLabel.font = UIFont.PFSC_R(ofSize:14)
nameLabel.text = "2024-08-06 周五 09:30" nameLabel.text = "08-06 周五 09:30"
return nameLabel return nameLabel
}() }()
...@@ -107,7 +107,7 @@ extension YHActivityTitleItemView { ...@@ -107,7 +107,7 @@ extension YHActivityTitleItemView {
""" """
} }
timeLable.text = model.getDateString()//String(model.beginTime) timeLable.text = model.getDateString(format: "yyyy-MM-dd")
addressLable.text = model.place addressLable.text = model.place
navAddressLable.text = model.guidance navAddressLable.text = model.guidance
} }
......
...@@ -292,7 +292,7 @@ private extension YHHomePageViewController { ...@@ -292,7 +292,7 @@ private extension YHHomePageViewController {
UserDefaults.standard.synchronize() UserDefaults.standard.synchronize()
} }
DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute: { // DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute: {
self.homeCollectView.es.stopPullToRefresh() self.homeCollectView.es.stopPullToRefresh()
...@@ -305,8 +305,13 @@ private extension YHHomePageViewController { ...@@ -305,8 +305,13 @@ private extension YHHomePageViewController {
self.homeCollectView.reloadData() self.homeCollectView.reloadData()
CATransaction.commit() CATransaction.commit()
// self.requestOrder()
}) DispatchQueue.main.asyncAfter(wallDeadline: .now() + 0.25, execute: {
self.requestOrder()
})
// })
} }
} }
...@@ -413,8 +418,18 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa ...@@ -413,8 +418,18 @@ extension YHHomePageViewController: UICollectionViewDelegate, UICollectionViewDa
extension YHHomePageViewController : CollectionViewWaterfallLayoutDelegate { extension YHHomePageViewController : CollectionViewWaterfallLayoutDelegate {
func collectionView(_ collectionView: UICollectionView, layout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize { func collectionView(_ collectionView: UICollectionView, layout: UICollectionViewLayout, sizeForItemAtIndexPath indexPath: NSIndexPath) -> CGSize {
guard let model = self.viewModel.arrHomeNewsData?[indexPath.row] else { return CGSize.zero }
return CGSize(width: model.img_width_cell, height: model.img_height_cell) let count = self.viewModel.arrHomeNewsData?.count ?? 0
if indexPath.row < count {
guard let model = self.viewModel.arrHomeNewsData?[indexPath.row] else { return CGSize.zero }
return CGSize(width: model.img_width_cell, height: model.img_height_cell)
}
let width = (KScreenWidth - 47) / 2
return CGSize(width: width, height: 140.0)
} }
} }
......
...@@ -270,9 +270,9 @@ class YHSearchInfomationVC: YHBaseViewController { ...@@ -270,9 +270,9 @@ class YHSearchInfomationVC: YHBaseViewController {
emptyDataTipsView.isHidden = (items.count > 0) emptyDataTipsView.isHidden = (items.count > 0)
searchHistoryView.isHidden = true searchHistoryView.isHidden = true
self.tableView.reloadData() self.tableView.reloadData()
DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute: { // DispatchQueue.main.asyncAfter(deadline: .now()+0.5, execute: {
self.tableView.es.stopPullToRefresh() self.tableView.es.stopPullToRefresh()
}) // })
// 只有一页的时候不展示没有更多数据了 // 只有一页的时候不展示没有更多数据了
if self.viewModel.totalCount < self.viewModel.searchPageSize { // 不足一页 if self.viewModel.totalCount < self.viewModel.searchPageSize { // 不足一页
tableView.footer?.isHidden = true tableView.footer?.isHidden = true
......
...@@ -89,7 +89,7 @@ private extension YHHomeBannerCollectionViewCell { ...@@ -89,7 +89,7 @@ private extension YHHomeBannerCollectionViewCell {
visualEffectView.isHidden = false visualEffectView.isHidden = false
if let url = URL(string: model.img_url) { if let url = URL(string: model.img_url) {
if let avifUrl = URL(string: model.img_url) { if let avifUrl = URL(string: model.img_url_compress) {
bannerImagV.kf.setImage(with: avifUrl, placeholder: UIImage(named: "global_default_image")) { result in bannerImagV.kf.setImage(with: avifUrl, placeholder: UIImage(named: "global_default_image")) { result in
switch result { switch result {
case .success: break case .success: break
......
...@@ -183,7 +183,7 @@ extension YHHomeCollectionViewCell { ...@@ -183,7 +183,7 @@ extension YHHomeCollectionViewCell {
make.height.equalTo(listModel.img_height_use) make.height.equalTo(listModel.img_height_use)
} }
if let url = URL(string: listModel.img_url) { if let url = URL(string: listModel.img_url) {
if let avifUrl = URL(string: listModel.img_url) { if let avifUrl = URL(string: listModel.img_url_compress) {
titleImageView.kf.setImage(with: avifUrl, placeholder: UIImage(named: "global_default_image")) { result in titleImageView.kf.setImage(with: avifUrl, placeholder: UIImage(named: "global_default_image")) { result in
switch result { switch result {
case .success: break case .success: break
......
...@@ -227,7 +227,7 @@ private extension YHServiceBannerCollectionViewCell { ...@@ -227,7 +227,7 @@ private extension YHServiceBannerCollectionViewCell {
} else { } else {
bannerTitleLable.isHidden = false bannerTitleLable.isHidden = false
if let url = URL(string: model.img_url) { if let url = URL(string: model.img_url) {
if let avifUrl = URL(string: model.img_url) { if let avifUrl = URL(string: model.img_url_compress) {
bannerImagV.kf.setImage(with: avifUrl, placeholder: UIImage(named: "global_default_image")) { result in bannerImagV.kf.setImage(with: avifUrl, placeholder: UIImage(named: "global_default_image")) { result in
switch result { switch result {
case .success: break case .success: break
......
...@@ -30,14 +30,15 @@ class YHUserInfoSettingViewController: YHBaseViewController { ...@@ -30,14 +30,15 @@ class YHUserInfoSettingViewController: YHBaseViewController {
userViewModel.requestUserInfo {[weak self] success, error in userViewModel.requestUserInfo {[weak self] success, error in
guard let self = self else { return } guard let self = self else { return }
let url = URL(string: self.userViewModel.model.avatar) let url = URL(string: self.userViewModel.model.avatar)
self.headUrl = self.userViewModel.model.avatar
self.photoImageView.kf.setImage(with: url) self.photoImageView.kf.setImage(with: url)
self.nameTextField.text = self.userViewModel.model.username self.nameTextField.text = self.userViewModel.model.username
if self.nameTextField.text?.count != 0 { if self.nameTextField.text?.count != 0 {
self.nextButton.isEnabled = true self.nextButton.isEnabled = true
self.nextButton.backgroundColor = UIColor.brandMainColor self.nextButton.backgroundColor = UIColor.brandMainColor
} else { } else {
self.nextButton.isEnabled = false self.nextButton.isEnabled = false
self.nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4) self.nextButton.backgroundColor = UIColor.brandMainColor.withAlphaComponent(0.4)
} }
} }
} }
......
...@@ -16,15 +16,15 @@ class YHBaseUrlManager { ...@@ -16,15 +16,15 @@ class YHBaseUrlManager {
//正式环境 //正式环境
static let baseUrlRelease : String = "https://app-go-api.galaxy-immi.com" static let baseUrlRelease : String = "https://app-go-api.galaxy-immi.com"
// UAT灰度环境 // UAT灰度环境
static let baseGrayUrlTest: String = "https://uat-go-api.galaxy-immi.com" static let baseUatUrlTest: String = "https://uat-go-api.galaxy-immi.com"
func curURL() -> String { func curURL() -> String {
#if DEBUG #if DEBUG
return YHBaseUrlManager.baseUrlTest + "/" return YHBaseUrlManager.baseUrlTest + "/"
#elseif TESTENV #elseif TESTENV
return YHBaseUrlManager.baseGrayUrlTest + "/" // return YHBaseUrlManager.baseUatUrlTest + "/"
// return YHBaseUrlManager.baseUrlTest + "/" return YHBaseUrlManager.baseUrlTest + "/"
#else #else
return YHBaseUrlManager.baseUrlRelease + "/" return YHBaseUrlManager.baseUrlRelease + "/"
#endif #endif
......
{
"images" : [
{
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "Group 2033194370@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "Group 2033194370@3x.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "set_example_school@2x.png", "filename" : "Mask group@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "set_example_school@3x.png", "filename" : "Mask group@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
...@@ -5,12 +5,12 @@ ...@@ -5,12 +5,12 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "set_example_work@2x.png", "filename" : "Mask group@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"filename" : "set_example_work@3x.png", "filename" : "Mask group@3x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "3x" "scale" : "3x"
} }
......
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