Authored by whb

测试客户端js

... ... @@ -167,11 +167,13 @@
// wx.error(function (res) {
// alert(res.errMsg);
// });
function getClientShare() {
return { "title": shareTitle,"desc": shareDesc,"imgUrl": shareImg, "link": shareLink};
}
seajs.use('mobile',function(mobile) {
seajs.use(['mobile','lib/util/json'],function(mobile, json) {
mobile.detail();
window.json = json;
});
function getClientShare() {
return window.json.stringify({title: shareTitle,desc: shareDesc,imgUrl: shareImg, link: shareLink});
}
</script>
<?php $this->_endblock();?>
... ...