//
//  PaymentView.h
//  PayInPasswordDemo
//
//  Created by IOS-Sun on 16/2/24.
//  Copyright 漏 2016骞?IOS-Sun. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TransViewAfterView.h"

/**
 *  鏍规嵁浠樻瀵硅薄灞曠ず鐨勫垪琛ㄦ牸寮? */
typedef enum{
    PaymentTypeShopping = 1,//璐墿
    PaymentTypeCard,//淇$敤鍗¤繕娆?    PaymentTypeTurn,//杞处
}PaymentType;

/**
 *  鎻愮ず妗嗗脊鍑虹殑褰㈠紡
 */
typedef enum{
    PayAlertTypeAlert,//寮瑰嚭鐨勫舰寮忓嚭鐜板湪灞忓箷涓棿
    PayAlertTypeSheet,//鍦ㄤ笅鏂瑰嚭鐜?    PayAlertTypeOtherPage,//鏀粯鍦ㄥ彟涓€涓晫闈?}PayAlertType;



@interface PaymentView : TransViewAfterView


//鎻愮ず妗嗘爣棰?@property (nonatomic, copy) NSString * title;

//浠樻鏂瑰紡閫夋嫨
@property (nonatomic, copy) void(^cardInfo)(NSString * info);

@property (nonatomic, assign) NSInteger pwdCount;


/**
 *  宸︿晶鏍囬锛屽彲浠ユ牴鎹畃ayType璧嬪€硷紝涔熷彲鑷畾涔?鑷畾涔夋椂锛屼笉鍙缃畃ayType)
 */
@property (nonatomic, assign) BOOL      isChanged;//鏍囩ず鏁扮粍鏄惁璧嬪€硷紝榛樿鍊糔O
@property (nonatomic, strong) NSArray * leftTitles;


/**
 *  鍗曞厓鏍煎彸渚т俊鎭? */
@property (nonatomic, strong) NSMutableArray * rightContents;
@property (nonatomic, copy)   NSString       * payDescrip;
@property (nonatomic, copy)   NSString       * payTool;
@property (nonatomic, assign) CGFloat          payAmount;

/**
 *  浠樻绫诲瀷
 */
@property (nonatomic, assign) PaymentType payType;

/**
 *  鎻愮ず妗嗗脊鍑虹被鍨? */
@property (nonatomic, assign) PayAlertType alertType;


@property (nonatomic,copy) void (^completeHandle)(NSString *inputPwd);

/**
 *  鏄剧ず浠樻璇︽儏鎻愮ず妗? */
- (void)show;

/**
 *  鍒锋柊鎻愮ず妗嗘暟鎹? */
- (void)reloadPaymentView;

@end
// 鐗堟潈灞炰簬鍘熶綔鑰?// http://code4app.com (cn) http://code4app.net (en)
// 鍙戝竷浠g爜浜庢渶涓撲笟鐨勬簮鐮佸垎浜綉绔? Code4App.com