Commit 0bc289f5 by doszhang

dos

parent 206fd06c
...@@ -114,14 +114,17 @@ ...@@ -114,14 +114,17 @@
{:block name='js'}{:/block} {:block name='js'}{:/block}
<script> <script>
window.wx && wx.ready(function () { window.wx && wx.ready(function () {
alert(1)
wx.onMenuShareAppMessage(wxFriendData); wx.onMenuShareAppMessage(wxFriendData);
wx.onMenuShareTimeline(wxTimelineData); wx.onMenuShareTimeline(wxTimelineData);
wx.checkJsApi({ wx.checkJsApi({
jsApiList : ['scanQRCode','previewImage'], jsApiList : ['scanQRCode','previewImage'],
success : function(res) { success : function(res) {
alert(2)
} }
}); });
$("img").click(function(){ $("img").click(function(){
alert(3)
var url = $(this).attr("src"); var url = $(this).attr("src");
wx.previewImage({ wx.previewImage({
current: url, // 当前显示图片的http链接 current: url, // 当前显示图片的http链接
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment