Açıklama Yok

FKPurchaseCache.h 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. //
  2. // FKPurchaseCache.h
  3. // FirstLink
  4. //
  5. // Created by ascii on 15/11/4.
  6. // Copyright © 2015年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "PindanSpecItem.h"
  10. @interface FKPurchaseCache : NSObject
  11. #pragma mark - Data from Detail Controller
  12. @property (nonatomic, assign) kOrderType orderType;
  13. @property (nonatomic, assign) kUserLevel userLevel; // 当前登录用户等级
  14. /**
  15. * 拼单是否需要上传身份证
  16. */
  17. @property (nonatomic, assign) BOOL isPindanNeedIDCard;
  18. /**
  19. * 如果在提交订单页面没有绑定身份证,那么付款后需要再次绑定身份信息
  20. */
  21. @property (nonatomic, assign) BOOL isNeedBindIDCard;
  22. @property (nonatomic, assign) NSInteger limiteAmount; // 限购数量
  23. @property (nonatomic, assign) NSInteger postageState; // 是否包邮(0:不包邮,1:包邮,2:会员包邮)
  24. @property (nonatomic, strong) NSString *unitWeight; // 单个重量
  25. @property (nonatomic, strong) NSString *internationalPostage; // 国际邮费,价格 = 国外商品价格+国际邮费
  26. @property (nonatomic, strong) NSString *postID;
  27. @property (nonatomic, strong) NSString *userID;
  28. @property (nonatomic, strong) NSString *descString; // 商品描述
  29. @property (nonatomic, strong) NSArray *specArray;
  30. #pragma mark - Data from Submit Order Controller
  31. - (BOOL)isVIP;
  32. - (long)getAllWeight;
  33. - (long)getAllAmount;
  34. - (CGFloat)getTotalPrice; // 获取商品总价
  35. - (NSAttributedString *)getTotalPriceString; // 获取商品总价
  36. - (NSInteger)getRealAmountLimit;
  37. - (NSInteger)getStockLimitAtIndex:(NSInteger)index; // 获取每个商品的库存
  38. - (CGFloat)getSingleProductPriceForIndex:(NSInteger)index; // 获取单个商品总价
  39. - (CGFloat)getSingleVipProductPriceForIndex:(NSInteger)index; // 获取单个VIP商品总价
  40. - (void)changeSpecAmount:(NSInteger)amount AtIndex:(NSInteger)index; // 改变选中数量
  41. - (PindanSpecItem *)getSpecItemAtIndex:(NSInteger)index;
  42. @end