From 62a24b3c7cf92919a93ee575e9460037e1a53816 Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期四, 07 十一月 2024 19:10:20 +0800 Subject: [PATCH] fix bug --- XQMuse/Root/Course/View/CourseSendGiftView.swift | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/XQMuse/Root/Course/View/CourseSendGiftView.swift b/XQMuse/Root/Course/View/CourseSendGiftView.swift index af9075f..c67584e 100644 --- a/XQMuse/Root/Course/View/CourseSendGiftView.swift +++ b/XQMuse/Root/Course/View/CourseSendGiftView.swift @@ -28,6 +28,7 @@ static func show(price:Double,clouse:@escaping()->Void){ let view = CourseSendGiftView.jq_loadNibView() + view.frame = sceneDelegate?.window?.frame ?? .zero view.label_price.text = "¥\(price.jq_formatFloat)" sceneDelegate?.window?.addSubview(view) view.clouse = clouse @@ -40,7 +41,7 @@ override func layoutSubviews() { super.layoutSubviews() - btn_complete.jq_gradientNibColor(colorArr: [UIColor(hexStr: "#8EA47A").cgColor,UIColor(hexStr: "#AFCA98").cgColor], cornerRadius: 18.5) + btn_complete.localGradientColor(cornerRadius: 18.5,bounds: CGRect(x: 0, y: 0, width: JQ_ScreenW - 46 * 2, height: 40)) } @IBAction func completeAction(_ sender: UIButton) { -- Gitblit v1.7.1