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
39ce95bd
Commit
39ce95bd
authored
Jun 07, 2021
by
liyadong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
514a378f
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
692 deletions
+18
-692
src/public/static/postcard/css/style.css
src/public/static/postcard/css/style.css
+1
-681
src/public/static/postcard/css/style.less
src/public/static/postcard/css/style.less
+0
-1
src/public/static/postcard/js/main.js
src/public/static/postcard/js/main.js
+7
-2
src/public/static/postcard/js/main.min.js
src/public/static/postcard/js/main.min.js
+1
-1
src/resources/views/card/card.blade.php
src/resources/views/card/card.blade.php
+6
-4
src/resources/views/card/index.blade.php
src/resources/views/card/index.blade.php
+3
-3
No files found.
src/public/static/postcard/css/style.css
View file @
39ce95bd
This diff is collapsed.
Click to expand it.
src/public/static/postcard/css/style.less
View file @
39ce95bd
...
...
@@ -53,7 +53,6 @@
}
.postcard-container {
min-height: 2100px;
padding-bottom: 1rem;
background: url("../images/body_bg2.jpg") no-repeat center top,url("../images/bg.jpg") repeat-y center;
background-size: 100% auto;
...
...
src/public/static/postcard/js/main.js
View file @
39ce95bd
var
card
=
{
relationRole
:{},
clickFlag
:
true
,
bindInfo
:{}
bindInfo
:{},
bindFlag
:
true
};
card
.
ajax
=
function
(
data
,
callback
)
{
data
.
data
[
'
_token
'
]
=
$
(
'
meta[name="token"]
'
).
attr
(
"
value
"
);
...
...
@@ -89,6 +90,7 @@ card.handleGetRoleList = function (params){
}
// 绑定角色
card
.
bindRole
=
function
(
params
){
card
.
bindFlag
=
false
;
this
.
ajax
({
url
:
'
/bind/ald/role
'
,
type
:
'
POST
'
,
...
...
@@ -130,7 +132,10 @@ $(function (){
serverName
:
serverName
,
roleName
:
roleName
}
if
(
card
.
clickFlag
){
if
(
card
.
bindFlag
){
setTimeout
(
function
(){
card
.
bindFlag
=
true
;
},
3000
)
card
.
bindRole
(
params
);
}
});
...
...
src/public/static/postcard/js/main.min.js
View file @
39ce95bd
var
card
=
{
relationRole
:{},
clickFlag
:
!
0
,
bindInfo
:{}};
card
.
ajax
=
function
(
e
,
a
){
e
.
data
.
_token
=
$
(
'
meta[name="token"]
'
).
attr
(
"
value
"
),
$
.
ajax
({
type
:
e
.
type
?
e
.
type
:
"
GET
"
,
url
:
location
.
origin
+
e
.
url
,
dataType
:
"
json
"
,
data
:
e
.
data
,
error
:
function
(
e
){
try
{
var
a
=
e
.
responseText
;
alert
(
a
.
message
)}
catch
(
e
){
alert
(
"
系统开小差~~
"
)}},
success
:
function
(
e
){
return
1019
==
e
.
error
?(
location
.
href
=
"
/login
"
,
!
1
):
4003
==
e
.
error
?(
location
.
href
=
"
/bind/ald/code
"
,
!
1
):
void
a
(
e
)}}),
setTimeout
(
function
(){
card
.
clickFlag
=!
0
},
1
e3
)},
card
.
handleGetServer
=
function
(
e
){
$
(
"
.loading
"
).
show
(),
this
.
ajax
({
url
:
"
/ald_bind_info
"
,
type
:
"
get
"
,
data
:{}},
function
(
e
){
card
.
bindInfo
=
e
.
data
;
var
a
=
{
serverId
:
e
.
data
.
serverId
,
userId
:
e
.
data
.
userId
};
card
.
handleGetRoleList
(
a
)})},
card
.
handleGetRoleList
=
function
(
e
){
this
.
ajax
({
url
:
"
/get_role_list
"
,
type
:
"
POST
"
,
data
:
e
},
function
(
e
){
var
a
=
e
.
data
,
t
=
""
,
r
=
[];
card
.
relationRole
=
a
;
for
(
var
o
in
a
)
r
.
push
({
id
:
o
,
name
:
a
[
o
].
name
});
t
=
'
<option value="-1">请选择</option>
'
,
$
(
r
).
each
(
function
(
e
,
a
){
t
+=
'
<option value="
'
+
a
.
id
+
'
">
'
+
a
.
name
+
"
</option>
"
}),
$
(
"
.server-select
"
).
html
(
t
),
$
(
"
.loading
"
).
hide
(),
$
(
"
.dialog-server
"
).
fadeIn
()})},
card
.
bindRole
=
function
(
e
){
this
.
ajax
({
url
:
"
/bind/ald/role
"
,
type
:
"
POST
"
,
data
:
e
},
function
(
a
){
0
===
a
.
error
?(
$
(
"
.dialog
"
).
hide
(),
location
.
href
=
"
/card/html?roleId=
"
+
e
.
roleId
+
"
&serverId=
"
+
e
.
serverId
):
alert
(
a
.
msg
)})};
var
initRoleList
=
function
(
e
){
var
a
=
card
.
relationRole
[
e
].
list
,
t
=
'
<option value="-1">请选择</option>
'
;
$
(
a
).
each
(
function
(
e
,
a
){
t
+=
'
<option value="
'
+
a
.
roleId
+
'
">
'
+
a
.
roleName
+
"
</option>
"
}),
$
(
"
.role-select
"
).
html
(
t
)};
$
(
function
(){
$
(
"
.btn-card-bind-role
"
).
click
(
function
(){
var
e
=
$
(
"
.server-select option:selected
"
).
val
(),
a
=
$
(
"
.server-select option:selected
"
).
text
(),
t
=
$
(
"
.role-select option:selected
"
).
val
();
if
(
roleName
=
$
(
"
.role-select option:selected
"
).
text
(),
!
e
||
"
-1
"
==
e
)
return
alert
(
"
请选择服务器
"
),
!
1
;
if
(
!
t
||
"
-1
"
==
t
)
return
alert
(
"
请选择角色
"
),
!
1
;
var
r
=
{
roleId
:
t
,
serverId
:
e
,
serverName
:
a
,
roleName
:
roleName
};
card
.
clickFlag
&&
card
.
bindRole
(
r
)}),
$
(
"
.server-select
"
).
change
(
function
(){
var
e
=
$
(
this
).
val
();
initRoleList
(
e
)})});
\ No newline at end of file
var
card
=
{
relationRole
:{},
clickFlag
:
!
0
,
bindInfo
:{},
bindFlag
:
!
0
};
card
.
ajax
=
function
(
e
,
a
){
e
.
data
.
_token
=
$
(
'
meta[name="token"]
'
).
attr
(
"
value
"
),
$
.
ajax
({
type
:
e
.
type
?
e
.
type
:
"
GET
"
,
url
:
location
.
origin
+
e
.
url
,
dataType
:
"
json
"
,
data
:
e
.
data
,
error
:
function
(
e
){
try
{
var
a
=
e
.
responseText
;
alert
(
a
.
message
)}
catch
(
e
){
alert
(
"
系统开小差~~
"
)}},
success
:
function
(
e
){
return
1019
==
e
.
error
?(
location
.
href
=
"
/login
"
,
!
1
):
4003
==
e
.
error
?(
location
.
href
=
"
/bind/ald/code
"
,
!
1
):
void
a
(
e
)}}),
setTimeout
(
function
(){
card
.
clickFlag
=!
0
},
1
e3
)},
card
.
handleGetServer
=
function
(
e
){
$
(
"
.loading
"
).
show
(),
this
.
ajax
({
url
:
"
/ald_bind_info
"
,
type
:
"
get
"
,
data
:{}},
function
(
e
){
card
.
bindInfo
=
e
.
data
;
var
a
=
{
serverId
:
e
.
data
.
serverId
,
userId
:
e
.
data
.
userId
};
card
.
handleGetRoleList
(
a
)})},
card
.
handleGetRoleList
=
function
(
e
){
this
.
ajax
({
url
:
"
/get_role_list
"
,
type
:
"
POST
"
,
data
:
e
},
function
(
e
){
var
a
=
e
.
data
,
t
=
""
,
r
=
[];
card
.
relationRole
=
a
;
for
(
var
o
in
a
)
r
.
push
({
id
:
o
,
name
:
a
[
o
].
name
});
t
=
'
<option value="-1">请选择</option>
'
,
$
(
r
).
each
(
function
(
e
,
a
){
t
+=
'
<option value="
'
+
a
.
id
+
'
">
'
+
a
.
name
+
"
</option>
"
}),
$
(
"
.server-select
"
).
html
(
t
),
$
(
"
.loading
"
).
hide
(),
$
(
"
.dialog-server
"
).
fadeIn
()})},
card
.
bindRole
=
function
(
e
){
card
.
bindFlag
=!
1
,
this
.
ajax
({
url
:
"
/bind/ald/role
"
,
type
:
"
POST
"
,
data
:
e
},
function
(
a
){
0
===
a
.
error
?(
$
(
"
.dialog
"
).
hide
(),
location
.
href
=
"
/card/html?roleId=
"
+
e
.
roleId
+
"
&serverId=
"
+
e
.
serverId
):
alert
(
a
.
msg
)})};
var
initRoleList
=
function
(
e
){
var
a
=
card
.
relationRole
[
e
].
list
,
t
=
'
<option value="-1">请选择</option>
'
;
$
(
a
).
each
(
function
(
e
,
a
){
t
+=
'
<option value="
'
+
a
.
roleId
+
'
">
'
+
a
.
roleName
+
"
</option>
"
}),
$
(
"
.role-select
"
).
html
(
t
)};
$
(
function
(){
$
(
"
.btn-card-bind-role
"
).
click
(
function
(){
var
e
=
$
(
"
.server-select option:selected
"
).
val
(),
a
=
$
(
"
.server-select option:selected
"
).
text
(),
t
=
$
(
"
.role-select option:selected
"
).
val
();
if
(
roleName
=
$
(
"
.role-select option:selected
"
).
text
(),
!
e
||
"
-1
"
==
e
)
return
alert
(
"
请选择服务器
"
),
!
1
;
if
(
!
t
||
"
-1
"
==
t
)
return
alert
(
"
请选择角色
"
),
!
1
;
var
r
=
{
roleId
:
t
,
serverId
:
e
,
serverName
:
a
,
roleName
:
roleName
};
card
.
bindFlag
&&
(
setTimeout
(
function
(){
card
.
bindFlag
=!
0
},
3
e3
),
card
.
bindRole
(
r
))}),
$
(
"
.server-select
"
).
change
(
function
(){
var
e
=
$
(
this
).
val
();
initRoleList
(
e
)})});
\ No newline at end of file
src/resources/views/card/card.blade.php
View file @
39ce95bd
...
...
@@ -23,7 +23,7 @@
alert
(
e
)
}
</script>
<link
rel=
"stylesheet"
href=
"{{ asset('postcard/css/style.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('postcard/css/style.css
?v=20210607
') }}"
>
<script
src=
"{{ asset('js/jquery.2.1.3.min.js') }}"
></script>
<script
src=
"{{ asset('postcard/js/html2canvas.js') }}"
></script>
</head>
...
...
@@ -117,7 +117,7 @@
@if($userImgStatus == -1)
<img
src=
"{{ asset('postcard/images/img_add.jpg') }}"
class=
"img img-add"
alt=
""
>
<input
type=
"file"
id=
"file"
>
@endif
@if($userImgStatus == 0)
<img
src=
"{{ asset('postcard/images/img_sh.jpg') }}"
class=
"img img-sh"
alt=
""
>
@endif
@if($userImgStatus == 1)
<img
src=
"{{ $userImg }}
?t=129094392478
"
class=
"img img-sh"
alt=
""
>
@endif
@if($userImgStatus == 1)
<img
src=
"{{ $userImg }}"
class=
"img img-sh"
alt=
""
>
@endif
@if($userImgStatus == 2)
<img
src=
"{{ asset('postcard/images/sh_fail.jpg') }}"
class=
"img img-sh"
alt=
""
>
<input
type=
"file"
id=
"file"
>
@endif
</div>
...
...
@@ -207,7 +207,7 @@
dataType
:
"
json
"
,
success
:
function
(
data
)
{
$
(
'
.img-add
'
).
hide
();
$
(
'
.ggsk-container
'
).
html
(
'
<img src="{{ asset(
'
postcard
/
images
/
img_sh
.
jpg
'
) }}" class="img img-sh" alt="">
<input type="file" id="file">
'
);
$
(
'
.ggsk-container
'
).
html
(
'
<img src="{{ asset(
'
postcard
/
images
/
img_sh
.
jpg
'
) }}" class="img img-sh" alt="">
'
);
},
error
:
function
(
data
)
{
...
...
@@ -238,6 +238,8 @@
}
$
(
'
.btn-save
'
).
click
(
function
()
{
var
height
=
$
(
'
.postcard-container
'
).
height
();
$
(
'
.postcard-container
'
).
height
(
height
);
$
(
'
.loading
'
).
show
();
$
(
'
.btn-save,.btn-share,.login-info
'
).
hide
();
$
(
'
html,body
'
).
animate
({
...
...
@@ -331,7 +333,7 @@
var
title
=
'
阿拉德之怒
'
,
link
=
'
http://uc-card.aldzn.cn
'
,
img
=
"
http://uc-card.aldzn.cn/static/postcard/images/default_img.png
"
,
desc
=
"
阿拉德之怒
"
;
desc
=
"
阿拉德之怒
-明信片
"
;
wx_share
(
title
,
link
,
img
,
desc
);
});
...
...
src/resources/views/card/index.blade.php
View file @
39ce95bd
...
...
@@ -19,9 +19,9 @@
reSizeRem
();
}
</script>
<link
rel=
"stylesheet"
href=
"{{ asset('postcard/css/style.css') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('postcard/css/style.css
?v=20210607
') }}"
>
<script
src=
"{{ asset('js/jquery.2.1.3.min.js') }}"
></script>
<script
src=
"{{ asset('postcard/js/main.js') }}"
></script>
<script
src=
"{{ asset('postcard/js/main.js
?v=20210607
') }}"
></script>
</head>
<body>
<div
class=
"container home-container"
>
...
...
@@ -144,7 +144,7 @@
var
title
=
'
阿拉德之怒
'
,
link
=
'
http://uc-card.aldzn.cn
'
,
img
=
"
http://uc-card.aldzn.cn/static/postcard/images/default_img.png
"
,
desc
=
"
阿拉德之怒
"
;
desc
=
"
阿拉德之怒
-明信片
"
;
wx_share
(
title
,
link
,
img
,
desc
);
});
...
...
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