Authored by whb

测试客户端js

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