Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
micro_app
gk
Commits
fb617209
Commit
fb617209
authored
May 30, 2025
by
daniel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(cmpt): 新增品牌设置
parent
6acb22a8
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
9 deletions
+47
-9
CmptMapper.xml
.../com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
+11
-3
CmptService.java
...a/com/dlbridge/jadp/plugins/cmpt/service/CmptService.java
+2
-0
outter-link.jsp
src/main/webapp/WEB-INF/views/cmpt/outter-link.jsp
+4
-0
index.js
src/main/webapp/static/js/index.js
+30
-6
No files found.
src/main/java/com/dlbridge/jadp/plugins/cmpt/dao/mapper/CmptMapper.xml
View file @
fb617209
...
@@ -169,7 +169,11 @@
...
@@ -169,7 +169,11 @@
a.create_date AS "createDate",
a.create_date AS "createDate",
a.update_by AS "updateBy",
a.update_by AS "updateBy",
a.update_date AS "updateDate",
a.update_date AS "updateDate",
a.del_flag AS "delFlag"
a.del_flag AS "delFlag",
c.city as city,
c.province as province,
c.area as area,
c.location as location
from gk_cmpt a left join common.neucmpt b on a.cmpt_id=b.gtCmptId
from gk_cmpt a left join common.neucmpt b on a.cmpt_id=b.gtCmptId
left join raceenroll.competition c on b.gcmptid=c.cmptid
left join raceenroll.competition c on b.gcmptid=c.cmptid
where a.del_flag=0
where a.del_flag=0
...
@@ -270,8 +274,12 @@
...
@@ -270,8 +274,12 @@
b.city as city,
b.city as city,
b.province as province,
b.province as province,
b.area as area,
b.area as area,
b.location as location
b.location as location,
from common.neucmpt a inner join raceenroll.competition b on a.gcmptid = b.cmptid
g.detail_style as detailStyle,
g.is_show_tab as isShowTab
from common.neucmpt a
inner join raceenroll.competition b on a.gcmptid = b.cmptid
left join gksite.gk_cmpt g on a.gtCmptid = g.cmpt_id
where a.gtcmptid=#{cmptid}
where a.gtcmptid=#{cmptid}
</select>
</select>
...
...
src/main/java/com/dlbridge/jadp/plugins/cmpt/service/CmptService.java
View file @
fb617209
...
@@ -57,6 +57,8 @@ public class CmptService {
...
@@ -57,6 +57,8 @@ public class CmptService {
localCmpt
.
setStartTime
(
cmpt
.
getStartTime
());
localCmpt
.
setStartTime
(
cmpt
.
getStartTime
());
localCmpt
.
setEndTime
(
cmpt
.
getEndTime
());
localCmpt
.
setEndTime
(
cmpt
.
getEndTime
());
localCmpt
.
setCmptType
(
cmpt
.
getCmptType
());
localCmpt
.
setCmptType
(
cmpt
.
getCmptType
());
localCmpt
.
setDetailStyle
(
cmpt
.
getDetailStyle
());
localCmpt
.
setIsShowTab
(
cmpt
.
getIsShowTab
());
// by ggb 2025/05/09 设置城市、省份、区域、地址
// by ggb 2025/05/09 设置城市、省份、区域、地址
localCmpt
.
setCity
(
cmpt
.
getCity
());
localCmpt
.
setCity
(
cmpt
.
getCity
());
localCmpt
.
setProvince
(
cmpt
.
getProvince
());
localCmpt
.
setProvince
(
cmpt
.
getProvince
());
...
...
src/main/webapp/WEB-INF/views/cmpt/outter-link.jsp
View file @
fb617209
...
@@ -384,6 +384,10 @@
...
@@ -384,6 +384,10 @@
{
{
name
:
'图片'
,
name
:
'图片'
,
value
:
6
,
value
:
6
,
},
{
name
:
'地图'
,
value
:
7
,
}
}
],
],
},
},
...
...
src/main/webapp/static/js/index.js
View file @
fb617209
$
(
function
()
{
$
(
function
()
{
console
.
log
({
cmpt
})
$
(
'#cmptBgColorInput'
).
bind
(
'keyup'
,
function
()
{
$
(
'#cmptBgColorInput'
).
bind
(
'keyup'
,
function
()
{
$
(
'#cmptBgColorInput'
).
val
(
this
.
value
);
$
(
'#cmptBgColorInput'
).
val
(
this
.
value
);
...
@@ -7,19 +7,43 @@ $(function () {
...
@@ -7,19 +7,43 @@ $(function () {
cmptBgColorChange
();
cmptBgColorChange
();
});
});
// by ggb 2025-05-30 为图片添加点击事件监听器
$
(
"#style-select img"
).
click
(
function
()
{
// 获取当前点击图片的样式值
var
selectedStyle
=
$
(
this
).
data
(
'style'
);
// 移除所有图片的 active-style 样式
$
(
"#style-select img"
).
removeClass
(
'active-style'
);
// 为当前点击的图片添加 active-style 样式
$
(
this
).
addClass
(
'active-style'
);
// 将选中的样式值存储到隐藏的 input 中
$
(
"#detailStyle"
).
val
(
selectedStyle
);
console
.
log
(
'当前选中样式: '
,
selectedStyle
);
});
// by ggb 2025-05-30 是否显示 底部的tab
$
(
'#isShowTabSwitch'
).
change
(
function
()
{
// 根据 checkbox 状态更新隐藏 input 的值
$
(
'#isShowInput'
).
val
(
this
.
checked
?
'true'
:
'false'
);
console
.
log
(
'isShowTab 的值为: '
,
$
(
'#isShowInput'
).
val
());
});
$
(
'.savebtn'
).
click
(
function
()
{
$
(
'.savebtn'
).
click
(
function
()
{
let
bg
=
$
(
'#cmptBgColorInput'
).
val
();
let
bg
=
$
(
'#cmptBgColorInput'
).
val
();
let
logo
=
$
(
'#hdcmptLogo'
).
val
();
let
logo
=
$
(
'#hdcmptLogo'
).
val
();
let
detailStyle
=
$
(
'#detailStyle'
).
val
();
let
isShowTab
=
$
(
'#isShowInput'
).
val
();
let
cmptId
=
getCId
();
let
cmptId
=
getCId
();
if
(
bg
.
length
!=
6
){
if
(
bg
.
length
!=
6
){
layer
.
msg
(
'请输入6位合法字符!'
);
layer
.
msg
(
'请输入6位合法字符!'
);
return
;
return
;
}
}
var
param
=
{};
const
param
=
{
param
.
cmptId
=
cmptId
;
detailStyle
:
detailStyle
??
'style-1'
,
param
.
cmptbgColor
=
"#"
+
bg
;
cmptId
,
param
.
logo
=
logo
;
logo
,
cmptbgColor
:
"#"
+
bg
,
isShowTab
:
isShowTab
?
1
:
0
};
$
.
ajax
({
$
.
ajax
({
url
:
'/gk/cmpt/saveCmpt'
,
url
:
'/gk/cmpt/saveCmpt'
,
data
:
JSON
.
stringify
(
param
),
data
:
JSON
.
stringify
(
param
),
...
@@ -27,7 +51,7 @@ $(function () {
...
@@ -27,7 +51,7 @@ $(function () {
type
:
'post'
,
type
:
'post'
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
if
(
data
.
status
)
{
if
(
data
.
status
)
{
window
.
location
.
reload
();
//
window.location.reload();
layer
.
msg
(
'保存成功'
,
{
icon
:
1
,
time
:
1500
});
layer
.
msg
(
'保存成功'
,
{
icon
:
1
,
time
:
1500
});
}
else
{
}
else
{
layer
.
msg
(
'保存失败'
,
{
icon
:
5
,
time
:
1500
});
layer
.
msg
(
'保存失败'
,
{
icon
:
5
,
time
:
1500
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment