正在显示
7 个修改的文件
包含
121 行增加
和
128 行删除
| @@ -195,13 +195,17 @@ body{ | @@ -195,13 +195,17 @@ body{ | ||
| 195 | .userLoginText{ | 195 | .userLoginText{ |
| 196 | height: 70px; | 196 | height: 70px; |
| 197 | line-height: 70px; | 197 | line-height: 70px; |
| 198 | + max-width: 85px; | ||
| 199 | + display: inline-block; | ||
| 200 | + overflow: hidden; | ||
| 201 | + text-align: center; | ||
| 198 | } | 202 | } |
| 199 | .userLoginText:hover{ | 203 | .userLoginText:hover{ |
| 200 | color:#3498db; | 204 | color:#3498db; |
| 201 | } | 205 | } |
| 202 | .exitBox{ | 206 | .exitBox{ |
| 203 | position: absolute; | 207 | position: absolute; |
| 204 | - left:-48px; | 208 | + left:-25px; |
| 205 | top:55px; | 209 | top:55px; |
| 206 | width:130px; | 210 | width:130px; |
| 207 | height:78px; | 211 | height:78px; |
| @@ -1281,6 +1285,7 @@ body{ | @@ -1281,6 +1285,7 @@ body{ | ||
| 1281 | left: 50%; | 1285 | left: 50%; |
| 1282 | right: 50%; | 1286 | right: 50%; |
| 1283 | background: #fff; | 1287 | background: #fff; |
| 1288 | + border-radius: 3px; | ||
| 1284 | } | 1289 | } |
| 1285 | .userLogin{ | 1290 | .userLogin{ |
| 1286 | height:420px; | 1291 | height:420px; |
| @@ -1568,6 +1573,11 @@ body{ | @@ -1568,6 +1573,11 @@ body{ | ||
| 1568 | padding-top:5px; | 1573 | padding-top:5px; |
| 1569 | padding-bottom:6px; | 1574 | padding-bottom:6px; |
| 1570 | } | 1575 | } |
| 1576 | +.teacherMyCenterName{ | ||
| 1577 | + max-width: 100px; | ||
| 1578 | + float: left; | ||
| 1579 | + overflow: hidden; | ||
| 1580 | +} | ||
| 1571 | .teacherMyCenter2{ | 1581 | .teacherMyCenter2{ |
| 1572 | float: left; | 1582 | float: left; |
| 1573 | width: 100%; | 1583 | width: 100%; |
| @@ -2051,6 +2061,10 @@ body{ | @@ -2051,6 +2061,10 @@ body{ | ||
| 2051 | color: #999999; | 2061 | color: #999999; |
| 2052 | padding-left: 15px; | 2062 | padding-left: 15px; |
| 2053 | } | 2063 | } |
| 2064 | +.myCenterErrorTitle{ | ||
| 2065 | + font-size: 14px; | ||
| 2066 | + color: #999999; | ||
| 2067 | +} | ||
| 2054 | /*上传图片*/ | 2068 | /*上传图片*/ |
| 2055 | .updataPhoto{ | 2069 | .updataPhoto{ |
| 2056 | width:450px; | 2070 | width:450px; |
| @@ -133,74 +133,12 @@ | @@ -133,74 +133,12 @@ | ||
| 133 | <div class="classifyListContent" id="lanclassContent"> | 133 | <div class="classifyListContent" id="lanclassContent"> |
| 134 | 134 | ||
| 135 | </div> | 135 | </div> |
| 136 | - <div class="pageNumContentBox" id="lanclassPageBox"> | ||
| 137 | - <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0"> | ||
| 138 | - <tbody> | ||
| 139 | - <tr> | ||
| 140 | - <td height="60" colspan="11" class="tr_bottom" style=""> | ||
| 141 | - <span class="classHandlerPageMsg" id="pageNumContentMsg" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span> | ||
| 142 | - <ul class="classHandlerPageInfoBox"> | ||
| 143 | - <li class="classHandlerPageInfo"> | ||
| 144 | - <span class="classHandlerHomePage" id="pageNumContentHomePage">首页</span> | ||
| 145 | - </li> | ||
| 146 | - <li class="classHandlerPageInfo"> | ||
| 147 | - <span class="classHandlerUpPage" id="pageNumContentUpPage">上一页</span> | ||
| 148 | - </li> | ||
| 149 | - <li class="classHandlerPageInfo"> | ||
| 150 | - <span class="classHandlerDownPage" id="pageNumContentDownPage">下一页</span> | ||
| 151 | - </li> | ||
| 152 | - <li class="classHandlerPageInfo"> | ||
| 153 | - <span class="classHandlerEndPage" id="pageNumContentEndPage">尾页</span> | ||
| 154 | - </li> | ||
| 155 | - <li class="classHandlerPageInfo"> | ||
| 156 | - <input id="pageNumContentPageInfoInput" class="classHandlerPageInfoInput" type="text"> | ||
| 157 | - </li> | ||
| 158 | - <li class="classHandlerPageInfo classHandlerPageInfoCheck"> | ||
| 159 | - <span id="pageNumContentSpecificPage">GO</span> | ||
| 160 | - </li> | ||
| 161 | - </ul> | ||
| 162 | - </td> | ||
| 163 | - </tr> | ||
| 164 | - </tbody> | ||
| 165 | - </table> | ||
| 166 | - </div> | ||
| 167 | </div> | 136 | </div> |
| 168 | <!--推荐老师--> | 137 | <!--推荐老师--> |
| 169 | <div class="classifyListBox" id="teacherIntroAllBox"> | 138 | <div class="classifyListBox" id="teacherIntroAllBox"> |
| 170 | <div class="classifyListTitle" id="teacherIntroTitle">推荐老师</div> | 139 | <div class="classifyListTitle" id="teacherIntroTitle">推荐老师</div> |
| 171 | <div class="classifyListContent" id="teacherIntroContent"> | 140 | <div class="classifyListContent" id="teacherIntroContent"> |
| 172 | </div> | 141 | </div> |
| 173 | - <div class="pageNumContentBox" id="teacherIntroPageBox"> | ||
| 174 | - <table width="100%" align="center" cellpadding="0" cellspacing="0" border="0"> | ||
| 175 | - <tbody> | ||
| 176 | - <tr> | ||
| 177 | - <td height="60" colspan="11" class="tr_bottom" style=""> | ||
| 178 | - <span class="classHandlerPageMsg" id="pageNumContentMsg" style="line-height: 38px; padding-left: 20px; float: left">第1页/共2页,有16个记录</span> | ||
| 179 | - <ul class="classHandlerPageInfoBox"> | ||
| 180 | - <li class="classHandlerPageInfo"> | ||
| 181 | - <span class="classHandlerHomePage" id="pageNumContentHomePage">首页</span> | ||
| 182 | - </li> | ||
| 183 | - <li class="classHandlerPageInfo"> | ||
| 184 | - <span class="classHandlerUpPage" id="pageNumContentUpPage">上一页</span> | ||
| 185 | - </li> | ||
| 186 | - <li class="classHandlerPageInfo"> | ||
| 187 | - <span class="classHandlerDownPage" id="pageNumContentDownPage">下一页</span> | ||
| 188 | - </li> | ||
| 189 | - <li class="classHandlerPageInfo"> | ||
| 190 | - <span class="classHandlerEndPage" id="pageNumContentEndPage">尾页</span> | ||
| 191 | - </li> | ||
| 192 | - <li class="classHandlerPageInfo"> | ||
| 193 | - <input id="pageNumContentPageInfoInput" class="classHandlerPageInfoInput" type="text"> | ||
| 194 | - </li> | ||
| 195 | - <li class="classHandlerPageInfo classHandlerPageInfoCheck"> | ||
| 196 | - <span id="pageNumContentSpecificPage">GO</span> | ||
| 197 | - </li> | ||
| 198 | - </ul> | ||
| 199 | - </td> | ||
| 200 | - </tr> | ||
| 201 | - </tbody> | ||
| 202 | - </table> | ||
| 203 | - </div> | ||
| 204 | </div> | 142 | </div> |
| 205 | <!--直播课堂详情--> | 143 | <!--直播课堂详情--> |
| 206 | <div class="lanclassBox" id="lanclassBox"> | 144 | <div class="lanclassBox" id="lanclassBox"> |
| @@ -1533,7 +1471,7 @@ | @@ -1533,7 +1471,7 @@ | ||
| 1533 | <img class="teacherMyCenterImg" id="myCenterImg" src="images/u373.png" alt=""> | 1471 | <img class="teacherMyCenterImg" id="myCenterImg" src="images/u373.png" alt=""> |
| 1534 | <p class="teacherMyCenterInfoBox"> | 1472 | <p class="teacherMyCenterInfoBox"> |
| 1535 | <span class="teacherMyCenterInfo" id="teacherMyCenterTime">上午好,</span> | 1473 | <span class="teacherMyCenterInfo" id="teacherMyCenterTime">上午好,</span> |
| 1536 | - <span id="teacherMyCenterName"></span> | 1474 | + <span id="teacherMyCenterName" class="teacherMyCenterName"></span> |
| 1537 | <span id="teacherMyCenterStatus"></span> | 1475 | <span id="teacherMyCenterStatus"></span> |
| 1538 | </p> | 1476 | </p> |
| 1539 | </div> | 1477 | </div> |
| @@ -1936,7 +1874,7 @@ | @@ -1936,7 +1874,7 @@ | ||
| 1936 | <span class="requiredMsg">*</span> | 1874 | <span class="requiredMsg">*</span> |
| 1937 | </li> | 1875 | </li> |
| 1938 | <li class="usersignLi"> | 1876 | <li class="usersignLi"> |
| 1939 | - <input id="signMail" class="userMailInput usersignInput" type="text" placeholder="填写邮箱" maxlength="20" | 1877 | + <input id="signMail" class="userMailInput usersignInput" type="text" placeholder="填写邮箱" maxlength="40" |
| 1940 | onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"> | 1878 | onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"> |
| 1941 | </li> | 1879 | </li> |
| 1942 | <li class="usersignNameLi usersignLi"> | 1880 | <li class="usersignNameLi usersignLi"> |
| @@ -1972,7 +1910,7 @@ | @@ -1972,7 +1910,7 @@ | ||
| 1972 | <ul> | 1910 | <ul> |
| 1973 | <li class="usersignTit">登录</li> | 1911 | <li class="usersignTit">登录</li> |
| 1974 | <li class="usersignNameLi usersignLi"> | 1912 | <li class="usersignNameLi usersignLi"> |
| 1975 | - <input id="loginName" class="usersignInput classThemeInfo" type="text" placeholder="手机/用户名/邮箱" value="" maxlength="20" | 1913 | + <input id="loginName" class="usersignInput classThemeInfo" type="text" placeholder="用户名/邮箱" value="" maxlength="40" |
| 1976 | onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"> | 1914 | onkeyup="this.value=this.value.replace(/^ +| +$/g,'')"> |
| 1977 | </li> | 1915 | </li> |
| 1978 | <li class="userPassWordLi usersignLi"> | 1916 | <li class="userPassWordLi usersignLi"> |
| @@ -89,7 +89,6 @@ class CollectApe extends Ape { | @@ -89,7 +89,6 @@ class CollectApe extends Ape { | ||
| 89 | 'token':ClassDataProxy.token}, | 89 | 'token':ClassDataProxy.token}, |
| 90 | success:function(_data){ | 90 | success:function(_data){ |
| 91 | //获取我的课程数据 | 91 | //获取我的课程数据 |
| 92 | - loger.log('收藏数据信息',_data) | ||
| 93 | if(_data && _data.code){ | 92 | if(_data && _data.code){ |
| 94 | if(callback){ | 93 | if(callback){ |
| 95 | callback(_data); | 94 | callback(_data); |
| @@ -42,6 +42,7 @@ class ListDetailsApe extends Ape { | @@ -42,6 +42,7 @@ class ListDetailsApe extends Ape { | ||
| 42 | let _id = $(evt.currentTarget).attr('data'); | 42 | let _id = $(evt.currentTarget).attr('data'); |
| 43 | this._id = _id; | 43 | this._id = _id; |
| 44 | this.classInfoDetail(_id); | 44 | this.classInfoDetail(_id); |
| 45 | + this.collectInfoDetail(_id); | ||
| 45 | this.commonalityClass(); | 46 | this.commonalityClass(); |
| 46 | //查看当前点击的列表是否收藏 | 47 | //查看当前点击的列表是否收藏 |
| 47 | this._emit(MessageTypes.IS_COLLECT,{id : _id}); | 48 | this._emit(MessageTypes.IS_COLLECT,{id : _id}); |
| @@ -185,7 +185,7 @@ class LoginOrRegister extends Ape { | @@ -185,7 +185,7 @@ class LoginOrRegister extends Ape { | ||
| 185 | } | 185 | } |
| 186 | } | 186 | } |
| 187 | _signMail(mail){ | 187 | _signMail(mail){ |
| 188 | - let filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; | 188 | + let filter = /^([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\-|\.]?)*[a-zA-Z0-9]+(\.[a-zA-Z]{2,3})+$/; |
| 189 | if(mail.value == ''){ | 189 | if(mail.value == ''){ |
| 190 | ClassDataProxy.getMarginTopHandler($('#warnHintBox')); | 190 | ClassDataProxy.getMarginTopHandler($('#warnHintBox')); |
| 191 | ErrorApe.showWarnError('邮箱不能为空'); | 191 | ErrorApe.showWarnError('邮箱不能为空'); |
| @@ -329,7 +329,7 @@ class LoginOrRegister extends Ape { | @@ -329,7 +329,7 @@ class LoginOrRegister extends Ape { | ||
| 329 | //登录信息提交 | 329 | //登录信息提交 |
| 330 | _loginBtnHandler(){ | 330 | _loginBtnHandler(){ |
| 331 | let _name = document.getElementById("loginName");//用户名 | 331 | let _name = document.getElementById("loginName");//用户名 |
| 332 | - let _passWord = document.getElementById("loginPassWord");//手机号 | 332 | + let _passWord = document.getElementById("loginPassWord");//密码 |
| 333 | if(_name.value && _passWord.value){ | 333 | if(_name.value && _passWord.value){ |
| 334 | let signInfo = { | 334 | let signInfo = { |
| 335 | "loginName": _name.value, // 登录名 | 335 | "loginName": _name.value, // 登录名 |
| @@ -350,7 +350,7 @@ class LoginOrRegister extends Ape { | @@ -350,7 +350,7 @@ class LoginOrRegister extends Ape { | ||
| 350 | ClassDataProxy.getMarginTopHandler($('#warnHintBox')); | 350 | ClassDataProxy.getMarginTopHandler($('#warnHintBox')); |
| 351 | ErrorApe.showWarnError('登录成功'); | 351 | ErrorApe.showWarnError('登录成功'); |
| 352 | ClassDataProxy.userType= _data.returnData.data.userType; | 352 | ClassDataProxy.userType= _data.returnData.data.userType; |
| 353 | - ClassDataProxy.loginName =_name.value; | 353 | + ClassDataProxy.loginName = _data.returnData.data.userName; |
| 354 | ClassDataProxy.password = _passWord.value; | 354 | ClassDataProxy.password = _passWord.value; |
| 355 | ClassDataProxy.token =_data.returnData.data.token | 355 | ClassDataProxy.token =_data.returnData.data.token |
| 356 | ClassDataProxy.userPhoto = _data.returnData.data.userPhoto; | 356 | ClassDataProxy.userPhoto = _data.returnData.data.userPhoto; |
| @@ -465,35 +465,50 @@ class MyCenterApe extends Ape { | @@ -465,35 +465,50 @@ class MyCenterApe extends Ape { | ||
| 465 | } | 465 | } |
| 466 | //老师端首页课程数据渲染 | 466 | //老师端首页课程数据渲染 |
| 467 | _teacherCourseCourse(_data){ | 467 | _teacherCourseCourse(_data){ |
| 468 | + let myCurriculumInfo = $('#myCurriculumInfo'); | ||
| 468 | if(_data){ | 469 | if(_data){ |
| 469 | - let myCurriculumInfo = $('#myCurriculumInfo'); | ||
| 470 | let that = this; | 470 | let that = this; |
| 471 | - setInterval(function () { | ||
| 472 | - myCurriculumInfo.empty(); | ||
| 473 | - for (let i = 0; i < _data.length; i++) { | ||
| 474 | - let item = _data[i]; | ||
| 475 | - if (item) { | ||
| 476 | - let lastTimer = 0; | ||
| 477 | - let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime, item.meetingEndTime) | ||
| 478 | - if(timer.indexOf('|') !=-1){ | ||
| 479 | - timer = timer.substr(0,timer.length-1); | ||
| 480 | - lastTimer = 1; | ||
| 481 | - }else if(timer.indexOf('.') !=-1){ | ||
| 482 | - timer = timer.substr(0,timer.length-1); | ||
| 483 | - lastTimer = 0; | 471 | + let timerNew = null; |
| 472 | + let newTimeDateList = []; | ||
| 473 | + for(let j = 0;j<_data.length; j++){ | ||
| 474 | + if (ClassDataProxy.getTimeDay(_data[j].meetingEndTime)) { | ||
| 475 | + newTimeDateList.push(_data[j]) | ||
| 476 | + } | ||
| 477 | + } | ||
| 478 | + loger.log('老师端数据',newTimeDateList) | ||
| 479 | + if(newTimeDateList.length > 0){ | ||
| 480 | + setInterval(function () { | ||
| 481 | + myCurriculumInfo.empty(); | ||
| 482 | + for (let i = 0; i < _data.length; i++) { | ||
| 483 | + let item = _data[i]; | ||
| 484 | + if (item) { | ||
| 485 | + let lastTimer = 0; | ||
| 486 | + let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime, item.meetingEndTime) | ||
| 487 | + if(timer.indexOf('|') !=-1){ | ||
| 488 | + timer = timer.substr(0,timer.length-1); | ||
| 489 | + lastTimer = 1; | ||
| 490 | + }else if(timer.indexOf('.') !=-1){ | ||
| 491 | + timer = timer.substr(0,timer.length-1); | ||
| 492 | + lastTimer = 0; | ||
| 493 | + } | ||
| 494 | + let curInfo = that._format(curriculumList, { | ||
| 495 | + _infoTit: item.meetingName, | ||
| 496 | + _meetingNumber: item.meetingId, | ||
| 497 | + _countDown: timer, | ||
| 498 | + _isShow: (lastTimer == 1) ? 'none' : 'block' | ||
| 499 | + }) | ||
| 500 | + myCurriculumInfo.append(curInfo); | ||
| 501 | + } else { | ||
| 502 | + console.error('_gainClassData没数据') | ||
| 484 | } | 503 | } |
| 485 | - let curInfo = that._format(curriculumList, { | ||
| 486 | - _infoTit: item.meetingName, | ||
| 487 | - _meetingNumber: item.meetingId, | ||
| 488 | - _countDown: timer, | ||
| 489 | - _isShow: (lastTimer == 1) ? 'none' : 'block' | ||
| 490 | - }) | ||
| 491 | - myCurriculumInfo.append(curInfo); | ||
| 492 | - } else { | ||
| 493 | - console.error('_gainClassData没数据') | ||
| 494 | } | 504 | } |
| 495 | - } | ||
| 496 | - },1000) | 505 | + },1000) |
| 506 | + }else{ | ||
| 507 | + clearInterval(timerNew); | ||
| 508 | + let _classifyList = '<div class="myCenterErrorTitle">暂无数据~</div>'; | ||
| 509 | + myCurriculumInfo.empty(); | ||
| 510 | + myCurriculumInfo.append(_classifyList) | ||
| 511 | + } | ||
| 497 | } | 512 | } |
| 498 | } | 513 | } |
| 499 | //老师端首页直播数据 | 514 | //老师端首页直播数据 |
| @@ -614,36 +629,51 @@ class MyCenterApe extends Ape { | @@ -614,36 +629,51 @@ class MyCenterApe extends Ape { | ||
| 614 | }) | 629 | }) |
| 615 | } | 630 | } |
| 616 | studentCourseList(_data){ | 631 | studentCourseList(_data){ |
| 632 | + let myCurriculumInfo = $('#myCurriculumInfo'); | ||
| 617 | if(_data){ | 633 | if(_data){ |
| 618 | - let myCurriculumInfo = $('#myCurriculumInfo'); | ||
| 619 | let that = this; | 634 | let that = this; |
| 620 | - setInterval(function () { | ||
| 621 | - myCurriculumInfo.empty(); | ||
| 622 | - for (let i = 0; i < _data.length; i++) { | ||
| 623 | - let item = _data[i]; | ||
| 624 | - if (item) { | ||
| 625 | - let lastTimer = 0; | ||
| 626 | - let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime, item.meetingEndTime) | ||
| 627 | - if(timer.indexOf('|') !=-1){ | ||
| 628 | - timer = timer.substr(0,timer.length-1); | ||
| 629 | - lastTimer = 1; | ||
| 630 | - }else if(timer.indexOf('.') !=-1){ | ||
| 631 | - timer = timer.substr(0,timer.length-1); | ||
| 632 | - lastTimer = 0; | ||
| 633 | - } | ||
| 634 | - let curInfo = that._format(curriculumList, { | ||
| 635 | - _infoTit: item.meeting_name, | ||
| 636 | - _meetingNumber: item.meetingId, | ||
| 637 | - _countDown: timer, | ||
| 638 | - _isShow: (lastTimer == 1) ? 'none' : 'block' | ||
| 639 | - }) | 635 | + let timerNew = null; |
| 636 | + let newTimeDateList = []; | ||
| 637 | + for(let j = 0;j<_data.length; j++){ | ||
| 638 | + if (ClassDataProxy.getTimeDay(_data[j].meetingEndTime)) { | ||
| 639 | + newTimeDateList.push(_data[j]) | ||
| 640 | + } | ||
| 641 | + } | ||
| 642 | + if(newTimeDateList.length > 0){ | ||
| 643 | + timerNew = setInterval(function () { | ||
| 644 | + myCurriculumInfo.empty(); | ||
| 645 | + for (let i = 0; i < newTimeDateList.length; i++) { | ||
| 646 | + let item = newTimeDateList[i]; | ||
| 647 | + if (item) { | ||
| 648 | + let lastTimer = 0; | ||
| 649 | + let timer = ClassDataProxy.getTimeCountDown(item.meetingBeginTime, item.meetingEndTime) | ||
| 650 | + if(timer.indexOf('|') !=-1){ | ||
| 651 | + timer = timer.substr(0,timer.length-1); | ||
| 652 | + lastTimer = 1; | ||
| 653 | + }else if(timer.indexOf('.') !=-1){ | ||
| 654 | + timer = timer.substr(0,timer.length-1); | ||
| 655 | + lastTimer = 0; | ||
| 656 | + } | ||
| 657 | + let curInfo = that._format(curriculumList, { | ||
| 658 | + _infoTit: item.meeting_name, | ||
| 659 | + _meetingNumber: item.meetingId, | ||
| 660 | + _countDown: timer, | ||
| 661 | + _isShow: (lastTimer == 1) ? 'none' : 'block' | ||
| 662 | + }) | ||
| 640 | myCurriculumInfo.append(curInfo); | 663 | myCurriculumInfo.append(curInfo); |
| 641 | - } else { | ||
| 642 | - console.error('_gainClassData没数据') | 664 | + } else { |
| 665 | + console.error('_gainClassData没数据') | ||
| 666 | + } | ||
| 643 | } | 667 | } |
| 644 | - } | ||
| 645 | - },1000) | 668 | + },1000) |
| 669 | + }else{ | ||
| 670 | + clearInterval(timerNew); | ||
| 671 | + let _classifyList = '<div class="myCenterErrorTitle">暂无数据~</div>'; | ||
| 672 | + myCurriculumInfo.empty(); | ||
| 673 | + myCurriculumInfo.append(_classifyList) | ||
| 674 | + } | ||
| 646 | } | 675 | } |
| 676 | + | ||
| 647 | } | 677 | } |
| 648 | //学生端首页 待学习数据 | 678 | //学生端首页 待学习数据 |
| 649 | _studentStudyModule(){ | 679 | _studentStudyModule(){ |
| @@ -706,6 +736,7 @@ class MyCenterApe extends Ape { | @@ -706,6 +736,7 @@ class MyCenterApe extends Ape { | ||
| 706 | studentStudyOverList(studentMyCenterContentList,_data){ | 736 | studentStudyOverList(studentMyCenterContentList,_data){ |
| 707 | studentMyCenterContentList.empty(); | 737 | studentMyCenterContentList.empty(); |
| 708 | $('#courseMinutePageBox').hide(); | 738 | $('#courseMinutePageBox').hide(); |
| 739 | + let recordData = 0; | ||
| 709 | if(_data){ | 740 | if(_data){ |
| 710 | for(let i = 0;i<_data.length;i++){ | 741 | for(let i = 0;i<_data.length;i++){ |
| 711 | if(_data[i]){ | 742 | if(_data[i]){ |
| @@ -725,12 +756,17 @@ class MyCenterApe extends Ape { | @@ -725,12 +756,17 @@ class MyCenterApe extends Ape { | ||
| 725 | _liveTimer : _data[i].meetingBeginTime.split(' ')[0] | 756 | _liveTimer : _data[i].meetingBeginTime.split(' ')[0] |
| 726 | }) | 757 | }) |
| 727 | studentMyCenterContentList.append(_classifyList) | 758 | studentMyCenterContentList.append(_classifyList) |
| 759 | + recordData = 1; | ||
| 728 | } | 760 | } |
| 729 | }else{ | 761 | }else{ |
| 730 | console.error('_gainClassData没数据') | 762 | console.error('_gainClassData没数据') |
| 731 | } | 763 | } |
| 732 | } | 764 | } |
| 733 | } | 765 | } |
| 766 | + if(recordData == 0){ | ||
| 767 | + let _classifyList = '<div class="dataCenterErrorTitle">暂无数据~</div>'; | ||
| 768 | + studentMyCenterContentList.append(_classifyList) | ||
| 769 | + } | ||
| 734 | } | 770 | } |
| 735 | //收藏 | 771 | //收藏 |
| 736 | _studenTcollectModule(){ | 772 | _studenTcollectModule(){ |
| @@ -747,6 +783,7 @@ class MyCenterApe extends Ape { | @@ -747,6 +783,7 @@ class MyCenterApe extends Ape { | ||
| 747 | studentTcollectList(studentMyCenterContentList,_data){ | 783 | studentTcollectList(studentMyCenterContentList,_data){ |
| 748 | studentMyCenterContentList.empty(); | 784 | studentMyCenterContentList.empty(); |
| 749 | $('#courseMinutePageBox').hide(); | 785 | $('#courseMinutePageBox').hide(); |
| 786 | + let recordData = 0; | ||
| 750 | if(_data){ | 787 | if(_data){ |
| 751 | for(let i = 0;i<_data.length;i++){ | 788 | for(let i = 0;i<_data.length;i++){ |
| 752 | if(_data[i]){ | 789 | if(_data[i]){ |
| @@ -766,13 +803,17 @@ class MyCenterApe extends Ape { | @@ -766,13 +803,17 @@ class MyCenterApe extends Ape { | ||
| 766 | _liveTimer : _data[i].meetingBeginTime.split(' ')[0] | 803 | _liveTimer : _data[i].meetingBeginTime.split(' ')[0] |
| 767 | }) | 804 | }) |
| 768 | studentMyCenterContentList.append(_classifyList) | 805 | studentMyCenterContentList.append(_classifyList) |
| 806 | + recordData = 1; | ||
| 769 | } | 807 | } |
| 770 | }else{ | 808 | }else{ |
| 771 | console.error('_gainClassData没数据') | 809 | console.error('_gainClassData没数据') |
| 772 | } | 810 | } |
| 773 | } | 811 | } |
| 774 | } | 812 | } |
| 775 | - | 813 | + if(recordData == 0){ |
| 814 | + let _classifyList = '<div class="dataCenterErrorTitle">暂无数据~</div>'; | ||
| 815 | + studentMyCenterContentList.append(_classifyList) | ||
| 816 | + } | ||
| 776 | } | 817 | } |
| 777 | clearLocalStorage(){ | 818 | clearLocalStorage(){ |
| 778 | window.localStorage.clear(); | 819 | window.localStorage.clear(); |
| @@ -248,7 +248,7 @@ class MyCoursesApe extends Ape { | @@ -248,7 +248,7 @@ class MyCoursesApe extends Ape { | ||
| 248 | let courseMinuteList = $('#courseMinuteList'); | 248 | let courseMinuteList = $('#courseMinuteList'); |
| 249 | let card = $('#teacherLiveList .liveInfoLeftLiCheck').index(); | 249 | let card = $('#teacherLiveList .liveInfoLeftLiCheck').index(); |
| 250 | $('#courseMinutePage').attr('data',ind) | 250 | $('#courseMinutePage').attr('data',ind) |
| 251 | - $('#courseMinutePageBox'+card).show().siblings().hide(); | 251 | + $('.classHandlerPageBox').hide(); |
| 252 | this.presentIndT = 1; | 252 | this.presentIndT = 1; |
| 253 | switch (parseInt(ind)){ | 253 | switch (parseInt(ind)){ |
| 254 | case 1: | 254 | case 1: |
| @@ -338,8 +338,8 @@ class MyCoursesApe extends Ape { | @@ -338,8 +338,8 @@ class MyCoursesApe extends Ape { | ||
| 338 | let _dataList = _data.meetingInfo; | 338 | let _dataList = _data.meetingInfo; |
| 339 | this.pageNoT = pagenum; | 339 | this.pageNoT = pagenum; |
| 340 | $('#courseMinutePageMsg0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录'); | 340 | $('#courseMinutePageMsg0').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录'); |
| 341 | - if(count <=8){ | ||
| 342 | - $('#courseMinutePageBox0').hide(); | 341 | + if(count >=8){ |
| 342 | + $('#courseMinutePageBox0').show().siblings().hide(); | ||
| 343 | } | 343 | } |
| 344 | } | 344 | } |
| 345 | } | 345 | } |
| @@ -352,8 +352,8 @@ class MyCoursesApe extends Ape { | @@ -352,8 +352,8 @@ class MyCoursesApe extends Ape { | ||
| 352 | let _dataList = _data.meetingInfo; | 352 | let _dataList = _data.meetingInfo; |
| 353 | this.pageNoT = pagenum; | 353 | this.pageNoT = pagenum; |
| 354 | $('#courseMinutePageMsg1').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录'); | 354 | $('#courseMinutePageMsg1').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录'); |
| 355 | - if(count <=8){ | ||
| 356 | - $('#courseMinutePageBox1').hide(); | 355 | + if(count >=8){ |
| 356 | + $('#courseMinutePageBox1').show().siblings().hide(); | ||
| 357 | } | 357 | } |
| 358 | } | 358 | } |
| 359 | } | 359 | } |
| @@ -366,8 +366,8 @@ class MyCoursesApe extends Ape { | @@ -366,8 +366,8 @@ class MyCoursesApe extends Ape { | ||
| 366 | let _dataList = _data.meetingInfo; | 366 | let _dataList = _data.meetingInfo; |
| 367 | this.pageNoT = pagenum; | 367 | this.pageNoT = pagenum; |
| 368 | $('#courseMinutePageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录'); | 368 | $('#courseMinutePageMsg2').html('第'+page+'页/共'+pagenum+'页,有'+count+'个记录'); |
| 369 | - if(count <=8){ | ||
| 370 | - $('#courseMinutePageBox2').hide(); | 369 | + if(count >=8){ |
| 370 | + $('#courseMinutePageBox2').show().siblings().hide(); | ||
| 371 | } | 371 | } |
| 372 | } | 372 | } |
| 373 | } | 373 | } |
-
请 注册 或 登录 后发表评论