From aad7ea65994d33014308fd24dadc4308b35053e6 Mon Sep 17 00:00:00 2001 From: 杨锴 <841720330@qq.com> Date: 星期三, 30 十月 2024 14:59:30 +0800 Subject: [PATCH] fix --- XQMuse/Root/Course/VC/CourseDetialVC.swift | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/XQMuse/Root/Course/VC/CourseDetialVC.swift b/XQMuse/Root/Course/VC/CourseDetialVC.swift index a6241ec..acb976c 100644 --- a/XQMuse/Root/Course/VC/CourseDetialVC.swift +++ b/XQMuse/Root/Course/VC/CourseDetialVC.swift @@ -149,7 +149,10 @@ if needPayment{ let attribute = AttributedStringbuilder.build().add(string: " 疗愈币", withFont: .systemFont(ofSize: 12,weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).add(string: "\(m.generalPrice.jq_formatFloat)", withFont: .systemFont(ofSize: 21.71, weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).add(string: " 立即购买 ", withFont: .systemFont(ofSize: 16, weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).mutableAttributedString self.studyBtn.setAttributedTitle(attribute, for: .normal) - } + }else{ + let attribute = AttributedStringbuilder.build().add(string: " 立即学习 ", withFont: .systemFont(ofSize: 16, weight: .bold), withColor: UIColor(hexString: "#F6F6F6")!).mutableAttributedString + self.studyBtn.setAttributedTitle(attribute, for: .normal) + } if m.detailUrl.jq_isVideo{ self.style = .style1 @@ -239,7 +242,9 @@ } @objc func shareAction(){ - ShareView.show() + // xqzhihui.com/courseOnline 线上课程详情 +// xqzhihui.com/courseOffOnline 线下课程详情 + ShareView.show(URL(string: "xqzhihui.com/courseOffOnline")!) } @objc func handleAction(_ btn:QMUIButton){ -- Gitblit v1.7.1