Commit 87e65467 by pierce

fixed bugs

parent 40fe6817
......@@ -28,8 +28,8 @@ public let GDlog = XCGLogger(identifier: "xiuse.log.identifier", includeDefaultD
public struct GDAppConfig {
/// 版本
public static let gd_versionCode = "43005"
public static let gd_version = "43.0.0.5"
public static let gd_versionCode = "43006"
public static let gd_version = "43.0.0.6"
public static var realVersion: String { Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? ""}
/// App ID
......
......@@ -5,7 +5,7 @@
"scale" : "1x"
},
{
"filename" : "说点_半屏.png",
"filename" : "发言@2x.png",
"idiom" : "universal",
"scale" : "2x"
},
......
......@@ -191,8 +191,8 @@ class LoginViewController: BaseViewController {
}
}
override func viewWillDisappear(_ animated: Bool) {
super.viewWillDisappear(animated)
override func viewDidDisappear(_ animated: Bool) {
super.viewDidDisappear(animated)
if self.player.player != nil {
self.player.player?.pause()
......@@ -304,6 +304,7 @@ class LoginViewController: BaseViewController {
if let videoUrl = GDLoginBundle.bundle()?.url(forResource: "login_page_preview", withExtension: "mp4") {
player.player = AVPlayer(url: videoUrl)
player.player?.isMuted = true
player.frame = GDScreen.frame
player.videoGravity = .resizeAspectFill
player.repeatCount = 100
......@@ -673,7 +674,7 @@ class LoginViewController: BaseViewController {
}
GDStatistics.track(.socialLogin, params: [.type: plat.platName])
FTIndicator.showProgress(withMessage: "")
GDRouter.UserRouter?.login(on: plat, currentVC: nil).subscribe(onSuccess: {[weak self] (_) in
FTIndicator.dismissProgress()
self?.isSocialLogin = false
......@@ -865,10 +866,6 @@ extension LoginViewController {
self.navigationController?.pushViewController(registerVC, animated: true)
default:
FTIndicator.showToastMessage(error.msg)
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
let _ = GDAlertView.showAlertView(viewController: UIViewController.topViewController(), title: "测试弹窗", message: error.localizedDescription)
}
}
}).disposed(by: self.disposeBag)
......
......@@ -18,15 +18,15 @@ class GDDailySignResultCell: BaseCollectionViewCell {
override func makeUI() {
super.makeUI()
bgView.backgroundColor = .gd_main.withAlphaComponent(0.6)
bgView.layer.cornerRadius = 5
bgView.backgroundColor = .hexColor("FFE2E0")
bgView.layer.cornerRadius = 10
bgView.layer.masksToBounds = true
self.contentView.addSubview(bgView)
iconImageView.contentMode = .scaleAspectFit
bgView.addSubview(iconImageView)
numberLabel.font = .gd_YZNumber(10)
numberLabel.font = .gd_signFont(11)
numberLabel.textColor = .hexColor("EF3874")
bgView.addSubview(numberLabel)
......@@ -58,7 +58,7 @@ class GDDailySignResultCell: BaseCollectionViewCell {
iconImageView.image = nil
iconImageView.setWebImage(model.icon)
numberLabel.text = model.num
numberLabel.text = "x\(String(describing: model.num))"
}
......
......@@ -18,8 +18,8 @@ class GDDailySingAwardCell: BaseCollectionViewCell {
override func makeUI() {
super.makeUI()
bgView.backgroundColor = .gd_main.withAlphaComponent(0.6)
bgView.layer.cornerRadius = 5
bgView.backgroundColor = .hexColor("#FFE2E0")
bgView.layer.cornerRadius = 10
bgView.layer.masksToBounds = true
self.contentView.addSubview(bgView)
......@@ -100,10 +100,10 @@ class GDDailySingAwardCell: BaseCollectionViewCell {
awardBgView.addSubview(iconImageView)
let numLabel = GDGradientLabel(frame: .zero)
numLabel.font = .gd_pingfangBold(10)
numLabel.font = .gd_signFont(10)
numLabel.textColor = .hexColor("EF3874")
numLabel.strokeColor = .white
numLabel.text = content.num
numLabel.text = "x\(String(describing: content.num))"
numLabel.sizeToFit()
iconImageView.addSubview(numLabel)
......
......@@ -159,7 +159,7 @@ class RoomListViewController: BaseViewController {
scrollView.showsVerticalScrollIndicator = false
scrollView.showsHorizontalScrollIndicator = false
scrollView.alwaysBounceVertical = false
scrollView.frame = CGRect(x: 0, y: segmentView.maxY + 8, width: self.view.width, height: self.view.height - segmentView.maxY - (tabBarHeight) - 8)
scrollView.frame = CGRect(x: 0, y: segmentView.maxY + 14, width: self.view.width, height: self.view.height - segmentView.maxY - (tabBarHeight) - 8)
self.view.addSubview(scrollView)
// 游客模式下不能滚动
......@@ -387,11 +387,11 @@ class RoomListViewController: BaseViewController {
// 创建对应视图
for (index, item) in segmentTypes.enumerated() {
if let roomlistView = item.type.createView(CGRect(x: CGFloat(index) * self.scrollView.width, y: 0, width: self.scrollView.width, height: self.scrollView.height)) {
roomlistView.scrollHander = {[weak self] offsetY in
if offsetY <= 0 {
self?.bgImageView.height = 58 + GDScreen.SafeArea.top + (-offsetY)
}
}
// roomlistView.scrollHander = {[weak self] offsetY in
//// if offsetY <= 0 {
//// self?.bgImageView.height = 58 + GDScreen.SafeArea.top + (-offsetY)
//// }
// }
roomlistView.tag = item.type.rawValue
if let roomlistView = roomlistView as? GDRecommendListView {
......
......@@ -34,7 +34,7 @@ class GDLiveTimeDetailCell: BaseCollectionViewCell {
self.contentView.addSubview(timeLabel)
bondsLabel.font = .gd_pingfang(10)
bondsLabel.textColor = .white
bondsLabel.textColor = .gd_main
self.contentView.addSubview(bondsLabel)
faceImageView.layer.borderWidth = 1
......
......@@ -167,7 +167,12 @@ class GDSocialPlatCenter: BaseViewModel {
currentLoginModel = model
switch model.plat {
case .wechat:
if let wechatOpenUrl = URL(string: "weixin://"), UIApplication.shared.canOpenURL(wechatOpenUrl) == true {
GDPlat.WeChat.login(delegate: self, currentVc: vc)
} else {
currentLoginModel?.completionHandler?(false, "请先安装微信", [:])
currentLoginModel = nil
}
case .qq:
let success = tencentAuth!.authorize(GDPlat.QQ.permission, localAppId: GDSDK.gd_QQAppId)
......
......@@ -611,7 +611,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = TealiveModule/TealiveModule.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 6GG26BHUMC;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GENERATE_INFOPLIST_FILE = YES;
......@@ -681,7 +681,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.2;
MARKETING_VERSION = 2.3;
PRODUCT_BUNDLE_IDENTIFIER = com.ft.chat.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
......@@ -703,7 +703,7 @@
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = TealiveModule/TealiveModule.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 6GG26BHUMC;
FRAMEWORK_SEARCH_PATHS = "$(inherited)";
GENERATE_INFOPLIST_FILE = YES;
......@@ -773,7 +773,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 2.2;
MARKETING_VERSION = 2.3;
OTHER_SWIFT_FLAGS = "$(inherited)";
PRODUCT_BUNDLE_IDENTIFIER = com.ft.chat.ios;
PRODUCT_NAME = "$(TARGET_NAME)";
......
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