Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
U
uc_card
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhoujun
uc_card
Commits
8302b1e1
Commit
8302b1e1
authored
Nov 25, 2021
by
liyadong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
87fd37ef
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
35 deletions
+44
-35
src/public/static/postcard/js/main.js
src/public/static/postcard/js/main.js
+42
-33
src/resources/views/card/index.blade.php
src/resources/views/card/index.blade.php
+2
-2
No files found.
src/public/static/postcard/js/main.js
View file @
8302b1e1
...
...
@@ -69,6 +69,11 @@ card.handleGetServer = function (receive){
// 获取角色列表
card
.
handleGetRoleList
=
function
(
params
){
this
.
ajax
({
url
:
'
/config/game_servers
'
,
type
:
'
GET
'
,
},
function
(
val
)
{
var
serverList
=
val
this
.
ajax
({
url
:
'
/get_role_list
'
,
type
:
'
POST
'
,
...
...
@@ -85,7 +90,7 @@ card.handleGetRoleList = function (params){
sArr
=
[];
card
.
relationRole
=
data
;
for
(
var
key
in
data
){
sArr
.
push
({
id
:
key
,
name
:
data
[
key
].
name
});
sArr
.
push
({
id
:
key
,
name
:
serverList
[
key
]
});
}
html
=
'
<option value="-1">请选择</option>
'
$
(
sArr
).
each
(
function
(
index
,
item
){
...
...
@@ -105,6 +110,10 @@ card.handleGetRoleList = function (params){
$
(
'
.loading
'
).
hide
();
$
(
'
.dialog-server
'
).
fadeIn
();
})
},
function
()
{
})
}
// 绑定角色
card
.
bindRole
=
function
(
params
){
...
...
src/resources/views/card/index.blade.php
View file @
8302b1e1
...
...
@@ -19,10 +19,10 @@
reSizeRem
();
}
</script>
<link
rel=
"stylesheet"
href=
"{{ asset('postcard/css/style.css?v=2021
060903
') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('postcard/css/style.css?v=2021
1125
') }}"
>
<script
src=
"{{ asset('js/jquery.2.1.3.min.js') }}"
></script>
<script
src=
"{{ asset('js/toast.js') }}"
></script>
<script
src=
"{{ asset('postcard/js/main.js?v=2021
060903
') }}"
></script>
<script
src=
"{{ asset('postcard/js/main.js?v=2021
1125
') }}"
></script>
</head>
<body>
<div
class=
"container home-container"
>
...
...
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