44323
2023-10-26 91cabe852620e6a2f67344aa74363226152906c4
cloud-server-management/src/main/webapp/static/modular/system/cpPayment/cpPayment_info.js
@@ -309,8 +309,15 @@
        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 字符串
@@ -339,8 +346,11 @@
}
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){
@@ -351,8 +361,8 @@
            $("#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) {