| | |
| | | typeId:null, |
| | | turnId:null, |
| | | content:"", |
| | | storeId:null, |
| | | }; |
| | | let name = $("#model").val(); |
| | | data1.id = $("#id").val(); |
| | |
| | | data1.typeId = $("#type").val(); |
| | | data1.turnId = $("#pageId").val(); |
| | | data1.content = jQuery.trim(THomeModuleDlg.editor.getContent()); |
| | | data1.storeId = $("#id_").val(); |
| | | |
| | | if ( $("#roleType").val()==1){ |
| | | if($("#title").val()==''){ |
| | |
| | | } |
| | | if(name !='0') { |
| | | if ($("#roleType").val() == 1) { |
| | | if ($('#type option:selected').text() == "详情"&&$('#type option:selected').text() == "指定商品"&&$('#type option:selected').text() == "指定折扣") { |
| | | if ($('#type option:selected').text() == "详情"||$('#type option:selected').text() == "指定商品"||$('#type option:selected').text() == "指定折扣") { |
| | | if ($("#pageId").val() == '') { |
| | | Feng.info("请输入跳转ID") |
| | | return; |
| | |
| | | } |
| | | } |
| | | } |
| | | if ( $("#roleType").val()==1){ |
| | | if($("#content").val()==''){ |
| | | if(data1.content ==''){ |
| | | data1.content = $("#content").val(); |
| | | Feng.info("请填写内容设置") |
| | | return; |
| | | } |
| | | } |
| | | console.log(data1,1111) |
| | | |
| | | $.ajax({ |
| | | url: Feng.ctxPath + "/tHomeModule/updateHomeModule", |
| | | type: "POST", |