1function ZanShang(){ 2 this.popbg = $('.zs-modal-bg'); 3 this.popcon = $('.zs-modal-box'); 4 this.closeBtn = $('.zs-modal-box .close'); 5 this.zsbtn = $('.zs-modal-btns .btn'); 6 this.zsPay = $('.zs-modal-pay'); 7 this.zsBtns = $('.zs-modal-btns'); 8 this.zsFooter = $('.zs-modal-footer'); 9 var that = this; 10 $('.show-zs').on('click',function(){ 11 //ç¹å»èµèµæé®åºç°å¼¹çª 12 that._show(); 13 that._init(); 14 }) 15} 16ZanShang.prototype._hide = function(){ 17 this.popbg.hide(); 18 this.popcon.hide(); 19} 20ZanShang.prototype._show = function(){ 21 this.popbg.show(); 22 this.popcon.show(); 23 this.zsBtns.show(); 24 this.zsFooter.show(); 25 this.zsPay.hide(); 26} 27ZanShang.prototype._init = function(){ 28 var that = this; 29 this.closeBtn.on('click',function(){ 30 that._hide(); 31 }) 32 this.popbg.on('click',function(){ 33 that._hide(); 34 }) 35 this.zsbtn.each(function(el){ 36 $(this).on('click',function(){ 37 var num = $(this).attr('data-num'); //æé®ç对åºçæ°å 38 var type = $('.zs-type:radio:checked').val();//仿¬¾æ¹å¼ 39 //æ ¹æ®ä¸å仿¬¾æ¹å¼å鿩坹åºçæé®çæ°åæ¥çæå¯¹åºçäºç»´ç å¾çï¼ä½ å¯ä»¥èªå®ä¹è¿ä¸ªå¾ççè·¯å¾ï¼é»è®¤æ¾å¨/img/rewardç®å½ä¸ 40 //åå¦ä½ éè¦å ä¸ä¸ªè¿ç¨è·¯å¾ï¼æ¯å¦æçå°±æ¯ 41 //http://zhaohuabing.com/img/reward/'+type+'-'+num+'.png'; 42 var src = '/img/reward/'+type+'-'+num+'.png'; 43 var text = $(this).html(); 44 var payType=$('#pay-type'), payImage = $('#pay-image'),payText = $('#pay-text'); 45 if(type=='alipay'){ 46 payType.html('æ¯ä»å®'); 47 }else{ 48 payType.html('微信'); 49 } 50 payImage.attr('src',src); 51 payText.html(text); 52 that.zsPay.show(); 53 that.zsBtns.hide(); 54 that.zsFooter.hide(); 55 56 }) 57 }) 58} 59var zs = new ZanShang();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.