|
@@ -12,6 +12,26 @@ class TSAILIstVC: TSBaseVC {
|
|
|
let sectionModel = TSBasicSectionModel()
|
|
|
dataArray.append(sectionModel)
|
|
|
|
|
|
+ //母亲节
|
|
|
+ sectionModel.addSubItemModel(
|
|
|
+ createItemModel(
|
|
|
+ leftImageName:"aiList_MotherDay",
|
|
|
+ leftTitle: "Happy Mother's Day".localized,
|
|
|
+ leftSubTitle: "".localized,
|
|
|
+ rightViewStyle: 0,
|
|
|
+ tapBlock: { [weak self] model, _, _ in
|
|
|
+ guard let self = self else { return }
|
|
|
+// enterSelectPhotos(
|
|
|
+// userDefaultsKey: "",//"isFirstAIListMotherDayHintVC",
|
|
|
+// maxBitSize: kUploadImageMaxBit10Size,
|
|
|
+// config:.defaultConfig
|
|
|
+// ) { image in
|
|
|
+// let baseVc = TSAIUploadPhotoBaseVC(titleString: model.leftTitle ?? "",upLoadImage: image,imageMaxBitSize: kUploadImageMaxBit10Size, generatorStyle: .motherDay)
|
|
|
+// kPushVC(target: self, modelVC: baseVc)
|
|
|
+// }
|
|
|
+ openMotherDayVC(titleString: model.leftTitle ?? "")
|
|
|
+ }))
|
|
|
+
|
|
|
|
|
|
sectionModel.addSubItemModel(
|
|
|
createItemModel(
|
|
@@ -23,7 +43,7 @@ class TSAILIstVC: TSBaseVC {
|
|
|
guard let self = self else { return }
|
|
|
kPushVC(target: self, modelVC: TSTextGeneralPictureVC())
|
|
|
}))
|
|
|
-
|
|
|
+
|
|
|
sectionModel.addSubItemModel(
|
|
|
createItemModel(
|
|
|
leftImageName:"aiList_quality",
|
|
@@ -320,6 +340,13 @@ class TSAILIstVC: TSBaseVC {
|
|
|
NotificationCenter.default.addObserver(self, selector: #selector(updateVipView), name: .kPurchaseDidChanged, object: nil)
|
|
|
updateVipView()
|
|
|
|
|
|
+ NotificationCenter.default.addObserver(forName: .kOpenMotherDayVC, object: nil, queue: OperationQueue.main) { [weak self] _ in
|
|
|
+ guard let self = self else { return }
|
|
|
+ DispatchQueue.main.async {
|
|
|
+ self.openMotherDayVC(titleString: "Happy Mother's Day".localized)
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -429,3 +456,16 @@ extension TSAILIstVC{
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+extension TSAILIstVC{
|
|
|
+ func openMotherDayVC(titleString:String){
|
|
|
+ enterSelectPhotos(
|
|
|
+ userDefaultsKey: "isFirstAIListMotherDayHintVC",
|
|
|
+ maxBitSize: kUploadImageMaxBit10Size,
|
|
|
+ config:.defaultConfig
|
|
|
+ ) { image in
|
|
|
+ let baseVc = TSAIUploadPhotoBaseVC(titleString: titleString,upLoadImage: image,imageMaxBitSize: kUploadImageMaxBit10Size, generatorStyle: .motherDay)
|
|
|
+ kPushVC(target: self, modelVC: baseVc)
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|