From 437a74c950f626398edd13025c654286280e7bbc Mon Sep 17 00:00:00 2001 From: liujie <1793218484@qq.com> Date: 星期一, 01 九月 2025 18:01:30 +0800 Subject: [PATCH] bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js | 91 ++++++++++++++++++++++++++++++--------------- 1 files changed, 61 insertions(+), 30 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js b/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js index c12f83f..e3522fe 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/worldCup/worldCup_info.js @@ -45,7 +45,11 @@ let intro = $('#intro').val(); let coverImg = $('#coverImg').val(); let homeBackdropImg = $('#homeBackdropImg').val(); + let type = $('#type').val(); + let drawIntegral = $('#drawIntegral').val(); + let loseIntegral = $('#loseIntegral').val(); let content = editor.getContent(); + let contentOne = editor1.getContent(); if(null == name || '' == name){ Feng.error("请填写有效的比赛名称"); return @@ -120,27 +124,30 @@ Feng.error("请填写有效的赛事简介"); return } - if(null == coverImg || '' == coverImg){ - Feng.error("请上传有效的比赛封面图"); - return - } - if(null == homeBackdropImg || '' == homeBackdropImg){ - Feng.error("请上传有效的首页默认背景图"); - return - } - if(WorldCupInfo.goodsPicArray1 == 0){ - Feng.error("请上传有效的比赛图片"); - return - } + // if(null == coverImg || '' == coverImg){ + // Feng.error("请上传有效的比赛封面图"); + // return + // } + // if(null == homeBackdropImg || '' == homeBackdropImg){ + // Feng.error("请上传有效的首页默认背景图"); + // return + // } + // if(WorldCupInfo.goodsPicArray1 == 0){ + // Feng.error("请上传有效的比赛图片"); + // return + // } if(null == content || '' == content){ Feng.error("请填写有效的比赛详情"); + return + } + if(null == contentOne || '' == contentOne){ + Feng.error("请填写有效的参赛协议"); return } let data = { 'name': name, 'startTime': new Date(startTime + " 00:00:00"), 'endTime': new Date(endTime + " 23:59:59"), - 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), 'startAge': startAge, 'endAge': endAge, 'gender': gender, @@ -160,7 +167,14 @@ 'infoImg': JSON.stringify(WorldCupInfo.goodsPicArray1), 'intro': intro, 'content': content, - 'stores': JSON.stringify(WorldCupInfo.stores) + 'stores': JSON.stringify(WorldCupInfo.stores), + 'type': type, + 'drawIntegral': drawIntegral, + 'loseIntegral': loseIntegral, + 'contentOne': contentOne + } + if(null != registrationClosingTime && '' != registrationClosingTime){ + data.registrationClosingTime = new Date(registrationClosingTime + " 23:59:59"); } //提交信息 @@ -206,6 +220,10 @@ let coverImg = $('#coverImg').val(); let homeBackdropImg = $('#homeBackdropImg').val(); let content = editor.getContent(); + let type = $('#type').val(); + let drawIntegral = $('#drawIntegral').val(); + let loseIntegral = $('#loseIntegral').val(); + let contentOne = editor1.getContent(); if(null == name || '' == name){ Feng.error("请填写有效的比赛名称"); return @@ -280,28 +298,32 @@ Feng.error("请填写有效的赛事简介"); return } - if(null == coverImg || '' == coverImg){ - Feng.error("请上传有效的比赛封面图"); - return - } - if(null == homeBackdropImg || '' == homeBackdropImg){ - Feng.error("请上传有效的首页默认背景图"); - return - } - if(WorldCupInfo.goodsPicArray1 == 0){ - Feng.error("请上传有效的比赛图片"); - return - } + // if(null == coverImg || '' == coverImg){ + // Feng.error("请上传有效的比赛封面图1"); + // return + // } + // if(null == homeBackdropImg || '' == homeBackdropImg){ + // Feng.error("请上传有效的首页默认背景图"); + // return + // } + // if(WorldCupInfo.goodsPicArray1 == 0){ + // Feng.error("请上传有效的比赛图片"); + // return + // } if(null == content || '' == content){ Feng.error("请填写有效的比赛详情"); return } + if(null == contentOne || '' == contentOne){ + Feng.error("请填写有效的参赛协议"); + return + } + let data = { 'id': $('#id').val(), 'name': name, 'startTime': new Date(startTime + " 00:00:00"), 'endTime': new Date(endTime + " 23:59:59"), - 'registrationClosingTime': (null != registrationClosingTime && '' != registrationClosingTime ? new Date(registrationClosingTime + " 23:59:59") : null), 'startAge': startAge, 'endAge': endAge, 'gender': gender, @@ -321,7 +343,14 @@ 'infoImg': JSON.stringify(WorldCupInfo.goodsPicArray1), 'intro': intro, 'content': content, - 'stores': JSON.stringify(WorldCupInfo.stores) + 'stores': JSON.stringify(WorldCupInfo.stores), + 'type': type, + 'drawIntegral': drawIntegral, + 'loseIntegral': loseIntegral, + 'contentOne': contentOne + } + if(null != registrationClosingTime && '' != registrationClosingTime){ + data.registrationClosingTime = new Date(registrationClosingTime + " 23:59:59"); } //提交信息 @@ -396,10 +425,10 @@ $('.cash').hide(); } if(v == 2){ - $('.classHour').hide(); + $('.paiCoin').hide(); } if(v == 3){ - $('.paiCoin').hide(); + $('.classHour').hide(); } } @@ -565,7 +594,9 @@ var editor = null; +var editor1 = null; $(function () { //初始化编辑器 editor = UE.getEditor('content'); + editor1 = UE.getEditor('contentOne'); }); \ No newline at end of file -- Gitblit v1.7.1