无故事王国
2023-11-28 c32cea453e0cad8bf52ac59f8a95006aa0b8215b
WanPai/Root/Course/VC/CourseDetailApplyVC.swift
@@ -111,6 +111,14 @@
      if let m = signUpModel{
         classHours = m.chooseHours
            //默认选择传递过来的课时数
         for (index,clas) in m.list.enumerated(){
            if clas.classHours == classHours{
               selectClassIndex = index;break
            }
         }
         if m.payStatus == .unPayment{
            btn_handleBtn.setTitle("待支付", for: .normal)
            btn_addStudent.isHidden = true
@@ -317,7 +325,7 @@
                  .add(string: "\(subM.playPaiCoin * studentCount)币", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#F21313")).mutableAttributedString
            case .cash:
               label_coin.isHidden = true;fallthrough
               fallthrough
            case .cashCoin:
               if subM.originalPrice == 0 || subM.originalPrice == subM.paymentPrice{
                  label_originPrice.isHidden = true
@@ -325,7 +333,7 @@
                  label_originPrice.isHidden = false
               }
                  //               label_originPrice.isHidden = (subM.paymentPrice == subM.originalPrice && subM.paymentPrice != 0 && subM.originalPrice != 0)
               label_coin.isHidden = subM.payType == .coin
               label_coin.isHidden = subM.payType == .cash
                  //玩湃币
               label_coin.attributedText = AttributedStringbuilder.build()
                  .add(string: "玩湃币:", withFont: UIFont.systemFont(ofSize: 14, weight: .semibold), withColor: UIColor(hexStr: "#3F3F3F"))