Commit 320f492d authored by David黄金龙's avatar David黄金龙

修改 几处bug

parent 7b69128f
...@@ -104,8 +104,8 @@ extension YHEvaluationView { ...@@ -104,8 +104,8 @@ extension YHEvaluationView {
} }
let aa: ASAttributedString = .init("香港身份", .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.mainTextColor)) let aa: ASAttributedString = .init("香港身份", .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("20", .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.brandMainColor)) let bb: ASAttributedString = .init("20", .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.brandMainColor))
let cc: ASAttributedString = .init("测评", .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.mainTextColor)) let cc: ASAttributedString = .init("测评", .font(UIFont.PFSC_B(ofSize: 17)),.foreground(UIColor.mainTextColor))
lable1.attributed.text = aa + bb + cc lable1.attributed.text = aa + bb + cc
} }
} }
...@@ -100,7 +100,7 @@ class YHCheckEamilAlertView: UIView { ...@@ -100,7 +100,7 @@ class YHCheckEamilAlertView: UIView {
titleLabel = { titleLabel = {
let label = UILabel() let label = UILabel()
label.textAlignment = .center // label.textAlignment = .center
label.textColor = UIColor.mainTextColor label.textColor = UIColor.mainTextColor
label.font = UIFont.PFSC_M(ofSize: 17) label.font = UIFont.PFSC_M(ofSize: 17)
label.numberOfLines = 0 label.numberOfLines = 0
...@@ -117,7 +117,7 @@ class YHCheckEamilAlertView: UIView { ...@@ -117,7 +117,7 @@ class YHCheckEamilAlertView: UIView {
messageLabel = { messageLabel = {
let label = UILabel() let label = UILabel()
label.textAlignment = .center // label.textAlignment = .center
label.textColor = UIColor.mainTextColor label.textColor = UIColor.mainTextColor
label.font = UIFont.PFSC_R(ofSize: 16) label.font = UIFont.PFSC_R(ofSize: 16)
label.numberOfLines = 0 label.numberOfLines = 0
......
...@@ -280,6 +280,15 @@ extension YHH5WebViewVC { ...@@ -280,6 +280,15 @@ extension YHH5WebViewVC {
// MARK: - h5实现的接口 // MARK: - h5实现的接口
extension YHH5WebViewVC { extension YHH5WebViewVC {
func setAppNavigation(_ show : Bool) {
if show {
gk_navBarAlpha = 1.0
} else {
gk_navBarAlpha = 0.0
}
}
func saveLocalPictureSyn(_ picUrl: String) { func saveLocalPictureSyn(_ picUrl: String) {
let imageView = UIImageView() let imageView = UIImageView()
imageView.kf.setImage(with: URL(string: picUrl)) { result in imageView.kf.setImage(with: URL(string: picUrl)) { result in
......
...@@ -17,18 +17,14 @@ class YHJsApi: NSObject { ...@@ -17,18 +17,14 @@ class YHJsApi: NSObject {
} }
extension YHJsApi { extension YHJsApi {
//测试使用
@objc func testSyn( _ arg:String) {
printLog(arg)
}
//保存图片到本地 //保存图片到本地
@objc func saveLocalPictureSyn(_ picUrl: String) { @objc func saveLocalPictureSyn(_ picUrl: String) {
self.delegate?.saveLocalPictureSyn(picUrl) self.delegate?.saveLocalPictureSyn(picUrl)
} }
//H5中 webview的偏移量 @objc func setAppNavigation(_ show : Bool) {
@objc func webViewDidScrollView(_ offset: CGFloat) { self.delegate?.setAppNavigation(show)
self.delegate?.webViewDidScrollView(offset)
} }
} }
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