']); ?>"; $(".doctor-coll").on('click', function(e){ e.preventDefault(); if ($(this).hasClass('on')) { $(this).removeClass('on'); } else { $(this).addClass('on'); } $.post('/index.php/home/doctor/collect.html', {'id':doctor_id}, function(res) { if(res.code == 1) { } else { openwin(res.msg); $(".doctor-coll").removeClass('on'); return false; } }); }); $('a.guahao').on('click', function(){ weui.dialog({ title: '扫描二维码', content: 'QR Code', buttons: [ { label: '确定', type: 'primary', onClick: function() { console.log('确定') } } ] }); }); $('a.shiping').on('click', function(){ $('html, body').animate({ scrollTop: $('#shiping').offset().top }, 50); }); $(".yiyuan-show-btn a").click(function(){ $(".yiyuan-show").css({'height': 'auto'}); $(".yiyuan-show-btn a").hide(); });