var bottom = { initpage:function(){ bottom.initdata(); bottom.initstyle(); bottom.initbtn(); }, initbtn:function(){ bottom.weixinidcard(); }, initstyle:function(logindatelist){ $("#leftmainproduct").text($("#leftmainproduct").text().substring(0,40)); $("#footermainproduct").text($("#footermainproduct").text().substring(0,50)); common.searchpull(); bottom.autocomplete(); }, initdata : function(messagecount) { $('#weixinidcard').qrcode({ render: "canvas", //table方式 width: 30, //宽度 height:30, //高度 text: $('#weixinidcard').attr("data-url") //任意内容 }); }, autocomplete : function() { $("#keyword").autocomplete({ delay : 250, minlength : 1, source : function(request, response) { $.ajax({ type: "get", cache : true, url : "/d17/suggest/" + $('#searchtypelist').find('li[value="'+$('#searchtype').val()+'"]').attr('scene'), datatype : "json", data : { "keyword" : $.trim(request.term) }, success : function(data) { response(data.suggestlist); } }); }, select: function( event, ui ) { $('#keyword').val(ui.item.value); $('#searchform').submit(); } }); }, /*微信二维码*/ weixinidcard : function() { $('#weixinidcard').click(function(){ var src = $(this).children('img').attr('src'); $.msgbox.alert({ title : '手机网站二维码', width : 200, msg : '
扫一扫手机访问
'+ '