// // AS_GoodsReviewsListC.m // Asteria // // Created by 王猛 on 2024/1/4. // #import "AS_GoodsReviewsListC.h" #import "ASGoodsDetailsVM.h" #import "RadioButton.h" #import "GoodsReviewsListTableV.h" #import "GoodsReviewsWriteC.h" #import "ReviewsTableHearV.h" @interface AS_GoodsReviewsListC () @property (nonatomic, strong) ASGoodsDetailsVM *VM; @property (nonatomic, strong) UIView *topBgV; @property (nonatomic, strong) UIImageView *topImgV; @property (nonatomic, strong) UILabel *goodsTitleLab; @property (nonatomic, strong) QMUILabel *priceLab; @property (nonatomic, strong) QMUILabel *soldLab; @property (nonatomic, strong) NSMutableArray *radioBtnAry; @property (nonatomic, strong) ReviewsTableHearV *tableHeadV; @property (nonatomic, strong) QMUILabel *reviewsLab; @property (nonatomic, strong) GoodsReviewsListTableV *TableV; @property (nonatomic, strong) NSMutableArray *sortreTypeAry; @property (nonatomic, strong) NSString *sortreType; @end @implementation AS_GoodsReviewsListC - (void)viewDidLoad { [super viewDidLoad]; self.title = [NSString stringWithFormat:@"Reviews (%@)",self.goodsM.review_nums]; self.TableV.Page = 1; self.sortreType = [self.sortreTypeAry firstObject]; [MBProgressHUD showHUDAddedTo:self.view animated:YES]; [self reqNet_Goods_productGetProductsReview:self.sortreType]; [self ucm_subVeiwsTapBlock]; } - (void)initSubviews { [super initSubviews]; [self.view addSubview:self.topBgV]; self.sortreTypeAry = [NSMutableArray arrayWithArray:@[@"All",@"Newest",@"Pictures"]]; self.sortreType = [self.sortreTypeAry firstObject]; for (int i=0; i