Преглед на файлове

Merge branch 'dev' of https://git.yishihui.com/iOS/Introduce into dev

* 'dev' of https://git.yishihui.com/iOS/Introduce:
  1,添加选择发音人统计
  变量任务未都完成时 显示 loading view
胡志强 преди 3 години
родител
ревизия
dec82980dc
променени са 1 файла, в които са добавени 14 реда и са изтрити 0 реда
  1. 14 0
      Introduce/Record/INIntroduceController.swift

+ 14 - 0
Introduce/Record/INIntroduceController.swift

@@ -103,6 +103,14 @@ class INIntroduceController: BFBaseViewController {
             BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_captionsButton, pageSource: .sp_speekPage,extParams: ["isSubtitlesClose":isOn],commonParams: commonParams())
         }
         
+        recordScreenVC.voiceBtnClickHandle = { voice in
+            if(voice != nil){
+                BFEventTrackAdaptor.baseReportUpload(businessType: .bt_buttonClick, objectType: .ot_voiceChangerButton, pageSource: .sp_speekPage,extParams: ["voiceMode":voice?.name ?? ""],commonParams: commonParams())
+            }
+            
+        }
+        
+        
         navHeadImageView?.addSubview(stripSwithView)
         navHeadImageView?.addSubview(addMaterialBtn)
         stripSwithView.snp.makeConstraints { make in
@@ -274,6 +282,12 @@ class INIntroduceController: BFBaseViewController {
     }
 
     @objc func exportAction() {
+        
+        //add by ak 如果当前段有没有转完的发音人显示 Loadingview
+        if(!recordScreenVC.voiceChangeStickerFinish(isShowLoadView: true)){
+            return
+        }
+        
         let count = recordScreenVC.itemModels.reduce(0, { partialResult, model in
             model.voiceStickers.count + partialResult
         })