diff --git a/Song.Site/Templates/Web/_Public/Styles/CourseStudy.css b/Song.Site/Templates/Web/_Public/Styles/CourseStudy.css
index 98ca1a851..e81c571e6 100644
--- a/Song.Site/Templates/Web/_Public/Styles/CourseStudy.css
+++ b/Song.Site/Templates/Web/_Public/Styles/CourseStudy.css
@@ -227,12 +227,8 @@ video::-webkit-media-controls-panel {
position: absolute;
width: 320px;
height: 180px;
- line-height: 180px;
color: #333;
- font-weight: bold;
background-color: rgba(128, 128, 128, 0.5);
- font-size: 25px;
- text-align: center;
top: 30%;
left: calc(50% - 160px);
border: 1px solid #999;
@@ -240,6 +236,12 @@ video::-webkit-media-controls-panel {
box-shadow: 3px 3px 3px #aaa;
cursor: default;
}
+#liveStopbox .liveStop_Tit, .noSelect, .noSelect a{
+ line-height: 180px;
+ font-weight: bold;
+ font-size: 25px;
+ text-align: center;
+}
/*背景图,带渐变效果*/
.bgPicture{
opacity:0.4;
From 61d8f2cd8435efe94378b7c6cc0a956e6f43ddfe Mon Sep 17 00:00:00 2001
From: weishakeji <10522779@qq.com>
Date: Thu, 30 Apr 2020 11:02:40 +0800
Subject: [PATCH 06/21] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E6=89=8B?=
=?UTF-8?q?=E6=9C=BA=E7=AB=AF=E8=A7=86=E9=A2=91=E6=92=AD=E6=94=BE=E6=97=B6?=
=?UTF-8?q?=E7=9A=84=E5=85=A8=E5=B1=8F=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Mobi/Default2019/CoreScripts/Extend.js | 11 ++++++++
.../Mobi/Default2019/CourseStudy.htm | 5 +++-
.../Default2019/Inc/CourseStudyFooter.html | 4 +--
.../Mobi/Default2019/Scripts/CourseStudy.js | 26 +++++++++----------
.../Mobi/Default2019/Styles/CourseStudy.css | 4 +--
Song.Site/db.config | 2 +-
6 files changed, 33 insertions(+), 19 deletions(-)
diff --git a/Song.Site/Templates/Mobi/Default2019/CoreScripts/Extend.js b/Song.Site/Templates/Mobi/Default2019/CoreScripts/Extend.js
index 856da43d4..7f17e95c3 100644
--- a/Song.Site/Templates/Mobi/Default2019/CoreScripts/Extend.js
+++ b/Song.Site/Templates/Mobi/Default2019/CoreScripts/Extend.js
@@ -377,3 +377,14 @@ jQuery.fn.isWeixinApp = function () {
var ua = window.navigator.userAgent.toLowerCase();
return ua.match(/miniProgram/i) == 'miniprogram';
};
+//是否处于QQ浏览器
+jQuery.fn.isQQBrowser = function () {
+ var ua = window.navigator.userAgent.toLowerCase();
+ return ua.match(/MQQBrowser/i) == 'mqqbrowser';
+};
+jQuery.fn.ua = function () {
+ var ua = window.navigator.userAgent.toLowerCase();
+ console.log(ua);
+ return ua;
+ //return ua.match(/miniProgram/i) == 'miniprogram';
+};
diff --git a/Song.Site/Templates/Mobi/Default2019/CourseStudy.htm b/Song.Site/Templates/Mobi/Default2019/CourseStudy.htm
index 58b39f8e2..b1060bf9a 100644
--- a/Song.Site/Templates/Mobi/Default2019/CourseStudy.htm
+++ b/Song.Site/Templates/Mobi/Default2019/CourseStudy.htm
@@ -28,7 +28,10 @@
视频时长:{{video.total}}秒,播放进度:{{playtime}}秒,
diff --git a/Song.Site/Templates/Mobi/Default2019/Inc/CourseStudyFooter.html b/Song.Site/Templates/Mobi/Default2019/Inc/CourseStudyFooter.html
index 608f954b6..7fb72292a 100644
--- a/Song.Site/Templates/Mobi/Default2019/Inc/CourseStudyFooter.html
+++ b/Song.Site/Templates/Mobi/Default2019/Inc/CourseStudyFooter.html
@@ -42,7 +42,7 @@
$(".mui-inner-wrap").css({ opacity: .61 });
//隐藏视频
var video = document.querySelector("video");
- video.style.display = "none";
+ if (video) video.style.display = "none";
});
$("#offCanvasContentScroll").click(function () {
var menu = $("#offCanvasSide");
@@ -52,7 +52,7 @@
}
//显示视频
var video = document.querySelector("video");
- if (video.size() > 0) video.style.display = "";
+ if (video) video.style.display = "";
});
}
\ No newline at end of file
diff --git a/Song.Site/Templates/Mobi/Default2019/Scripts/CourseStudy.js b/Song.Site/Templates/Mobi/Default2019/Scripts/CourseStudy.js
index 6eea724a1..5f0712d5d 100644
--- a/Song.Site/Templates/Mobi/Default2019/Scripts/CourseStudy.js
+++ b/Song.Site/Templates/Mobi/Default2019/Scripts/CourseStudy.js
@@ -178,19 +178,19 @@ var vdata = new Vue({
}
window.setInterval(function() {
var video = document.querySelector("video");
-
- video.setAttribute("x5-playsinline", "true");
- video.setAttribute("playsinline", "true");
- video.setAttribute("webkit-playsinline", "true");
- //
- //video.setAttribute("x-webkit-airplay",true);
- //video.setAttribute("x5-video-player-type","h5");
- //
- video.removeAttribute("controls");
- video.setAttribute("x5-video-player-fullscreen", "true");
- video.setAttribute("x5-video-orientation", "portraint");
- video.setAttribute("controlsList", "nodownload");
- }, 6000);
+ if (!$().isWeixin()) {
+ video.setAttribute("x5-playsinline", "true");
+ video.setAttribute("playsinline", "true");
+ video.setAttribute("webkit-playsinline", "true");
+ video.removeAttribute("controls");
+ //video.setAttribute("x5-video-player-fullscreen", "true");
+ video.setAttribute("x5-video-orientation", "portraint");
+ video.setAttribute("controlsList", "nodownload");
+ }else{
+ video.setAttribute("x-webkit-airplay",true);
+ video.setAttribute("x5-video-player-type","h5");
+ }
+ }, 3000);
//给video对象增加属性
var video = document.querySelector("video");
diff --git a/Song.Site/Templates/Mobi/Default2019/Styles/CourseStudy.css b/Song.Site/Templates/Mobi/Default2019/Styles/CourseStudy.css
index 2a81590c1..9ad965784 100644
--- a/Song.Site/Templates/Mobi/Default2019/Styles/CourseStudy.css
+++ b/Song.Site/Templates/Mobi/Default2019/Styles/CourseStudy.css
@@ -45,8 +45,8 @@ video::-webkit-media-controls {
overflow: hidden !important;
}
video::-webkit-media-controls-panel {
- width: calc(100% + 30px) !important;
- margin-left: auto;
+ --width: calc(100% + 30px) !important;
+ margin-left: auto;
}
/*返回首页*/
diff --git a/Song.Site/db.config b/Song.Site/db.config
index 6151e641f..018f143b5 100644
--- a/Song.Site/db.config
+++ b/Song.Site/db.config
@@ -7,7 +7,7 @@
-
From d4e882f82db8b4873569b7a1d8f79e42142a36f7 Mon Sep 17 00:00:00 2001
From: weishakeji <10522779@qq.com>
Date: Thu, 30 Apr 2020 11:03:12 +0800
Subject: [PATCH 07/21] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E6=89=8B?=
=?UTF-8?q?=E6=9C=BA=E7=AB=AF=E8=A7=86=E9=A2=91=E5=AD=A6=E4=B9=A0=E6=97=B6?=
=?UTF-8?q?=E7=9A=84=E5=85=A8=E5=B1=8F=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Song.Site/Properties/AssemblyInfo.cs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Song.Site/Properties/AssemblyInfo.cs b/Song.Site/Properties/AssemblyInfo.cs
index b569e4e6a..0198994aa 100644
--- a/Song.Site/Properties/AssemblyInfo.cs
+++ b/Song.Site/Properties/AssemblyInfo.cs
@@ -5,7 +5,7 @@
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
-[assembly: AssemblyTitle("ReleaseDate 2020-4-18")]
+[assembly: AssemblyTitle("ReleaseDate 2020-4-30")]
[assembly: AssemblyDescription("集“学、练、考”与一体的在线学习系统")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("微厦科技")]
From 8eb42a7bf9ee473a72acfdd93f58ec6cc165e4bb Mon Sep 17 00:00:00 2001
From: weishakeji <10522779@qq.com>
Date: Sat, 9 May 2020 11:01:32 +0800
Subject: [PATCH 08/21] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E6=89=8B?=
=?UTF-8?q?=E6=9C=BA=E7=AB=AF=E8=A7=86=E9=A2=91=E6=97=A0=E6=B3=95=E5=85=A8?=
=?UTF-8?q?=E5=B1=8F=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Song.Site/Properties/AssemblyInfo.cs | 2 +-
.../Templates/Mobi/Default2019/Scripts/CourseStudy.js | 6 +++---
Song.Site/Templates/Web/_Public/Styles/CourseStudy.css | 10 +---------
.../Templates/Web/_Public/Styles/CourseStudy_.css | 2 +-
Song.Site/db.config | 2 +-
5 files changed, 7 insertions(+), 15 deletions(-)
diff --git a/Song.Site/Properties/AssemblyInfo.cs b/Song.Site/Properties/AssemblyInfo.cs
index 0198994aa..c6aafa774 100644
--- a/Song.Site/Properties/AssemblyInfo.cs
+++ b/Song.Site/Properties/AssemblyInfo.cs
@@ -5,7 +5,7 @@
// 有关程序集的常规信息通过下列属性集
// 控制。更改这些属性值可修改
// 与程序集关联的信息。
-[assembly: AssemblyTitle("ReleaseDate 2020-4-30")]
+[assembly: AssemblyTitle("ReleaseDate 2020-5-7")]
[assembly: AssemblyDescription("集“学、练、考”与一体的在线学习系统")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("微厦科技")]
diff --git a/Song.Site/Templates/Mobi/Default2019/Scripts/CourseStudy.js b/Song.Site/Templates/Mobi/Default2019/Scripts/CourseStudy.js
index 5f0712d5d..afdb684ba 100644
--- a/Song.Site/Templates/Mobi/Default2019/Scripts/CourseStudy.js
+++ b/Song.Site/Templates/Mobi/Default2019/Scripts/CourseStudy.js
@@ -169,7 +169,7 @@ var vdata = new Vue({
//隐藏全屏按钮
var fullbtn = document.getElementsByClassName("qplayer-fullscreen");
for (var i = 0; i < fullbtn.length; i++) {
- fullbtn[i].style.display = "none";
+ //fullbtn[i].style.display = "none";
}
//隐藏设置按钮(播放倍速也禁用了)
var setbtn = document.getElementsByClassName("qplayer-settings-btn");
@@ -214,12 +214,12 @@ var vdata = new Vue({
vdata.outline = ol.data.result;
vdata.state = state.data.result;
if (!vdata.state.isLive && vdata.state.PlayTime > 0) {
- if (window.confirm("是否从上次进度播放?")) {
+ //if (window.confirm("是否从上次进度播放?")) {
vdata.videoSeek(vdata.state.PlayTime / 1000);
window.setTimeout(function() {
if (vdata.playready()) vdata.player.play();
}, 500);
- }
+ //}
}
//视频播放记录
var result = state.data.result;
diff --git a/Song.Site/Templates/Web/_Public/Styles/CourseStudy.css b/Song.Site/Templates/Web/_Public/Styles/CourseStudy.css
index e81c571e6..124906592 100644
--- a/Song.Site/Templates/Web/_Public/Styles/CourseStudy.css
+++ b/Song.Site/Templates/Web/_Public/Styles/CourseStudy.css
@@ -100,7 +100,7 @@ video::-webkit-media-controls-enclosure {
}
video::-webkit-media-controls-panel {
- width: calc(100% + 30px);
+ width: calc(100% + 0px);
}
.courseBox {
@@ -536,14 +536,6 @@ video::-webkit-media-controls-panel {
color: red;
}
-video::-webkit-media-controls-enclosure {
- overflow: hidden;
-}
-
-video::-webkit-media-controls-panel {
- width: calc(100% + 30px);
-}
-
.historyInfo {
margin-left: 20px;
cursor: pointer;
diff --git a/Song.Site/Templates/Web/_Public/Styles/CourseStudy_.css b/Song.Site/Templates/Web/_Public/Styles/CourseStudy_.css
index 596aa42ca..622d3b14b 100644
--- a/Song.Site/Templates/Web/_Public/Styles/CourseStudy_.css
+++ b/Song.Site/Templates/Web/_Public/Styles/CourseStudy_.css
@@ -302,7 +302,7 @@ video::-webkit-media-controls-enclosure {
overflow:hidden;
}
video::-webkit-media-controls-panel {
- width: calc(100% + 30px);
+ --width: calc(100% + 30px);
}
.historyInfo {
margin-left: 20px;
diff --git a/Song.Site/db.config b/Song.Site/db.config
index 018f143b5..5202502ca 100644
--- a/Song.Site/db.config
+++ b/Song.Site/db.config
@@ -7,7 +7,7 @@
-
From d4254b13ff5d5e0f10a5d10b3835ebfc0904125b Mon Sep 17 00:00:00 2001
From: weishakeji <10522779@qq.com>
Date: Tue, 12 May 2020 10:58:25 +0800
Subject: [PATCH 09/21] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9Amessagebox.js?=
=?UTF-8?q?=E5=85=B3=E9=97=AD=E4=BA=8B=E4=BB=B6=E7=9A=84=E6=AD=BB=E5=BE=AA?=
=?UTF-8?q?=E7=8E=AF=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Song.Site/Templates/Web/_Public/Scripts/examing.js | 4 ++--
Song.Site/Utility/CoreScripts/MessageBox.js | 5 ++++-
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/Song.Site/Templates/Web/_Public/Scripts/examing.js b/Song.Site/Templates/Web/_Public/Scripts/examing.js
index 1d22dac4b..9b95eb91a 100644
--- a/Song.Site/Templates/Web/_Public/Scripts/examing.js
+++ b/Song.Site/Templates/Web/_Public/Scripts/examing.js
@@ -14,7 +14,7 @@ $(document).ready(function () {
var box=new MsgBox(title,msg,width,height,"alert",null,closeEvent);
box.OverEvent =function(){
if(closeEvent!=null)closeEvent();
- window.MsgBox.Close();
+ //window.MsgBox.Close();
$('body').css('overflow','auto');
}
box.Open();
@@ -25,7 +25,7 @@ $(document).ready(function () {
if(enterEvent!=null)msg.EnterEvent =enterEvent;
msg.OverEvent =function(){
if(closeEvent!=null)closeEvent();
- window.MsgBox.Close();
+ //window.MsgBox.Close();
$('body').css('overflow','auto');
}
msg.Open();
diff --git a/Song.Site/Utility/CoreScripts/MessageBox.js b/Song.Site/Utility/CoreScripts/MessageBox.js
index 8d6b690fb..197c6067e 100644
--- a/Song.Site/Utility/CoreScripts/MessageBox.js
+++ b/Song.Site/Utility/CoreScripts/MessageBox.js
@@ -142,14 +142,17 @@
//执行窗口关闭事件
if (isquiet == null || isquiet != true) {
//if (msgbox.OverEvent != null) msgbox.OverEvent();
+ var mbox=$(".MsgBox");
+ console.log('mbox:'+mbox.size());
$(".MsgBox").each(function (index) {
var winid = $(this).attr("winid");
var func = msgbox.events.get(winid + "_OverEvent");
if (func != null) func();
+ //console.log('test');
});
}
//$("#msgMask").fadeOut(100, function () {
- $("#msgMask").remove();
+ //$("#msgMask").remove();
//});
//$(".MsgBox").fadeOut(100, function () {
$(".MsgBox").remove();
From 842750d7f62fa4671e39b0848f4b89915c446e0a Mon Sep 17 00:00:00 2001
From: weishakeji <10522779@qq.com>
Date: Tue, 12 May 2020 11:26:00 +0800
Subject: [PATCH 10/21] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E5=AD=A6?=
=?UTF-8?q?=E5=91=98=E5=AD=A6=E4=B9=A0=E8=AF=81=E6=98=8E=E6=89=93=E5=8D=B0?=
=?UTF-8?q?=EF=BC=8C=E5=AD=A6=E5=91=98=E5=8F=AF=E4=BB=A5=E9=80=89=E6=8B=A9?=
=?UTF-8?q?=E6=8C=87=E5=AE=9A=E7=9A=84=E8=AF=BE=E7=A8=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Song.ServiceImpls/StudentCom.cs | 37 ++++++++++++++++++-
Song.ServiceInterfaces/IStudent.cs | 7 ++++
Song.Site/Manage/Student/Scripts/StudyLog.js | 10 +++--
.../Manage/Student/Students_Details.aspx.cs | 8 +++-
Song.Site/Manage/Student/StudyLog.aspx | 2 +-
5 files changed, 58 insertions(+), 6 deletions(-)
diff --git a/Song.ServiceImpls/StudentCom.cs b/Song.ServiceImpls/StudentCom.cs
index 14aafc6bc..527943c23 100644
--- a/Song.ServiceImpls/StudentCom.cs
+++ b/Song.ServiceImpls/StudentCom.cs
@@ -992,7 +992,42 @@ FROM [LogForStudentStudy] where {acid} group by ol_id
return null;
}
}
-
+ ///
+ /// 学员指定学习课程的记录
+ ///
+ ///
+ ///
课程id,逗号分隔
+ ///
+ public DataTable StudentStudyCourseLog(int stid, string couids)
+ {
+ DataTable dt = this.StudentStudyCourseLog(stid);
+ if (dt == null) return dt;
+ for (int i = 0; i < dt.Rows.Count; i++)
+ {
+ DataRow dr = dt.Rows[i];
+ //课程id
+ int couid = Convert.ToInt32(dr["Cou_ID"].ToString());
+ bool isexist = false;
+ foreach (string id in couids.Split(','))
+ {
+ if (string.IsNullOrWhiteSpace(id)) continue;
+ int sid = 0;
+ int.TryParse(id,out sid);
+ if (sid == 0) continue;
+ if (couid == sid)
+ {
+ isexist = true;
+ break;
+ }
+ }
+ if (!isexist)
+ {
+ dt.Rows.RemoveAt(i);
+ i--;
+ }
+ }
+ return dt;
+ }
///
/// 学员学习某一门课程的完成度
///
diff --git a/Song.ServiceInterfaces/IStudent.cs b/Song.ServiceInterfaces/IStudent.cs
index df84425e4..6b91c5cce 100644
--- a/Song.ServiceInterfaces/IStudent.cs
+++ b/Song.ServiceInterfaces/IStudent.cs
@@ -386,6 +386,13 @@ public interface IStudent : WeiSha.Common.IBusinessInterface
///
datatable��LastTime��Ϊѧϰʱ�䣻studyTime��ѧϰʱ��
DataTable StudentStudyCourseLog(int stid);
///
+ /// ѧԱָ��ѧϰ�γ̵ļ�¼
+ ///
+ ///
+ ///
�γ�id,���ŷָ�
+ ///
+ DataTable StudentStudyCourseLog(int stid,string couids);
+ ///
/// ѧԱ����ѧϰijһ�γ̵ļ�¼
///
///
ѧԱid
diff --git a/Song.Site/Manage/Student/Scripts/StudyLog.js b/Song.Site/Manage/Student/Scripts/StudyLog.js
index 4b0f6e96a..3baf7514f 100644
--- a/Song.Site/Manage/Student/Scripts/StudyLog.js
+++ b/Song.Site/Manage/Student/Scripts/StudyLog.js
@@ -1,10 +1,14 @@
-$(function () {
+$(function () {
// 导出详情的按钮
$("input[name$=btnOutput]").val("打印").click(function () {
- //$(this).attr("disabled", "disabled");
+ //$(this).attr("disabled", "disabled");
+ //当前选中的课程id
+ var cous = GetKeyValues('GridView1');
var iframe = $("#iframeExportDetails");
- var link=iframe.attr("link") + "&t=" + new Date().getTime();
+ var link = iframe.attr("link")+"&cous="+ cous + "&t=" + new Date().getTime();
//iframe.attr("src", iframe.attr("link") + "&t=" + new Date().getTime());
+
+ //alert(cous);
new top.PageBox("学习证明打印", link, 980, 90, null, window.name).Open();
return false;
});
diff --git a/Song.Site/Manage/Student/Students_Details.aspx.cs b/Song.Site/Manage/Student/Students_Details.aspx.cs
index 7e739d6a7..438e907bd 100644
--- a/Song.Site/Manage/Student/Students_Details.aspx.cs
+++ b/Song.Site/Manage/Student/Students_Details.aspx.cs
@@ -22,6 +22,8 @@ public partial class Students_Details : Extend.CustomPage
{
//ѧԱ���id��
private string sts = WeiSha.Common.Request.QueryString["sts"].String;
+ //�γ�id��
+ private string courses = WeiSha.Common.Request.QueryString["cous"].String;
//ѧԱID
private int accid = WeiSha.Common.Request.QueryString["id"].Int32 ?? 0;
//Ա���ϴ����ϵ�����·��
@@ -115,7 +117,11 @@ protected void rptAccounts_ItemDataBound(object sender, RepeaterItemEventArgs e)
//��ѧԱ�Ŀγ�ѧϰ��¼
Song.Entities.Accounts acc = this.accounts[e.Item.ItemIndex];
Repeater rtp = (Repeater)e.Item.FindControl("rtpLearnInfo");
- DataTable dt = Business.Do
().StudentStudyCourseLog(acc.Ac_ID);
+ DataTable dt = null;
+ if (sts == "-1" && !string.IsNullOrWhiteSpace(this.courses))
+ dt = Business.Do().StudentStudyCourseLog(acc.Ac_ID, courses);
+ else
+ dt = Business.Do().StudentStudyCourseLog(acc.Ac_ID);
if (dt != null)
{
rtp.DataSource = dt;
diff --git a/Song.Site/Manage/Student/StudyLog.aspx b/Song.Site/Manage/Student/StudyLog.aspx
index 2e6afe186..48ac2bd2d 100644
--- a/Song.Site/Manage/Student/StudyLog.aspx
+++ b/Song.Site/Manage/Student/StudyLog.aspx
@@ -11,7 +11,7 @@
DelButtonVisible="false" OutputButtonVisible="true" />