落地页更新

master
chenxiaojun 5 years ago
parent 827c7ee446
commit c2a19ceb45

@ -2,7 +2,19 @@
<html lang="en">
<head>
<meta itemprop="name" content="{$data[0]['relation_game_name']}"/>
<meta itemprop="image" content="https://{$_SERVER['HTTP_HOST']}{$data[0]['icon']|get_cover='path'}"/>
<?php
$icon = get_cover($data[0]['icon'],'path');
if (stripos($icon,'http') === false) {
if (stripos($icon,'.com') === false) {
$icon = 'http://'.C('APPLY_DOWN_DOMAIN').$icon;
} else {
$icon = 'http://'.$icon;
}
}
?>
<meta itemprop="image" content="{$icon}"/>
<meta name="description" itemprop="description"
content="{$data[0]['features']}"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
@ -57,7 +69,7 @@
<body class="main_bg">
<input type="hidden" name="title" value="{$data[0]['relation_game_name']}">
<input type="hidden" name="icon" value="{$data[0]['icon']|get_cover='path'}">
<input type="hidden" name="icon" value="{$icon}">
<input type="hidden" name="desc" value="{$data[0]['features']}">
<div class="bn-rule" style="display: none;"><img id="rule-img" src=""></div>
@ -152,7 +164,8 @@
})
var title = $('[name=title]').val();
var description = $('[name=desc]').val();
var icon = window.location.protocol + "//" + window.location.host + $('[name=icon]').val();
// var icon = window.location.protocol + "//" + window.location.host + $('[name=icon]').val();
var icon = $('[name=icon]').val();
wxReady(title, description, icon)
}
}

Loading…
Cancel
Save