You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.8 KiB
77 lines
2.8 KiB
{template 'header'}
|
|
<style type="text/css">
|
|
.qr {width:140px;font-size:14px;cursor:pointer;display:none;}
|
|
.qr_li {line-height:32px;height:32px;padding-left:20px;overflow:hidden;}
|
|
.qr_on {line-height:32px;height:32px;padding-left:20px;overflow:hidden;background:#FFFFFF;border-radius:0 10px 10px 0;}
|
|
</style>
|
|
<div class="b10"></div>
|
|
<div class="m">
|
|
<div style="background:url('{DT_STATIC}file/image/mobile_bg.png') no-repeat;height:500px;">
|
|
<div style="padding:48px 32px 0 560px;">
|
|
<div style="line-height:22px;font-size:14px;">
|
|
<strong>功能简介:</strong><br/>您可以通过手机上网,随时随地浏览商机资讯,享用会员功能...<br/>
|
|
<br/>
|
|
{if $action=='device'}
|
|
<strong>设备错误:</strong><br/>
|
|
<span class="f_red">抱歉,请用手机访问</span><br/><br/>
|
|
或点击以下网址用电脑继续访问:<br/>
|
|
<a href="{$url}" class="b">{$url}</a><br/>
|
|
{else}
|
|
<strong>手机访问:</strong><br/>
|
|
在手机浏览器地址栏输入:<a href="{$url}" class="b">{$url}</a><br/><br/>
|
|
或者用二维码扫描软件(微信、QQ等)扫描下面的二维码<br/>
|
|
{/if}
|
|
</div>
|
|
<br/>
|
|
<div{if $action=='device'} style="display:none;"{/if}>
|
|
<table cellpadding="0" cellspacing="0" width="100%">
|
|
<tr>
|
|
<td valign="top" class="qr">
|
|
<ul>
|
|
<li class="qr_on" id="type_0" onclick="Dqr(0);"><img src="{DT_STATIC}file/image/qr-mobile.png" align="absmiddle"/> 手机浏览</li>
|
|
{if $EXT[weixin]}
|
|
<li class="qr_li" id="type_1" onclick="Dqr(1);"><img src="{DT_STATIC}file/image/qr-weixin.png" align="absmiddle"/> 微信关注</li>
|
|
{/if}
|
|
{if $ios_app}
|
|
<li class="qr_li" id="type_2" onclick="Dqr(2);"><img src="{DT_STATIC}file/image/qr-ios.png" align="absmiddle"/> 苹果客户端</li>
|
|
{/if}
|
|
{if $android_app}
|
|
<li class="qr_li" id="type_3" onclick="Dqr(3);"><img src="{DT_STATIC}file/image/qr-android.png" align="absmiddle"/> 安卓客户端</li>
|
|
{/if}
|
|
</ul>
|
|
</td>
|
|
<td width="10"> </td>
|
|
<td id="qrcode-box">
|
|
<img src="{DT_PATH}api/qrcode.png.php?auth={urlencode($url)}" id="qrcode-img" width="140" height="140"/>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
var tid = 0;
|
|
var qrc = [
|
|
'{DT_PATH}api/qrcode.png.php?auth={urlencode($url)}',
|
|
'{DT_PATH}api/weixin/qrcode.php',
|
|
'{$ios_app}',
|
|
'{$android_app}',
|
|
];
|
|
function Dqr(id) {
|
|
if(id == tid) return;
|
|
$('.qr li').each(function(i){
|
|
if($(this).attr('class') == 'qr_on') $(this).attr('class', 'qr_li');
|
|
});
|
|
$('#type_'+id).attr('class', 'qr_on');
|
|
$('#qrcode-img').fadeOut(50);
|
|
$('#qrcode-img').attr('src', qrc[id]);
|
|
$('#qrcode-img').fadeIn(200);
|
|
tid = id;
|
|
}
|
|
$(function(){
|
|
if($('.qr li').length == 1) $('.qr').html('');
|
|
$('.qr').show('slow');
|
|
});
|
|
</script>
|
|
{template 'footer'}
|