Commit 8127d109 authored by pete谢兆麟's avatar pete谢兆麟

跳转购物车逻辑

parent 68987815
......@@ -88,9 +88,9 @@ class YHMakePlanViewController: YHBaseViewController {
}
func addShopCard() {
self.viewModel.addShopCard(model: self.viewModel.makePlanModel) { success, error in
self.viewModel.addShopCard(model: self.viewModel.makePlanModel) { success, _ in
if success {
//跳转购物车
// 跳转购物车
if let token = YHLoginManager.shared.userModel?.token, token.count > 5 {
var url = YHBaseUrlManager.shared.curH5URL() + "superAppBridge.html#/goods/cart"
url = url + "?param=" + YHLoginManager.shared.h5Token
......
......@@ -13,10 +13,10 @@ class YHMakePlanTopView: UIView {
var dataSource: YHMakePlanScoreModel? {
didSet {
let a: ASAttributedString = .init("预计可续期(年) ", .font(UIFont.PFSC_M(ofSize: 14)), .foreground(UIColor(hex: 0x6a7586)))
let b: ASAttributedString = .init("\(dataSource?.year)", .font(UIFont.PFSC_M(ofSize: 24)), .foreground(UIColor.mainTextColor))
let b: ASAttributedString = .init("\(String(describing: dataSource?.year))", .font(UIFont.PFSC_M(ofSize: 24)), .foreground(UIColor.mainTextColor))
yearsLabel.attributed.text = a + b
let aa: ASAttributedString = .init("续签综合通过率 ", .font(UIFont.PFSC_M(ofSize: 14)), .foreground(UIColor(hex: 0x6a7586)))
let bb: ASAttributedString = .init("\(dataSource?.pass_rate)", .font(UIFont.PFSC_M(ofSize: 24)), .foreground(UIColor.mainTextColor))
let bb: ASAttributedString = .init("\(String(describing: dataSource?.pass_rate))", .font(UIFont.PFSC_M(ofSize: 24)), .foreground(UIColor.mainTextColor))
// let c: ASAttributedString = .init("%", .font(UIFont.PFSC_M(ofSize: 16)), .foreground(UIColor.mainTextColor))
percentageLabel.attributed.text = aa + bb
}
......
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