GoodsInformationM.m 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. //
  2. // GoodsInformationM.m
  3. // westkissMob
  4. //
  5. // Created by 王猛 on 2022/9/16.
  6. //
  7. #import "GoodsInformationM.h"
  8. @implementation GoodsInformationM
  9. + (GoodsInformationM *)wm_demoData {
  10. GoodsInformationM *m = [[GoodsInformationM alloc] init];
  11. m.title = @"Highlight Bob Wig Straight Middle Part Bob With Grey Highlights";
  12. m.sale_num = @"15K";
  13. m.reviews_count = @"231";
  14. m.href = @"www.baidu.com";
  15. m.price = @"146.10";
  16. m.final_price = @"146.10";
  17. m.price = @"171.88";
  18. m.save_price = @"13.65";
  19. NSMutableArray *couponAry = [[NSMutableArray alloc]init];
  20. for (int i=0; i<4; i++) {
  21. GoodsCoupon * coupon = [[GoodsCoupon alloc]init];
  22. coupon.coupon_title = @"99";
  23. coupon.coupon_details = @"5";
  24. coupon.coupon_code = @"111111";
  25. [couponAry addObject:coupon];
  26. }
  27. m.coupon = [couponAry copy];
  28. reviewsModel *reviewM = [[reviewsModel alloc]init];
  29. reviewM.startsNum = @"5";
  30. reviewM.reviewsNum = @"621";
  31. reviewM.showImgurls = @[@"https://media.glamour.com/photos/5f3e9ad26ed7249924aba0c7/1:1/w_1234,h_1234,c_limit/IMG_2772.jpg",
  32. @"https://media.glamour.com/photos/5f3e9ad26ed7249924aba0c7/1:1/w_1234,h_1234,c_limit/IMG_2772.jpg",
  33. @"https://media.glamour.com/photos/5f3e9ad26ed7249924aba0c7/1:1/w_1234,h_1234,c_limit/IMG_2772.jpg"];
  34. reviewM.picturesNum = @"100";
  35. m.reviews = reviewM;
  36. return m;
  37. }
  38. + (NSDictionary *)mj_objectClassInArray
  39. {
  40. return @{@"coupon": @"GoodsCoupon",
  41. };
  42. }
  43. + (NSDictionary *)mj_replacedKeyFromPropertyName {
  44. return @{
  45. @"goodsId": @"id",
  46. };
  47. }
  48. @end
  49. @implementation GoodsCoupon
  50. @end
  51. @implementation reviewsModel
  52. @end