Commit 8fb32983 authored by Mac's avatar Mac

1

parent 06abe10b
...@@ -157,13 +157,10 @@ ...@@ -157,13 +157,10 @@
}, {passive: false}); }, {passive: false});
// var activity = JSON.parse(localStorage.activity); // var activity = JSON.parse(localStorage.activity);
var clipboard = new Clipboard('.all_Receive'); var clipboard = new Clipboard('.all_Receive');
// var EmployeeId = activity.EmployeeId + '_Mouse'; var EmployeeId = activity.EmployeeId + '_Mouse';
var laoshudata = [];//老鼠数据 var laoshudata = [];//老鼠数据
var audio=document.getElementById("audio");
var conn = $.hubConnection(getApiUrl().urlSignalr, { var conn = $.hubConnection(getApiUrl().urlSignalr, {
qs: `i=1755_Mouse&n=蔡徐坤&p=${encodeURIComponent('https://dss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=1775930210,1659062463&fm=58')}&e=2017-07-06` qs: `i=${EmployeeId}&n=${activity.EmName}&p=${encodeURIComponent(activity.imgUrl)}&e=${activity.e}`
}); });
var proxy = conn.createHubProxy("annualLeaveHub"); var proxy = conn.createHubProxy("annualLeaveHub");
conn.start().done(data => { conn.start().done(data => {
......
...@@ -102,8 +102,8 @@ ...@@ -102,8 +102,8 @@
let status=0; let status=0;
let clock=null; let clock=null;
let isWinning=false; let isWinning=false;
// var activity = JSON.parse(localStorage.activity); var activity = JSON.parse(localStorage.activity);
// var EmployeeId = activity.EmployeeId + '_Money'; var EmployeeId = activity.EmployeeId + '_Money';
// clipboard.on('success', function(e) { // clipboard.on('success', function(e) {
// console.log(e); // console.log(e);
// }); // });
...@@ -158,8 +158,8 @@ ...@@ -158,8 +158,8 @@
function initConnection(){ function initConnection(){
var conn = $.hubConnection(getApiUrl().urlSignalr, { var conn = $.hubConnection(getApiUrl().urlSignalr, {
qs: `i=1755_Mouse&n=蔡徐坤&p=${encodeURIComponent('https://dss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=1775930210,1659062463&fm=58')}&e=2017-07-06` qs: `i=${EmployeeId}&n=${activity.EmName}&p=${encodeURIComponent(activity.imgUrl)}&e=${activity.e}`
}); });
proxy = conn.createHubProxy("annualLeaveHub"); proxy = conn.createHubProxy("annualLeaveHub");
conn.start().done(data => { conn.start().done(data => {
console.log('connection 链接成功'); console.log('connection 链接成功');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment