🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
# 刷新处理函数 ~~~ function down(){ var para = {}; para.url = 'faq/list'; para.data = {'sbh_type':'down','uuid':uuid,'u_id':user_id,'PIN':1}; para.pass = ['uuid','u_id']; net(para); } function exec_down(o){ $('#PIN').val(o.next); var list = $('#list'); switch(o.succeed){ case 2: list.html('<div class="noData">' + o.msg + '</div>'); break; default: list.html(list_template(o)); break; } Number(o.next) == 2 ? mui('#ref').pullRefresh().refresh(true) : null; mui('#ref').pullRefresh().endPulldown(); } ~~~