123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- //
- // PindanDetailItem.h
- // FirstLink
- //
- // Created by jack on 15/7/2.
- // Copyright (c) 2015年 FirstLink. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- #import "PriceDetailItem.h"
- #import "SubmitOrderViewModel.h"
- #import "ServeUserItem.h"
- #import "ProductShowItem.h"
- #import "AuthorityItem.h"
- typedef enum {
- kProductStateDeleted = 0,
- kProductStateNormal,
- kProductStateEnd,
- kProductStateUnknow
- } kProductState;
- @interface PindanDetailItem : NSObject
- @property (nonatomic, strong) NSString *postId;
- @property (nonatomic, strong) NSString *userId;
- @property (nonatomic, strong) NSString *createTime;
- @property (nonatomic, strong) NSString *beginTime;
- @property (nonatomic, strong) NSString *endTime;
- @property (nonatomic, strong) NSString *commentCount; // 评论数量
- @property (nonatomic, strong) NSString *title;
- @property (nonatomic, strong) NSString *introduceText; // description
- @property (nonatomic, strong) NSString *headURL;
- @property (nonatomic, strong) NSString *firstPic; // 首图
- @property (nonatomic, strong) NSString *nickname;
- @property (nonatomic, strong) NSString *type;
- @property (nonatomic, strong) NSString *updateTime;
- @property (nonatomic, strong) NSString *serverTime;
- @property (nonatomic, assign) NSInteger status;
- @property (nonatomic, assign) NSInteger orderCount; // 已拼数量
- @property (nonatomic, assign) NSInteger limiteNum; // 限购数量
- @property (nonatomic, assign) NSInteger postageFreeState; // 是否包邮(0:不包邮,1:包邮,2:会员包邮)
- @property (nonatomic, strong) NSString *stock; // 库存数量
- @property (nonatomic, assign) BOOL isFavorite; // 是否收藏
- @property (nonatomic, assign) BOOL isNeedIDCard; // 是否需要身份证信息
- @property (nonatomic, assign) BOOL isPindanBegin; // 拼单是否已开始
- @property (nonatomic, strong) NSString *isLike; // 是否想拼
- @property (nonatomic, assign) kUserLevel userLevel; // 用户等级(普通、VIP)
- @property (nonatomic, assign) NSInteger userOrderCount; // 用户历史拼单数量,判断是否为新用户
- @property (nonatomic, strong) NSString *webURL; // 拼单详情WebURL
- @property (nonatomic, strong) NSArray *productShowArray;
- @property (nonatomic, strong) NSArray *commentModelArray;
- @property (nonatomic, strong) NSArray *specsArray;
- @property (nonatomic, assign) NSTimeInterval timeInterval;
- @property (nonatomic, strong) PriceDetailItem *priceDetailItem;
- @property (nonatomic, assign) kProductState productState; // 产品状态
- @property (nonatomic, strong) ServeUserItem *serveUserItem; // 客服信息
- @property (nonatomic, strong) AuthorityItem *authorityItem; // 购买权限
- @property (nonatomic, strong) NSString *shareUrl;
- // 为确认订单页组织model
- //- (SubmitOrderItem *)submitModelWithSpecArray:(NSArray *)specArray orderType:(kOrderType)orderType;
- - (BOOL)hasMoreComment;
- - (BOOL)isPostageFree;
- - (NSString *)getFirstImgUrl;
- - (ProductShowItem *)showItemAtIndex:(NSUInteger)index;
- - (NSArray *)allProductImgUrlArray; // 所有图片URL数组
- @end
|