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
bf8b61a8
Commit
bf8b61a8
authored
Jun 09, 2021
by
liyadong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
2c02a637
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
src/resources/views/card/card.blade.php
src/resources/views/card/card.blade.php
+8
-4
No files found.
src/resources/views/card/card.blade.php
View file @
bf8b61a8
...
@@ -20,11 +20,11 @@
...
@@ -20,11 +20,11 @@
reSizeRem
();
reSizeRem
();
}
}
</script>
</script>
<link
rel=
"stylesheet"
href=
"{{ asset('postcard/css/style.css?v=2021060
7
') }}"
>
<link
rel=
"stylesheet"
href=
"{{ asset('postcard/css/style.css?v=2021060
9
') }}"
>
<script
src=
"{{ asset('js/jquery.2.1.3.min.js') }}"
></script>
<script
src=
"{{ asset('js/jquery.2.1.3.min.js') }}"
></script>
<script
src=
"{{ asset('postcard/js/html2canvas.js') }}"
></script>
<script
src=
"{{ asset('postcard/js/html2canvas.js') }}"
></script>
<script
src=
"{{ asset('js/toast.js') }}"
></script>
<script
src=
"{{ asset('js/toast.js') }}"
></script>
<script
src=
"{{ asset('postcard/js/main.js?v=2021060
7
') }}"
></script>
<script
src=
"{{ asset('postcard/js/main.js?v=2021060
9
') }}"
></script>
</head>
</head>
<body>
<body>
<div
class=
"container postcard-container"
id=
"test"
>
<div
class=
"container postcard-container"
id=
"test"
>
...
@@ -208,11 +208,12 @@
...
@@ -208,11 +208,12 @@
var
roleId
=
getQueryString
(
'
roleId
'
);
var
roleId
=
getQueryString
(
'
roleId
'
);
var
serverId
=
getQueryString
(
'
serverId
'
);
var
serverId
=
getQueryString
(
'
serverId
'
);
try
{
try
{
//
//
文件类型判断
//文件类型判断
if
(
file
&&
file
.
type
&&
!
acceptFileTypes
.
test
(
file
.
type
))
{
if
(
file
&&
file
.
type
&&
!
acceptFileTypes
.
test
(
file
.
type
))
{
card
.
showToast
({
card
.
showToast
({
msg
:
'
请上传jpg、jpeg或png格式的文件
'
msg
:
'
请上传jpg、jpeg或png格式的文件
'
});
});
$
(
'
#file
'
).
val
(
''
);
return
false
;
return
false
;
}
}
//文件大小判断
//文件大小判断
...
@@ -220,6 +221,7 @@
...
@@ -220,6 +221,7 @@
card
.
showToast
({
card
.
showToast
({
msg
:
'
请上传不超过2M的文件
'
msg
:
'
请上传不超过2M的文件
'
});
});
$
(
'
#file
'
).
val
(
''
);
return
false
;
return
false
;
}
}
}
catch
(
e
)
{
}
catch
(
e
)
{
...
@@ -239,6 +241,7 @@
...
@@ -239,6 +241,7 @@
contentType
:
false
,
contentType
:
false
,
dataType
:
"
json
"
,
dataType
:
"
json
"
,
success
:
function
(
res
)
{
success
:
function
(
res
)
{
$
(
'
#file
'
).
val
(
''
);
if
(
res
.
error
!=
0
){
if
(
res
.
error
!=
0
){
card
.
showToast
({
card
.
showToast
({
msg
:
res
.
message
msg
:
res
.
message
...
@@ -249,6 +252,7 @@
...
@@ -249,6 +252,7 @@
$
(
'
.img-container
'
).
html
(
'
<img src="{{ asset(
'
postcard
/
images
/
img_sh
.
jpg
'
) }}" class="img img-sh" alt="">
'
);
$
(
'
.img-container
'
).
html
(
'
<img src="{{ asset(
'
postcard
/
images
/
img_sh
.
jpg
'
) }}" class="img img-sh" alt="">
'
);
},
},
error
:
function
(
data
)
{
error
:
function
(
data
)
{
$
(
'
#file
'
).
val
(
''
);
card
.
showToast
({
card
.
showToast
({
msg
:
'
系统错误
'
msg
:
'
系统错误
'
});
});
...
@@ -323,7 +327,7 @@
...
@@ -323,7 +327,7 @@
}
}
wx
.
ready
(
function
()
{
wx
.
ready
(
function
()
{
var
title
=
'
阿拉德之怒
'
,
var
title
=
'
阿拉德之怒
'
,
link
=
'
http://uc-card.aldzn.cn
'
,
link
=
'
http://uc-card.aldzn.cn
'
,
img
=
"
http://uc-card.aldzn.cn/static/postcard/images/default_img.png
"
,
img
=
"
http://uc-card.aldzn.cn/static/postcard/images/default_img.png
"
,
desc
=
"
阿拉德之怒-明信片
"
;
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