Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SURPRISED
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
华国豪
SURPRISED
Commits
121fb76c
Commit
121fb76c
authored
Jan 02, 2020
by
Mac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改页面内容
parent
1d4bfb27
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
98 additions
and
60 deletions
+98
-60
AnnuaLmeetingHome.html
html/annualMeeting/AnnuaLmeetingHome.html
+35
-13
HitMouse.html
html/annualMeeting/HitMouse.html
+21
-23
Money.html
html/annualMeeting/Money.html
+17
-14
ProgramRanking.html
html/annualMeeting/ProgramRanking.html
+4
-5
Amhome.css
html/annualMeeting/css/Amhome.css
+14
-1
HitMouse.css
html/annualMeeting/css/HitMouse.css
+3
-0
welcom_mouse.mp3
html/annualMeeting/video/welcom_mouse.mp3
+0
-0
vote.html
html/annualMeeting/vote.html
+4
-4
No files found.
html/annualMeeting/AnnuaLmeetingHome.html
View file @
121fb76c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0
,viewport-fit=cover
"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
content=
"yes"
name=
"mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
...
@@ -54,7 +54,10 @@
...
@@ -54,7 +54,10 @@
</div>
</div>
</div>
</div>
</div>
</div>
<!-- AR寻宝-->
<div
class=
"AR"
>
</div>
<!-- 中奖弹窗-->
<!-- 中奖弹窗-->
<div
class=
"rank_mask"
id=
"notice"
>
<div
class=
"rank_mask"
id=
"notice"
>
<div
class=
"zhezao"
></div>
<div
class=
"zhezao"
></div>
...
@@ -128,14 +131,17 @@
...
@@ -128,14 +131,17 @@
<script>
<script>
var
href
=
'GT_activities.html?customerId=1951&EmName=张建国&imgUrl=http://imgfile.oytour.com/New/Upload/User/20191018150051176.png&GiftCode=21312312323'
;
// var href = window.location.href;
var
href
=
'AnnuaLmeetingHome.html?EmployeeId=1951&EmName=张建国&imgUrl=http://192.168.2.214:8130/Upload/Temporary/20191223022557036.jpg&GiftCode=201912231427008436'
;
var
param
=
href
.
split
(
'?'
)[
1
].
split
(
"&"
);
var
param
=
href
.
split
(
'?'
)[
1
].
split
(
"&"
);
var
customer
Id
=
param
[
0
].
split
(
'='
)[
1
];
var
Employee
Id
=
param
[
0
].
split
(
'='
)[
1
];
var
EmName
=
param
[
1
].
split
(
'='
)[
1
]
;
var
EmName
=
decodeURI
(
param
[
1
].
split
(
'='
)[
1
])
;
var
imgUrl
=
param
[
2
].
split
(
'='
)[
1
];
var
imgUrl
=
param
[
2
].
split
(
'='
)[
1
];
var
GiftCode
=
param
[
3
].
split
(
'='
)[
1
];
var
GiftCode
=
param
[
3
].
split
(
'='
)[
1
];
var
activity
=
{
var
activity
=
{
customerId
:
customer
Id
,
EmployeeId
:
Employee
Id
,
EmName
:
EmName
,
EmName
:
EmName
,
imgUrl
:
imgUrl
,
imgUrl
:
imgUrl
,
...
@@ -146,8 +152,8 @@
...
@@ -146,8 +152,8 @@
$
(
"input"
).
on
(
"blur"
,
function
(){
$
(
"input"
).
on
(
"blur"
,
function
(){
window
.
scroll
(
0
,
0
);
//失焦后强制让页面归位
window
.
scroll
(
0
,
0
);
//失焦后强制让页面归位
});
});
var
conn
=
$
.
hubConnection
(
"http://192.168.2.6
6
:7838/signalr"
,
{
var
conn
=
$
.
hubConnection
(
"http://192.168.2.6
5
:7838/signalr"
,
{
qs
:
`i=
${
customer
Id
}
&n=
${
EmName
}
&p=
${
encodeURIComponent
(
imgUrl
)}
`
qs
:
`i=
${
Employee
Id
}
&n=
${
EmName
}
&p=
${
encodeURIComponent
(
imgUrl
)}
`
});
});
var
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
var
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
conn
.
start
().
done
(
data
=>
{
conn
.
start
().
done
(
data
=>
{
...
@@ -172,17 +178,12 @@
...
@@ -172,17 +178,12 @@
// 10秒后启用点击事件
// 10秒后启用点击事件
setTimeout
(
function
(){
setTimeout
(
function
(){
clickBtn
=
true
;
clickBtn
=
true
;
console
.
log
(
123
)
},
10000
);
},
10000
);
}
else
{
}
else
{
layer
.
msg
(
'发送频繁'
);
layer
.
msg
(
'发送频繁'
);
}
}
}
}
}
}
function
getMsg
()
{
function
getMsg
()
{
...
@@ -246,6 +247,9 @@
...
@@ -246,6 +247,9 @@
if
(
list
.
VoteState
==
1
){
if
(
list
.
VoteState
==
1
){
console
.
log
(
'进入投票'
)
console
.
log
(
'进入投票'
)
$
(
'#activity3'
).
css
(
'display'
,
'flex'
)
$
(
'#activity3'
).
css
(
'display'
,
'flex'
)
renderHourglass
(
'vote'
,
'block'
)
}
else
{
renderHourglass
(
'vote'
,
'none'
)
}
}
});
});
...
@@ -374,11 +378,29 @@
...
@@ -374,11 +378,29 @@
window
.
location
.
href
=
'./money.html'
window
.
location
.
href
=
'./money.html'
}
}
if
(
type
=
'votes'
){
if
(
type
=
=
'votes'
){
window
.
location
.
href
=
'./vote.html'
window
.
location
.
href
=
'./vote.html'
}
}
}
}
$
(
'.AR'
).
click
(
function
()
{
let
data
=
{
'action'
:
'jump'
,
'page'
:
'arCamera'
,
'pageData'
:
{
}
}
window
.
postMessage
(
JSON
.
stringify
(
data
));
})
//键盘弹起遮挡内容的处理方法
$
(
'input[type="text"],textarea'
).
on
(
'click'
,
function
()
{
var
target
=
this
;
setTimeout
(
function
(){
target
.
scrollIntoViewIfNeeded
();
},
400
);
});
</script>
</script>
</html>
</html>
html/annualMeeting/HitMouse.html
View file @
121fb76c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0
,viewport-fit=cover
"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
content=
"yes"
name=
"mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
...
@@ -15,13 +15,8 @@
...
@@ -15,13 +15,8 @@
<div
class=
"Box"
>
<div
class=
"Box"
>
<a
id=
"goali"
href=
"alipays://platformapi/startapp"
target=
"_blank"
style=
"position: absolute;z-index: -1;"
>
GO
</a>
<a
id=
"goali"
href=
"alipays://platformapi/startapp"
target=
"_blank"
style=
"position: absolute;z-index: -1;"
>
GO
</a>
<audio
id=
"audio"
src=
"img/game_running.mp3"
autoplay=
"autoplay"
>
<audio
id=
"audio"
src=
"video/welcom_mouse.mp3"
autoplay
></audio>
您的浏览器不支持audio标签
</audio>
<audio
id=
"audio2"
src=
"img/ready321go.mp3"
>
您的浏览器不支持audio标签
</audio>
<audio
src=
"img/all.mp3"
id=
"music"
></audio>
<!-- <div class="bbb" style="position: fixed;font-size: 0.15rem">测试</div>-->
<!-- <div class="bbb" style="position: fixed;font-size: 0.15rem">测试</div>-->
<!-- 头部一块-->
<!-- 头部一块-->
...
@@ -158,18 +153,13 @@
...
@@ -158,18 +153,13 @@
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
customerId
=
activity
.
customerId
+
'_Mouse'
;
var
EmployeeId
=
activity
.
EmployeeId
+
'_Mouse'
;
var
status
=
0
;
//活动状态
var
laoshudata
=
[];
//老鼠数据
var
laoshudata
=
[];
//老鼠数据
var
audio
=
document
.
getElementById
(
"audio"
);
var
audio
=
document
.
getElementById
(
"audio"
);
var
audio2
=
document
.
getElementById
(
"audio2"
);
document
.
addEventListener
(
'touchstart'
,
function
()
{
document
.
getElementById
(
'audio'
).
play
()
})
audio
.
loop
=
true
;
var
conn
=
$
.
hubConnection
(
"http://192.168.2.66:7838/signalr"
,
{
qs
:
`i=
${
customerId
}
&n=
${
activity
.
EmName
}
&p=
${
encodeURIComponent
(
activity
.
imgUrl
)}
`
var
conn
=
$
.
hubConnection
(
"http://192.168.2.65:7838/signalr"
,
{
qs
:
`i=
${
EmployeeId
}
&n=
${
activity
.
EmName
}
&p=
${
encodeURIComponent
(
activity
.
imgUrl
)}
`
});
});
var
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
var
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
conn
.
start
().
done
(
data
=>
{
conn
.
start
().
done
(
data
=>
{
...
@@ -229,7 +219,7 @@
...
@@ -229,7 +219,7 @@
});
});
}
}
function
ownranking
()
{
function
ownranking
()
{
proxy
.
invoke
(
"GetUserRank"
,
'Mouse'
,
customer
Id
).
done
(
data
=>
{
proxy
.
invoke
(
"GetUserRank"
,
'Mouse'
,
Employee
Id
).
done
(
data
=>
{
console
.
log
(
data
)
console
.
log
(
data
)
if
(
data
.
r
!=
-
1
){
if
(
data
.
r
!=
-
1
){
$
(
'.o_ranking'
).
html
(
'第'
+
data
.
r
+
'名'
)
$
(
'.o_ranking'
).
html
(
'第'
+
data
.
r
+
'名'
)
...
@@ -272,13 +262,14 @@
...
@@ -272,13 +262,14 @@
$
(
'.status3'
).
css
({
'display'
:
'flex'
});
$
(
'.status3'
).
css
({
'display'
:
'flex'
});
}
}
});
});
proxy
.
on
(
'notifyMouseGamerResult'
,
function
(
data
)
{
proxy
.
on
(
'notifyMouseGamerResult'
,
function
(
data
)
{
//全部排名
console
.
log
(
data
)
console
.
log
(
data
)
ownranking
()
//获取自己排名
ownranking
()
//获取自己排名
getRankList
(
data
)
getRankList
(
data
)
})
})
proxy
.
on
(
'notifyMouseWinning'
,
function
(
data
)
{
//活动中奖通知
proxy
.
on
(
'notifyMouseWinning'
,
function
(
data
)
{
//活动中奖通知
console
.
log
(
data
)
console
.
log
(
data
)
$
(
'#audio'
).
attr
(
"src"
,
"video/zhongjiang.mp3"
);
$
(
'#notice'
).
css
(
'display'
,
'flex'
);
$
(
'#notice'
).
css
(
'display'
,
'flex'
);
$
(
'#tokenReadPackage'
).
val
(
data
);
$
(
'#tokenReadPackage'
).
val
(
data
);
$
(
'#rank_mask'
).
css
(
'display'
,
'none'
);
$
(
'#rank_mask'
).
css
(
'display'
,
'none'
);
...
@@ -377,7 +368,8 @@
...
@@ -377,7 +368,8 @@
}
}
var
Count_key
=
0
var
Count_key
=
0
function
StartGame
()
{
function
StartGame
()
{
audio2
.
play
()
$
(
'#audio'
).
attr
(
"src"
,
"video/ready321go.mp3"
);
Count
=
5
;
Count
=
5
;
Count2
=
30
;
Count2
=
30
;
Count_key
=
0
;
//初始为0
Count_key
=
0
;
//初始为0
...
@@ -407,12 +399,15 @@
...
@@ -407,12 +399,15 @@
}
}
//30秒倒计时
//30秒倒计时
function
Count30
(){
function
Count30
(){
$
(
'#audio'
).
attr
(
"src"
,
"video/game_running.mp3"
);
ces2
()
ces2
()
$
(
"#time"
).
html
(
30
);
$
(
"#time"
).
html
(
30
);
let
clock
=
window
.
setInterval
(
function
()
{
let
clock
=
window
.
setInterval
(
function
()
{
Count2
--
;
Count2
--
;
$
(
"#time"
).
html
(
Count2
);
$
(
"#time"
).
html
(
Count2
);
if
(
Count2
===
0
)
{
if
(
Count2
===
0
)
{
$
(
'#audio'
).
attr
(
"src"
,
"video/gameover.mp3"
);
window
.
clearInterval
(
clock
);
window
.
clearInterval
(
clock
);
window
.
clearInterval
(
timer1
);
//清除老鼠
window
.
clearInterval
(
timer1
);
//清除老鼠
sendScore
(
score
)
sendScore
(
score
)
...
@@ -449,9 +444,12 @@
...
@@ -449,9 +444,12 @@
$
(
'#notice'
).
css
(
'display'
,
'none'
)
$
(
'#notice'
).
css
(
'display'
,
'none'
)
})
})
$
(
'#getAliPay'
).
click
(
function
(){
$
(
'#getAliPay'
).
click
(
function
(){
// setTimeout(function(){
setTimeout
(
function
(){
// $('#goali')[0].click();
let
data
=
{
// },500);
'action'
:
'Linking'
,
}
window
.
postMessage
(
JSON
.
stringify
(
data
));
},
500
);
});
});
$
(
'.return'
).
click
(
function
()
{
$
(
'.return'
).
click
(
function
()
{
...
...
html/annualMeeting/Money.html
View file @
121fb76c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no"
>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no
,viewport-fit=cover
"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<meta
name=
"full-screen"
content=
"true"
>
<meta
name=
"full-screen"
content=
"true"
>
<meta
name=
"screen-orientation"
content=
"portrait"
>
<meta
name=
"screen-orientation"
content=
"portrait"
>
...
@@ -147,11 +147,11 @@
...
@@ -147,11 +147,11 @@
}
}
});
});
}
}
var
activity
=
JSON
.
parse
(
localStorage
.
activity
);
var
EmployeeId
=
activity
.
EmployeeId
+
'_Money'
;
function
initConnection
(){
function
initConnection
(){
conn
=
$
.
hubConnection
(
"http://localhost:7838/signalr"
,
{
var
conn
=
$
.
hubConnection
(
"http://192.168.2.65:7838/signalr"
,
{
qs
:
`i=1951_Money&n=张建国&p=
${
encodeURIComponent
(
qs
:
`i=
${
EmployeeId
}
&n=
${
activity
.
EmName
}
&p=
${
encodeURIComponent
(
activity
.
imgUrl
)}
`
"http://imgfile.oytour.com/Upload/User/636738107265395640.jpg"
)}
`
});
});
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
conn
.
start
().
done
(
data
=>
{
conn
.
start
().
done
(
data
=>
{
...
@@ -210,7 +210,10 @@
...
@@ -210,7 +210,10 @@
});
});
$
(
'#getAliPay'
).
click
(
function
(){
$
(
'#getAliPay'
).
click
(
function
(){
setTimeout
(
function
(){
setTimeout
(
function
(){
$
(
'#goali'
)[
0
].
click
();
let
data
=
{
'action'
:
'Linking'
,
}
window
.
postMessage
(
JSON
.
stringify
(
data
));
},
500
);
},
500
);
});
});
//点击查看排行榜
//点击查看排行榜
...
...
html/annualMeeting/ProgramRanking.html
View file @
121fb76c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0
,viewport-fit=cover
"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
content=
"yes"
name=
"mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
...
@@ -207,8 +207,8 @@
...
@@ -207,8 +207,8 @@
<script>
<script>
var
activity
=
JSON
.
parse
(
localStorage
.
activity
);
var
activity
=
JSON
.
parse
(
localStorage
.
activity
);
var
conn
=
$
.
hubConnection
(
"http://192.168.2.6
6
:7838/signalr"
,
{
var
conn
=
$
.
hubConnection
(
"http://192.168.2.6
5
:7838/signalr"
,
{
qs
:
`i=
${
activity
.
customer
Id
}
&n=
${
activity
.
EmName
}
&p=
${
encodeURIComponent
(
activity
.
imgUrl
)}
`
qs
:
`i=
${
activity
.
Employee
Id
}
&n=
${
activity
.
EmName
}
&p=
${
encodeURIComponent
(
activity
.
imgUrl
)}
`
});
});
var
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
var
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
conn
.
start
().
done
(
data
=>
{
conn
.
start
().
done
(
data
=>
{
...
@@ -216,8 +216,7 @@
...
@@ -216,8 +216,7 @@
}).
fail
(
data
=>
{});
}).
fail
(
data
=>
{});
getMsg
()
getMsg
()
function
sendMsg
()
{
function
sendMsg
()
{
proxy
.
invoke
(
"SendVoteProgarm"
,
'1'
,
activity
.
customerId
).
done
(
data
=>
{
proxy
.
invoke
(
"SendVoteProgarm"
,
'1'
,
activity
.
EmployeeId
).
done
(
data
=>
{
console
.
log
(
data
)
RankingList
(
data
)
RankingList
(
data
)
})
})
}
}
...
...
html/annualMeeting/css/Amhome.css
View file @
121fb76c
...
@@ -5,6 +5,9 @@ body {
...
@@ -5,6 +5,9 @@ body {
overflow-x
:
hidden
;
overflow-x
:
hidden
;
height
:
100%
;
height
:
100%
;
}
}
*
{
-webkit-tap-highlight-color
:
transparent
;
}
p
{
p
{
margin
:
0
;
margin
:
0
;
}
}
...
@@ -131,7 +134,7 @@ p{
...
@@ -131,7 +134,7 @@ p{
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.send_btn
{
.send_btn
p
{
color
:
#893630
;
color
:
#893630
;
font-size
:
0.13rem
;
font-size
:
0.13rem
;
}
}
...
@@ -388,3 +391,13 @@ p{
...
@@ -388,3 +391,13 @@ p{
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
.AR
{
width
:
0.515rem
;
height
:
0.535rem
;
position
:
fixed
;
right
:
0.15rem
;
bottom
:
1.5rem
;
background-image
:
url('../../../images/aM/AR@2x.png')
;
background-size
:
100%
100%
;
background-repeat
:
no-repeat
;
}
html/annualMeeting/css/HitMouse.css
View file @
121fb76c
...
@@ -7,6 +7,9 @@ body {
...
@@ -7,6 +7,9 @@ body {
-webkit-overflow-scrolling
:
auto
;
-webkit-overflow-scrolling
:
auto
;
overflow-scrolling
:
auto
overflow-scrolling
:
auto
}
}
*
{
-webkit-tap-highlight-color
:
transparent
;
}
p
{
p
{
margin
:
0
;
margin
:
0
;
}
}
...
...
html/annualMeeting/video/welcom_mouse.mp3
0 → 100644
View file @
121fb76c
File added
html/annualMeeting/vote.html
View file @
121fb76c
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<html
lang=
"en"
>
<html
lang=
"en"
>
<head>
<head>
<meta
charset=
"UTF-8"
/>
<meta
charset=
"UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0"
/>
<meta
name=
"viewport"
content=
"width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0
,viewport-fit=cover
"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
name=
"format-detection"
content=
"telephone=no"
/>
<meta
content=
"yes"
name=
"mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
/>
...
@@ -48,8 +48,8 @@
...
@@ -48,8 +48,8 @@
<script>
<script>
var
activity
=
JSON
.
parse
(
localStorage
.
activity
);
var
activity
=
JSON
.
parse
(
localStorage
.
activity
);
var
conn
=
$
.
hubConnection
(
"http://192.168.2.6
6
:7838/signalr"
,
{
var
conn
=
$
.
hubConnection
(
"http://192.168.2.6
5
:7838/signalr"
,
{
qs
:
`i=
${
activity
.
customer
Id
}
&n=
${
activity
.
EmName
}
&p=
${
encodeURIComponent
(
activity
.
imgUrl
)}
`
qs
:
`i=
${
activity
.
Employee
Id
}
&n=
${
activity
.
EmName
}
&p=
${
encodeURIComponent
(
activity
.
imgUrl
)}
`
});
});
var
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
var
proxy
=
conn
.
createHubProxy
(
"annualLeaveHub"
);
conn
.
start
().
done
(
data
=>
{
conn
.
start
().
done
(
data
=>
{
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
}
else
{
}
else
{
if
(
giveUp
==
false
){
if
(
giveUp
==
false
){
proxy
.
invoke
(
"UserVoteProgarm"
,
activity
.
customer
Id
).
done
(
data
=>
{
proxy
.
invoke
(
"UserVoteProgarm"
,
activity
.
Employee
Id
).
done
(
data
=>
{
console
.
log
(
data
)
console
.
log
(
data
)
$
(
'.popup'
).
css
(
'display'
,
'block'
)
$
(
'.popup'
).
css
(
'display'
,
'block'
)
$
(
'.popup_bg img'
).
attr
(
'src'
,
'../../images/aM/toupiao.png'
)
$
(
'.popup_bg img'
).
attr
(
'src'
,
'../../images/aM/toupiao.png'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment