暂无描述

PindanDetailItem.h 3.5KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. //
  2. // PindanDetailItem.h
  3. // FirstLink
  4. //
  5. // Created by jack on 15/7/2.
  6. // Copyright (c) 2015年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "PriceDetailItem.h"
  10. #import "SubmitOrderViewModel.h"
  11. #import "ServeUserItem.h"
  12. #import "ProductShowItem.h"
  13. #import "AuthorityItem.h"
  14. typedef enum {
  15. kProductStateDeleted = 0,
  16. kProductStateNormal,
  17. kProductStateEnd,
  18. kProductStateUnknow
  19. } kProductState;
  20. @interface PindanDetailItem : NSObject
  21. @property (nonatomic, strong) NSString *postId;
  22. @property (nonatomic, strong) NSString *userId;
  23. @property (nonatomic, strong) NSString *createTime;
  24. @property (nonatomic, strong) NSString *beginTime;
  25. @property (nonatomic, strong) NSString *endTime;
  26. @property (nonatomic, strong) NSString *commentCount; // 评论数量
  27. @property (nonatomic, strong) NSString *title;
  28. @property (nonatomic, strong) NSString *introduceText; // description
  29. @property (nonatomic, strong) NSString *headURL;
  30. @property (nonatomic, strong) NSString *firstPic; // 首图
  31. @property (nonatomic, strong) NSString *nickname;
  32. @property (nonatomic, strong) NSString *type;
  33. @property (nonatomic, strong) NSString *updateTime;
  34. @property (nonatomic, strong) NSString *serverTime;
  35. @property (nonatomic, assign) NSInteger status;
  36. @property (nonatomic, assign) NSInteger orderCount; // 已拼数量
  37. @property (nonatomic, assign) NSInteger limiteNum; // 限购数量
  38. @property (nonatomic, assign) NSInteger postageFreeState; // 是否包邮(0:不包邮,1:包邮,2:会员包邮)
  39. @property (nonatomic, strong) NSString *stock; // 库存数量
  40. @property (nonatomic, assign) BOOL isFavorite; // 是否收藏
  41. @property (nonatomic, assign) BOOL isNeedIDCard; // 是否需要身份证信息
  42. @property (nonatomic, assign) BOOL isPindanBegin; // 拼单是否已开始
  43. @property (nonatomic, strong) NSString *isLike; // 是否想拼
  44. @property (nonatomic, assign) kUserLevel userLevel; // 用户等级(普通、VIP)
  45. @property (nonatomic, assign) NSInteger userOrderCount; // 用户历史拼单数量,判断是否为新用户
  46. @property (nonatomic, strong) NSString *webURL; // 拼单详情WebURL
  47. @property (nonatomic, strong) NSArray *productShowArray;
  48. @property (nonatomic, strong) NSArray *commentModelArray;
  49. @property (nonatomic, strong) NSArray *specsArray;
  50. @property (nonatomic, assign) NSTimeInterval timeInterval;
  51. @property (nonatomic, strong) PriceDetailItem *priceDetailItem;
  52. @property (nonatomic, assign) kProductState productState; // 产品状态
  53. @property (nonatomic, strong) ServeUserItem *serveUserItem; // 客服信息
  54. @property (nonatomic, strong) AuthorityItem *authorityItem; // 购买权限
  55. @property (nonatomic, strong) NSString *shareUrl;
  56. // 为确认订单页组织model
  57. //- (SubmitOrderItem *)submitModelWithSpecArray:(NSArray *)specArray orderType:(kOrderType)orderType;
  58. - (BOOL)hasMoreComment;
  59. - (BOOL)isPostageFree;
  60. - (NSString *)getFirstImgUrl;
  61. - (ProductShowItem *)showItemAtIndex:(NSUInteger)index;
  62. - (NSArray *)allProductImgUrlArray; // 所有图片URL数组
  63. @end