Commit b8c75dc1 by pierce

fixed bugs

parent 09d64b03
Showing with 80 additions and 98 deletions
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "circle.png", "filename" : "朋友圈@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "icon_更多.png", "filename" : "更多@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "icon_游客.png", "filename" : "游客@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
......
...@@ -178,6 +178,9 @@ public class GDWebView: WKWebView, WKNavigationDelegate, WKScriptMessageHandler ...@@ -178,6 +178,9 @@ public class GDWebView: WKWebView, WKNavigationDelegate, WKScriptMessageHandler
GDToolBoxPlugins.shared.webviewPlugin.checkSplashUrl(url: urlStr) GDToolBoxPlugins.shared.webviewPlugin.checkSplashUrl(url: urlStr)
if DevConfig.gd_envConfig == .developing {
UIPasteboard.general.string = urlStr
}
self.addJavaScriptClickEvent(GDWebView.kJavaScriptInteractKey) self.addJavaScriptClickEvent(GDWebView.kJavaScriptInteractKey)
return wkNavigation return wkNavigation
} }
......
...@@ -37,7 +37,6 @@ public class GDDataBase: BaseViewModel { ...@@ -37,7 +37,6 @@ public class GDDataBase: BaseViewModel {
// 数据库配置 // 数据库配置
let config = Realm.Configuration(fileURL: URL(string: dbPath), let config = Realm.Configuration(fileURL: URL(string: dbPath),
inMemoryIdentifier: nil, inMemoryIdentifier: nil,
syncConfiguration: nil,
encryptionKey: nil, encryptionKey: nil,
readOnly: false, readOnly: false,
schemaVersion: DevConfig.gd_dataBaseVersion, schemaVersion: DevConfig.gd_dataBaseVersion,
......
{ {
"images": [ "images" : [
{ {
"idiom": "universal", "idiom" : "universal",
"scale": "1x" "scale" : "1x"
}, },
{ {
"filename": "friend_list_icon@2x.png", "filename" : "好友@2x.png",
"idiom": "universal", "idiom" : "universal",
"scale": "2x" "scale" : "2x"
}, },
{ {
"idiom": "universal", "idiom" : "universal",
"scale": "3x" "scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
} }
} ],
\ No newline at end of file "info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images": [
{
"idiom": "universal",
"scale": "1x"
},
{
"filename": "friend_list_icon@2x.png",
"idiom": "universal",
"scale": "2x"
},
{
"idiom": "universal",
"scale": "3x"
}
],
"info": {
"author": "xcode",
"version": 1
}
}
\ No newline at end of file
...@@ -56,7 +56,7 @@ class GDMyPageModuleDiamondCell: UITableViewCell { ...@@ -56,7 +56,7 @@ class GDMyPageModuleDiamondCell: UITableViewCell {
goldBgView.addSubview(bgImageView) goldBgView.addSubview(bgImageView)
let titleLabel = UILabel(frame: .zero) let titleLabel = UILabel(frame: .zero)
titleLabel.text = "收益" titleLabel.text = "充值"
titleLabel.font = .gd_defaultBold(16) titleLabel.font = .gd_defaultBold(16)
titleLabel.textColor = .hexColor("#5F0000") titleLabel.textColor = .hexColor("#5F0000")
goldBgView.addSubview(titleLabel) goldBgView.addSubview(titleLabel)
...@@ -119,7 +119,7 @@ class GDMyPageModuleDiamondCell: UITableViewCell { ...@@ -119,7 +119,7 @@ class GDMyPageModuleDiamondCell: UITableViewCell {
coinBgView.addSubview(bgImageView) coinBgView.addSubview(bgImageView)
let titleLabel = UILabel(frame: .zero) let titleLabel = UILabel(frame: .zero)
titleLabel.text = "充值" titleLabel.text = "收益"
titleLabel.font = .gd_defaultBold(16) titleLabel.font = .gd_defaultBold(16)
titleLabel.textColor = .hexColor("#5F0000") titleLabel.textColor = .hexColor("#5F0000")
coinBgView.addSubview(titleLabel) coinBgView.addSubview(titleLabel)
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
"scale" : "1x" "scale" : "1x"
}, },
{ {
"filename" : "roomlist_newStar_icon@2x.png", "filename" : "组 6@2x.png",
"idiom" : "universal", "idiom" : "universal",
"scale" : "2x" "scale" : "2x"
}, },
......
...@@ -70,9 +70,7 @@ class GDLiveWarnMessageView: BaseView { ...@@ -70,9 +70,7 @@ class GDLiveWarnMessageView: BaseView {
bgView.layer.masksToBounds = true bgView.layer.masksToBounds = true
bgView.layer.cornerRadius = 15 bgView.layer.cornerRadius = 15
bgView.layer.masksToBounds = true bgView.layer.masksToBounds = true
bgView.layer.borderWidth = 2 bgView.backgroundColor = .white
bgView.layer.borderColor = UIColor.init(white: 1, alpha: 0.15).cgColor
bgView.backgroundColor = .init(white: 0, alpha: 0.3)
let width: CGFloat = GDScreen.isSmallScreen ? 250 : 300 let width: CGFloat = GDScreen.isSmallScreen ? 250 : 300
var height: CGFloat = role == .anchor ? 181 : 150 var height: CGFloat = role == .anchor ? 181 : 150
...@@ -93,12 +91,12 @@ class GDLiveWarnMessageView: BaseView { ...@@ -93,12 +91,12 @@ class GDLiveWarnMessageView: BaseView {
} }
private func makeContentView() { private func makeContentView() {
titleLabel.textColor = .white titleLabel.textColor = .hexColor("121212")
titleLabel.font = .gd_pingfang(16) titleLabel.font = .gd_pingfang(16)
titleLabel.textAlignment = .center titleLabel.textAlignment = .center
bgView.addSubview(titleLabel) bgView.addSubview(titleLabel)
contentLabel.textColor = .init(white: 1, alpha: 0.6) contentLabel.textColor = .hexColor("666666")
contentLabel.font = .gd_pingfang(14) contentLabel.font = .gd_pingfang(14)
contentLabel.textAlignment = .left contentLabel.textAlignment = .left
contentLabel.numberOfLines = 0 contentLabel.numberOfLines = 0
...@@ -109,7 +107,7 @@ class GDLiveWarnMessageView: BaseView { ...@@ -109,7 +107,7 @@ class GDLiveWarnMessageView: BaseView {
confirmBtn.setTitle("确定", for: .normal) confirmBtn.setTitle("确定", for: .normal)
confirmBtn.titleLabel?.font = .gd_pingfang(16) confirmBtn.titleLabel?.font = .gd_pingfang(16)
confirmBtn.setTitleColor(.white, for: .normal) confirmBtn.setTitleColor(.hexColor("212121"), for: .normal)
bgView.addSubview(confirmBtn) bgView.addSubview(confirmBtn)
confirmBtn.snp.makeConstraints { make in confirmBtn.snp.makeConstraints { make in
......
{ {
"images": [ "images" : [
{ {
"idiom": "universal", "idiom" : "universal",
"scale": "1x" "scale" : "1x"
}, },
{ {
"filename": "icon_live_input_message.png", "filename" : "发言@2x.png",
"idiom": "universal", "idiom" : "universal",
"scale": "2x" "scale" : "2x"
}, },
{ {
"idiom": "universal", "idiom" : "universal",
"scale": "3x" "scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
} }
} ],
\ No newline at end of file "info" : {
"author" : "xcode",
"version" : 1
}
}
{ {
"images": [ "images" : [
{ {
"idiom": "universal", "idiom" : "universal",
"scale": "1x" "scale" : "1x"
}, },
{ {
"filename": "live_official_end_icon.png", "filename" : "empty_bg.png",
"idiom": "universal", "idiom" : "universal",
"scale": "2x" "scale" : "2x"
}, },
{ {
"idiom": "universal", "idiom" : "universal",
"scale": "3x" "scale" : "3x"
}
],
"info": {
"author": "xcode",
"version": 1
} }
} ],
\ No newline at end of file "info" : {
"author" : "xcode",
"version" : 1
}
}
...@@ -31,9 +31,6 @@ class GDUserSearchController: BaseViewController { ...@@ -31,9 +31,6 @@ class GDUserSearchController: BaseViewController {
override func viewDidLoad() { override func viewDidLoad() {
super.viewDidLoad() super.viewDidLoad()
if inputTextField.canBecomeFirstResponder {
inputTextField.becomeFirstResponder()
}
} }
override func viewDidDisappear(_ animated: Bool) { override func viewDidDisappear(_ animated: Bool) {
...@@ -49,6 +46,16 @@ class GDUserSearchController: BaseViewController { ...@@ -49,6 +46,16 @@ class GDUserSearchController: BaseViewController {
self.navigationController?.isNavigationBarHidden = true self.navigationController?.isNavigationBarHidden = true
} }
var isFirstShow = true
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
if isFirstShow == true && inputTextField.canBecomeFirstResponder {
isFirstShow = false
inputTextField.becomeFirstResponder()
}
}
// MARK: UI // MARK: UI
override func makeUI() { override func makeUI() {
super.makeUI() super.makeUI()
......
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