mobilemode.api_wev8.js 3.04 KB
define(["mUtil","mApi/basic","mApi/custom"],function(e,r,t){var a="mApi/popup",o="mApi/form",i="mApi/jump",n="mApi/sql",l="mApi/refresh",s="mApi/qrcode",g="mApi/lbs",p="mApi/lbs4amap",c="mApi/msgpush",d="mApi/other",m="mService";function f(e,a){var o=[].slice.call(arguments);return o=o.slice(2),function(){var r=$.Deferred(),t=[].slice.call(arguments);return require([e],function(e){$.when(e[a].apply(e,[].concat(o,t))).done(function(){r.resolve.apply(null,arguments)})}),r}}var u={ajax:r.ajax,openUrl:r.openUrl,getParameter:r.getParameter,getCurrUser:r.getCurrUser,getCurrentPageId:r.getCurrentPageId,backPage:r.backPage,eval:r.eval,login:r.login,callApi:r.callApi,getWechatUserInfo:r.getWechatUserInfo,getGlobalVar:r.getGlobalVar,msg:f(a,"msg"),alert:f(a,"alert"),Alert:f(a,"Alert"),confirm:f(a,"confirm"),Confirm:f(a,"Confirm"),prompt:f(a,"prompt"),showLoader:f(a,"showLoader"),hideLoader:f(a,"hideLoader"),footerMenu:f(a,"footerMenu"),dropDownMenu:f(a,"dropDownMenu"),getFormField:function(e,r,t){return require("mApi/form").getField(e,r,t)},formSubmit:f(o,"submit"),formDelete:f(o,"deleteData"),datePicker:f(o,"wrapToDatetime"),toggle:f(o,"wrapToToggle"),backToHomepage:f(i,"backToHomepage"),createTopfloorPage:f(i,"createTopfloorPage"),closeTopfloorPage:f(i,"closeTopfloorPage"),openUrlLeftReplace:f(i,"openUrlLeftReplace"),openUrlRightReplace:f(i,"openUrlRightReplace"),openWebView:f(i,"openWebView"),SQL:f(n,"run"),refresh:f(l,"refresh"),refreshList:f(l,"refreshList"),refreshPrevPageList:f(l,"refreshPrevPageList"),refreshSpecifiedList:f(l,"refreshSpecifiedList"),triggerRefresh:f(l,"triggerRefresh"),refreshCalendar:f(l,"refreshCalendar"),triggerLazyLoad:f(l,"triggerLazyLoad"),refreshRemind:f(l,"refreshRemind"),scanQRCode:f(s,"scan"),getCurrentPosition:f(g,"getCurrentPosition"),getCurrPosition:f(p,"getCurrPosition"),sendMessage:f(c,"sendMessage"),sendEmobileMsg:f(c,"sendEmobileMsg"),sendWechatMsg:f(c,"sendWechatMsg"),callMobile:f(d,"callMobile"),addFormmodeDataShare:f(d,"addFormmodeDataShare"),encrypt:f(d,"encrypt"),progressBar:f(d,"progressBar"),circleProgressBar:f(d,"circleProgressBar"),initWeather:f(d,"initWeather"),getLayoutUrl:f(d,"getLayoutUrl"),toggleListData:f(d,"toggleListData"),getListCheckedData:f(d,"getListCheckedData"),switchListSelectable:f(d,"switchListSelectable"),previewImg:f(d,"previewImg"),addEventListener:f(d,"addEventListener"),doPageExpand:f(d,"doPageExpand"),getDataSetDetail:function(e,r,t){return require("mApi/other").getDataSetDetail(e,r,t)},getCurrDate:e.getCurrDate,getCurrTime:e.getCurrTime,openLBSWin:f(m,"show","position"),openLBSPage:f(m,"show","position4amap"),openMap:function(r,t){require(["mService"],function(e){e.show("map",{coordinate:r,type:t})})}};return window.Mobile_NS=u,window.$u=u.openUrl,window.$p=u.getParameter,window.$u_l_replace=u.openUrlLeftReplace,window.$u_r_replace=u.openUrlRightReplace,window.$f=u.getFormField,window.$d=u.getDataSetDetail,Object.keys(t).forEach(function(e){u.hasOwnProperty(e)||(u[e]=t[e])}),window.$load=function(r){var t=e.getCurrentPageId();require(["mApi/event"],function(e){new e(t).on("load",r)})},u});