56">
- <outlet property="commentBtn" destination="KVD-Az-tyJ" id="TaX-hY-vn2"/>
- <outlet property="commentUnreadTip" destination="Qi9-c7-GCt" id="xt8-kU-Ort"/>
- <outlet property="sysBtn" destination="WTN-Zx-JKR" id="j7o-gs-BXE"/>
- <outlet property="sysUnreadTip" destination="oLf-Xb-QSv" id="K9s-Ru-LqL"/>
- <outlet property="thumbupBtn" destination="T9q-a4-Ugc" id="f6h-aq-4F0"/>
- <outlet property="thumbupUnreadTip" destination="R8U-gK-x5D" id="Lxs-zK-zAs"/>
+ <outlet property="commentBtn" destination="pAl-ew-Vda" id="3S2-SN-tES"/>
+ <outlet property="commentUnreadTip" destination="Ywg-9R-Fz9" id="kdE-V6-bFR"/>
+ <outlet property="sysBtn" destination="W1B-Rc-piS" id="7RM-xD-0Ix"/>
+ <outlet property="sysUnreadTip" destination="veG-mJ-Dsh" id="lsK-b7-GGU"/>
+ <outlet property="thumbupBtn" destination="cYK-SK-9WL" id="SpB-pC-x36"/>
+ <outlet property="thumbupUnreadTip" destination="iqd-Ji-zvi" id="IDb-6y-Pp4"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="13z-ah-xbs" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
- <point key="canvasLocation" x="53.600000000000001" y="28.335832083958024"/>
+ <point key="canvasLocation" x="-52" y="-133"/>
</scene>
</scenes>
<resources>
@@ -22,7 +22,7 @@ final class GroupCell: UITableViewCell {
|
||
| 22 | 22 |
func setInfo(_ info: GroupItem) {
|
| 23 | 23 |
groupImageView.setImage(info.group_avatar, placeholder: UIImage(named: "Group\(info.group_default_avatar)")) |
| 24 | 24 |
groupNameLabel.text = info.group_name |
| 25 |
-// createTimeLabel.text = info.created_at |
|
| 25 |
+ createTimeLabel.text = info.create_at |
|
| 26 | 26 |
photoNumLabel.text = "有\(info.group_photo_num)张照片" |
| 27 | 27 |
} |
| 28 | 28 |
} |
@@ -32,7 +32,7 @@ final class MineFeedbackViewController: UIViewController {
|
||
| 32 | 32 |
/// storyboard button action |
| 33 | 33 |
extension MineFeedbackViewController {
|
| 34 | 34 |
@IBAction func sendFeedBack() {
|
| 35 |
- Toast.showActivity(message: "正在提交") |
|
| 35 |
+ Toast.showActivity(message: "正在提交中") |
|
| 36 | 36 |
feedbackAPI.submit(text: textView.text).subscribe(onCompleted: {[weak self] in
|
| 37 | 37 |
guard let `self` = self else { return }
|
| 38 | 38 |
Toast.hide() |
@@ -28,10 +28,10 @@ class PhotoDetailCommentCell: UITableViewCell {
|
||
| 28 | 28 |
} |
| 29 | 29 |
|
| 30 | 30 |
// MARK: init interface |
| 31 |
- func setInfo(_ data: PhotoCommentItem) {
|
|
| 32 |
-// headImage.setImageWithNullableURL(data.avatar, placeholderImage: defaultAvatar) |
|
| 33 |
- name.text = data.nickname |
|
| 34 |
- content.text = data.comment |
|
| 35 |
-// time.text = data.create_at.getTimeInfoFromDate() |
|
| 31 |
+ func setInfo(_ info: PhotoCommentItem) {
|
|
| 32 |
+ headImage.setImage(info.avatar, placeholder: UIImage.defaultAvatar) |
|
| 33 |
+ name.text = info.nickname |
|
| 34 |
+ content.text = info.comment |
|
| 35 |
+ time.text = info.create_at |
|
| 36 | 36 |
} |
| 37 | 37 |
} |
@@ -52,7 +52,7 @@ extension PhotoDetailCoordinator: PhotoDetailListViewModelDelegate {
|
||
| 52 | 52 |
func didSelected() {
|
| 53 | 53 |
let vc = UIStoryboard.photoDetail.instantiateController(PhotoPreviewViewController.self) |
| 54 | 54 |
vc.viewModel = shareListViewModel |
| 55 |
- navigationController.pushViewController(vc, animated: true) |
|
| 55 |
+ photoDetailViewController.presentController(vc) |
|
| 56 | 56 |
} |
| 57 | 57 |
} |
| 58 | 58 |
|
@@ -47,21 +47,11 @@ final class PhotoPreviewViewController: UIViewController {
|
||
| 47 | 47 |
navigationController?.setNavigationBarHidden(false, animated: true) |
| 48 | 48 |
} |
| 49 | 49 |
|
| 50 |
- @IBAction func download(_ sender: UIButton) {
|
|
| 51 |
- guard let cell = collectionView.cellForItem(at: IndexPath(item: viewModel.currIndex, section: 0)) as? ImageCell, |
|
| 52 |
- let image = cell.photoImage.image else {
|
|
| 53 |
- // FFToastView.showToast(inView: view, withText: "未检测到图片") |
|
| 54 |
- return |
|
| 55 |
- } |
|
| 56 |
- |
|
| 57 |
- UIImageWriteToSavedPhotosAlbum(image, self, #selector(image(_:didFinishSavingWithError:contextInfo:)), nil) |
|
| 58 |
- } |
|
| 59 |
- |
|
| 60 | 50 |
@objc func image(_ image: UIImage?, didFinishSavingWithError error: NSError?, contextInfo info: UnsafeMutableRawPointer) {
|
| 61 | 51 |
if error != nil {
|
| 62 |
- // FFToastView.showToast(inView: view, withText: "保存图片失败") |
|
| 52 |
+ Toast.show(message: "保存照片失败") |
|
| 63 | 53 |
} else {
|
| 64 |
- // FFToastView.showImageToast(inView: view, withText: "已保存图片到相册", withImage: "提示弹窗-勾") |
|
| 54 |
+ Toast.show(message: "已保存照片到相册中", image: UIImage(named: "icon-success")) |
|
| 65 | 55 |
} |
| 66 | 56 |
} |
| 67 | 57 |
} |
@@ -105,6 +95,7 @@ extension PhotoPreviewViewController {
|
||
| 105 | 95 |
@IBAction func back() {
|
| 106 | 96 |
navigationController?.popViewController(animated: true) |
| 107 | 97 |
} |
| 98 |
+ |
|
| 108 | 99 |
@IBAction func rotateTheImage(_ sender: UIButton) {
|
| 109 | 100 |
guard let cell = collectionView.cellForItem(at: IndexPath(item: viewModel.currIndex, section: 0)) as? ImageCell else {
|
| 110 | 101 |
return |
@@ -127,7 +118,16 @@ extension PhotoPreviewViewController {
|
||
| 127 | 118 |
} |
| 128 | 119 |
} |
| 129 | 120 |
|
| 130 |
- |
|
| 121 |
+ @IBAction func download(_ sender: UIButton) {
|
|
| 122 |
+ Toast.showActivity(message: "正在保存照片到相册") |
|
| 123 |
+ guard let cell = collectionView.cellForItem(at: IndexPath(item: viewModel.currIndex, section: 0)) as? ImageCell, |
|
| 124 |
+ let image = cell.photoImage.image else {
|
|
| 125 |
+ Toast.show(message: "未检测到照片") |
|
| 126 |
+ return |
|
| 127 |
+ } |
|
| 128 |
+ |
|
| 129 |
+ UIImageWriteToSavedPhotosAlbum(image, self, #selector(image(_:didFinishSavingWithError:contextInfo:)), nil) |
|
| 130 |
+ } |
|
| 131 | 131 |
} |
| 132 | 132 |
|
| 133 | 133 |
// MARK: UICollectionView delegate |