在前后端开发联调前 的提交20260223
This commit is contained in:
21
docs/h5_ui/js/notes.js
Normal file
21
docs/h5_ui/js/notes.js
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 备注页面 Tab 切换逻辑
|
||||
*/
|
||||
function switchTab(tab) {
|
||||
var customerNotes = document.getElementById('customerNotes');
|
||||
var coachNotes = document.getElementById('coachNotes');
|
||||
var tabCustomer = document.getElementById('tabCustomer');
|
||||
var tabCoach = document.getElementById('tabCoach');
|
||||
|
||||
if (tab === 'customer') {
|
||||
customerNotes.classList.remove('hidden');
|
||||
coachNotes.classList.add('hidden');
|
||||
tabCustomer.classList.add('active');
|
||||
tabCoach.classList.remove('active');
|
||||
} else {
|
||||
customerNotes.classList.add('hidden');
|
||||
coachNotes.classList.remove('hidden');
|
||||
tabCustomer.classList.remove('active');
|
||||
tabCoach.classList.add('active');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user