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