杨锴
2024-11-05 0fb7413df54760ac6bd15b90b738e0706de1629e
XQMuse/Root/Me/VC/ContactCustomerDetailVC.swift
@@ -37,20 +37,21 @@
                        Services.commonQuestionDetailBy(id: model.id).subscribe(onNext: {[weak self] data in
                                    if let m = data.data{
                                                self?.webView.loadHTMLString(m.content.jq_wrapHtml(), baseURL: nil)
                self?.image_qrCode.sd_setImage(with: URL(string: m.customerServiceQrCode))
                                    }
                        }).disposed(by: disposeBag)
                        
                        if let image = customerImage{
                                    self.image_qrCode.image = image
                        }else{
                                    Services.getCustomerCode().subscribe(onNext: {data in
                                                if let m = data.data{
                                                            self.customerImage = UIImage.jq_GenerateQRCode(with: m, width: 200)
                                                            self.image_qrCode.image = self.customerImage
                                                }
                                    }).disposed(by: disposeBag)
                        }
//                        if let image = customerImage{
//                                    self.image_qrCode.image = image
//                        }else{
//                                    Services.getCustomerCode().subscribe(onNext: {data in
//                                                if let m = data.data{
//                                                            self.customerImage = UIImage.jq_GenerateQRCode(with: m, width: 200)
//                                                            self.image_qrCode.image = self.customerImage
//                                                }
//                                    }).disposed(by: disposeBag)
//                        }
    }
            override func setUI() {