在前后端开发联调前 的提交20260223
This commit is contained in:
15
docs/h5_ui/js/customer-service-records.js
Normal file
15
docs/h5_ui/js/customer-service-records.js
Normal file
@@ -0,0 +1,15 @@
|
||||
/* 客户服务记录页 — 月份切换 */
|
||||
(function () {
|
||||
var currentMonth = 2;
|
||||
|
||||
window.switchMonth = function (direction) {
|
||||
if (direction === 'prev' && currentMonth > 1) currentMonth--;
|
||||
else if (direction === 'next' && currentMonth < 2) currentMonth++;
|
||||
|
||||
document.getElementById('monthLabel').textContent = '2026年' + currentMonth + '月';
|
||||
document.getElementById('nextMonthBtn').disabled = currentMonth >= 2;
|
||||
document.getElementById('nextMonthBtn').style.opacity = currentMonth >= 2 ? '0.3' : '1';
|
||||
document.getElementById('prevMonthBtn').disabled = currentMonth <= 1;
|
||||
document.getElementById('prevMonthBtn').style.opacity = currentMonth <= 1 ? '0.3' : '1';
|
||||
};
|
||||
})();
|
||||
Reference in New Issue
Block a user