|
@@ -350,6 +350,27 @@ U.MD.D.getuser = function () {
|
|
U.MD.U.LO.logoutSystem2();
|
|
U.MD.U.LO.logoutSystem2();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ let vipbox = $('.U_MD_D_BD_vip_box')[0]
|
|
|
|
+ vipbox.style.display = 'block'
|
|
|
|
+ let vip_time = $('.vip_time')[0]
|
|
|
|
+ let vtime = ''
|
|
|
|
+ // 获取 isLogin1 和 isLogin2 的值
|
|
|
|
+ let isLogin1 = res.value[0][0].isLogin1;
|
|
|
|
+ let isLogin2 = res.value[0][0].isLogin2;
|
|
|
|
+
|
|
|
|
+ if (isLogin1 !== 1 && isLogin1 !== null || isLogin2 !== 1 && isLogin2 !== null) {
|
|
|
|
+ vtime = isLogin1 !== 1 && isLogin1 !== null ? formatDate(isLogin1) : formatDate(isLogin2);
|
|
|
|
+ }else if ((isLogin1 === 1 && isLogin2 === 1) || (isLogin1 === null && isLogin2 === 1)) {
|
|
|
|
+ vtime = "无限制";
|
|
|
|
+ }
|
|
|
|
+ vip_time.innerHTML = vtime
|
|
|
|
+ let orgName = res.value[0][0].orgName;
|
|
|
|
+ let schoolName = res.value[0][0].schoolName;
|
|
|
|
+ let vip_school = $('.vip_school')[0]
|
|
|
|
+ vip_school.innerHTML = orgName ? orgName : schoolName
|
|
|
|
+
|
|
|
|
+
|
|
U.A.Request(US.Config.pbl + "addLoginOperation", [_user.userid], function (res) {
|
|
U.A.Request(US.Config.pbl + "addLoginOperation", [_user.userid], function (res) {
|
|
}, [], { "type": "POST", "withCredentials": true });
|
|
}, [], { "type": "POST", "withCredentials": true });
|
|
|
|
|
|
@@ -475,6 +496,7 @@ U.MD.D.getuser = function () {
|
|
$(".userName")[0].style.display = "block";
|
|
$(".userName")[0].style.display = "block";
|
|
$(".userName")[0].innerHTML = US.userInfo.username || US.userInfo.alias;
|
|
$(".userName")[0].innerHTML = US.userInfo.username || US.userInfo.alias;
|
|
$(".exit")[0].style.display = "block";
|
|
$(".exit")[0].style.display = "block";
|
|
|
|
+ vipbox.style.right = $(".U_MD_D_BD")[0].offsetWidth + 20 + 'px'
|
|
if(res.value[0][0].type === 1 && res.value[0][0].org == 'c95e0a56-c205-11ed-8d51-005056b86db5'){
|
|
if(res.value[0][0].type === 1 && res.value[0][0].org == 'c95e0a56-c205-11ed-8d51-005056b86db5'){
|
|
U.MD.D.I.ModeCheck(2)
|
|
U.MD.D.I.ModeCheck(2)
|
|
}else{
|
|
}else{
|
|
@@ -573,6 +595,26 @@ U.MD.D.getuser = function () {
|
|
U.MD.U.LO.logoutSystem2();
|
|
U.MD.U.LO.logoutSystem2();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ let vipbox = $('.U_MD_D_BD_vip_box')[0]
|
|
|
|
+ vipbox.style.display = 'block'
|
|
|
|
+ let vip_time = $('.vip_time')[0]
|
|
|
|
+ let vtime = ''
|
|
|
|
+ // 获取 isLogin1 和 isLogin2 的值
|
|
|
|
+ let isLogin1 = res.value[0][0].isLogin1;
|
|
|
|
+ let isLogin2 = res.value[0][0].isLogin2;
|
|
|
|
+
|
|
|
|
+ if (isLogin1 !== 1 && isLogin1 !== null || isLogin2 !== 1 && isLogin2 !== null) {
|
|
|
|
+ vtime = isLogin1 !== 1 && isLogin1 !== null ? formatDate(isLogin1) : formatDate(isLogin2);
|
|
|
|
+ }else if ((isLogin1 === 1 && isLogin2 === 1) || (isLogin1 === null && isLogin2 === 1)) {
|
|
|
|
+ vtime = "无限制";
|
|
|
|
+ }
|
|
|
|
+ vip_time.innerHTML = vtime
|
|
|
|
+ let orgName = res.value[0][0].orgName;
|
|
|
|
+ let schoolName = res.value[0][0].schoolName;
|
|
|
|
+ let vip_school = $('.vip_school')[0]
|
|
|
|
+ vip_school.innerHTML = orgName ? orgName : schoolName
|
|
|
|
+
|
|
U.A.Request(US.Config.pbl + "addLoginOperation", [userId], function (res) {
|
|
U.A.Request(US.Config.pbl + "addLoginOperation", [userId], function (res) {
|
|
}, [], { "type": "POST", "withCredentials": true });
|
|
}, [], { "type": "POST", "withCredentials": true });
|
|
|
|
|
|
@@ -698,6 +740,7 @@ U.MD.D.getuser = function () {
|
|
$(".userName")[0].style.display = "block";
|
|
$(".userName")[0].style.display = "block";
|
|
$(".userName")[0].innerHTML = US.userInfo.username || US.userInfo.alias;
|
|
$(".userName")[0].innerHTML = US.userInfo.username || US.userInfo.alias;
|
|
$(".exit")[0].style.display = "block";
|
|
$(".exit")[0].style.display = "block";
|
|
|
|
+ vipbox.style.right = $(".U_MD_D_BD")[0].offsetWidth + 20 + 'px'
|
|
if(res.value[0][0].type === 1 && res.value[0][0].org == 'c95e0a56-c205-11ed-8d51-005056b86db5'){
|
|
if(res.value[0][0].type === 1 && res.value[0][0].org == 'c95e0a56-c205-11ed-8d51-005056b86db5'){
|
|
U.MD.D.I.ModeCheck(2)
|
|
U.MD.D.I.ModeCheck(2)
|
|
}else{
|
|
}else{
|
|
@@ -861,6 +904,26 @@ U.MD.D.getuser2 = function (userid, cid) {
|
|
U.MD.U.LO.logoutSystem2();
|
|
U.MD.U.LO.logoutSystem2();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ let vipbox = $('.U_MD_D_BD_vip_box')[0]
|
|
|
|
+ vipbox.style.display = 'block'
|
|
|
|
+ let vip_time = $('.vip_time')[0]
|
|
|
|
+ let vtime = ''
|
|
|
|
+ // 获取 isLogin1 和 isLogin2 的值
|
|
|
|
+ let isLogin1 = res.value[0][0].isLogin1;
|
|
|
|
+ let isLogin2 = res.value[0][0].isLogin2;
|
|
|
|
+
|
|
|
|
+ if (isLogin1 !== 1 && isLogin1 !== null || isLogin2 !== 1 && isLogin2 !== null) {
|
|
|
|
+ vtime = isLogin1 !== 1 && isLogin1 !== null ? formatDate(isLogin1) : formatDate(isLogin2);
|
|
|
|
+ }else if ((isLogin1 === 1 && isLogin2 === 1) || (isLogin1 === null && isLogin2 === 1)) {
|
|
|
|
+ vtime = "无限制";
|
|
|
|
+ }
|
|
|
|
+ vip_time.innerHTML = vtime
|
|
|
|
+ let orgName = res.value[0][0].orgName;
|
|
|
|
+ let schoolName = res.value[0][0].schoolName;
|
|
|
|
+ let vip_school = $('.vip_school')[0]
|
|
|
|
+ vip_school.innerHTML = orgName ? orgName : schoolName
|
|
U.A.Request(US.Config.pbl + "addLoginOperation", [userid], function (res) {
|
|
U.A.Request(US.Config.pbl + "addLoginOperation", [userid], function (res) {
|
|
}, [], { "type": "POST", "withCredentials": true });
|
|
}, [], { "type": "POST", "withCredentials": true });
|
|
|
|
|
|
@@ -979,6 +1042,7 @@ U.MD.D.getuser2 = function (userid, cid) {
|
|
$(".userName")[0].style.display = "block";
|
|
$(".userName")[0].style.display = "block";
|
|
$(".userName")[0].innerHTML = US.userInfo.username || US.userInfo.alias;
|
|
$(".userName")[0].innerHTML = US.userInfo.username || US.userInfo.alias;
|
|
$(".exit")[0].style.display = "block";
|
|
$(".exit")[0].style.display = "block";
|
|
|
|
+ vipbox.style.right = $(".U_MD_D_BD")[0].offsetWidth + 20 + 'px'
|
|
if(res.value[0][0].type === 1 && res.value[0][0].org == 'c95e0a56-c205-11ed-8d51-005056b86db5'){
|
|
if(res.value[0][0].type === 1 && res.value[0][0].org == 'c95e0a56-c205-11ed-8d51-005056b86db5'){
|
|
U.MD.D.I.ModeCheck(2)
|
|
U.MD.D.I.ModeCheck(2)
|
|
}else{
|
|
}else{
|
|
@@ -1118,4 +1182,16 @@ U.MD.D.getNotice = function () {
|
|
// // 在视频播放完成后删除 video 元素
|
|
// // 在视频播放完成后删除 video 元素
|
|
// video.addEventListener("ended", () => {
|
|
// video.addEventListener("ended", () => {
|
|
// document.body.removeChild(video);
|
|
// document.body.removeChild(video);
|
|
-// });
|
|
|
|
|
|
+// });
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+function formatDate(date) {
|
|
|
|
+ const year = date.getFullYear();
|
|
|
|
+ const month = (date.getMonth() + 1).toString().padStart(2, "0");
|
|
|
|
+ const day = date.getDate().toString().padStart(2, "0");
|
|
|
|
+ const hours = date.getHours().toString().padStart(2, "0");
|
|
|
|
+ const minutes = date.getMinutes().toString().padStart(2, "0");
|
|
|
|
+ const seconds = date.getSeconds().toString().padStart(2, "0");
|
|
|
|
+
|
|
|
|
+ return `${year}年${month}月${day}日`;
|
|
|
|
+}
|