success: function( res ) { toast.hide(); if( res.code == 200 ) { that.updateCacheResult( that.query_phone, { hasAdded : true }); var html = tpls.addSuccess; var model = new Mb_Model({ content: html, yesBtn: { text: '返回首页', onClick: function() { location.href = 'usercenter.html'; } }, cancelBtn: { text: '继续添加', onClick: function() { $('.query-wrap .input-query').val('').focus(); $('#queryResult').empty(); } } }); model.open(); } else { that.updateCacheResult( that.query_phone, { hasAdded : false }); that.showErrorModel( '<div class="p20 t-center">' + res.msg + '</div>', { text:"关闭", onClick: function(e){ // phoneInp.focus(); } }); } },
success: function( res ) { toast.hide(); if( res.code == 200 ) { var data = res.data; if( data.reseller_total != undefined ) { that.initResellers( data ); } else { that.initProviders(); } that.renderTab( res.data ); } else { PFT.Mobile.Alert( res.msg ); } },
success: function( res ) { toast.hide(); if( res.code == 200 ) { that.updateCacheResult( phone, { isRegistered : true, data : res.data }); that.renderAccInfo( res.data, true ); } else { that.updateCacheResult( phone, { isRegistered : false }); that.showDoRegModel( phone ); } },
loading: function() { toast.show('loading', '正在添加,请稍候'); },
loading: function() { // container.html( $('<div>', { class: 'reseller-stat', html: __loadingHtml() }) ); toast.show('loading'); },