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
4a39f42f
Commit
4a39f42f
authored
Jun 07, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' of
http://gitlab.cccwangluo.com/zhoujun/uc_card
into test
parents
9e101de7
8a56dac4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
src/public/static/postcard/css/style.css
src/public/static/postcard/css/style.css
+1
-1
src/public/static/postcard/css/style.less
src/public/static/postcard/css/style.less
+1
-1
src/resources/views/card/card.blade.php
src/resources/views/card/card.blade.php
+12
-2
No files found.
src/public/static/postcard/css/style.css
View file @
4a39f42f
...
...
@@ -156,7 +156,7 @@ textarea {
background-size
:
100%
auto
;
}
.postcard-container
{
min-height
:
18
00px
;
min-height
:
21
00px
;
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/css/style.less
View file @
4a39f42f
...
...
@@ -53,7 +53,7 @@
}
.postcard-container {
min-height:
18
00px;
min-height:
21
00px;
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/resources/views/card/card.blade.php
View file @
4a39f42f
...
...
@@ -150,6 +150,14 @@
<script>
$
(
function
()
{
function
getQueryString
(
name
)
{
let
reg
=
new
RegExp
(
"
(^|&)
"
+
name
+
"
=([^&]*)(&|$)
"
,
"
i
"
);
let
r
=
window
.
location
.
search
.
substr
(
1
).
match
(
reg
);
if
(
r
!=
null
)
{
return
decodeURIComponent
(
r
[
2
]);
}
return
null
;
}
function
renderHtml
(
dom
,
num
)
{
var
str
=
num
.
toString
();
var
arr
=
str
.
split
(
""
);
...
...
@@ -159,7 +167,6 @@
})
$
(
dom
).
html
(
html
);
}
@
if
(
$info
->
online_time
>
0
)
renderHtml
(
'
#bNum
'
,{{
ceil
(
$info
->
online_time
/
86400
)
}});
@
else
...
...
@@ -174,6 +181,7 @@
var
formData
=
new
FormData
();
var
file
=
$
(
"
#file
"
)[
0
].
files
[
0
];
var
acceptFileTypes
=
/^image
\/(
gif|jpe
?
g|png
)
$/i
;
var
roleId
=
getQueryString
(
'
roleId
'
);
//文件类型判断
if
(
file
.
type
.
length
&&
!
acceptFileTypes
.
test
(
file
.
type
))
{
alert
(
'
请上传gif、jpg、jpeg或png格式的文件
'
);
...
...
@@ -185,6 +193,7 @@
return
false
;
}
formData
.
append
(
"
imgFile
"
,
file
);
formData
.
append
(
"
roleId
"
,
roleId
);
formData
.
append
(
"
_token
"
,
"
{{ csrf_token() }}
"
)
$
.
ajax
({
url
:
"
/upload/img
"
,
...
...
@@ -227,11 +236,12 @@
$
(
'
.btn-save
'
).
click
(
function
()
{
$
(
'
.loading
'
).
show
();
$
(
'
.btn-save,.btn-share
'
).
hide
();
$
(
'
.btn-save,.btn-share
,.login-info
'
).
hide
();
$
(
'
html,body
'
).
animate
({
scrollTop
:
0
},
0
);
baseImageUrl
();
$
(
'
.postcard-container
'
).
addClass
(
'
fixed
'
);
});
$
(
'
.dialog-img,.share-img
'
).
click
(
function
()
{
$
(
this
).
fadeOut
();
...
...
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