Commit 5a29ea73 by doszhang

dos

parent 4be44472
...@@ -86,6 +86,7 @@ ...@@ -86,6 +86,7 @@
<body> <body>
<audio src="__CDN__/media/1.mp3" preload="auto" loop="loop" id="music" style="display:none"></audio>
<div class="container"> <div class="container">
{:if $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false} {:if $projectId && strpos( $smarty.server.HTTP_HOST , 'dev.izhida.cn') !== false}
{:"http://projectx.dev.izhida.cn/api/html/id/`$projectId`"|file_get_contents} {:"http://projectx.dev.izhida.cn/api/html/id/`$projectId`"|file_get_contents}
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
<script> <script>
window.base_resource_url = '__CDN__'; window.base_resource_url = '__CDN__';
window.num = '{:$num}'; window.joinNum = '{:$joinNum|default:0}';
var link = location.origin; var link = location.origin;
var friend_title = ''; var friend_title = '';
...@@ -127,6 +128,7 @@ ...@@ -127,6 +128,7 @@
{:block name='js'}{:/block} {:block name='js'}{:/block}
<script> <script>
window.wx && wx.ready(function () { window.wx && wx.ready(function () {
$('#music')[0].play();
wx.onMenuShareAppMessage(wxFriendData); wx.onMenuShareAppMessage(wxFriendData);
wx.onMenuShareTimeline(wxTimelineData); wx.onMenuShareTimeline(wxTimelineData);
}); });
......
...@@ -217,8 +217,8 @@ function createPoster(resultFlag) { ...@@ -217,8 +217,8 @@ function createPoster(resultFlag) {
} }
function drawNum(resultFlag) { function drawNum(resultFlag) {
const text1 = `成为樱桃小丸子的第100个的`; // const text1 = `成为樱桃小丸子的第100个的`;
// const text1 = `成为樱桃小丸子的第${window.joinNum}个的`; const text1 = `成为樱桃小丸子的第${window.joinNum}个的`;
const text2 = `祈福伙伴,并获得「${guardian[resultFlag-1]}」` const text2 = `祈福伙伴,并获得「${guardian[resultFlag-1]}」`
txtDraw(posterCtx, text1, 320, 302, 24, 'bolder', '#748b6c'); txtDraw(posterCtx, text1, 320, 302, 24, 'bolder', '#748b6c');
txtDraw(posterCtx, text2, 320, 337, 24, 'bolder', '#748b6c'); txtDraw(posterCtx, text2, 320, 337, 24, 'bolder', '#748b6c');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment