明树Git Lab
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
B
bridata-website-frontend
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
Administrator
bridata-website-frontend
Commits
6825500b
Commit
6825500b
authored
Dec 19, 2025
by
yangyajing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify url
parent
e890eeb2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
35 deletions
+36
-35
channel.html
public/channel.html
+36
-35
No files found.
public/channel.html
View file @
6825500b
...
...
@@ -603,42 +603,43 @@
* @param {string} configKey - Key from modalConfigs.
*/
function
showModal
(
configKey
)
{
currentConfigKey
=
configKey
;
const
config
=
modalConfigs
[
configKey
];
// Reset form and status
contactForm
.
reset
();
contactForm
.
classList
.
remove
(
'hidden'
);
successMessage
.
classList
.
add
(
'hidden'
);
roleSelection
.
innerHTML
=
''
;
// Clear previous roles
roleSelection
.
classList
.
add
(
'hidden'
);
// Hide by default
modalTitle
.
textContent
=
config
.
title
;
modalSubtitle
.
textContent
=
config
.
subtitle
;
// Handle role selection
if
(
config
.
roles
.
length
>
0
)
{
roleSelection
.
classList
.
remove
(
'hidden'
);
config
.
roles
.
forEach
(
role
=>
{
const
isChecked
=
role
.
id
===
config
.
defaultRole
;
const
radioHtml
=
`
<label class="flex items-center cursor-pointer flex-1 min-w-[45%]">
<input type="radio" name="role" value="
${
role
.
id
}
" id="
${
role
.
id
}
" class="form-radio text-primary h-4 w-4"
${
isChecked
?
'checked'
:
''
}
onchange="updatePlaceholder('
${
role
.
placeholder
}
')">
<span class="ml-2 text-white text-sm">
${
role
.
label
}
</span>
</label>
`
;
roleSelection
.
insertAdjacentHTML
(
'beforeend'
,
radioHtml
);
});
// Set initial placeholder for the default role
const
defaultRoleConfig
=
config
.
roles
.
find
(
r
=>
r
.
id
===
config
.
defaultRole
);
updatePlaceholder
(
defaultRoleConfig
?
defaultRoleConfig
.
placeholder
:
''
);
}
else
{
// Handle fixed placeholders for other buttons
roleSelection
.
classList
.
add
(
'hidden'
);
updatePlaceholder
(
config
.
defaultPlaceholder
||
''
);
}
modal
.
classList
.
remove
(
'hidden'
);
location
.
href
=
"https://xcnd4mpcx4em.feishu.cn/share/base/form/shrcnzkPrDRZ4v3aCGrnkaQarrh"
;
// currentConfigKey = configKey;
// const config = modalConfigs[configKey];
// // Reset form and status
// contactForm.reset();
// contactForm.classList.remove('hidden');
// successMessage.classList.add('hidden');
// roleSelection.innerHTML = ''; // Clear previous roles
// roleSelection.classList.add('hidden'); // Hide by default
// modalTitle.textContent = config.title;
// modalSubtitle.textContent = config.subtitle;
// // Handle role selection
// if (config.roles.length > 0) {
// roleSelection.classList.remove('hidden');
// config.roles.forEach(role => {
// const isChecked = role.id === config.defaultRole;
// const radioHtml = `
//
<
label
class
=
"flex items-center cursor-pointer flex-1 min-w-[45%]"
>
//
<
input
type
=
"radio"
name
=
"role"
value
=
"${role.id}"
id
=
"${role.id}"
class
=
"form-radio text-primary h-4 w-4"
$
{
isChecked
?
'checked'
:
''
}
onchange
=
"updatePlaceholder('${role.placeholder}')"
>
//
<
span
class
=
"ml-2 text-white text-sm"
>
$
{
role
.
label
}
<
/span
>
//
<
/label
>
// `;
// roleSelection.insertAdjacentHTML('beforeend', radioHtml);
// });
// // Set initial placeholder for the default role
// const defaultRoleConfig = config.roles.find(r => r.id === config.defaultRole);
// updatePlaceholder(defaultRoleConfig ? defaultRoleConfig.placeholder : '');
// } else {
// // Handle fixed placeholders for other buttons
// roleSelection.classList.add('hidden');
// updatePlaceholder(config.defaultPlaceholder || '');
// }
// modal.classList.remove('hidden');
}
/**
...
...
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