Commit 5a29ea73 by doszhang

dos

parent 4be44472
......@@ -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);
});
......
......@@ -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');
......
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