| | |
| | | btn_deny.jq_borderWidth = 1 |
| | | btn_OnceInAWel.jq_borderWidth = 1 |
| | | |
| | | UIView.animate(withDuration: 0.3, delay: 0.5) { |
| | | UIView.animate(withDuration: 0.1, delay: 0.1) { |
| | | self.label_question.alpha = 1 |
| | | } |
| | | UIView.animate(withDuration: 0.3, delay: 0.7) { |
| | | UIView.animate(withDuration: 0.1, delay: 0.11) { |
| | | self.btn_sure.alpha = 1 |
| | | } |
| | | UIView.animate(withDuration: 0.3, delay: 0.9) { |
| | | UIView.animate(withDuration: 0.1, delay: 0.12) { |
| | | self.btn_deny.alpha = 1 |
| | | } |
| | | UIView.animate(withDuration: 0.3, delay: 1.2) { |
| | | UIView.animate(withDuration: 0.1, delay: 0.13) { |
| | | self.btn_OnceInAWel.alpha = 1 |
| | | } |
| | | } |
| | |
| | | btn_deny.jq_borderWidth = btn_deny.isSelected ? 0:1 |
| | | btn_OnceInAWel.jq_borderWidth = btn_OnceInAWel.isSelected ? 0:1 |
| | | |
| | | UIView.animate(withDuration: 0.3, delay: 0.5) { |
| | | UIView.animate(withDuration: 0.2, delay: 0.2) { |
| | | self.label_question.alpha = 0 |
| | | } |
| | | UIView.animate(withDuration: 0.3, delay: 0.7) { |
| | | UIView.animate(withDuration: 0.2, delay: 0.25) { |
| | | self.btn_sure.alpha = 0 |
| | | } |
| | | UIView.animate(withDuration: 0.3, delay: 0.9) { |
| | | UIView.animate(withDuration: 0.2, delay: 0.3) { |
| | | self.btn_deny.alpha = 0 |
| | | } |
| | | UIView.animate(withDuration: 0.3, delay: 1.2) { |
| | | UIView.animate(withDuration: 0.2, delay: 0.35) { |
| | | self.btn_OnceInAWel.alpha = 0 |
| | | } |
| | | |
| | | DispatchQueue.main.asyncAfter(delay: 1.5) { |
| | | DispatchQueue.main.asyncAfter(delay: 0.8) { |
| | | if self.questionIndex == self.questions.count - 1{ |
| | | PlanGuidePromptSupplyView.show { text in |
| | | if text != nil{ |