Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
php
/
pingan-maruko
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5a29ea73
authored
Jun 17, 2020
by
doszhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dos
parent
4be44472
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
Application/Home/View/default/layout.tpl
+3
-1
Public/static/js/common.js
+2
-2
Public/static/media/._1.mp3
+0
-0
Public/static/media/1.mp3
+0
-0
No files found.
Application/Home/View/default/layout.tpl
View file @
5a29ea73
...
...
@@ -86,6 +86,7 @@
<body>
<audio
src=
"__CDN__/media/1.mp3"
preload=
"auto"
loop=
"loop"
id=
"music"
style=
"display:none"
></audio>
<div
class=
"container"
>
{:if $projectId
&&
strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false}
{:"http://projectx.dev.izhida.cn/api/html/id/`$projectId`"|file_get_contents}
...
...
@@ -97,7 +98,7 @@
<script>
window
.
base_resource_url
=
'__CDN__'
;
window
.
num
=
'{:$num
}'
;
window
.
joinNum
=
'{:$joinNum|default:0
}'
;
var
link
=
location
.
origin
;
var
friend_title
=
''
;
...
...
@@ -127,6 +128,7 @@
{:block name='js'}{:/block}
<script>
window
.
wx
&&
wx
.
ready
(
function
()
{
$
(
'#music'
)[
0
].
play
();
wx
.
onMenuShareAppMessage
(
wxFriendData
);
wx
.
onMenuShareTimeline
(
wxTimelineData
);
});
...
...
Public/static/js/common.js
View file @
5a29ea73
...
...
@@ -217,8 +217,8 @@ function createPoster(resultFlag) {
}
function
drawNum
(
resultFlag
)
{
const
text1
=
`成为樱桃小丸子的第100个的`
;
//
const text1 = `成为樱桃小丸子的第${window.joinNum}个的`;
//
const text1 = `成为樱桃小丸子的第100个的`;
const
text1
=
`成为樱桃小丸子的第
${
window
.
joinNum
}
个的`
;
const
text2
=
`祈福伙伴,并获得「
${
guardian
[
resultFlag
-
1
]}
」`
txtDraw
(
posterCtx
,
text1
,
320
,
302
,
24
,
'bolder'
,
'#748b6c'
);
txtDraw
(
posterCtx
,
text2
,
320
,
337
,
24
,
'bolder'
,
'#748b6c'
);
...
...
Public/static/media/._1.mp3
0 → 100644
View file @
5a29ea73
File added
Public/static/media/1.mp3
0 → 100644
View file @
5a29ea73
File added
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