ソースを参照

Merge branch 'master' of http://192.168.1.222:3000/zhangkun/ditie2.0_web

zhoufan 3 年 前
コミット
bb9fe76603
共有2 個のファイルを変更した16 個の追加5 個の削除を含む
  1. 15 4
      web/YTSoft.BaseCallCenter.MVCWeb/Views/CallRecord/VoicePlay.cshtml
  2. 1 1
      web/YTSoft.BaseCallCenter.MVCWeb/Views/Main/Index.cshtml

+ 15 - 4
web/YTSoft.BaseCallCenter.MVCWeb/Views/CallRecord/VoicePlay.cshtml

14
     
14
     
15
     <script type="text/javascript">
15
     <script type="text/javascript">
16
         function LoadList() {
16
         function LoadList() {
17
-            var audioUrl = "@Model.downpath"
17
+            @* var audioUrl = "@Model.downpath" *@
18
+            @* var audioUrl = "http://121.196.219.217:8020/liuyan/20201130/54990_13255966455_20201130145010.wav" *@
19
+            var audioUrl = "http://121.196.219.217:9009/20201127/1012/45136_1_183808.wav"
18
             var strFileName = audioUrl.substring((audioUrl.lastIndexOf('/') + 1));
20
             var strFileName = audioUrl.substring((audioUrl.lastIndexOf('/') + 1));
19
 						downloadUrl(audioUrl, strFileName);
21
 						downloadUrl(audioUrl, strFileName);
20
             
22
             
30
         }
32
         }
31
 
33
 
32
         function PlayUrl(url) {
34
         function PlayUrl(url) {
33
-            document.getElementById("divPlist").innerHTML = "<embed id=\"embedPlay\" type=\"audio/mp3\" src=\"" + url + "\" autostart=\"true\" loop=\"false\" />";
35
+            var borswer =window.navigator.userAgent.toLowerCase()
36
+            if(borswer.indexOf("firefox") > 0){
37
+                document.getElementById("divPlist").style.height = "180px"
38
+                document.getElementById("divPlist").innerHTML = "<audio id=\"videoPlay\" src=\"" + url + "\"    controls=\"controls\"  />";
39
+                document.getElementById("videoPlay").style.marginTop = "120px"
40
+            }else{
41
+                
42
+                document.getElementById("divPlist").innerHTML = "<embed id=\"embedPlay\" type=\"audio/mp3\" src=\"" + url + "\" autostart=\"true\" loop=\"false\" />";
43
+            }
34
         }
44
         }
35
         function OpenPlayUrl(url) {
45
         function OpenPlayUrl(url) {
36
             window.open(url, "_blank", "scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes");
46
             window.open(url, "_blank", "scrollbars=yes,resizable=1,modal=false,alwaysRaised=yes");
37
         }
47
         }
38
         function Init() {
48
         function Init() {
39
             var strpath = document.getElementById("txtPath").value;
49
             var strpath = document.getElementById("txtPath").value;
50
+            @* var strpath = "http://121.196.219.217:9009/20201127/1012/45136_1_183808.wav" *@
40
             if(strpath){
51
             if(strpath){
41
                 var arr = strpath.split('^');
52
                 var arr = strpath.split('^');
42
                 var html = "点击播放<br />";
53
                 var html = "点击播放<br />";
69
                             <div id="embedText" style="display: none; height:120px; padding:20px">无留言</div>
80
                             <div id="embedText" style="display: none; height:120px; padding:20px">无留言</div>
70
                         </div>
81
                         </div>
71
                         <div class="layui-col-md12">
82
                         <div class="layui-col-md12">
72
-                            <input id="txtPath" value="@Model.downpath" style="display:none;" />
73
-                            <div id="divFileList">@Model.downpath</div>
83
+                            <input id="txtPath" value="http://121.196.219.217:9009/20201127/1012/45136_1_183808.wav" style="display:none;" />
84
+                            <div id="divFileList">http://121.196.219.217:9009/20201127/1012/45136_1_183808.wav</div>
74
                         </div>
85
                         </div>
75
                     </div>
86
                     </div>
76
                 </div>
87
                 </div>

+ 1 - 1
web/YTSoft.BaseCallCenter.MVCWeb/Views/Main/Index.cshtml

1738
       var form = layui.form,
1738
       var form = layui.form,
1739
       layer = parent.layer === undefined ? layui.layer : parent.layer,
1739
       layer = parent.layer === undefined ? layui.layer : parent.layer,
1740
       $ = layui.jquery;
1740
       $ = layui.jquery;
1741
-      timeNotice = setInterval("getUnread()",5000)
1741
+      // timeNotice = setInterval("getUnread()",5000)
1742
 
1742
 
1743
       $(".fa-whatsapp").click(function () {
1743
       $(".fa-whatsapp").click(function () {
1744
         if ($("#HdIswin").val()) {
1744
         if ($("#HdIswin").val()) {