| | |
| | | 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 |
| | |
| | | } |
| | | |
| | | @objc func shareAction(){ |
| | | ShareView.show() |
| | | // xqzhihui.com/courseOnline 线上课程详情 |
| | | // xqzhihui.com/courseOffOnline 线下课程详情 |
| | | ShareView.show(URL(string: "xqzhihui.com/courseOffOnline")!) |
| | | } |
| | | |
| | | @objc func handleAction(_ btn:QMUIButton){ |