Commit 396792ba62c1206e0a9108d61b12330e14e485f0
1 parent
751fc4ea
Exists in
parentassistant
添加补卡申请接口
Showing
4 changed files
with
20 additions
and
1 deletions
Show diff stats
ParentAssistant/ParentAssistant.xcworkspace/xcuserdata/caoyang.xcuserdatad/UserInterfaceState.xcuserstate
No preview for this file type
ParentAssistant/ParentAssistant/Classes/controllers/Grow/Program/ProgramCardViewController.swift
| ... | ... | @@ -31,6 +31,13 @@ class ProgramCardViewController: UIViewController,UITextFieldDelegate { |
| 31 | 31 | |
| 32 | 32 | @objc func applyAction(){ |
| 33 | 33 | print("补卡申请提交") |
| 34 | + let params = ["studentid":1,"onecard":"sss"] as [String : Any] | |
| 35 | + HTTPServer.shared.postStudentMendCard(parameters: params as [String : AnyObject]) { (backData, error) in | |
| 36 | + print(backData!) | |
| 37 | + if error == nil && JSON.fromString(backData)!["status"].intValue == 1 { | |
| 38 | + | |
| 39 | + } | |
| 40 | + } | |
| 34 | 41 | } |
| 35 | 42 | |
| 36 | 43 | lazy var rootView = {()->UIScrollView in | ... | ... |
ParentAssistant/ParentAssistant/Classes/util/Macro.swift
| ... | ... | @@ -72,6 +72,11 @@ let URL_PARENTSERVICE_ORDERCENTER="/api/ParentService/OrderCenter" //订购 |
| 72 | 72 | let URL_PARENTSERVICE_ORDERSERVICEDETAILS="/api/ParentService/OrderServiceDetails" //查看订购详情 |
| 73 | 73 | let URL_PARENTSERVICE_GETADS="/api/ParentService/GetAds" //获取广告位信息 广告位置0-首次广告位1-开屏广告位2-资讯首页3-频道首页4-频道内容5-文章内容页 |
| 74 | 74 | |
| 75 | +//MARK: - 成长 | |
| 76 | +//MARK: 应用 | |
| 77 | +let URL_POST_MEND_CARD = "/api/OneCard/AddStuCard" //补卡 | |
| 78 | + | |
| 79 | + | |
| 75 | 80 | //MARK: 量规评价 |
| 76 | 81 | /// 德育报告整体详情 |
| 77 | 82 | let URL_POST_EVALUATION_ANALYSIS = "/api/EvaluationLabel/Getstatisticsanalytical" | ... | ... |
ParentAssistant/ParentAssistant/Classes/util/network.swift
| ... | ... | @@ -225,7 +225,14 @@ final class HTTPServer{ |
| 225 | 225 | func workReport(parameters: [String : AnyObject]?,completionHandler:@escaping (String?, NSError?) -> ()){ |
| 226 | 226 | KHttp.POST(url: URL_PARENTSERVICE_WORKREPORT, parameters: parameters,headers:["Authorization":token!], completionHandler: completionHandler) |
| 227 | 227 | } |
| 228 | - //MARK: - 量规评价 | |
| 228 | + | |
| 229 | + //MARK: - 成长 | |
| 230 | + //MARK: 应用 | |
| 231 | + func postStudentMendCard(parameters: [String : AnyObject]?,completionHandler:@escaping (String?, NSError?) -> ()){ | |
| 232 | + KHttp.POST(url: URL_POST_MEND_CARD, parameters: parameters,headers:["Authorization":token!], completionHandler: completionHandler) | |
| 233 | + } | |
| 234 | + | |
| 235 | + //MARK:量规评价 | |
| 229 | 236 | //获取报告详情 |
| 230 | 237 | func workReportDetails(parameters: [String : AnyObject]?,completionHandler:@escaping (String?, NSError?) -> ()){ |
| 231 | 238 | KHttp.POST(url: URL_PARENTSERVICE_WORKREPORTDETAILS, parameters: parameters,headers:["Authorization":token!], completionHandler: completionHandler) | ... | ... |