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
60cd3a48
Commit
60cd3a48
authored
Jun 07, 2021
by
zhoujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test'
parents
c879429c
83faac0e
Changes
8
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
405 additions
and
297 deletions
+405
-297
src/public/static/js/main.js
src/public/static/js/main.js
+221
-213
src/public/static/js/main.min.js
src/public/static/js/main.min.js
+1
-1
src/public/static/postcard/css/style.css
src/public/static/postcard/css/style.css
+23
-9
src/public/static/postcard/css/style.less
src/public/static/postcard/css/style.less
+18
-7
src/public/static/postcard/images/share_img.png
src/public/static/postcard/images/share_img.png
+0
-0
src/resources/views/card/card.blade.php
src/resources/views/card/card.blade.php
+90
-62
src/resources/views/card/index.blade.php
src/resources/views/card/index.blade.php
+51
-4
src/resources/views/wx/bindCode.blade.php
src/resources/views/wx/bindCode.blade.php
+1
-1
No files found.
src/public/static/js/main.js
View file @
60cd3a48
This diff is collapsed.
Click to expand it.
src/public/static/js/main.min.js
View file @
60cd3a48
This diff is collapsed.
Click to expand it.
src/public/static/postcard/css/style.css
View file @
60cd3a48
...
...
@@ -568,30 +568,44 @@ textarea {
font-size
:
0.32rem
;
color
:
#5f1a11
;
}
.dialog-img
{
.dialog-img
,
.share-img
{
position
:
fixed
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
overflow
:
scroll
;
background
:
rgba
(
0
,
0
,
0
,
0.7
)
url("../images/save_img_bg.png")
no-repeat
center
;
background-size
:
100%
auto
;
background
:
rgba
(
0
,
0
,
0
,
0.7
);
}
.dialog-img
.dialog-img-content
{
.dialog-img
.dialog-img-content
,
.share-img
.dialog-img-content
{
position
:
absolute
;
width
:
90%
;
left
:
5%
;
top
:
1rem
;
left
:
50%
;
top
:
50%
;
-webkit-transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
padding-top
:
2.5rem
;
}
.dialog-img
.dialog-img-content
.img-scroll
{
height
:
13.5rem
;
background
:
url("../images/save_img_bg.png")
no-repeat
center
;
background-size
:
100%
auto
;
}
.dialog-img
.dialog-img-content
.img-scroll
,
.share-img
.dialog-img-content
.img-scroll
{
height
:
12rem
;
overflow
:
scroll
;
width
:
85%
;
margin
:
0
auto
;
}
.dialog-img
.dialog-img-content
img
,
.share-img
.dialog-img-content
img
{
width
:
100%
;
}
.
dialog-img
.dialog-img-content
img
{
.
share-img
img
{
width
:
100%
;
display
:
block
;
margin
:
0
auto
;
}
.fixed
{
position
:
fixed
;
...
...
src/public/static/postcard/css/style.less
View file @
60cd3a48
...
...
@@ -526,31 +526,42 @@
}
}
}
.dialog-img{
.dialog-img
,.share-img
{
.pf();
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: scroll;
background: rgba(0,0,0,.7) url("../images/save_img_bg.png") no-repeat center;
background-size: 100% auto;
background: rgba(0,0,0,.7);
.dialog-img-content{
.pa();
width: 90%;
left: 5%;
top: 1rem;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
padding-top: 2.5rem;
.img-scroll{
height: 13.5rem;
background:url("../images/save_img_bg.png") no-repeat center;
background-size: 100% auto;
.img-scroll{
height: 12rem;
overflow: scroll;
width: 100%;
width: 85%;
margin:0 auto;
}
img{
width: 100%;
}
}
}
.share-img{
img{
width: 100%;
display: block;
margin: 0 auto;
}
}
.fixed{
.pf();
left: 0;
...
...
src/public/static/postcard/images/share_img.png
0 → 100644
View file @
60cd3a48
664 KB
src/resources/views/card/card.blade.php
View file @
60cd3a48
This diff is collapsed.
Click to expand it.
src/resources/views/card/index.blade.php
View file @
60cd3a48
...
...
@@ -19,15 +19,15 @@
reSizeRem
();
}
</script>
<link
rel=
"stylesheet"
href=
"
/static/postcard/css/style.css
"
>
<script
src=
"
/static/js/jquery.2.1.3.min.js
"
></script>
<script
src=
"
/static/postcard/js/main.js
"
></script>
<link
rel=
"stylesheet"
href=
"
{{ asset('postcard/css/style.css') }}
"
>
<script
src=
"
{{ asset('js/jquery.2.1.3.min.js') }}
"
></script>
<script
src=
"
{{ asset('postcard/js/main.js') }}
"
></script>
</head>
<body>
<div
class=
"container home-container"
>
<div
class=
"header-avatar"
>
<span></span>
<img
src=
"
/static/postcard/images/default_img.png
"
alt=
""
>
<img
src=
"
{{ asset('postcard/images/default_img.png') }}
"
alt=
""
>
</div>
<a
href=
"javascript:"
class=
"btn-start"
></a>
...
...
@@ -48,6 +48,7 @@
</div>
</div>
</div>
<script
type=
"text/javascript"
src=
"//res.wx.qq.com/open/js/jweixin-1.2.0.js"
></script>
<script>
$
(
function
(){
$
(
'
.close
'
).
click
(
function
(){
...
...
@@ -56,6 +57,52 @@
$
(
'
.btn-start
'
).
click
(
function
(){
card
.
handleGetServer
();
});
$
.
ajax
({
url
:
"
/wx/config
"
,
data
:
{
url
:
location
.
href
.
split
(
'
#
'
)[
0
]
},
type
:
'
GET
'
,
dataType
:
"
json
"
,
async
:
false
,
timeout
:
5000
,
error
:
function
(
XMLHttpRequest
,
textStatus
,
errorThrown
)
{
if
(
textStatus
==
"
timeout
"
)
{
// 请求超时
}
else
{
}
},
success
:
function
(
res
)
{
var
data
=
res
.
data
;
wx
.
config
({
debug
:
true
,
appId
:
data
.
appId
,
timestamp
:
data
.
timestamp
,
nonceStr
:
data
.
nonceStr
,
signature
:
data
.
signature
,
url
:
location
.
href
.
split
(
'
#
'
)[
0
],
jsApiList
:
[
'
onMenuShareAppMessage
'
,
'
onMenuShareTimeline
'
]
});
wx
.
ready
(
function
()
{
wx
.
onMenuShareAppMessage
({
title
:
'
阿拉德之怒
'
,
// 分享标题
desc
:
'
阿拉德之怒
'
,
// 分享描述
link
:
'
http://uc-signin2.srccwl.com
'
,
// 分享链接,该链接域名或路径必须与当前页面对应// 分享图标的公众号JS安全域名一致
imgUrl
:
'
https://static-platform.srccwl.com/ucSign/ald/sign/images/wx.png
'
,
});
});
}
});
$
(
'
.btn-share
'
).
click
(
function
(){
wx
.
ready
(
function
()
{
wx
.
onMenuShareAppMessage
({
title
:
'
阿拉德之怒
'
,
// 分享标题
desc
:
'
阿拉德之怒
'
,
// 分享描述
link
:
'
http://uc-signin2.srccwl.com
'
,
// 分享链接,该链接域名或路径必须与当前页面对应// 分享图标的公众号JS安全域名一致
imgUrl
:
'
https://static-platform.srccwl.com/ucSign/ald/sign/images/wx.png
'
,
});
});
})
})
</script>
</body>
...
...
src/resources/views/wx/bindCode.blade.php
View file @
60cd3a48
...
...
@@ -10,7 +10,7 @@
@
else
<
div
class
=
"container container-mb"
style
=
"padding-top: 1.2rem"
>
<
div
class
=
"mb-header"
>
<
a
href
=
"/
wx/index
"
class
=
"back"
></
a
>
<
a
href
=
"/"
class
=
"back"
></
a
>
<
span
>
橙橙网络
</
span
>
</
div
>
<
div
class
=
"dialog-orange"
>
...
...
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