Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
Z
ZeusHub_Unity
Project
Project
Details
Activity
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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
潘梓豪
ZeusHub_Unity
Commits
411ee888
Commit
411ee888
authored
Aug 20, 2022
by
潘梓豪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新页面
parent
bfe31966
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
96 additions
and
109 deletions
+96
-109
ValManager.cs
Assets/Scripts/ValScript/ValManager.cs
+4
-6
mystyle.css
BrowserAssets/Appzia/dist/assets/css/mystyle.css
+3
-0
logo-light.png
BrowserAssets/Appzia/dist/assets/images/logo-light.png
+0
-0
index.html
BrowserAssets/Appzia/dist/index.html
+40
-49
index2.html
BrowserAssets/Appzia/dist/index2.html
+48
-53
ReqData.json
ReqData.json
+1
-1
No files found.
Assets/Scripts/ValScript/ValManager.cs
View file @
411ee888
...
@@ -49,8 +49,6 @@ public class ValManager : MonoBehaviour
...
@@ -49,8 +49,6 @@ public class ValManager : MonoBehaviour
//获取配置信息
//获取配置信息
IP
=
Setting
.
IP
;
IP
=
Setting
.
IP
;
Debug
.
Log
(
IP
);
//获取本机code
//获取本机code
string
code
=
getMNum
();
string
code
=
getMNum
();
//通过机器码code、产品id判读是否已校验
//通过机器码code、产品id判读是否已校验
...
@@ -64,19 +62,19 @@ public class ValManager : MonoBehaviour
...
@@ -64,19 +62,19 @@ public class ValManager : MonoBehaviour
string
scene
=
(
string
)
jsonData
.
Where
(
S
=>
S
.
Key
==
"LoadScene"
).
Select
(
S
=>
S
.
Value
).
First
();
string
scene
=
(
string
)
jsonData
.
Where
(
S
=>
S
.
Key
==
"LoadScene"
).
Select
(
S
=>
S
.
Value
).
First
();
if
(
scene
!=
null
&&
!
scene
.
Equals
(
""
))
if
(
scene
!=
null
&&
!
scene
.
Equals
(
""
))
{
{
MessageBox
.
Show
(
"验证成功,正在跳转。。。"
)
;
text
.
text
=
"验证成功,正在跳转。。。"
;
SceneManager
.
LoadScene
(
scene
);
SceneManager
.
LoadScene
(
scene
);
//删除参数配置文件
//删除参数配置文件
File
.
Delete
(
path
);
File
.
Delete
(
path
);
}
}
else
else
{
{
MessageBox
.
Show
(
"没有注册码,请先注册"
)
;
text
.
text
=
"没有注册码,请先注册"
;
}
}
}
}
else
else
{
{
MessageBox
.
Show
(
"请求异常,请联系技术人员"
)
;
text
.
text
=
"请求异常,请联系技术人员"
;
//OnReceiveMsg.Invoke(new PlanData() { code = 0, result = new PlanData.Result() { planIncompleteCount = 10,planTotalCount=12 } }, $"{type},{time}");
//OnReceiveMsg.Invoke(new PlanData() { code = 0, result = new PlanData.Result() { planIncompleteCount = 10,planTotalCount=12 } }, $"{type},{time}");
}
}
}
}
...
@@ -84,7 +82,7 @@ public class ValManager : MonoBehaviour
...
@@ -84,7 +82,7 @@ public class ValManager : MonoBehaviour
}
}
else
else
{
{
MessageBox
.
Show
(
"丢失参数文件,请在ZeusHub中启动软件"
)
;
text
.
text
=
"丢失参数文件,请在ZeusHub中启动软件"
;
}
}
yield
return
null
;
yield
return
null
;
}
}
...
...
BrowserAssets/Appzia/dist/assets/css/mystyle.css
0 → 100644
View file @
411ee888
.vertical-menu
{
background
:
"#347dd9"
}
\ No newline at end of file
BrowserAssets/Appzia/dist/assets/images/logo-light.png
View replaced file @
bfe31966
View file @
411ee888
27.9 KB
|
W:
|
H:
28.4 KB
|
W:
|
H:
2-up
Swipe
Onion skin
BrowserAssets/Appzia/dist/index.html
View file @
411ee888
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
<!-- App Css-->
<!-- App Css-->
<link
href=
"assets/css/app.min.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"assets/css/app.min.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"assets/css/style.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"assets/css/style.css"
id=
"app-style"
rel=
"stylesheet"
type=
"text/css"
/>
<link
href=
"assets/css/mystyle.css"
rel=
"stylesheet"
type=
"text/css"
/>
</head>
</head>
<body>
<body>
...
@@ -43,10 +43,10 @@
...
@@ -43,10 +43,10 @@
<div
id=
"layout-wrapper"
>
<div
id=
"layout-wrapper"
>
<header
id=
"page-topbar"
>
<header
id=
"page-topbar"
>
<div
class=
"navbar-header"
>
<div
class=
"navbar-header"
style=
"background: #6280aa;"
>
<div
class=
"d-flex"
>
<div
class=
"d-flex"
>
<!-- LOGO -->
<!-- LOGO -->
<div
class=
"navbar-brand-box"
>
<div
class=
"navbar-brand-box"
style=
"background: #6280aa;"
>
<a
href=
"index.html"
class=
"logo logo-dark"
>
<a
href=
"index.html"
class=
"logo logo-dark"
>
<span
class=
"logo-sm"
>
<span
class=
"logo-sm"
>
<img
src=
"assets/images/logo-sm-dark.png"
alt=
"logo-sm-dark"
height=
"26"
>
<img
src=
"assets/images/logo-sm-dark.png"
alt=
"logo-sm-dark"
height=
"26"
>
...
@@ -374,7 +374,7 @@
...
@@ -374,7 +374,7 @@
</header>
</header>
<!-- ========== Left Sidebar Start ========== -->
<!-- ========== Left Sidebar Start ========== -->
<div
class=
"vertical-menu"
>
<div
class=
"vertical-menu"
style=
"background-image: linear-gradient(#6280aa, #5b3fa1);"
>
<div
data-simplebar
class=
"h-100"
>
<div
data-simplebar
class=
"h-100"
>
...
@@ -603,7 +603,7 @@
...
@@ -603,7 +603,7 @@
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Start right Content here -->
<!-- Start right Content here -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<div
class=
"main-content"
>
<div
class=
"main-content"
>
<div
class=
"page-content"
>
<div
class=
"page-content"
>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid"
>
...
@@ -751,29 +751,8 @@
...
@@ -751,29 +751,8 @@
</div>
</div>
<div
class=
"modal fade"
id=
"event-load-modal"
data-bs-backdrop=
"static"
data-bs-keyboard=
"false"
tabindex=
"-1"
<div
class=
"loading"
style=
" text-align: center;position: absolute;left: 50%;top: 50%;transform: translate(-50%,-50%);"
>
aria-hidden=
"false"
style=
"display: none;"
>
<div
class=
"modal-dialog modal-dialog-centered"
>
<div
class=
"modal-content"
>
<div
class=
"pl"
>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__dot"
></div>
<div
class=
"pl__text"
>
Loading…
</div>
</div>
</div>
<!-- end modal-content-->
</div>
<!-- end modal dialog-->
</div>
</div>
...
@@ -918,15 +897,30 @@
...
@@ -918,15 +897,30 @@
loadUI
(
false
);
loadUI
(
false
);
if
(
data
.
result
!=
null
&&
data
.
result
.
length
>
0
){
if
(
data
.
result
!=
null
&&
data
.
result
.
length
>
0
){
for
(
var
i
=
0
;
i
<
data
.
result
.
length
;
i
++
){
for
(
var
i
=
0
;
i
<
data
.
result
.
length
;
i
++
){
var
html
=
"<div class='col-sm-6 col-lg-3 detail' data-id='"
+
data
.
result
[
i
].
production_id
+
"'>"
+
// var html="
<
div
class
=
'col-sm-6 col-lg-3 detail'
data
-
id
=
'"+data.result[i].production_id+"'
>
"+
// "
<
div
class
=
'card text-center'
>
"+
// "
<
div
class
=
'card-body'
>
"+
// "
<
h4
class
=
'card-title text-muted'
>
"+data.result[i].production_name+"
<
/h4>"
+
// "
<
h2
class
=
'mt-3 mb-2'
><
i
class
=
'mdi mdi-arrow-down text-danger me-2'
><
/i></
h2
>
"+
// "
<
button
type
=
'button'
class
=
'btn font-16 btn-primary waves-effect waves-light w-100'
"+
// "
id
=
'btn-set-path'
data
-
bs
-
toggle
=
'modal'
data
-
bs
-
target
=
'#event-modal'
data
-
id
=
'"+data.result[i].production_id+"'
data
-
name
=
'"+data.result[i].production_name+
// " data-appname='
"+data.result[i].app_name+"
' data-apppath='
"+data.result[i].production_app_path+"
' >配置</button>"+
// "</div></div></div>";
var html="<div class='
col
-
sm
-
6
col
-
lg
-
3
' style='
width
:
fit
-
content
;
' data-id='
"+data.result[i].production_id+"
' data-bs-toggle='
popover
' data-bs-placement='
right
' data-bs-content='
Vivamus
sagittis
lacus
vel
augue
laoreet
rutrum
faucibus
.
' >"+
"<div class='
card
text
-
center
'>"+
"<div class='
card
text
-
center
'>"+
"<div class='card-body'>"
+
"<div class='
card
-
body
' style='
margin
:
auto
;
padding
:
0
rem
;
box
-
shadow
:
4
px
4
px
15
px
black
;
' >"+
"<h4 class='card-title text-muted'>"
+
data
.
result
[
i
].
production_name
+
"</h4>"
+
"<h2 class='
mt
-
3
mb
-
2
'></h2><img style='
width
:
200
px
;
' src='
https
:
//static.runoob.com/images/demo/demo2.jpg'>
<
/img>"
+
"<h2 class='mt-3 mb-2'><i class='mdi mdi-arrow-down text-danger me-2'></i></h2>"
+
"<h4 class='card-title' >"
+
data
.
result
[
i
].
production_name
+
"</h4>"
;
"<button type='button' class='btn font-16 btn-primary waves-effect waves-light w-100'"
+
html
+=
"<div class='btn-group btn-download' style='float:right;' data-id='"
+
data
.
result
[
i
].
production_id
+
"' role='group'><button id='btnGroupVerticalDrop1' type='button' class='btn btn-light dropdown-toggle' data-bs-toggle='dropdown' aria-haspopup='true' aria-expanded='false'>"
+
" id='btn-set-path' data-bs-toggle='modal' data-bs-target='#event-modal' data-id='"
+
data
.
result
[
i
].
production_id
+
"' data-name='"
+
data
.
result
[
i
].
production_name
+
"... </button><div class='dropdown-menu' aria-labelledby='btnGroupVerticalDrop1'>"
;
" data-appname='"
+
data
.
result
[
i
].
app_name
+
"' data-apppath='"
+
data
.
result
[
i
].
production_app_path
+
"' >配置</button>"
+
html
+=
"<a type='button' class='dropdown-item'"
+
"</div></div></div>"
;
" id='btn-set' data-id='"
+
data
.
result
[
i
].
production_id
+
"' data-name='"
+
data
.
result
[
i
].
production_name
+
"' data-url='"
+
data
.
result
[
i
].
production_download_url
+
"'"
+
" data-appname='"
+
data
.
result
[
i
].
app_name
+
"' data-apppath='"
+
data
.
result
[
i
].
production_app_path
+
"' data-bs-toggle='modal' data-bs-target='#event-modal' >配置</a>"
;
html
+=
"<a type='button' class='dropdown-item'"
+
" id='btn-open' data-id='"
+
data
.
result
[
i
].
production_id
+
"' data-name='"
+
data
.
result
[
i
].
production_name
+
"' data-url='"
+
data
.
result
[
i
].
production_download_url
+
"'"
+
" data-appname='"
+
data
.
result
[
i
].
app_name
+
"' data-apppath='"
+
data
.
result
[
i
].
production_app_path
+
"' >启动</a>"
;
html
+=
"</div></div></div></div></div>"
;
$
(
".data-list"
).
append
(
html
);
$
(
".data-list"
).
append
(
html
);
}
}
...
@@ -939,7 +933,7 @@
...
@@ -939,7 +933,7 @@
}
}
//发送打开软件指令
//发送打开软件指令
$
(
document
).
on
(
"click"
,
"
.detail
"
,
function
(){
$
(
document
).
on
(
"click"
,
"
#btn-open
"
,
function
(){
var
that
=
this
;
var
that
=
this
;
$
.
ajax
({
$
.
ajax
({
url
:
server_url
+
"/zeus/es3cloud/getSetting"
,
url
:
server_url
+
"/zeus/es3cloud/getSetting"
,
...
@@ -1045,6 +1039,12 @@
...
@@ -1045,6 +1039,12 @@
$
(
".userprofe"
).
attr
(
"src"
,
$
(
".header-image"
).
attr
(
"src"
));
$
(
".userprofe"
).
attr
(
"src"
,
$
(
".header-image"
).
attr
(
"src"
));
})
})
//配置
$
(
document
).
on
(
"click"
,
"#btn-set"
,
function
(){
$
(
"#set_path"
).
val
(
$
(
this
).
attr
(
"data-apppath"
));
t_production_id
=
$
(
this
).
attr
(
"data-id"
);
return
false
;
});
function
loadUserImage
(
path
){
function
loadUserImage
(
path
){
sessionStorage
.
clear
();
sessionStorage
.
clear
();
...
@@ -1057,19 +1057,10 @@
...
@@ -1057,19 +1057,10 @@
});
});
function
loadUI
(
kind
){
function
loadUI
(
kind
){
if
(
kind
)
if
(
kind
){
{
$
(
".loading"
).
html
(
"<div class='spinner-border text-primary m-1' role='status'><span class='sr-only'>Loading...</span></div>"
);
$
(
"#event-load-modal"
).
removeAttr
(
"aria-hidden"
);
$
(
"#event-load-modal"
).
attr
(
"class"
,
"modal fade show"
);
$
(
"#event-load-modal"
).
attr
(
"style"
,
"display: block;"
);
$
(
"#event-load-modal"
).
attr
(
"aria-modal"
,
"true"
);
$
(
"#event-load-modal"
).
attr
(
"role"
,
"dialog"
);
}
else
{
}
else
{
$
(
"#event-load-modal"
).
attr
(
"aria-hidden"
,
"true"
);
$
(
".loading"
).
html
(
""
);
$
(
"#event-load-modal"
).
attr
(
"class"
,
"modal fade"
);
$
(
"#event-load-modal"
).
attr
(
"style"
,
"display: none;"
);
$
(
"#event-load-modal"
).
removeAttr
(
"aria-modal"
);
$
(
"#event-load-modal"
).
removeAttr
(
"role"
);
}
}
}
}
...
...
BrowserAssets/Appzia/dist/index2.html
View file @
411ee888
This diff is collapsed.
Click to expand it.
ReqData.json
View file @
411ee888
{
"token"
:
"Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImQ0MTUzODc4OWVmMTI4MDViMjA1NDhjNzI0N2M3ZTMzOTljMGExZDk3MGFiNTQwOWNiNWNlMGZlM2E4MTEzZWNkNTRiYzJiYTUwNWEyYTA2In0.eyJhdWQiOiIyYmM1ZjE1Zi0wNzE3LTQ4ZjktYTc4Mi03NzQ5M2FjNDUwODQiLCJqdGkiOiJkNDE1Mzg3ODllZjEyODA1YjI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/TIYANGUAN"
}
\ No newline at end of file
\ No newline at end of file
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