| | |
| | | Feng.info("请输入玩湃币支付") |
| | | return; |
| | | } |
| | | var courseTimeId= $("#courseTime").val() |
| | | console.log("看看课时") |
| | | console.log(courseTimeId) |
| | | if(typeof courseTimeId === 'undefined'){ |
| | | console.log("进入") |
| | | courseTimeId=0; |
| | | } |
| | | $.ajax({ |
| | | url: Feng.ctxPath + "/cpPayment/addCoursePackagePayment/"+ $("#courseTime").val(), |
| | | url: Feng.ctxPath + "/cpPayment/addCoursePackagePayment/"+ courseTimeId, |
| | | type: "POST", |
| | | contentType: "application/json", // 设置请求头的 Content-Type |
| | | data: JSON.stringify(data), // 将数据转换为 JSON 字符串 |
| | |
| | | } |
| | | TCompetition.getCoursePackage = function (e) { |
| | | var oneId=$(e).val(); |
| | | console.log("门店id") |
| | | console.log(oneId) |
| | | var type = $("#coursePackageType").val(); |
| | | var storeId = $("#store").val(); |
| | | console.log("课包类型") |
| | | console.log(storeId) |
| | | var content = "<option value=''>请选择</option>"; |
| | | var ajax = new $ax(Feng.ctxPath + "/coursePackage/getCoursePackageByType", function(data){ |
| | | if(data!=null){ |
| | |
| | | $("#coursePackageName").empty().append(content); |
| | | } |
| | | }); |
| | | ajax.set("storeId",oneId); |
| | | ajax.set("courseType",type); |
| | | ajax.set("storeId",storeId); |
| | | ajax.set("typeId",oneId); |
| | | ajax.start(); |
| | | }; |
| | | TCompetition.getCoursePackageConfig = function (e) { |