diff --git a/index.html b/index.html index 3bab621..402f783 100644 --- a/index.html +++ b/index.html @@ -71,7 +71,7 @@
-
+
跳绳爱好者
@@ -94,7 +94,7 @@
-
+
裁判员
@@ -103,7 +103,7 @@
-
+
请选择培训项目
@@ -111,27 +111,20 @@
-
- +
@@ -337,6 +330,32 @@ // var ul = this.dom.querySelector('ul'); // ul.innerHTML = list // }, + function show(){ + var statusChoose = document.querySelector('.statusChoose'); + statusChoose.style.display='block'; + var list = '' + for (let i=0;i < this.lists.length; i++) { + list += `
  • ` + this.lists[i].name + '
  • '; + } + var ul = this.dom.querySelector('ul'); + ul.innerHTML = list + } + + // // 选择 + function chooseItem(index){ + this.currentIndex = index; + var lis = this.dom.querySelectorAll('li'); + for (var i = 0; i < lis.length; i++){ + var item = lis[i]; + if(i === index){ + item.classList.add('text-white'); + item.style.backgroundColor = '#3b82f6'; + }else{ + item.classList.remove('text-white'); + item.style.backgroundColor = '#fff'; + } + } + } // // 选择 // chooseItem(index){ @@ -368,6 +387,21 @@ // that.checkerId = that.lists[that.currentIndex].memberId // that.hide() // }, + function choose(){ + // const that = this; + // const { dom } = that; + // var startBtn = document.querySelector('.startBtn'); + // startBtn.innerHTML = that.lists[that.currentIndex].name; + // that.checkerId = that.lists[that.currentIndex].memberId + // that.hide() + var statusChoose = document.querySelector('.statusChoose'); + statusChoose.style.display='none'; + } + // 取消 + function hide(){ + var statusChoose = document.querySelector('.statusChoose'); + statusChoose.style.display='none'; + } // // 界面渲染 0未打卡,1已打卡,2驳回,3审核通过 // setDate(morning,morningStatus,night,nightStatus) {