1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- @using WeApp.TrainingCamp.Dto
- @{
- Layout = "~/Views/Shared/Layout/_Layout.Spec.cshtml";
- CampDto camp = ViewBag.Camp;
- string text = ViewBag.Text;
- ViewBag.Title = "专家屏(" + camp.Name + ")";
- }
- @section styles{
- <link href="~/Content/Css/Exercise/stu-bg.min.css" rel="stylesheet" />
- }
- <div class="body no-select" style="">
- <div class="left">
- <img src="~/Content/Image/Stu/gwLogo.png" />
- </div>
- <div class="right">
- <img src="~/Content/Image/Stu/loudou.png" />
- <div class="text-box">
- <span class="name">@(camp.Name)</span>
- <span class="wait-text">@(text)</span>
- </div>
- </div>
- </div>
- @section scripts
- {
- <script id="hub">
- abp.signalr.connect(['@(camp.Id)']);
- iwbHub.client.getReloadAll = function (msg) {
- console.log('getReloadAll: ', msg);
- if (msg) {
- try {
- var data = JSON.parse(msg);
- if (data) {
- if (data.no == '@(camp.Id)') {
- window.location.reload();
- }
- }
- } catch (e) {
- console.log('getReloadAll: ', e);
- }
- }
- };
- iwbHub.client.getReloadSpec = function(msg) {
- console.log('getReloadSpec: ', msg);
- if (msg) {
- try {
- var data = JSON.parse(msg);
- if (data) {
- if (data.no == '@(camp.Id)') {
- window.location.reload();
- }
- }
- } catch (e) {
- console.log('getReloadSpec: ', e);
- }
- }
- };
- </script>
- }
|