Commit 2548ba7e by Olzhas Aldabergenov

app store version 1.0

parent 3c9e0dd7
...@@ -131,37 +131,5 @@ ...@@ -131,37 +131,5 @@
landmarkType = "7"> landmarkType = "7">
</BreakpointContent> </BreakpointContent>
</BreakpointProxy> </BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "kt/ViewControllers/Cabinet/LKSettingsViewController.swift"
timestampString = "534142482.986384"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "497"
endingLineNumber = "497"
landmarkName = "changeAbonentSettings()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "kt/ViewControllers/Cabinet/LKSettingsViewController.swift"
timestampString = "534142482.986384"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "518"
endingLineNumber = "518"
landmarkName = "changeAbonentSettings()"
landmarkType = "7">
</BreakpointContent>
</BreakpointProxy>
</Breakpoints> </Breakpoints>
</Bucket> </Bucket>
...@@ -22,8 +22,9 @@ class ServiceCallbackRequest { ...@@ -22,8 +22,9 @@ class ServiceCallbackRequest {
var validationMessage = "" var validationMessage = ""
var formType: Int? var formType: Int?
var userComment: String? var userComment: String?
var regionType: String?
init(cityId: String? = nil, serviceId: Int? = nil, fullName: String? = nil, phone: String? = nil, email: String? = nil, type: Int? = nil, formType: Int? = nil, userComment: String? = nil) { init(cityId: String? = nil, serviceId: Int? = nil, fullName: String? = nil, phone: String? = nil, email: String? = nil, type: Int? = nil, formType: Int? = nil, userComment: String? = nil, regionType: String? = nil) {
self.cityId = cityId self.cityId = cityId
self.serviceId = serviceId self.serviceId = serviceId
self.fullName = fullName self.fullName = fullName
...@@ -32,6 +33,7 @@ class ServiceCallbackRequest { ...@@ -32,6 +33,7 @@ class ServiceCallbackRequest {
self.type = type self.type = type
self.formType = formType self.formType = formType
self.userComment = userComment self.userComment = userComment
self.regionType = regionType
} }
func validateFields() -> Bool { func validateFields() -> Bool {
...@@ -54,7 +56,7 @@ class ServiceCallbackRequest { ...@@ -54,7 +56,7 @@ class ServiceCallbackRequest {
var params: [String: AnyObject] { var params: [String: AnyObject] {
var resultParams: [String: AnyObject] = ["region": cityId!, var resultParams: [String: AnyObject] = ["region": cityId!,
"region_type": "city", "region_type": regionType!,
"service_id": serviceId!, "service_id": serviceId!,
"name": fullName!, "name": fullName!,
"phone": phone!, "phone": phone!,
......
{ {
"images" : [ "images" : [
{ {
"idiom" : "iphone",
"size" : "20x20", "size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-41.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "iphone",
"size" : "20x20", "size" : "20x20",
"idiom" : "iphone",
"filename" : "Icon-60.png",
"scale" : "3x" "scale" : "3x"
}, },
{ {
"size" : "29x29", "size" : "29x29",
"idiom" : "iphone", "idiom" : "iphone",
"filename" : "settings_icon@2x.png", "filename" : "Icon-58.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"size" : "29x29", "size" : "29x29",
"idiom" : "iphone", "idiom" : "iphone",
"filename" : "settings_icon@3x.png", "filename" : "Icon-87.png",
"scale" : "3x" "scale" : "3x"
}, },
{ {
"size" : "40x40", "size" : "40x40",
"idiom" : "iphone", "idiom" : "iphone",
"filename" : "spotlight_icon@2x.png", "filename" : "Icon-80.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"size" : "40x40", "size" : "40x40",
"idiom" : "iphone", "idiom" : "iphone",
"filename" : "spotlight_icon@3x.png", "filename" : "Icon-120.png",
"scale" : "3x" "scale" : "3x"
}, },
{ {
"size" : "60x60", "size" : "60x60",
"idiom" : "iphone", "idiom" : "iphone",
"filename" : "app_icon@2x.png", "filename" : "Icon-121.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"size" : "60x60", "size" : "60x60",
"idiom" : "iphone", "idiom" : "iphone",
"filename" : "app_icon@3x.png", "filename" : "Icon-180.png",
"scale" : "3x" "scale" : "3x"
}, },
{ {
...@@ -59,42 +61,43 @@ ...@@ -59,42 +61,43 @@
{ {
"size" : "29x29", "size" : "29x29",
"idiom" : "ipad", "idiom" : "ipad",
"filename" : "settings_icon.png", "filename" : "Icon-29.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"size" : "29x29", "size" : "29x29",
"idiom" : "ipad", "idiom" : "ipad",
"filename" : "settings_icon@2x-1.png", "filename" : "Icon-59.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"size" : "40x40", "size" : "40x40",
"idiom" : "ipad", "idiom" : "ipad",
"filename" : "spotlight_icon.png", "filename" : "Icon-40.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"size" : "40x40", "size" : "40x40",
"idiom" : "ipad", "idiom" : "ipad",
"filename" : "spotlight_icon@2x-1.png", "filename" : "Icon-81.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"size" : "76x76", "size" : "76x76",
"idiom" : "ipad", "idiom" : "ipad",
"filename" : "app_icon.png", "filename" : "Icon-76.png",
"scale" : "1x" "scale" : "1x"
}, },
{ {
"size" : "76x76", "size" : "76x76",
"idiom" : "ipad", "idiom" : "ipad",
"filename" : "app_icon-ipad@2x.png", "filename" : "Icon-152.png",
"scale" : "2x" "scale" : "2x"
}, },
{ {
"idiom" : "ipad",
"size" : "83.5x83.5", "size" : "83.5x83.5",
"idiom" : "ipad",
"filename" : "Icon-167.png",
"scale" : "2x" "scale" : "2x"
} }
], ],
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>????</string> <string>????</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>71</string> <string>74</string>
<key>Fabric</key> <key>Fabric</key>
<dict> <dict>
<key>APIKey</key> <key>APIKey</key>
......
...@@ -46,7 +46,9 @@ func isValidMacAddress(testStr: String) -> Bool { ...@@ -46,7 +46,9 @@ func isValidMacAddress(testStr: String) -> Bool {
} }
func isValidPassword(password: String) -> Bool { func isValidPassword(password: String) -> Bool {
let pwdRegEx = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{8,}$" let pwdRegEx = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$"
//let pwdRegEx = "^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)[a-zA-Z\\d]{8,}$"
let pwdTest = NSPredicate(format:"SELF MATCHES %@", pwdRegEx) let pwdTest = NSPredicate(format:"SELF MATCHES %@", pwdRegEx)
let result = pwdTest.evaluateWithObject(password) let result = pwdTest.evaluateWithObject(password)
return result return result
......
...@@ -204,6 +204,7 @@ class OnlinePaymentViewController: UIViewController, UITextViewDelegate, UITable ...@@ -204,6 +204,7 @@ class OnlinePaymentViewController: UIViewController, UITextViewDelegate, UITable
let request = PaymentCreateOrderRequest(payType: OnlinePaymentViewController.currentPayType, email: OnlinePaymentViewController.email, guidOrPhone: OnlinePaymentViewController.guidOrPhone, amount: OnlinePaymentViewController.summ, lang: AppLocalization.language().forTelecom) let request = PaymentCreateOrderRequest(payType: OnlinePaymentViewController.currentPayType, email: OnlinePaymentViewController.email, guidOrPhone: OnlinePaymentViewController.guidOrPhone, amount: OnlinePaymentViewController.summ, lang: AppLocalization.language().forTelecom)
guard request.validateFields() else { AlertViewUtil.showAlert(request.validationMessage); return } guard request.validateFields() else { AlertViewUtil.showAlert(request.validationMessage); return }
self.processRequest(true) self.processRequest(true)
//print(request)
Facade.sharedInstance().createOrder(request.params, onSuccess: { (data) in Facade.sharedInstance().createOrder(request.params, onSuccess: { (data) in
self.performSegueWithIdentifier("payment_form", sender: data) self.performSegueWithIdentifier("payment_form", sender: data)
}, onError: { (error) in }, onError: { (error) in
......
...@@ -42,8 +42,8 @@ class CallbackViewController: KeyboardedViewController, UIPickerViewDataSource, ...@@ -42,8 +42,8 @@ class CallbackViewController: KeyboardedViewController, UIPickerViewDataSource,
self.navigationItem.title = LS("service.callback")//"Обратный звонок" self.navigationItem.title = LS("service.callback")//"Обратный звонок"
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CallbackViewController.keyboardWillShow(_:)), name: UIKeyboardWillShowNotification, object: nil) //NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CallbackViewController.keyboardWillShow(_:)), name: UIKeyboardWillShowNotification, object: nil)
NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CallbackViewController.keyboardWillHide(_:)), name: UIKeyboardWillHideNotification, object: nil) //NSNotificationCenter.defaultCenter().addObserver(self, selector: #selector(CallbackViewController.keyboardWillHide(_:)), name: UIKeyboardWillHideNotification, object: nil)
filoField.text = AbonentInfoManager.sharedInstance.abonentInfo?.name filoField.text = AbonentInfoManager.sharedInstance.abonentInfo?.name
phoneField.text = getFormattedPhone( (AbonentInfoManager.sharedInstance.abonentInfo?.mobilePhone!.stringValue)! ) phoneField.text = getFormattedPhone( (AbonentInfoManager.sharedInstance.abonentInfo?.mobilePhone!.stringValue)! )
...@@ -160,9 +160,9 @@ class CallbackViewController: KeyboardedViewController, UIPickerViewDataSource, ...@@ -160,9 +160,9 @@ class CallbackViewController: KeyboardedViewController, UIPickerViewDataSource,
@IBAction func sendButtonPressed(sender: AnyObject) { @IBAction func sendButtonPressed(sender: AnyObject) {
let request = ServiceCallbackRequest(cityId: self.serverItem.id, serviceId: service_id, fullName: filoField.text, phone: getPhoneDigits(phoneField.text!), let request = ServiceCallbackRequest(cityId: self.serverItem.id, serviceId: service_id, fullName: filoField.text, phone: getPhoneDigits(phoneField.text!),
email: emailField.text, type: type, formType: formType, userComment: user_comment) email: emailField.text, type: type, formType: formType, userComment: user_comment,
print(request.params) regionType: self.serverItem!.regionType)
//return;
guard request.validateFields() else { guard request.validateFields() else {
AlertViewUtil.showAlert(request.validationMessage); AlertViewUtil.showAlert(request.validationMessage);
return } return }
......
...@@ -130,11 +130,11 @@ class UIFastPayTableViewCell : UIBaseTableViewCell { ...@@ -130,11 +130,11 @@ class UIFastPayTableViewCell : UIBaseTableViewCell {
} }
cellData.creditValue = "\(summ) тг." cellData.creditValue = "\(summ) тг."
cellData.summ = "\(summ)" cellData.summ = "\(summ)"
if Double(balance)! <= 0 { // if Double(balance)! <= 0 {
self.lblCreditTitle.setTextAndSizeToFit(LS("fastPayCell_credit_title2").uppercaseString) // self.lblCreditTitle.setTextAndSizeToFit(LS("fastPayCell_credit_title2").uppercaseString)
self.button.enabled = false // self.button.enabled = false
self.button.titleLabel?.text = LS("fastPay_positive_balance") // self.button.titleLabel?.text = LS("fastPay_positive_balance")
} // }
loadingIndicator.stopAnimating() loadingIndicator.stopAnimating()
loadingIndicator.removeFromSuperview() loadingIndicator.removeFromSuperview()
}) { (nsError) in }) { (nsError) in
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment