Authored by whb

test wechat

... ... @@ -44,6 +44,7 @@
</div>
<div class="overlay"></div>
</div>
<script type="text/javascript" charset="utf-8" src="http://staticzine.myoho.net/download/jquery.min.js?v=20150429"></script>
<script type="text/javascript" charset="utf-8" src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<?php $this->_js('index.js', array(
SITE_JS . '/lib/seajs.js'
... ...
... ... @@ -82,8 +82,6 @@
<?php $this->_endblock();?>
<?php $this->_block('js');?>
<script type="text/javascript">
seajs.use(['jquery', 'mobile'],function($, mobile) {
mobile.detail();
var wechatAppId = $(".share").attr("wechatAppId"),
wechatTimestamp = $(".share").attr("wechatTimestamp"),
wechatNonceStr = $(".share").attr("wechatNonceStr"),
... ... @@ -127,6 +125,9 @@
wx.error(function (res) {
alert(res.errMsg);
});
seajs.use(['jquery', 'mobile'],function($, mobile) {
mobile.detail();
var shareData = {
title: $('.detail-title').find('.title'),
desc: '123123',
... ...