desc.js 107 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684
  1. "use strict";
  2. var utils = require("./utils");
  3. var infoObj = {
  4. canIUse: {
  5. status: 0,
  6. desc: "判断小程序的 API,回调,参数,组件等是否在当前版本可用",
  7. url: {
  8. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/wx.canIUse.html",
  9. alipay: "https://docs.alipay.com/mini/api/can-i-use"
  10. },
  11. body: {}
  12. },
  13. getSystemInfoSync: {
  14. status: 1,
  15. desc: "获取系统信息同步版本",
  16. url: {
  17. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/wx.getSystemInfoSync.html",
  18. alipay: "https://docs.alipay.com/mini/api/system-info"
  19. },
  20. body: {
  21. msg: "返回值属性值缺失",
  22. returnValue: {
  23. props: {
  24. safeArea: {
  25. type: 0,
  26. desc: "安全区位置信息"
  27. },
  28. SDKVersion: {
  29. type: 0,
  30. desc: "客户端基础库版本"
  31. },
  32. benchmarkLevel: {
  33. type: 0,
  34. desc: "仅 Android 小游戏 设备性能等级取值为:-2 或 0"
  35. },
  36. albumAuthorized: {
  37. type: 0,
  38. desc: "允许微信使用相册的开关 仅 iOS 有效"
  39. },
  40. cameraAuthorized: {
  41. type: 0,
  42. desc: "允许微信使用摄像头的开关"
  43. },
  44. locationAuthorized: {
  45. type: 0,
  46. desc: "允许微信使用定位的开关"
  47. },
  48. microphoneAuthorized: {
  49. type: 0,
  50. desc: "允许微信使用麦克风的开关"
  51. },
  52. notificationAuthorized: {
  53. type: 0,
  54. desc: "允许微信通知的开关"
  55. },
  56. notificationAlertAuthorized: {
  57. type: 0,
  58. desc: "允许微信通知带有提醒的开关 仅 iOS 有效"
  59. },
  60. notificationBadgeAuthorized: {
  61. type: 0,
  62. desc: "允许微信通知带有标记的开关 仅 iOS 有效"
  63. },
  64. notificationSoundAuthorized: {
  65. type: 0,
  66. desc: "允许微信通知带有声音的开关 仅 iOS 有效"
  67. },
  68. bluetoothEnabled: {
  69. type: 0,
  70. desc: "蓝牙的系统开关"
  71. },
  72. locationEnabled: {
  73. type: 0,
  74. desc: "地理位置的系统开关"
  75. },
  76. wifiEnabled: {
  77. type: 0,
  78. desc: "Wi-Fi 的系统开关"
  79. }
  80. }
  81. }
  82. }
  83. },
  84. getSystemInfo: {
  85. status: 1,
  86. desc: "获取系统信息",
  87. url: {
  88. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/system/system-info/wx.getSystemInfo.html",
  89. alipay: "https://docs.alipay.com/mini/api/system-info"
  90. },
  91. body: {
  92. msg: "返回值属性值缺失",
  93. returnValue: {
  94. props: {
  95. SDKVersion: {
  96. type: 0,
  97. desc: "客户端基础库版本"
  98. },
  99. benchmarkLevel: {
  100. type: 0,
  101. desc: "仅 Android 小游戏 设备性能等级取值为:-2 或 0"
  102. },
  103. albumAuthorized: {
  104. type: 0,
  105. desc: "允许微信使用相册的开关 仅 iOS 有效"
  106. },
  107. cameraAuthorized: {
  108. type: 0,
  109. desc: "允许微信使用摄像头的开关"
  110. },
  111. locationAuthorized: {
  112. type: 0,
  113. desc: "允许微信使用定位的开关"
  114. },
  115. microphoneAuthorized: {
  116. type: 0,
  117. desc: "允许微信使用麦克风的开关"
  118. },
  119. notificationAuthorized: {
  120. type: 0,
  121. desc: "允许微信通知的开关 仅 iOS 有效"
  122. },
  123. notificationAlertAuthorized: {
  124. type: 0,
  125. desc: "允许微信通知带有提醒的开关 仅 iOS 有效"
  126. },
  127. notificationBadgeAuthorized: {
  128. type: 0,
  129. desc: "允许微信通知带有标记的开关 仅 iOS 有效"
  130. },
  131. notificationSoundAuthorized: {
  132. type: 0,
  133. desc: "允许微信通知带有声音的开关 仅 iOS 有效"
  134. },
  135. bluetoothEnabled: {
  136. type: 0,
  137. desc: "蓝牙的系统开关"
  138. },
  139. locationEnabled: {
  140. type: 0,
  141. desc: "地理位置的系统开关"
  142. },
  143. wifiEnabled: {
  144. type: 0,
  145. desc: "Wi-Fi 的系统开关"
  146. }
  147. }
  148. }
  149. }
  150. },
  151. getUpdateManager: {
  152. status: 0,
  153. desc: "获取全局唯一的版本更新管理器",
  154. url: {
  155. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/update/wx.getUpdateManager.html",
  156. alipay: "https://opendocs.alipay.com/mini/api/zdblqg"
  157. },
  158. body: {}
  159. },
  160. getLaunchOptionsSync: {
  161. status: 2,
  162. desc: "获取小程序启动时的参数",
  163. url: {
  164. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getLaunchOptionsSync.html",
  165. alipay: ""
  166. },
  167. body: {}
  168. },
  169. onPageNotFound: {
  170. status: 2,
  171. desc: "监听小程序要打开的页面不存在事件",
  172. url: {
  173. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onPageNotFound.html",
  174. alipay: ""
  175. },
  176. body: {}
  177. },
  178. onError: {
  179. status: 2,
  180. desc: "监听小程序错误事件。如脚本错误或 API 调用报错等。",
  181. url: {
  182. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onError.html",
  183. alipay: ""
  184. },
  185. body: {}
  186. },
  187. onAudioInterruptionBegin: {
  188. status: 2,
  189. desc: "监听音频因为受到系统占用而被中断开始事件",
  190. url: {
  191. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onAudioInterruptionBegin.html",
  192. alipay: ""
  193. },
  194. body: {}
  195. },
  196. onAudioInterruptionEnd: {
  197. status: 2,
  198. desc: "监听音频中断结束事件",
  199. url: {
  200. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onAudioInterruptionEnd.html",
  201. alipay: ""
  202. },
  203. body: {}
  204. },
  205. onAppShow: {
  206. status: 2,
  207. desc: "监听小程序切前台事件",
  208. url: {
  209. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onAppShow.html",
  210. alipay: ""
  211. },
  212. body: {}
  213. },
  214. onAppHide: {
  215. status: 2,
  216. desc: "监听小程序切后台事件",
  217. url: {
  218. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onAppHide.html",
  219. alipay: ""
  220. },
  221. body: {}
  222. },
  223. offPageNotFound: {
  224. status: 2,
  225. desc: "取消监听小程序要打开的页面不存在事件",
  226. url: {
  227. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offPageNotFound.html",
  228. alipay: ""
  229. },
  230. body: {}
  231. },
  232. offError: {
  233. status: 2,
  234. desc: "监听小程序切前台事件",
  235. url: {
  236. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offError.html",
  237. alipay: ""
  238. },
  239. body: {}
  240. },
  241. offAudioInterruptionBegin: {
  242. status: 2,
  243. desc: "取消监听音频因为受到系统占用而被中断开始事件",
  244. url: {
  245. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offAudioInterruptionBegin.html",
  246. alipay: ""
  247. },
  248. body: {}
  249. },
  250. offAudioInterruptionEnd: {
  251. status: 2,
  252. desc: "取消监听音频中断结束事件",
  253. url: {
  254. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offAudioInterruptionEnd.html",
  255. alipay: ""
  256. },
  257. body: {}
  258. },
  259. offAppShow: {
  260. status: 2,
  261. desc: "取消监听小程序切前台事件",
  262. url: {
  263. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offAppShow.html",
  264. alipay: ""
  265. },
  266. body: {}
  267. },
  268. offAppHide: {
  269. status: 2,
  270. desc: "取消监听小程序切后台事件",
  271. url: {
  272. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offAppHide.html",
  273. alipay: ""
  274. },
  275. body: {}
  276. },
  277. setEnableDebug: {
  278. status: 2,
  279. desc: "设置是否打开调试开关。此开关对正式版也能生效",
  280. url: {
  281. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.setEnableDebug.html",
  282. alipay: ""
  283. },
  284. body: {}
  285. },
  286. getLogManager: {
  287. status: 2,
  288. desc: "获取日志管理器对象。",
  289. url: {
  290. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.getLogManager.html",
  291. alipay: ""
  292. },
  293. body: {}
  294. },
  295. createCameraContext: {
  296. status: 0,
  297. desc: "创建 camera 上下文 CameraContext 对象",
  298. url: {
  299. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/camera/wx.createCameraContext.html",
  300. alipay: ""
  301. },
  302. body: {}
  303. },
  304. base64ToArrayBuffer: {
  305. status: 2,
  306. desc: "将 Base64 字符串转成 ArrayBuffer 对象",
  307. url: {
  308. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.base64ToArrayBuffer.html",
  309. alipay: ""
  310. },
  311. body: {}
  312. },
  313. arrayBufferToBase64: {
  314. status: 2,
  315. desc: "将 ArrayBuffer 字符串转成 Base64 对象",
  316. url: {
  317. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/wx.arrayBufferToBase64.html",
  318. alipay: ""
  319. },
  320. body: {}
  321. },
  322. updateWeChatApp: {
  323. status: 2,
  324. desc: "更新客户端版本",
  325. url: {
  326. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/update/wx.updateWeChatApp.html",
  327. alipay: ""
  328. },
  329. body: {}
  330. },
  331. getEnterOptionsSync: {
  332. status: 2,
  333. desc: "获取本次小程序启动时的参数",
  334. url: {
  335. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/life-cycle/wx.getEnterOptionsSync.html",
  336. alipay: ""
  337. },
  338. body: {}
  339. },
  340. onUnhandledRejection: {
  341. status: 0,
  342. desc: "监听未处理的 Promise 拒绝事件",
  343. url: {
  344. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onUnhandledRejection.html",
  345. alipay: "https://opendocs.alipay.com/mini/00nd0f"
  346. },
  347. body: {}
  348. },
  349. onThemeChange: {
  350. status: 2,
  351. desc: "监听系统主题改变事件",
  352. url: {
  353. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.onThemeChange.html",
  354. alipay: ""
  355. },
  356. body: {}
  357. },
  358. offUnhandledRejection: {
  359. status: 0,
  360. desc: "取消监听未处理的 Promise 拒绝事件",
  361. url: {
  362. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offUnhandledRejection.html",
  363. alipay: "https://opendocs.alipay.com/mini/00nfnd"
  364. },
  365. body: {}
  366. },
  367. offThemeChange: {
  368. status: 2,
  369. desc: "取消监听系统主题改变事件",
  370. url: {
  371. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/app/app-event/wx.offThemeChange.html",
  372. alipay: ""
  373. },
  374. body: {}
  375. },
  376. getRealtimeLogManager: {
  377. status: 2,
  378. desc: "获取实时日志管理器对象",
  379. url: {
  380. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.getRealtimeLogManager.html",
  381. alipay: ""
  382. },
  383. body: {}
  384. },
  385. createCanvasContext: {
  386. status: 0,
  387. desc: "创建 canvas 的绘图上下文 CanvasContext 对象",
  388. url: {
  389. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.createCanvasContext.html",
  390. alipay: "https://docs.alipay.com/mini/api/ui-canvas#a-namez4dtttamycreatecanvascontextcanvasid"
  391. },
  392. body: {}
  393. },
  394. canvasToTempFilePath: {
  395. status: 0,
  396. desc: "把当前画布指定区域的内容导出生成指定大小的图片",
  397. url: {
  398. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasToTempFilePath.html",
  399. alipay: "https://docs.alipay.com/mini/api/ui-canvas#a-namez4dtttamycreatecanvascontextcanvasid"
  400. },
  401. body: {}
  402. },
  403. canvasPutImageData: {
  404. status: 0,
  405. desc: "将像素数据绘制到画布",
  406. url: {
  407. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasPutImageData.html",
  408. alipay: "https://docs.alipay.com/mini/api/ui-canvas#a-namez4dtttamycreatecanvascontextcanvasid"
  409. },
  410. body: {}
  411. },
  412. canvasGetImageData: {
  413. status: 0,
  414. desc: "获取 canvas 区域隐含的像素数据。",
  415. url: {
  416. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.canvasGetImageData.html",
  417. alipay: "https://docs.alipay.com/mini/api/ui-canvas#a-namez4dtttamycreatecanvascontextcanvasid"
  418. },
  419. body: {}
  420. },
  421. createOffscreenCanvas: {
  422. status: 2,
  423. desc: "创建离屏 canvas 实例",
  424. url: {
  425. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/canvas/wx.createOffscreenCanvas.html",
  426. alipay: ""
  427. },
  428. body: {}
  429. },
  430. stopBeaconDiscovery: {
  431. status: 0,
  432. desc: "停止搜索附近的 iBeacon 设备",
  433. url: {
  434. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.stopBeaconDiscovery.html",
  435. alipay: "https://docs.alipay.com/mini/api/yp5owa"
  436. },
  437. body: {}
  438. },
  439. startBeaconDiscovery: {
  440. status: 1,
  441. desc: "开始搜索附近的 iBeacon 设备",
  442. url: {
  443. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.startBeaconDiscovery.html",
  444. alipay: "https://docs.alipay.com/mini/api/cy1g7k"
  445. },
  446. body: {
  447. msg: "参数缺失",
  448. params: {
  449. props: {
  450. ignoreBluetoothAvailable: {
  451. type: 0,
  452. desc: "是否校验蓝牙开关,仅在 iOS 下有效"
  453. }
  454. }
  455. }
  456. }
  457. },
  458. onBeaconUpdate: {
  459. status: 0,
  460. desc: "监听 iBeacon 设备更新事件",
  461. url: {
  462. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.onBeaconUpdate.html",
  463. alipay: "https://docs.alipay.com/mini/api/kvdg9y"
  464. },
  465. body: {
  466. msg: "封装后完全支持"
  467. }
  468. },
  469. onBeaconServiceChange: {
  470. status: 1,
  471. desc: "监听 iBeacon 服务状态变化事件",
  472. url: {
  473. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.onBeaconServiceChange.html",
  474. alipay: "https://docs.alipay.com/mini/api/rq1dl7"
  475. },
  476. body: {
  477. msg: "参数类型不同,wx: Function , alipay: Object"
  478. }
  479. },
  480. getBeacons: {
  481. status: 0,
  482. desc: "获取所有已搜索到的 iBeacon 设备",
  483. url: {
  484. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/ibeacon/wx.getBeacons.html",
  485. alipay: "https://docs.alipay.com/mini/api/yqleyc"
  486. },
  487. body: {}
  488. },
  489. stopWifi: {
  490. status: 2,
  491. desc: "关闭 Wi-Fi 模块",
  492. url: {
  493. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.stopWifi.html",
  494. alipay: ""
  495. },
  496. body: {}
  497. },
  498. startWifi: {
  499. status: 2,
  500. desc: "初始化 Wi-Fi 模块",
  501. url: {
  502. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.startWifi.html",
  503. alipay: ""
  504. },
  505. body: {}
  506. },
  507. setWifiList: {
  508. status: 2,
  509. desc: "设置 wifiList 中 AP 的相关信息。在 onGetWifiList 回调后调用,iOS特有接口",
  510. url: {
  511. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.setWifiList.html",
  512. alipay: ""
  513. },
  514. body: {}
  515. },
  516. onWifiConnected: {
  517. status: 2,
  518. desc: "监听连接上 Wi-Fi 的事件",
  519. url: {
  520. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.onWifiConnected.html",
  521. alipay: ""
  522. },
  523. body: {}
  524. },
  525. onGetWifiList: {
  526. status: 2,
  527. desc: "监听获取到 Wi-Fi 列表数据事件",
  528. url: {
  529. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.onGetWifiList.html",
  530. alipay: ""
  531. },
  532. body: {}
  533. },
  534. getWifiList: {
  535. status: 2,
  536. desc: "监听连接上 Wi-Fi 的事件",
  537. url: {
  538. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.getWifiList.html",
  539. alipay: ""
  540. },
  541. body: {}
  542. },
  543. getConnectedWifi: {
  544. status: 2,
  545. desc: "监听连接上 Wi-Fi 的事件。",
  546. url: {
  547. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.getConnectedWifi.html",
  548. alipay: ""
  549. },
  550. body: {}
  551. },
  552. connectWifi: {
  553. status: 2,
  554. desc: "连接 Wi-Fi。若已知 Wi-Fi 信息,可以直接利用该接口连接。仅 Android 与 iOS 11 以上版本支持。",
  555. url: {
  556. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.connectWifi.html",
  557. alipay: ""
  558. },
  559. body: {}
  560. },
  561. writeBLECharacteristicValue: {
  562. status: 0,
  563. desc: "读取低功耗蓝牙设备的特征值的二进制数据值。注意:必须设备的特征值支持 read 才可以成功调用",
  564. url: {
  565. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.writeBLECharacteristicValue.html",
  566. alipay: "https://docs.alipay.com/mini/api/vmp2r4"
  567. },
  568. body: {
  569. msg: "封装后完全支持"
  570. }
  571. },
  572. readBLECharacteristicValue: {
  573. status: 0,
  574. desc: "读取低功耗蓝牙设备的特征值的二进制数据值。注意:必须设备的特征值支持 read 才可以成功调用。",
  575. url: {
  576. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.readBLECharacteristicValue.html",
  577. alipay: "https://docs.alipay.com/mini/api/zro0ka"
  578. },
  579. body: {}
  580. },
  581. onBLEConnectionStateChange: {
  582. status: 0,
  583. desc: "监听低功耗蓝牙连接状态的改变事件。包括开发者主动连接或断开连接,设备丢失,连接异常断开等等",
  584. url: {
  585. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.onBLEConnectionStateChange.html",
  586. alipay: "https://docs.alipay.com/mini/api/utgyiu"
  587. },
  588. body: {
  589. msg: "封装后完全支持"
  590. }
  591. },
  592. onBLECharacteristicValueChange: {
  593. status: 0,
  594. desc: "监听低功耗蓝牙设备的特征值变化事件。必须先启用 notifyBLECharacteristicValueChange 接口才能接收到设备推送的 notification。",
  595. url: {
  596. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.onBLECharacteristicValueChange.html",
  597. alipay: "https://docs.alipay.com/mini/api/cdu501"
  598. },
  599. body: {
  600. msg: "封装后完全支持"
  601. }
  602. },
  603. notifyBLECharacteristicValueChange: {
  604. status: 1,
  605. desc: "监听低功耗蓝牙设备的特征值变化事件。必须先启用 notifyBLECharacteristicValueChange 接口才能接收到设备推送的 notification。",
  606. url: {
  607. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.onBLECharacteristicValueChange.html",
  608. alipay: "https://docs.alipay.com/mini/api/pdzk44"
  609. },
  610. body: {
  611. msg: "wx中state为必填参数"
  612. }
  613. },
  614. getBLEDeviceServices: {
  615. status: 0,
  616. desc: "获取蓝牙设备所有服务(service)",
  617. url: {
  618. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEDeviceServices.html",
  619. alipay: "https://docs.alipay.com/mini/api/uzsg75"
  620. },
  621. body: {
  622. msg: "封装后完全支持"
  623. }
  624. },
  625. getBLEDeviceCharacteristics: {
  626. status: 0,
  627. desc: "获取蓝牙设备某个服务中所有特征值(characteristic)。",
  628. url: {
  629. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEDeviceCharacteristics.html",
  630. alipay: "https://docs.alipay.com/mini/api/fmg9gg"
  631. },
  632. body: {
  633. msg: "封装后完全支持"
  634. }
  635. },
  636. createBLEConnection: {
  637. status: 2,
  638. desc: "连接低功耗蓝牙设备。",
  639. url: {
  640. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.createBLEConnection.html",
  641. alipay: ""
  642. },
  643. body: {}
  644. },
  645. closeBLEConnection: {
  646. status: 2,
  647. desc: "断开与低功耗蓝牙设备的连接。",
  648. url: {
  649. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.closeBLEConnection.html",
  650. alipay: ""
  651. },
  652. body: {}
  653. },
  654. addPhoneContact: {
  655. status: 0,
  656. desc: "添加手机通讯录联系人。用户可以选择将该表单以「新增联系人」或「添加到已有联系人」的方式,写入手机系统通讯录。",
  657. url: {
  658. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/contact/wx.addPhoneContact.html",
  659. alipay: "https://docs.alipay.com/mini/api/contact"
  660. },
  661. body: {
  662. msg: "参数名不同"
  663. }
  664. },
  665. stopBluetoothDevicesDiscovery: {
  666. status: 0,
  667. desc: "停止搜寻附近的蓝牙外围设备。若已经找到需要的蓝牙设备并不需要继续搜索时,建议调用该接口停止蓝牙搜索。",
  668. url: {
  669. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.stopBluetoothDevicesDiscovery.html",
  670. alipay: "https://docs.alipay.com/mini/api/syb4mi"
  671. },
  672. body: {}
  673. },
  674. startBluetoothDevicesDiscovery: {
  675. status: 0,
  676. desc: "开始搜寻附近的蓝牙外围设备",
  677. url: {
  678. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.startBluetoothDevicesDiscovery.html",
  679. alipay: "https://docs.alipay.com/mini/api/ksew43"
  680. },
  681. body: {
  682. msg: "封装后完全支持"
  683. }
  684. },
  685. openBluetoothAdapter: {
  686. status: 0,
  687. desc: "初始化蓝牙模块",
  688. url: {
  689. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.openBluetoothAdapter.html",
  690. alipay: "https://docs.alipay.com/mini/api/kunuy4"
  691. },
  692. body: {
  693. msg: "封装后完全支持"
  694. }
  695. },
  696. onBluetoothDeviceFound: {
  697. status: 1,
  698. desc: "监听寻找到新设备的事件",
  699. url: {
  700. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.onBluetoothDeviceFound.html",
  701. alipay: "https://docs.alipay.com/mini/api/mhzls9"
  702. },
  703. body: {
  704. msg: "参数类型不同, 返回值缺失",
  705. params: {
  706. props: {
  707. advertisData: {
  708. type: 3,
  709. desc: "当前蓝牙设备的广播数据段中的 ManufacturerData 数据段。wx: ArrayBuffer, alipay: Hex String"
  710. }
  711. }
  712. },
  713. returnValue: {
  714. props: {
  715. advertisServiceUUIDs: {
  716. type: 0,
  717. desc: "当前蓝牙设备的广播数据段中的ServiceUUIDs 数据段"
  718. },
  719. serviceData: {
  720. type: 0,
  721. desc: "当前蓝牙设备的广播数据段中的 ServiceData 数据段"
  722. }
  723. }
  724. }
  725. }
  726. },
  727. onBluetoothAdapterStateChange: {
  728. status: 0,
  729. desc: "监听蓝牙适配器状态变化事件",
  730. url: {
  731. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.onBluetoothAdapterStateChange.html",
  732. alipay: "https://docs.alipay.com/mini/api/eegfbk"
  733. },
  734. body: {}
  735. },
  736. getConnectedBluetoothDevices: {
  737. status: 1,
  738. desc: "根据 uuid 获取处于已连接状态的设备。",
  739. url: {
  740. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.getConnectedBluetoothDevices.html",
  741. alipay: "https://docs.alipay.com/mini/api/ge8nue"
  742. },
  743. body: {
  744. msg: "参数名差异",
  745. params: {
  746. props: {
  747. services: {
  748. type: 1,
  749. desc: "蓝牙设备主 service 的 uuid 列表, wx: services, alipay: deviceId"
  750. }
  751. }
  752. }
  753. }
  754. },
  755. getBluetoothDevices: {
  756. status: 1,
  757. desc: "获取在蓝牙模块生效期间所有已发现的蓝牙设备。包括已经和本机处于连接状态的设备。",
  758. url: {
  759. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.getBluetoothDevices.html",
  760. alipay: "https://docs.alipay.com/mini/api/pelizr"
  761. },
  762. body: {
  763. msg: "返回值属性类型差异/缺失",
  764. returnValue: {
  765. props: {
  766. advertisData: {
  767. type: 3,
  768. desc: "设备的广播内容, wx: ArrayBuffer, alipay: Hex String"
  769. },
  770. advertisServiceUUIDs: {
  771. type: 0,
  772. desc: "当前蓝牙设备的广播数据段中的ServiceUUIDs 数据段"
  773. },
  774. serviceData: {
  775. type: 0,
  776. desc: "当前蓝牙设备的广播数据段中的 ServiceData 数据段"
  777. }
  778. }
  779. }
  780. }
  781. },
  782. getBluetoothAdapterState: {
  783. status: 0,
  784. desc: "获取本机蓝牙适配器状态。",
  785. url: {
  786. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.getBluetoothAdapterState.html",
  787. alipay: "https://docs.alipay.com/mini/api/eid4o6"
  788. },
  789. body: {}
  790. },
  791. closeBluetoothAdapter: {
  792. status: 0,
  793. desc: "关闭蓝牙模块。调用该方法将断开所有已建立的连接并释放系统资源。建议在使用蓝牙流程后,与 wx.openBluetoothAdapter 成对调用。",
  794. url: {
  795. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.closeBluetoothAdapter.html",
  796. alipay: "https://docs.alipay.com/mini/api/wvko0w"
  797. },
  798. body: {}
  799. },
  800. getBatteryInfoSync: {
  801. status: 2,
  802. desc: "wx.getBatteryInfo 的同步版本",
  803. url: {
  804. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/battery/wx.getBatteryInfoSync.html",
  805. alipay: ""
  806. },
  807. body: {}
  808. },
  809. getBatteryInfo: {
  810. status: 2,
  811. desc: "获取设备电量。同步 API wx.getBatteryInfoSync 在 iOS 上不可用。",
  812. url: {
  813. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/battery/wx.getBatteryInfo.html",
  814. alipay: ""
  815. },
  816. body: {}
  817. },
  818. stopHCE: {
  819. status: 2,
  820. desc: "关闭 NFC 模块。仅在安卓系统下有效。",
  821. url: {
  822. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.stopHCE.html",
  823. alipay: ""
  824. },
  825. body: {}
  826. },
  827. startHCE: {
  828. status: 2,
  829. desc: "初始化 NFC 模块。",
  830. url: {
  831. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.startHCE.html",
  832. alipay: ""
  833. },
  834. body: {}
  835. },
  836. sendHCEMessage: {
  837. status: 2,
  838. desc: "发送 NFC 消息。仅在安卓系统下有效。",
  839. url: {
  840. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.sendHCEMessage.html",
  841. alipay: ""
  842. },
  843. body: {}
  844. },
  845. onHCEMessage: {
  846. status: 2,
  847. desc: "监听接收 NFC 设备消息事件",
  848. url: {
  849. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.onHCEMessage.html",
  850. alipay: ""
  851. },
  852. body: {}
  853. },
  854. getHCEState: {
  855. status: 2,
  856. desc: "判断当前设备是否支持 HCE 能力。",
  857. url: {
  858. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.getHCEState.html",
  859. alipay: ""
  860. },
  861. body: {}
  862. },
  863. onNetworkStatusChange: {
  864. status: 0,
  865. desc: "监听网络状态变化事件",
  866. url: {
  867. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.onNetworkStatusChange.html",
  868. alipay: "https://docs.alipay.com/mini/api/ympi0l"
  869. },
  870. body: {
  871. msg: "封装后完全支持"
  872. }
  873. },
  874. getNetworkType: {
  875. status: 0,
  876. desc: "获取网络类型",
  877. url: {
  878. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.getNetworkType.html",
  879. alipay: "https://docs.alipay.com/mini/api/network-status#mygetnetworktype"
  880. },
  881. body: {
  882. msg: "返回值属性差异",
  883. returnValue: {
  884. props: {
  885. networkType: {
  886. type: 1,
  887. desc: "wx: wifi/2g/3g/4g/unknown/none, alipay: WIFI/2G/3G/4G/UNKNOWN/NOTREACHABLE"
  888. }
  889. }
  890. }
  891. }
  892. },
  893. setScreenBrightness: {
  894. status: 0,
  895. desc: "设置屏幕亮度",
  896. url: {
  897. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setScreenBrightness.html",
  898. alipay: "https://docs.alipay.com/mini/api/ccf32t"
  899. },
  900. body: {
  901. msg: "封装后完全支持"
  902. }
  903. },
  904. setKeepScreenOn: {
  905. status: 0,
  906. desc: "设置是否保持常亮状态。仅在当前小程序生效,离开小程序后设置失效。",
  907. url: {
  908. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.setKeepScreenOn.html",
  909. alipay: "https://docs.alipay.com/mini/api/qx0sap"
  910. },
  911. body: {}
  912. },
  913. onUserCaptureScreen: {
  914. status: 0,
  915. desc: "监听用户主动截屏事件。用户使用系统截屏按键截屏时触发",
  916. url: {
  917. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.onUserCaptureScreen.html",
  918. alipay: "https://docs.alipay.com/mini/api/user-capture-screen"
  919. },
  920. body: {}
  921. },
  922. getScreenBrightness: {
  923. status: 0,
  924. desc: "获取屏幕亮度",
  925. url: {
  926. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.getScreenBrightness.html",
  927. alipay: "https://docs.alipay.com/mini/api/screen-brightness"
  928. },
  929. body: {
  930. msg: "封装后完全支持"
  931. }
  932. },
  933. makePhoneCall: {
  934. status: 1,
  935. desc: "拨打电话",
  936. url: {
  937. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/phone/wx.makePhoneCall.html",
  938. alipay: "https://docs.alipay.com/mini/api/macke-call"
  939. },
  940. body: {
  941. msg: "封装后不支持回调",
  942. params: {
  943. props: {
  944. success: {
  945. type: 0,
  946. desc: "接口调用成功的回调函数"
  947. },
  948. fail: {
  949. type: 0,
  950. desc: "接口调用失败的回调函数"
  951. },
  952. complete: {
  953. type: 0,
  954. desc: "接口调用结束的回调函数(调用成功、失败都会执行)"
  955. }
  956. }
  957. }
  958. }
  959. },
  960. onAccelerometerChange: {
  961. status: 0,
  962. desc: "监听加速度数据事件。",
  963. url: {
  964. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.onAccelerometerChange.html",
  965. alipay: "https://docs.alipay.com/mini/api/accelerometer"
  966. },
  967. body: {}
  968. },
  969. startAccelerometer: {
  970. status: 2,
  971. desc: "开始监听罗盘数据",
  972. url: {
  973. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.startAccelerometer.html",
  974. alipay: ""
  975. },
  976. body: {}
  977. },
  978. stopAccelerometer: {
  979. status: 1,
  980. desc: "停止监听加速度数据。",
  981. url: {
  982. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/accelerometer/wx.stopAccelerometer.html",
  983. alipay: "https://docs.alipay.com/mini/api/accelerometer"
  984. },
  985. body: {
  986. msg: "名称不同wx: stopAccelerometer, alipay: offAccelerometerChange, 参数缺失",
  987. params: {
  988. props: {
  989. success: {
  990. type: 0,
  991. desc: "接口调用成功的回调函数"
  992. },
  993. fail: {
  994. type: 0,
  995. desc: "接口调用失败的回调函数"
  996. },
  997. complete: {
  998. type: 0,
  999. desc: "接口调用结束的回调函数(调用成功、失败都会执行)"
  1000. }
  1001. }
  1002. }
  1003. }
  1004. },
  1005. onCompassChange: {
  1006. status: 1,
  1007. desc: "监听罗盘数据变化事件",
  1008. url: {
  1009. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.onCompassChange.html",
  1010. alipay: "https://docs.alipay.com/mini/api/compass#a-name5i0ewaamyoncompasschangefunction-callback"
  1011. },
  1012. body: {
  1013. msg: "返回值属性缺失",
  1014. returnValue: {
  1015. props: {
  1016. accuracy: {
  1017. type: 0,
  1018. desc: "精度"
  1019. }
  1020. }
  1021. }
  1022. }
  1023. },
  1024. startCompass: {
  1025. status: 2,
  1026. desc: "开始监听罗盘数据",
  1027. url: {
  1028. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.startCompass.html",
  1029. alipay: ""
  1030. },
  1031. body: {}
  1032. },
  1033. stopCompass: {
  1034. status: 1,
  1035. desc: "停止监听罗盘数据",
  1036. url: {
  1037. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/compass/wx.stopCompass.html",
  1038. alipay: "https://docs.alipay.com/mini/api/xf671t"
  1039. },
  1040. body: {
  1041. msg: "命名不同wx: stopCompass, alipay: offCompassChange, 参数缺失",
  1042. params: {
  1043. props: {
  1044. success: {
  1045. type: 0,
  1046. desc: "接口调用成功的回调函数"
  1047. },
  1048. fail: {
  1049. type: 0,
  1050. desc: "接口调用失败的回调函数"
  1051. },
  1052. complete: {
  1053. type: 0,
  1054. desc: "接口调用结束的回调函数(调用成功、失败都会执行)"
  1055. }
  1056. }
  1057. }
  1058. }
  1059. },
  1060. onDeviceMotionChange: {
  1061. status: 2,
  1062. desc: "监听设备方向变化事件",
  1063. url: {
  1064. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/motion/wx.onDeviceMotionChange.html",
  1065. alipay: ""
  1066. },
  1067. body: {}
  1068. },
  1069. startDeviceMotionListening: {
  1070. status: 2,
  1071. desc: "开始监听设备方向的变化",
  1072. url: {
  1073. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/motion/wx.startDeviceMotionListening.html",
  1074. alipay: ""
  1075. },
  1076. body: {}
  1077. },
  1078. stopDeviceMotionListening: {
  1079. status: 2,
  1080. desc: "停止监听设备方向的变化",
  1081. url: {
  1082. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/motion/wx.stopDeviceMotionListening.html",
  1083. alipay: ""
  1084. },
  1085. body: {}
  1086. },
  1087. onGyroscopeChange: {
  1088. status: 0,
  1089. desc: "监听陀螺仪数据变化事件",
  1090. url: {
  1091. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/gyroscope/wx.onGyroscopeChange.html",
  1092. alipay: "https://docs.alipay.com/mini/api/gyroscope#a-namep1rwcgamyoffgyroscopechange"
  1093. },
  1094. body: {}
  1095. },
  1096. startGyroscope: {
  1097. status: 2,
  1098. desc: "开始监听陀螺仪数据",
  1099. url: {
  1100. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/gyroscope/wx.startGyroscope.html",
  1101. alipay: ""
  1102. },
  1103. body: {}
  1104. },
  1105. stopGyroscope: {
  1106. status: 1,
  1107. desc: "停止监听陀螺仪数据。",
  1108. url: {
  1109. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/gyroscope/wx.stopGyroscope.html",
  1110. alipay: "https://docs.alipay.com/mini/api/cpt55i"
  1111. },
  1112. body: {
  1113. msg: "命名不同wx: stopGyroscope, alipay: offGyroscopeChange, 参数缺失",
  1114. params: {
  1115. props: {
  1116. success: {
  1117. type: 0,
  1118. desc: "接口调用成功的回调函数"
  1119. },
  1120. fail: {
  1121. type: 0,
  1122. desc: "接口调用失败的回调函数"
  1123. },
  1124. complete: {
  1125. type: 0,
  1126. desc: "接口调用结束的回调函数(调用成功、失败都会执行)"
  1127. }
  1128. }
  1129. }
  1130. }
  1131. },
  1132. onMemoryWarning: {
  1133. status: 2,
  1134. desc: "监听内存不足告警事件",
  1135. url: {
  1136. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/performance/wx.onMemoryWarning.html",
  1137. alipay: ""
  1138. },
  1139. body: {}
  1140. },
  1141. scanCode: {
  1142. status: 1,
  1143. desc: "调起客户端扫码界面进行扫码",
  1144. url: {
  1145. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/scan/wx.scanCode.html",
  1146. alipay: "https://docs.alipay.com/mini/api/scan"
  1147. },
  1148. body: {
  1149. msg: " 参数差异, 返回值差异/缺失",
  1150. params: {
  1151. props: {
  1152. onlyFromCamera: {
  1153. type: 1,
  1154. desc: "是否只能从相机扫码,不允许从相册选择图片, wx: onlyFromCamera, alipay: hideAlbum"
  1155. },
  1156. scanType: {
  1157. type: 1,
  1158. desc: "扫码类型, wx: scanType 支持数组类型;默认值是['barCode', 'qrCode'];取值范围:barCode、qrCode、datamatrix、pdf417, alipay: type 不支持数组类型;默认值是qr;取值范围:qr、bar"
  1159. }
  1160. }
  1161. },
  1162. returnValue: {
  1163. props: {
  1164. scanType: {
  1165. type: 0,
  1166. desc: "所扫码的类型"
  1167. },
  1168. charSet: {
  1169. type: 0,
  1170. desc: "所扫码的字符集"
  1171. },
  1172. path: {
  1173. type: 0,
  1174. desc: "当所扫的码为当前小程序二维码时,会返回此字段,内容为二维码携带的 path"
  1175. },
  1176. rawData: {
  1177. type: 0,
  1178. desc: "原始数据,base64编码"
  1179. }
  1180. }
  1181. }
  1182. }
  1183. },
  1184. vibrateLong: {
  1185. status: 0,
  1186. desc: "使手机发生较长时间的振动",
  1187. url: {
  1188. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html",
  1189. alipay: "https://docs.alipay.com/mini/api/ucm2he"
  1190. },
  1191. body: {}
  1192. },
  1193. vibrateShort: {
  1194. status: 0,
  1195. desc: "使手机发生较长时间的振动",
  1196. url: {
  1197. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/vibrate/wx.vibrateShort.html",
  1198. alipay: "https://docs.alipay.com/mini/api/ad6c10"
  1199. },
  1200. body: {
  1201. msg: "震动时间不同wx: 15ms, alipay: 40ms"
  1202. }
  1203. },
  1204. onBLEPeripheralConnectionStateChanged: {
  1205. status: 2,
  1206. desc: "监听当前外围设备被连接或断开连接事件",
  1207. url: {
  1208. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/wx.onBLEPeripheralConnectionStateChanged.html",
  1209. alipay: ""
  1210. },
  1211. body: {}
  1212. },
  1213. offBLEPeripheralConnectionStateChanged: {
  1214. status: 2,
  1215. desc: "取消监听当前外围设备被连接或断开连接事件",
  1216. url: {
  1217. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/wx.offBLEPeripheralConnectionStateChanged.html",
  1218. alipay: ""
  1219. },
  1220. body: {}
  1221. },
  1222. createBLEPeripheralServer: {
  1223. status: 2,
  1224. desc: "建立本地作为外围设备的服务端,可创建多个",
  1225. url: {
  1226. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-peripheral/wx.createBLEPeripheralServer.html",
  1227. alipay: ""
  1228. },
  1229. body: {}
  1230. },
  1231. offHCEMessage: {
  1232. status: 2,
  1233. desc: "接收 NFC 设备消息事件,取消事件监听",
  1234. url: {
  1235. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.offHCEMessage.html",
  1236. alipay: ""
  1237. },
  1238. body: {}
  1239. },
  1240. getNFCAdapter: {
  1241. status: 2,
  1242. desc: "获取 NFC 实例",
  1243. url: {
  1244. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/nfc/wx.getNFCAdapter.html",
  1245. alipay: ""
  1246. },
  1247. body: {}
  1248. },
  1249. offWifiConnected: {
  1250. status: 2,
  1251. desc: "取消监听连接上 Wi-Fi 的事件",
  1252. url: {
  1253. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.offWifiConnected.html",
  1254. alipay: ""
  1255. },
  1256. body: {}
  1257. },
  1258. offGetWifiList: {
  1259. status: 2,
  1260. desc: "取消监听获取到 Wi-Fi 列表数据事件",
  1261. url: {
  1262. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/wifi/wx.offGetWifiList.html",
  1263. alipay: ""
  1264. },
  1265. body: {}
  1266. },
  1267. setBLEMTU: {
  1268. status: 2,
  1269. desc: "设置蓝牙最大传输单元",
  1270. url: {
  1271. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.setBLEMTU.html",
  1272. alipay: ""
  1273. },
  1274. body: {}
  1275. },
  1276. offBLEConnectionStateChange: {
  1277. status: 0,
  1278. desc: "取消监听低功耗蓝牙连接状态的改变事件",
  1279. url: {
  1280. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.offBLEConnectionStateChange.html",
  1281. alipay: "https://opendocs.alipay.com/mini/api/xfuy7k"
  1282. },
  1283. body: {}
  1284. },
  1285. offBLECharacteristicValueChange: {
  1286. status: 0,
  1287. desc: "取消监听低功耗蓝牙设备的特征值变化事件",
  1288. url: {
  1289. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.offBLECharacteristicValueChange.html",
  1290. alipay: "https://opendocs.alipay.com/mini/api/dlxobk"
  1291. },
  1292. body: {}
  1293. },
  1294. makeBluetoothPair: {
  1295. status: 2,
  1296. desc: "蓝牙配对接口,仅安卓使用",
  1297. url: {
  1298. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.makeBluetoothPair.html",
  1299. alipay: ""
  1300. },
  1301. body: {}
  1302. },
  1303. getBLEDeviceRSSI: {
  1304. status: 2,
  1305. desc: "获取蓝牙设备的信号强度",
  1306. url: {
  1307. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth-ble/wx.getBLEDeviceRSSI.html",
  1308. alipay: ""
  1309. },
  1310. body: {}
  1311. },
  1312. checkIsOpenAccessibility: {
  1313. status: 2,
  1314. desc: "检测是否开启视觉无障碍功能",
  1315. url: {
  1316. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/accessibility/wx.checkIsOpenAccessibility.html",
  1317. alipay: ""
  1318. },
  1319. body: {}
  1320. },
  1321. offBluetoothAdapterStateChange: {
  1322. status: 0,
  1323. desc: "取消监听蓝牙适配器状态变化事件",
  1324. url: {
  1325. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/bluetooth/wx.offBluetoothAdapterStateChange.html",
  1326. alipay: "https://opendocs.alipay.com/mini/api/ocgwfe"
  1327. },
  1328. body: {}
  1329. },
  1330. setClipboardData: {
  1331. status: 2,
  1332. desc: "设置系统剪贴板的内容",
  1333. url: {
  1334. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.setClipboardData.html",
  1335. alipay: ""
  1336. },
  1337. body: {}
  1338. },
  1339. getClipboardData: {
  1340. status: 2,
  1341. desc: "获取系统剪贴板的内容",
  1342. url: {
  1343. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/clipboard/wx.getClipboardData.html",
  1344. alipay: ""
  1345. },
  1346. body: {}
  1347. },
  1348. offNetworkStatusChange: {
  1349. status: 0,
  1350. desc: "取消监听网络状态变化事件,参数为空,则取消所有的事件监听",
  1351. url: {
  1352. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/network/wx.offNetworkStatusChange.html",
  1353. alipay: "https://opendocs.alipay.com/mini/api/gxpg1w"
  1354. },
  1355. body: {}
  1356. },
  1357. offUserCaptureScreen: {
  1358. status: 0,
  1359. desc: "用户主动截屏事件。取消事件监听",
  1360. url: {
  1361. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/screen/wx.offUserCaptureScreen.html",
  1362. alipay: "https://opendocs.alipay.com/mini/api/umdxbg"
  1363. },
  1364. body: {}
  1365. },
  1366. offDeviceMotionChange: {
  1367. status: 2,
  1368. desc: "取消监听设备方向变化事件,参数为空,则取消所有的事件监听",
  1369. url: {
  1370. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/motion/wx.offDeviceMotionChange.html",
  1371. alipay: ""
  1372. },
  1373. body: {}
  1374. },
  1375. offMemoryWarning: {
  1376. status: 0,
  1377. desc: "取消监听内存不足告警事件",
  1378. url: {
  1379. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/device/performance/wx.offMemoryWarning.html",
  1380. alipay: "https://opendocs.alipay.com/mini/api/hszexr"
  1381. },
  1382. body: {}
  1383. },
  1384. getExtConfig: {
  1385. status: 2,
  1386. desc: "获取第三方平台自定义的数据字段。",
  1387. url: {
  1388. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ext/wx.getExtConfig.html",
  1389. alipay: ""
  1390. },
  1391. body: {}
  1392. },
  1393. getExtConfigSync: {
  1394. status: 2,
  1395. desc: "wx.getExtConfig 的同步版本。",
  1396. url: {
  1397. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ext/wx.getExtConfigSync.html",
  1398. alipay: ""
  1399. },
  1400. body: {}
  1401. },
  1402. saveFile: {
  1403. status: 0,
  1404. desc: "保存文件到本地",
  1405. url: {
  1406. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.saveFile.html",
  1407. alipay: "https://docs.alipay.com/mini/api/xbll1q"
  1408. },
  1409. body: {
  1410. msg: "封装后完全支持"
  1411. }
  1412. },
  1413. removeSavedFile: {
  1414. status: 0,
  1415. desc: "删除本地缓存文件",
  1416. url: {
  1417. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.removeSavedFile.html",
  1418. alipay: "https://docs.alipay.com/mini/api/dgi1fr"
  1419. },
  1420. body: {
  1421. msg: "封装后完全支持"
  1422. }
  1423. },
  1424. openDocument: {
  1425. status: 2,
  1426. desc: "新开页面打开文档",
  1427. url: {
  1428. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.openDocument.html",
  1429. alipay: ""
  1430. },
  1431. body: {}
  1432. },
  1433. getSavedFileList: {
  1434. status: 0,
  1435. desc: "获取保存的所有文件",
  1436. url: {
  1437. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getSavedFileList.html",
  1438. alipay: "https://docs.alipay.com/mini/api/cgohg1"
  1439. },
  1440. body: {
  1441. msg: "封装后完全支持"
  1442. }
  1443. },
  1444. getSavedFileInfo: {
  1445. status: 0,
  1446. desc: "获取保存的文件信息",
  1447. url: {
  1448. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getSavedFileInfo.html",
  1449. alipay: "https://docs.alipay.com/mini/api/qrx6ze"
  1450. },
  1451. body: {
  1452. msg: "封装后支持"
  1453. }
  1454. },
  1455. getFileSystemManager: {
  1456. status: 2,
  1457. desc: "获取全局唯一的文件管理器",
  1458. url: {
  1459. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getFileSystemManager.html",
  1460. alipay: ""
  1461. },
  1462. body: {}
  1463. },
  1464. getFileInfo: {
  1465. status: 0,
  1466. desc: "获取文件信息",
  1467. url: {
  1468. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.getFileInfo.html",
  1469. alipay: "https://docs.alipay.com/mini/api/file"
  1470. },
  1471. body: {
  1472. msg: "封装后完全支持"
  1473. }
  1474. },
  1475. saveFileToDisk: {
  1476. status: 2,
  1477. desc: "保存文件系统的文件到用户磁盘,仅在 PC 端支持",
  1478. url: {
  1479. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/file/wx.saveFileToDisk.html",
  1480. alipay: ""
  1481. },
  1482. body: {}
  1483. },
  1484. openLocation: {
  1485. status: 0,
  1486. desc: "打开位置",
  1487. url: {
  1488. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.openLocation.html",
  1489. alipay: "https://docs.alipay.com/mini/api/as9kin"
  1490. },
  1491. body: {}
  1492. },
  1493. getLocation: {
  1494. status: 1,
  1495. desc: "获取位置",
  1496. url: {
  1497. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.getLocation.html",
  1498. alipay: "https://docs.alipay.com/mini/api/mkxuqd"
  1499. },
  1500. body: {
  1501. msg: "参数缺失, 参数type的取值/默认值差异, 返回值缺失/差异",
  1502. params: {
  1503. props: {
  1504. altitude: {
  1505. type: 0,
  1506. desc: "传入 true 会返回高度信息,由于获取高度需要较高精确度,会减慢接口返回速度"
  1507. },
  1508. type的取值: {
  1509. type: 4,
  1510. desc: "wx: 默认值wgs84, alipay: 默认值0"
  1511. }
  1512. }
  1513. },
  1514. returnValue: {
  1515. props: {
  1516. speed: {
  1517. type: 0,
  1518. desc: "速度,单位 m/s"
  1519. },
  1520. altitude: {
  1521. type: 0,
  1522. desc: "高度,单位 m"
  1523. },
  1524. verticalAccuracy: {
  1525. type: 0,
  1526. desc: "垂直精度,单位 m(Android 无法获取,返回 0)"
  1527. },
  1528. error返回值差异: {
  1529. type: 3,
  1530. desc: "app未授权定位:alipay返回错误码11, wx返回errMsg:'getLocation:fail 1', app授权,小程序弹框询问权限时拒绝:alipay返回错误码2001;wx返回errMsg: “getLocation:fail authorize no response”"
  1531. }
  1532. }
  1533. }
  1534. }
  1535. },
  1536. chooseLocation: {
  1537. status: 0,
  1538. desc: "打开地图选择位置",
  1539. url: {
  1540. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.chooseLocation.html",
  1541. alipay: "https://docs.alipay.com/mini/api/location#a-namesnvqutamychooselocation"
  1542. },
  1543. body: {}
  1544. },
  1545. stopLocationUpdate: {
  1546. status: 2,
  1547. desc: "关闭监听实时位置变化,前后台都停止消息接收",
  1548. url: {
  1549. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.stopLocationUpdate.html",
  1550. alipay: ""
  1551. },
  1552. body: {}
  1553. },
  1554. startLocationUpdateBackground: {
  1555. status: 2,
  1556. desc: "开启小程序进入前后台时均接收位置消息,需引导用户开启授权",
  1557. url: {
  1558. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdateBackground.html",
  1559. alipay: ""
  1560. },
  1561. body: {}
  1562. },
  1563. startLocationUpdate: {
  1564. status: 2,
  1565. desc: "开启小程序进入前台时接收位置消息",
  1566. url: {
  1567. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.startLocationUpdate.html",
  1568. alipay: ""
  1569. },
  1570. body: {}
  1571. },
  1572. onLocationChange: {
  1573. status: 2,
  1574. desc: "监听实时地理位置变化事件",
  1575. url: {
  1576. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.onLocationChange.html",
  1577. alipay: ""
  1578. },
  1579. body: {}
  1580. },
  1581. offLocationChange: {
  1582. status: 2,
  1583. desc: "取消监听实时地理位置变化事件",
  1584. url: {
  1585. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/location/wx.offLocationChange.html",
  1586. alipay: ""
  1587. },
  1588. body: {}
  1589. },
  1590. createMapContext: {
  1591. status: 1,
  1592. desc: "创建 map 上下文 MapContext 对象",
  1593. url: {
  1594. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/map/wx.createMapContext.html",
  1595. alipay: "https://docs.alipay.com/mini/api/ui-map"
  1596. },
  1597. body: {
  1598. msg: "返回值对象方法缺失",
  1599. returnValue: {
  1600. props: {
  1601. getRegion: {
  1602. type: 0,
  1603. desc: "获取当前地图的视野范围"
  1604. },
  1605. getScale: {
  1606. type: 0,
  1607. desc: "获取当前地图的缩放级别"
  1608. },
  1609. includePoints: {
  1610. type: 0,
  1611. desc: "缩放视野展示所有经纬度"
  1612. }
  1613. }
  1614. }
  1615. }
  1616. },
  1617. saveImageToPhotosAlbum: {
  1618. status: 0,
  1619. desc: "保存图片到系统相册不支持网络图片路径",
  1620. url: {
  1621. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.saveImageToPhotosAlbum.html",
  1622. alipay: "https://docs.alipay.com/mini/api/izfoiz"
  1623. },
  1624. body: {
  1625. msg: "完全支持"
  1626. }
  1627. },
  1628. previewImage: {
  1629. status: 0,
  1630. desc: "在新页面中全屏预览图片",
  1631. url: {
  1632. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.previewImage.html",
  1633. alipay: "https://docs.alipay.com/mini/api/eei0av"
  1634. },
  1635. body: {}
  1636. },
  1637. getImageInfo: {
  1638. status: 0,
  1639. desc: "获取图片信息",
  1640. url: {
  1641. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.getImageInfo.html",
  1642. alipay: "https://docs.alipay.com/mini/api/yv9n6t"
  1643. },
  1644. body: {}
  1645. },
  1646. compressImage: {
  1647. status: 0,
  1648. desc: "压缩图片接口,可选压缩质量",
  1649. url: {
  1650. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.compressImage.html",
  1651. alipay: "https://docs.alipay.com/mini/api/ehndze"
  1652. },
  1653. body: {
  1654. msg: "封装后可完全支持"
  1655. }
  1656. },
  1657. chooseMessageFile: {
  1658. status: 2,
  1659. desc: "从客户端会话选择文件",
  1660. url: {
  1661. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseMessageFile.html",
  1662. alipay: ""
  1663. },
  1664. body: {}
  1665. },
  1666. chooseImage: {
  1667. status: 1,
  1668. desc: "从本地相册选择图片或使用相机拍照",
  1669. url: {
  1670. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.chooseImage.html",
  1671. alipay: "https://docs.alipay.com/mini/api/media-image#a-nameeh9ddfamychooseimage"
  1672. },
  1673. body: {
  1674. msg: "返回值属性缺失",
  1675. returnValue: {
  1676. props: {
  1677. tempFiles: {
  1678. type: 0,
  1679. desc: "图片的本地临时文件列表"
  1680. }
  1681. }
  1682. }
  1683. }
  1684. },
  1685. saveVideoToPhotosAlbum: {
  1686. status: 0,
  1687. desc: "保存视频到系统相册",
  1688. url: {
  1689. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.saveVideoToPhotosAlbum.html",
  1690. alipay: ""
  1691. },
  1692. body: {}
  1693. },
  1694. createVideoContext: {
  1695. status: 1,
  1696. desc: "创建 video 上下文 VideoContext 对象",
  1697. url: {
  1698. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.createVideoContext.html",
  1699. alipay: ""
  1700. },
  1701. body: {
  1702. msg: "返回值方法缺失",
  1703. returnValue: {
  1704. props: {
  1705. sendDanmu: {
  1706. type: 0,
  1707. desc: "发送弹幕"
  1708. }
  1709. }
  1710. }
  1711. }
  1712. },
  1713. chooseVideo: {
  1714. status: 0,
  1715. desc: "拍摄视频或从手机相册中选视频",
  1716. url: {
  1717. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseVideo.html",
  1718. alipay: ""
  1719. },
  1720. body: {}
  1721. },
  1722. stopVoice: {
  1723. status: 0,
  1724. desc: "结束播放语音",
  1725. url: {
  1726. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.stopVoice.html",
  1727. alipay: ""
  1728. },
  1729. body: {}
  1730. },
  1731. setInnerAudioOption: {
  1732. status: 2,
  1733. desc: "设置 InnerAudioContext 的播放选项",
  1734. url: {
  1735. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.setInnerAudioOption.html",
  1736. alipay: ""
  1737. },
  1738. body: {}
  1739. },
  1740. playVoice: {
  1741. status: 0,
  1742. desc: "开始播放语音",
  1743. url: {
  1744. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.playVoice.html",
  1745. alipay: ""
  1746. },
  1747. body: {}
  1748. },
  1749. pauseVoice: {
  1750. status: 0,
  1751. desc: "暂停正在播放的语音",
  1752. url: {
  1753. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.pauseVoice.html",
  1754. alipay: ""
  1755. },
  1756. body: {}
  1757. },
  1758. getAvailableAudioSources: {
  1759. status: 2,
  1760. desc: "https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.getAvailableAudioSources.html",
  1761. url: {
  1762. wechat: ""
  1763. },
  1764. body: {}
  1765. },
  1766. createInnerAudioContext: {
  1767. status: 2,
  1768. desc: "创建内部 audio 上下文 InnerAudioContext 对象",
  1769. url: {
  1770. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createInnerAudioContext.html",
  1771. alipay: ""
  1772. },
  1773. body: {}
  1774. },
  1775. createAudioContext: {
  1776. status: 0,
  1777. desc: "创建 audio 上下文 AudioContext 对象",
  1778. url: {
  1779. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/audio/wx.createAudioContext.html",
  1780. alipay: ""
  1781. },
  1782. body: {}
  1783. },
  1784. stopBackgroundAudio: {
  1785. status: 2,
  1786. desc: "停止播放音乐",
  1787. url: {
  1788. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.stopBackgroundAudio.html",
  1789. alipay: ""
  1790. },
  1791. body: {}
  1792. },
  1793. seekBackgroundAudio: {
  1794. status: 2,
  1795. desc: "控制音乐播放进度",
  1796. url: {
  1797. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.seekBackgroundAudio.html",
  1798. alipay: ""
  1799. },
  1800. body: {}
  1801. },
  1802. playBackgroundAudio: {
  1803. status: 2,
  1804. desc: "使用后台播放器播放音乐",
  1805. url: {
  1806. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.playBackgroundAudio.html",
  1807. alipay: ""
  1808. },
  1809. body: {}
  1810. },
  1811. pauseBackgroundAudio: {
  1812. status: 2,
  1813. desc: "暂停播放音乐",
  1814. url: {
  1815. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.pauseBackgroundAudio.html",
  1816. alipay: ""
  1817. },
  1818. body: {}
  1819. },
  1820. onBackgroundAudioStop: {
  1821. status: 2,
  1822. desc: "监听音乐停止事件",
  1823. url: {
  1824. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioStop.html",
  1825. alipay: ""
  1826. },
  1827. body: {}
  1828. },
  1829. onBackgroundAudioPlay: {
  1830. status: 2,
  1831. desc: "监听音乐播放事件",
  1832. url: {
  1833. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioPlay.html",
  1834. alipay: ""
  1835. },
  1836. body: {}
  1837. },
  1838. onBackgroundAudioPause: {
  1839. status: 2,
  1840. desc: "监听音乐暂停事件",
  1841. url: {
  1842. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.onBackgroundAudioPause.html",
  1843. alipay: ""
  1844. },
  1845. body: {}
  1846. },
  1847. getBackgroundAudioPlayerState: {
  1848. status: 2,
  1849. desc: "获取后台音乐播放状态",
  1850. url: {
  1851. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.getBackgroundAudioPlayerState.html",
  1852. alipay: ""
  1853. },
  1854. body: {}
  1855. },
  1856. getBackgroundAudioManager: {
  1857. status: 2,
  1858. desc: "获取全局唯一的背景音频管理器",
  1859. url: {
  1860. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/background-audio/wx.getBackgroundAudioManager.html",
  1861. alipay: ""
  1862. },
  1863. body: {}
  1864. },
  1865. createLivePusherContext: {
  1866. status: 2,
  1867. desc: "创建 live-pusher 上下文 LivePusherContext 对象",
  1868. url: {
  1869. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/live/wx.createLivePusherContext.html",
  1870. alipay: ""
  1871. },
  1872. body: {}
  1873. },
  1874. createLivePlayerContext: {
  1875. status: 2,
  1876. desc: "创建 live-player 上下文 LivePlayerContext 对象",
  1877. url: {
  1878. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/live/wx.createLivePlayerContext.html",
  1879. alipay: ""
  1880. },
  1881. body: {}
  1882. },
  1883. stopRecord: {
  1884. status: 0,
  1885. desc: "停止录音",
  1886. url: {
  1887. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/wx.stopRecord.html",
  1888. alipay: ""
  1889. },
  1890. body: {}
  1891. },
  1892. startRecord: {
  1893. status: 0,
  1894. desc: "开始录音",
  1895. url: {
  1896. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/wx.startRecord.html",
  1897. alipay: ""
  1898. },
  1899. body: {}
  1900. },
  1901. getRecorderManager: {
  1902. status: 1,
  1903. desc: "获取全局唯一的录音管理器 RecorderManager",
  1904. url: {
  1905. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/recorder/wx.getRecorderManager.html",
  1906. alipay: ""
  1907. },
  1908. body: {
  1909. msg: "返回值方法缺失",
  1910. returnValue: {
  1911. props: {
  1912. pause: {
  1913. type: 0,
  1914. desc: "暂停录音"
  1915. },
  1916. resume: {
  1917. type: 0,
  1918. desc: "继续录音"
  1919. },
  1920. onpause: {
  1921. type: 0,
  1922. desc: "监听录音暂停事件"
  1923. },
  1924. onresume: {
  1925. type: 0,
  1926. desc: "监听录音继续事件"
  1927. },
  1928. onFrameRecorded: {
  1929. type: 0,
  1930. desc: "监听已录制完指定帧大小的文件事件。如果设置了 frameSize,则会回调此事件"
  1931. },
  1932. onInterruptionEnd: {
  1933. type: 0,
  1934. desc: "监听录音中断结束事件。在收到 interruptionBegin 事件之后,小程序内所有录音会暂停,收到此事件之后才可再次录音成功"
  1935. },
  1936. onInterruptionBegin: {
  1937. type: 0,
  1938. desc: "监听录音因为受到系统占用而被中断开始事件。以下场景会触发此事件:微信语音聊天、微信视频聊天。此事件触发后,录音会被暂停。pause 事件在此事件后触发"
  1939. }
  1940. }
  1941. }
  1942. }
  1943. },
  1944. previewMedia: {
  1945. status: 2,
  1946. desc: "预览图片和视频",
  1947. url: {
  1948. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/image/wx.previewMedia.html",
  1949. alipay: ""
  1950. },
  1951. body: {}
  1952. },
  1953. openVideoEditor: {
  1954. status: 2,
  1955. desc: "打开视频编辑器",
  1956. url: {
  1957. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.openVideoEditor.html",
  1958. alipay: ""
  1959. },
  1960. body: {}
  1961. },
  1962. getVideoInfo: {
  1963. status: 2,
  1964. desc: "获取视频详细信息",
  1965. url: {
  1966. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.getVideoInfo.html",
  1967. alipay: ""
  1968. },
  1969. body: {}
  1970. },
  1971. compressVideo: {
  1972. status: 2,
  1973. desc: "压缩视频",
  1974. url: {
  1975. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.compressVideo.html",
  1976. alipay: ""
  1977. },
  1978. body: {}
  1979. },
  1980. chooseMedia: {
  1981. status: 2,
  1982. desc: "拍摄或从手机相册中选择图片或视频",
  1983. url: {
  1984. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video/wx.chooseMedia.html",
  1985. alipay: ""
  1986. },
  1987. body: {}
  1988. },
  1989. createMediaContainer: {
  1990. status: 2,
  1991. desc: "创建音视频处理容器,最终可将容器中的轨道合成一个视频",
  1992. url: {
  1993. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video-processing/wx.createMediaContainer.html",
  1994. alipay: ""
  1995. },
  1996. body: {}
  1997. },
  1998. updateVoIPChatMuteConfig: {
  1999. status: 2,
  2000. desc: "更新实时语音静音设置",
  2001. url: {
  2002. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.updateVoIPChatMuteConfig.html",
  2003. alipay: ""
  2004. },
  2005. body: {}
  2006. },
  2007. subscribeVoIPVideoMembers: {
  2008. status: 2,
  2009. desc: "订阅视频画面成员",
  2010. url: {
  2011. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.subscribeVoIPVideoMembers.html",
  2012. alipay: ""
  2013. },
  2014. body: {}
  2015. },
  2016. setEnable1v1Chat: {
  2017. status: 2,
  2018. desc: "开启双人通话",
  2019. url: {
  2020. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.setEnable1v1Chat.html",
  2021. alipay: ""
  2022. },
  2023. body: {}
  2024. },
  2025. onVoIPVideoMembersChanged: {
  2026. status: 2,
  2027. desc: "监听实时语音通话成员视频状态变化事件",
  2028. url: {
  2029. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPVideoMembersChanged.html",
  2030. alipay: ""
  2031. },
  2032. body: {}
  2033. },
  2034. onVoIPChatSpeakersChanged: {
  2035. status: 2,
  2036. desc: "监听实时语音通话成员通话状态变化事件",
  2037. url: {
  2038. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPChatSpeakersChanged.html",
  2039. alipay: ""
  2040. },
  2041. body: {}
  2042. },
  2043. onVoIPChatMembersChanged: {
  2044. status: 2,
  2045. desc: "监听实时语音通话成员在线状态变化事件",
  2046. url: {
  2047. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPChatMembersChanged.html",
  2048. alipay: ""
  2049. },
  2050. body: {}
  2051. },
  2052. onVoIPChatInterrupted: {
  2053. status: 2,
  2054. desc: "监听被动断开实时语音通话事件",
  2055. url: {
  2056. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.onVoIPChatInterrupted.html",
  2057. alipay: ""
  2058. },
  2059. body: {}
  2060. },
  2061. offVoIPVideoMembersChanged: {
  2062. status: 2,
  2063. desc: "取消监听实时语音通话成员视频状态变化事件",
  2064. url: {
  2065. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.offVoIPVideoMembersChanged.html",
  2066. alipay: ""
  2067. },
  2068. body: {}
  2069. },
  2070. offVoIPChatMembersChanged: {
  2071. status: 2,
  2072. desc: "取消监听实时语音通话成员在线状态变化事件",
  2073. url: {
  2074. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.offVoIPChatMembersChanged.html",
  2075. alipay: ""
  2076. },
  2077. body: {}
  2078. },
  2079. offVoIPChatInterrupted: {
  2080. status: 2,
  2081. desc: "取消监听被动断开实时语音通话事件",
  2082. url: {
  2083. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.offVoIPChatInterrupted.html",
  2084. alipay: ""
  2085. },
  2086. body: {}
  2087. },
  2088. joinVoIPChat: {
  2089. status: 2,
  2090. desc: "加入 (创建) 实时语音通话",
  2091. url: {
  2092. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.joinVoIPChat.html",
  2093. alipay: ""
  2094. },
  2095. body: {}
  2096. },
  2097. join1v1Chat: {
  2098. status: 2,
  2099. desc: "加入(创建)双人通话",
  2100. url: {
  2101. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.join1v1Chat.html",
  2102. alipay: ""
  2103. },
  2104. body: {}
  2105. },
  2106. exitVoIPChat: {
  2107. status: 2,
  2108. desc: "退出(销毁)实时语音通话",
  2109. url: {
  2110. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/voip/wx.exitVoIPChat.html",
  2111. alipay: ""
  2112. },
  2113. body: {}
  2114. },
  2115. createMediaRecorder: {
  2116. status: 2,
  2117. desc: "创建 WebGL 画面录制器",
  2118. url: {
  2119. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/media-recorder/wx.createMediaRecorder.html",
  2120. alipay: ""
  2121. },
  2122. body: {}
  2123. },
  2124. createVideoDecoder: {
  2125. status: 2,
  2126. desc: "创建视频解码器",
  2127. url: {
  2128. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/media/video-decoder/wx.createVideoDecoder.html",
  2129. alipay: ""
  2130. },
  2131. body: {}
  2132. },
  2133. request: {
  2134. status: 1,
  2135. desc: "发起 HTTPS 网络请求",
  2136. url: {
  2137. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/request/wx.request.html",
  2138. alipay: "https://docs.alipay.com/mini/api/owycmh"
  2139. },
  2140. body: {
  2141. msg: "入参参数名称差异/参数缺失/返回值名称差异",
  2142. params: {
  2143. props: {
  2144. header: {
  2145. type: 1,
  2146. desc: "设置请求的 header,header 中不能设置 Referer。content-type 默认为 application/json, wx: header, alipay: headers"
  2147. },
  2148. responseType: {
  2149. type: 0,
  2150. desc: "响应的数据类型, alipay缺失: responseType"
  2151. },
  2152. method合法值: {
  2153. type: 0,
  2154. desc: "OPTIONS,HEAD,PUT,DELETE,TRACE,CONNECT"
  2155. }
  2156. }
  2157. },
  2158. returnValue: {
  2159. props: {
  2160. statusCode: {
  2161. type: 1,
  2162. desc: "wx: statusCode, alipay: status"
  2163. },
  2164. header: {
  2165. type: 1,
  2166. desc: "wx: header, alipay: headers"
  2167. }
  2168. }
  2169. }
  2170. }
  2171. },
  2172. downloadFile: {
  2173. status: 1,
  2174. desc: "下载文件资源到本地",
  2175. url: {
  2176. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/download/wx.downloadFile.html",
  2177. alipay: "https://docs.alipay.com/mini/api/xr054r"
  2178. },
  2179. body: {
  2180. msg: "参数缺失, 返回值属性值/方法缺失, 返回值名称差异",
  2181. params: {
  2182. props: {
  2183. filePath: {
  2184. type: 0,
  2185. desc: "指定文件下载后存储的路径"
  2186. }
  2187. }
  2188. },
  2189. returnValue: {
  2190. props: {
  2191. tempFilePath: {
  2192. type: 1,
  2193. desc: "临时文件路径, wx: tempFilePath, alipay: apFilePath"
  2194. },
  2195. filePath: {
  2196. type: 0,
  2197. desc: "用户文件路径。传入 filePath 时会返回,跟传入的 filePath 一致"
  2198. },
  2199. statusCode: {
  2200. type: 0,
  2201. desc: "开发者服务器返回的 HTTP 状态码"
  2202. },
  2203. abort: {
  2204. type: 0,
  2205. desc: "中断下载任务"
  2206. },
  2207. offHeadersReceived: {
  2208. type: 0,
  2209. desc: "监听下载进度变化事件"
  2210. },
  2211. offProgressUpdate: {
  2212. type: 0,
  2213. desc: "取消监听下载进度变化事件"
  2214. },
  2215. onHeadersReceived: {
  2216. type: 0,
  2217. desc: "监听 HTTP Response Header 事件。会比请求完成事件更早"
  2218. },
  2219. onProgressUpdate: {
  2220. type: 0,
  2221. desc: "取消监听 HTTP Response Header 事件"
  2222. }
  2223. }
  2224. }
  2225. }
  2226. },
  2227. uploadFile: {
  2228. status: 1,
  2229. desc: "上传本地资源到开发者服务器",
  2230. url: {
  2231. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/upload/wx.uploadFile.html",
  2232. alipay: "https://docs.alipay.com/mini/api/kmq4hc"
  2233. },
  2234. body: {
  2235. msg: "参数名称差异, 返回值方法缺失",
  2236. params: {
  2237. props: {
  2238. name: {
  2239. type: 1,
  2240. desc: "文件对应的 key,开发者在服务端可以通过这个 key 获取文件的二进制内容, wx: name, alipay: fileName"
  2241. }
  2242. }
  2243. },
  2244. returnValue: {
  2245. props: {
  2246. abort: {
  2247. type: 0,
  2248. desc: "missing"
  2249. },
  2250. offHeadersReceived: {
  2251. type: 0,
  2252. desc: "missing"
  2253. },
  2254. offProgressUpdate: {
  2255. type: 0,
  2256. desc: "missing"
  2257. },
  2258. onHeadersReceived: {
  2259. type: 0,
  2260. desc: "missing"
  2261. },
  2262. onProgressUpdate: {
  2263. type: 0,
  2264. desc: "missing"
  2265. }
  2266. }
  2267. }
  2268. }
  2269. },
  2270. connectSocket: {
  2271. status: 1,
  2272. desc: "创建一个 WebSocket 的连接",
  2273. url: {
  2274. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.connectSocket.html",
  2275. alipay: "https://docs.alipay.com/mini/api/vx19c3"
  2276. },
  2277. body: {
  2278. msg: "参数缺失, 返回值缺失",
  2279. params: {
  2280. props: {
  2281. protocols: {
  2282. type: 0,
  2283. desc: "子协议数组"
  2284. },
  2285. tcpNoDelay: {
  2286. type: 0,
  2287. desc: "建立 TCP 连接的时候的 TCP_NODELAY 设置"
  2288. }
  2289. }
  2290. },
  2291. returnValue: {
  2292. props: {
  2293. close: {
  2294. type: 0,
  2295. desc: "missing"
  2296. },
  2297. cloonClosese: {
  2298. type: 0,
  2299. desc: "missing"
  2300. },
  2301. onError: {
  2302. type: 0,
  2303. desc: "missing"
  2304. },
  2305. onMessage: {
  2306. type: 0,
  2307. desc: "missing"
  2308. },
  2309. onOpen: {
  2310. type: 0,
  2311. desc: "missing"
  2312. },
  2313. send: {
  2314. type: 0,
  2315. desc: "missing"
  2316. }
  2317. }
  2318. }
  2319. }
  2320. },
  2321. onSocketOpen: {
  2322. status: 1,
  2323. desc: "监听WebSocket连接打开事件",
  2324. url: {
  2325. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.onSocketOpen.html",
  2326. alipay: "https://docs.alipay.com/mini/api/itm5og"
  2327. },
  2328. body: {
  2329. msg: "返回值属性值缺失",
  2330. returnValue: {
  2331. props: {
  2332. header: {
  2333. type: 0,
  2334. desc: "连接成功的 HTTP 响应 Header"
  2335. }
  2336. }
  2337. }
  2338. }
  2339. },
  2340. sendSocketMessage: {
  2341. status: 0,
  2342. desc: "通过 WebSocket 连接发送数据",
  2343. url: {
  2344. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.sendSocketMessage.html",
  2345. alipay: "https://docs.alipay.com/mini/api/mr91d1"
  2346. },
  2347. body: {}
  2348. },
  2349. onSocketMessage: {
  2350. status: 0,
  2351. desc: "监听WebSocket接受到服务器的消息事件",
  2352. url: {
  2353. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.onSocketMessage.html",
  2354. alipay: "https://docs.alipay.com/mini/api/gecnap"
  2355. },
  2356. body: {}
  2357. },
  2358. onSocketError: {
  2359. status: 0,
  2360. desc: "监听WebSocket错误",
  2361. url: {
  2362. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.onSocketError.html",
  2363. alipay: "https://docs.alipay.com/mini/api/giu3c2"
  2364. },
  2365. body: {}
  2366. },
  2367. onSocketClose: {
  2368. status: 0,
  2369. desc: "监听WebSocket关闭",
  2370. url: {
  2371. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.onSocketClose.html",
  2372. alipay: "https://docs.alipay.com/mini/api/foqk6g"
  2373. },
  2374. body: {}
  2375. },
  2376. closeSocket: {
  2377. status: 1,
  2378. desc: "关闭 WebSocket 连接",
  2379. url: {
  2380. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/websocket/wx.closeSocket.html",
  2381. alipay: "https://docs.alipay.com/mini/api/network"
  2382. },
  2383. body: {
  2384. msg: "参数缺失",
  2385. params: {
  2386. props: {
  2387. code: {
  2388. type: 0,
  2389. desc: "一个数字值表示关闭连接的状态号,表示连接被关闭的原因。"
  2390. },
  2391. reason: {
  2392. type: 0,
  2393. desc: "一个可读的字符串,表示连接被关闭的原因。这个字符串必须是不长于 123 字节的 UTF-8 文本(不是字符)"
  2394. }
  2395. }
  2396. }
  2397. }
  2398. },
  2399. stopLocalServiceDiscovery: {
  2400. status: 2,
  2401. desc: "停止搜索 mDNS 服务",
  2402. url: {
  2403. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.stopLocalServiceDiscovery.html",
  2404. alipay: ""
  2405. },
  2406. body: {}
  2407. },
  2408. startLocalServiceDiscovery: {
  2409. status: 2,
  2410. desc: "开始搜索局域网下的 mDNS 服务",
  2411. url: {
  2412. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.startLocalServiceDiscovery.html",
  2413. alipay: ""
  2414. },
  2415. body: {}
  2416. },
  2417. onLocalServiceResolveFail: {
  2418. status: 2,
  2419. desc: "监听 mDNS 服务解析失败的事件",
  2420. url: {
  2421. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.onLocalServiceResolveFail.html",
  2422. alipay: ""
  2423. },
  2424. body: {}
  2425. },
  2426. onLocalServiceLost: {
  2427. status: 2,
  2428. desc: "监听 mDNS 服务离开的事件",
  2429. url: {
  2430. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.onLocalServiceLost.html",
  2431. alipay: ""
  2432. },
  2433. body: {}
  2434. },
  2435. onLocalServiceFound: {
  2436. status: 2,
  2437. desc: "监听 mDNS 服务发现的事件",
  2438. url: {
  2439. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.onLocalServiceFound.html",
  2440. alipay: ""
  2441. },
  2442. body: {}
  2443. },
  2444. onLocalServiceDiscoveryStop: {
  2445. status: 2,
  2446. desc: "监听 mDNS 服务停止搜索的事件",
  2447. url: {
  2448. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.onLocalServiceDiscoveryStop.html",
  2449. alipay: ""
  2450. },
  2451. body: {}
  2452. },
  2453. offLocalServiceResolveFail: {
  2454. status: 2,
  2455. desc: "取消监听 mDNS 服务解析失败的事件",
  2456. url: {
  2457. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.offLocalServiceResolveFail.html",
  2458. alipay: ""
  2459. },
  2460. body: {}
  2461. },
  2462. offLocalServiceLost: {
  2463. status: 2,
  2464. desc: "取消监听 mDNS 服务离开的事件",
  2465. url: {
  2466. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.offLocalServiceLost.html",
  2467. alipay: ""
  2468. },
  2469. body: {}
  2470. },
  2471. offLocalServiceFound: {
  2472. status: 2,
  2473. desc: "取消监听 mDNS 服务发现的事件",
  2474. url: {
  2475. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.offLocalServiceFound.html",
  2476. alipay: ""
  2477. },
  2478. body: {}
  2479. },
  2480. offLocalServiceDiscoveryStop: {
  2481. status: 2,
  2482. desc: "取消监听 mDNS 服务停止搜索的事件",
  2483. url: {
  2484. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/mdns/wx.offLocalServiceDiscoveryStop.html",
  2485. alipay: ""
  2486. },
  2487. body: {}
  2488. },
  2489. createUDPSocket: {
  2490. status: 2,
  2491. desc: "创建一个 UDP Socket 实例",
  2492. url: {
  2493. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/network/udp/wx.createUDPSocket.html",
  2494. alipay: ""
  2495. },
  2496. body: {}
  2497. },
  2498. login: {
  2499. status: 0,
  2500. desc: "调用接口获取登录凭证(code)",
  2501. url: {
  2502. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.login.html",
  2503. alipay: "https://docs.alipay.com/mini/api/openapi-authorize"
  2504. },
  2505. body: {
  2506. msg: "封装后完全支持"
  2507. }
  2508. },
  2509. checkSession: {
  2510. status: 2,
  2511. desc: "检查登录态是否过期",
  2512. url: {
  2513. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/login/wx.checkSession.html",
  2514. alipay: ""
  2515. },
  2516. body: {}
  2517. },
  2518. navigateToMiniProgram: {
  2519. status: 0,
  2520. desc: "打开另一个小程序",
  2521. url: {
  2522. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/miniprogram-navigate/wx.navigateToMiniProgram.html",
  2523. alipay: "https://docs.alipay.com/mini/api/open-miniprogram"
  2524. },
  2525. body: {}
  2526. },
  2527. navigateBackMiniProgram: {
  2528. status: 0,
  2529. desc: "返回到上一个小程序",
  2530. url: {
  2531. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/miniprogram-navigate/wx.navigateBackMiniProgram.html",
  2532. alipay: "https://docs.alipay.com/mini/api/open-miniprogram"
  2533. },
  2534. body: {}
  2535. },
  2536. getAccountInfoSync: {
  2537. status: 2,
  2538. desc: "获取当前帐号信息",
  2539. url: {
  2540. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/account-info/wx.getAccountInfoSync.html",
  2541. alipay: ""
  2542. },
  2543. body: {}
  2544. },
  2545. getUserInfo: {
  2546. status: 1,
  2547. desc: "获取用户信息",
  2548. url: {
  2549. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/wx.getUserInfo.html",
  2550. alipay: "https://docs.alipay.com/mini/api/userinfo"
  2551. },
  2552. body: {
  2553. msg: "命名不同, 参数缺失, 返回值属性缺失",
  2554. params: {
  2555. props: {
  2556. getUserInfo: {
  2557. type: 1,
  2558. desc: "wx: getUserInfo, alipay: getAuthUserInfo"
  2559. },
  2560. withCredentials: {
  2561. type: 0,
  2562. desc: "是否带上登录态信息"
  2563. },
  2564. lang: {
  2565. type: 0,
  2566. desc: "显示用户信息的语言"
  2567. }
  2568. }
  2569. },
  2570. returnValue: {
  2571. props: {
  2572. userInfo: {
  2573. type: 0,
  2574. desc: "用户信息对象,不包含 openid 等敏感信息"
  2575. },
  2576. rawData: {
  2577. type: 0,
  2578. desc: "不包括敏感信息的原始数据字符串,用于计算签名"
  2579. },
  2580. signature: {
  2581. type: 0,
  2582. desc: "使用 sha1( rawData + sessionkey ) 得到字符串,用于校验用户信息"
  2583. },
  2584. encryptedData: {
  2585. type: 0,
  2586. desc: "包括敏感数据在内的完整用户信息的加密数据"
  2587. },
  2588. iv: {
  2589. type: 0,
  2590. desc: "加密算法的初始向量"
  2591. },
  2592. cloudID: {
  2593. type: 0,
  2594. desc: "敏感数据对应的云 ID,开通云开发的小程序才会返回,可通过云调用直接获取开放数据"
  2595. }
  2596. }
  2597. }
  2598. }
  2599. },
  2600. UserInfo: {
  2601. status: 2,
  2602. desc: "用户信息",
  2603. url: {
  2604. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/user-info/UserInfo.html",
  2605. alipay: ""
  2606. },
  2607. body: {}
  2608. },
  2609. reportMonitor: {
  2610. status: 2,
  2611. desc: "自定义业务数据监控上报接口",
  2612. url: {
  2613. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/report/wx.reportMonitor.html",
  2614. alipay: ""
  2615. },
  2616. body: {}
  2617. },
  2618. reportAnalytics: {
  2619. status: 0,
  2620. desc: "自定义分析数据上报接口",
  2621. url: {
  2622. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/data-analysis/wx.reportAnalytics.html",
  2623. alipay: "https://docs.alipay.com/mini/api/report"
  2624. },
  2625. body: {
  2626. msg: "封装后完全支持"
  2627. }
  2628. },
  2629. requestPayment: {
  2630. status: 2,
  2631. desc: "发起支付",
  2632. url: {
  2633. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/payment/wx.requestPayment.html",
  2634. alipay: ""
  2635. },
  2636. body: {
  2637. msg: "支付宝与微信支付功能差异较大,请参考支付宝支付文档做兼容处理",
  2638. params: {
  2639. props: {
  2640. timeStamp: {
  2641. type: 0,
  2642. desc: "时间戳,从 1970 年 1 月 1 日 00:00:00 至今的秒数,即当前的时间"
  2643. },
  2644. nonceStr: {
  2645. type: 0,
  2646. desc: "随机字符串,长度为32个字符以下"
  2647. },
  2648. "package": {
  2649. type: 0,
  2650. desc: "统一下单接口返回的 prepay_id 参数值"
  2651. },
  2652. signType: {
  2653. type: 0,
  2654. desc: "签名算法,应与后台下单时的值一致"
  2655. },
  2656. paySign: {
  2657. type: 0,
  2658. desc: "签名"
  2659. },
  2660. success: {
  2661. type: 7,
  2662. desc: "接口调用成功的回调函数"
  2663. },
  2664. fail: {
  2665. type: 7,
  2666. desc: "接口调用失败的回调函数"
  2667. },
  2668. complete: {
  2669. type: 7,
  2670. desc: "接口调用结束的回调函数"
  2671. }
  2672. }
  2673. }
  2674. }
  2675. },
  2676. authorize: {
  2677. status: 1,
  2678. desc: "提前向用户发起授权请求",
  2679. url: {
  2680. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/authorize/wx.authorize.html",
  2681. alipay: "https://docs.alipay.com/mini/api/openapi-authorize"
  2682. },
  2683. body: {
  2684. msg: "命名不同wx: authorize, alipay: getAuthCode, 参数差异",
  2685. params: {
  2686. props: {
  2687. scope: {
  2688. type: 1,
  2689. desc: "授权类型, wx: scope, alipay: scopes, 且取值不同"
  2690. }
  2691. }
  2692. }
  2693. }
  2694. },
  2695. openSetting: {
  2696. status: 0,
  2697. desc: "调起客户端小程序设置界面",
  2698. url: {
  2699. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/wx.openSetting.html",
  2700. alipay: "https://docs.alipay.com/mini/api/qflu8f"
  2701. },
  2702. body: {}
  2703. },
  2704. getSetting: {
  2705. status: 0,
  2706. desc: "获取用户的当前设置",
  2707. url: {
  2708. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/wx.getSetting.html",
  2709. alipay: "https://docs.alipay.com/mini/api/xmk3ml"
  2710. },
  2711. body: {}
  2712. },
  2713. AuthSetting: {
  2714. status: 2,
  2715. desc: "用户授权设置信息",
  2716. url: {
  2717. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/setting/AuthSetting.html",
  2718. alipay: ""
  2719. },
  2720. body: {}
  2721. },
  2722. chooseAddress: {
  2723. status: 1,
  2724. desc: "打开地图选择位置",
  2725. url: {
  2726. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/address/wx.chooseAddress.html",
  2727. alipay: "https://yuque.antfin-inc.com/mpaas-tiny-site/api/choose-address"
  2728. },
  2729. body: {
  2730. msg: "支付宝端需要在项目作出相应配置,并需要服务端的支持"
  2731. }
  2732. },
  2733. openCard: {
  2734. status: 1,
  2735. desc: "查看微信卡包中的卡券",
  2736. url: {
  2737. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/card/wx.openCard.html",
  2738. alipay: "https://docs.alipay.com/mini/api/qxxpsh"
  2739. },
  2740. body: {
  2741. msg: "命名不同wx: openCard, alipay: openCardList, 参数缺失",
  2742. params: {
  2743. props: {
  2744. cardList: {
  2745. type: 0,
  2746. desc: "需要打开的卡券列表"
  2747. },
  2748. success: {
  2749. type: 0,
  2750. desc: "接口调用成功的回调函数"
  2751. },
  2752. fail: {
  2753. type: 0,
  2754. desc: "接口调用失败的回调函数"
  2755. },
  2756. complete: {
  2757. type: 0,
  2758. desc: "接口调用结束的回调函数(调用成功、失败都会执行)"
  2759. }
  2760. }
  2761. }
  2762. }
  2763. },
  2764. addCard: {
  2765. status: 1,
  2766. desc: "添加卡券",
  2767. url: {
  2768. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/card/wx.addCard.html",
  2769. alipay: "https://docs.alipay.com/mini/api/add-card-auth"
  2770. },
  2771. body: {
  2772. msg: "命名不同wx: addCard, alipay: addCardAuth, 参数缺失, 返回值差异",
  2773. params: {
  2774. props: {
  2775. cardList: {
  2776. type: 0,
  2777. desc: "需要添加的卡券列表"
  2778. }
  2779. },
  2780. returnValue: {
  2781. props: {
  2782. cardList: {
  2783. type: 1,
  2784. desc: "wx: cardList Array.<Object>, alipay: result Object"
  2785. }
  2786. }
  2787. }
  2788. }
  2789. }
  2790. },
  2791. chooseInvoiceTitle: {
  2792. status: 2,
  2793. desc: "选择用户的发票抬头",
  2794. url: {
  2795. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/invoice/wx.chooseInvoiceTitle.html",
  2796. alipay: ""
  2797. },
  2798. body: {}
  2799. },
  2800. chooseInvoice: {
  2801. status: 2,
  2802. desc: "选择用户已有的发票",
  2803. url: {
  2804. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/invoice/wx.chooseInvoice.html",
  2805. alipay: ""
  2806. },
  2807. body: {}
  2808. },
  2809. startSoterAuthentication: {
  2810. status: 1,
  2811. desc: "开始 SOTER 生物认证",
  2812. url: {
  2813. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.startSoterAuthentication.html",
  2814. alipay: "https://docs.alipay.com/mini/api/alipay-face-verify"
  2815. },
  2816. body: {
  2817. msg: "命名不同wx: startSoterAuthentication, alipay: ap.faceVerify, 参数缺失",
  2818. params: {
  2819. props: {
  2820. requestAuthModes: {
  2821. type: 0,
  2822. desc: "请求使用的可接受的生物认证方式"
  2823. },
  2824. challenge: {
  2825. type: 0,
  2826. desc: "挑战因子"
  2827. },
  2828. authContent: {
  2829. type: 0,
  2830. desc: "验证描述,即识别过程中显示在界面上的对话框提示内容"
  2831. },
  2832. complete: {
  2833. type: 0,
  2834. desc: "接口调用结束的回调函数(调用成功、失败都会执行)"
  2835. }
  2836. }
  2837. }
  2838. }
  2839. },
  2840. checkIsSupportSoterAuthentication: {
  2841. status: 2,
  2842. desc: "获取本机支持的 SOTER 生物认证方式",
  2843. url: {
  2844. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSupportSoterAuthentication.html",
  2845. alipay: ""
  2846. },
  2847. body: {}
  2848. },
  2849. checkIsSoterEnrolledInDevice: {
  2850. status: 2,
  2851. desc: "获取设备内是否录入如指纹等生物信息的接口",
  2852. url: {
  2853. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/soter/wx.checkIsSoterEnrolledInDevice.html",
  2854. alipay: ""
  2855. },
  2856. body: {}
  2857. },
  2858. getWeRunData: {
  2859. status: 2,
  2860. desc: "获取用户过去三十天微信运动步数",
  2861. url: {
  2862. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/werun/wx.getWeRunData.html",
  2863. alipay: ""
  2864. },
  2865. body: {}
  2866. },
  2867. reportPerformance: {
  2868. status: 2,
  2869. desc: "小程序测速上报",
  2870. url: {
  2871. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/performance/wx.reportPerformance.html",
  2872. alipay: ""
  2873. },
  2874. body: {}
  2875. },
  2876. getPerformance: {
  2877. status: 2,
  2878. desc: "获取当前小程序性能相关的信息",
  2879. url: {
  2880. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/performance/wx.getPerformance.html",
  2881. alipay: ""
  2882. },
  2883. body: {}
  2884. },
  2885. requestSubscribeMessage: {
  2886. status: 2,
  2887. desc: "调起客户端小程序订阅消息界面,返回用户订阅消息的操作结果",
  2888. url: {
  2889. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/subscribe-message/wx.requestSubscribeMessage.html",
  2890. alipay: ""
  2891. },
  2892. body: {}
  2893. },
  2894. showRedPackage: {
  2895. status: 2,
  2896. desc: "拉取h5领取红包封面页",
  2897. url: {
  2898. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/redpackage/wx.showRedPackage.html",
  2899. alipay: ""
  2900. },
  2901. body: {}
  2902. },
  2903. getGroupEnterInfo: {
  2904. status: 2,
  2905. desc: "获取群工具小程序启动信息",
  2906. url: {
  2907. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/open-api/group/wx.getGroupEnterInfo.html",
  2908. alipay: ""
  2909. },
  2910. body: {}
  2911. },
  2912. switchTab: {
  2913. status: 0,
  2914. desc: "跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面",
  2915. url: {
  2916. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.switchTab.html",
  2917. alipay: "https://docs.alipay.com/mini/api/ui-tabbar"
  2918. },
  2919. body: {}
  2920. },
  2921. reLaunch: {
  2922. status: 1,
  2923. desc: "关闭所有页面,打开到应用内的某个页面",
  2924. url: {
  2925. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.reLaunch.html",
  2926. alipay: "https://docs.alipay.com/mini/api/hmn54z"
  2927. },
  2928. body: {
  2929. msg: "alipay: url 为 tabbar 页面时不支持传参"
  2930. }
  2931. },
  2932. redirectTo: {
  2933. status: 0,
  2934. desc: "关闭当前页面,跳转到应用内的某个页面。但是不允许跳转到 tabbar 页面",
  2935. url: {
  2936. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.redirectTo.html",
  2937. alipay: "https://docs.alipay.com/mini/api/fh18ky"
  2938. },
  2939. body: {}
  2940. },
  2941. navigateTo: {
  2942. status: 0,
  2943. desc: "保留当前页面,跳转到应用内的某个页面。但是不能跳到 tabbar 页面。使用 wx.navigateBack 可以返回到原页面。小程序中页面栈最多十层。",
  2944. url: {
  2945. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateTo.html",
  2946. alipay: "https://docs.alipay.com/mini/api/zwi8gx"
  2947. },
  2948. body: {}
  2949. },
  2950. navigateBack: {
  2951. status: 0,
  2952. desc: "关闭当前页面,返回上一页面或多级页面",
  2953. url: {
  2954. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/route/wx.navigateBack.html",
  2955. alipay: "https://docs.alipay.com/mini/api/kc5zbx"
  2956. },
  2957. body: {}
  2958. },
  2959. updateShareMenu: {
  2960. status: 2,
  2961. desc: "更新转发属性",
  2962. url: {
  2963. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.updateShareMenu.html",
  2964. alipay: ""
  2965. },
  2966. body: {}
  2967. },
  2968. showShareMenu: {
  2969. status: 2,
  2970. desc: "显示当前页面的转发按钮",
  2971. url: {
  2972. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.showShareMenu.html",
  2973. alipay: ""
  2974. },
  2975. body: {}
  2976. },
  2977. hideShareMenu: {
  2978. status: 0,
  2979. desc: "隐藏转发按钮",
  2980. url: {
  2981. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.hideShareMenu.html",
  2982. alipay: "https://docs.alipay.com/mini/api/share_app#a-namev4x7pramyhidesharemenuobject"
  2983. },
  2984. body: {}
  2985. },
  2986. getShareInfo: {
  2987. status: 2,
  2988. desc: "获取转发详细信息",
  2989. url: {
  2990. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.getShareInfo.html",
  2991. alipay: ""
  2992. },
  2993. body: {}
  2994. },
  2995. authPrivateMessage: {
  2996. status: 2,
  2997. desc: "验证私密消息",
  2998. url: {
  2999. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/share/wx.authPrivateMessage.html",
  3000. alipay: ""
  3001. },
  3002. body: {}
  3003. },
  3004. setStorageSync: {
  3005. status: 0,
  3006. desc: "将数据存储在本地缓存中指定的 key 中",
  3007. url: {
  3008. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.setStorageSync.html",
  3009. alipay: "https://docs.alipay.com/mini/api/cog0du"
  3010. },
  3011. body: {
  3012. msg: "封装后完全支持"
  3013. }
  3014. },
  3015. setStorage: {
  3016. status: 0,
  3017. desc: "将数据存储在本地缓存中指定的 key 中异步接口",
  3018. url: {
  3019. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.setStorage.html",
  3020. alipay: "https://docs.alipay.com/mini/api/eocm6v"
  3021. },
  3022. body: {}
  3023. },
  3024. removeStorageSync: {
  3025. status: 0,
  3026. desc: "从本地缓存中同步移除指定 key",
  3027. url: {
  3028. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.removeStorageSync.html",
  3029. alipay: "https://docs.alipay.com/mini/api/ytfrk4"
  3030. },
  3031. body: {
  3032. msg: "封装后完全支持"
  3033. }
  3034. },
  3035. removeStorage: {
  3036. status: 0,
  3037. desc: "从本地缓存中移除指定 key",
  3038. url: {
  3039. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.removeStorage.html",
  3040. alipay: "https://docs.alipay.com/mini/api/of9hze"
  3041. },
  3042. body: {}
  3043. },
  3044. getStorageSync: {
  3045. status: 0,
  3046. desc: "获取缓存数据",
  3047. url: {
  3048. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorageSync.html",
  3049. alipay: "https://docs.alipay.com/mini/api/ox0wna"
  3050. },
  3051. body: {
  3052. msg: "封装后完全支持"
  3053. }
  3054. },
  3055. getStorageInfoSync: {
  3056. status: 0,
  3057. desc: "获取当前storage的相关信息",
  3058. url: {
  3059. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorageInfoSync.html",
  3060. alipay: "https://docs.alipay.com/mini/api/uw5rdl"
  3061. },
  3062. body: {}
  3063. },
  3064. getStorageInfo: {
  3065. status: 0,
  3066. desc: "异步获取当前storage的相关信息",
  3067. url: {
  3068. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorageInfo.html",
  3069. alipay: "https://docs.alipay.com/mini/api/zvmanq"
  3070. },
  3071. body: {}
  3072. },
  3073. getStorage: {
  3074. status: 1,
  3075. desc: "从本地缓存中异步获取指定 key 的内容",
  3076. url: {
  3077. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.getStorage.html",
  3078. alipay: "https://docs.alipay.com/mini/api/azfobl"
  3079. },
  3080. body: {
  3081. msg: "返回值的类型",
  3082. returnValue: {
  3083. props: {
  3084. data: {
  3085. type: 3,
  3086. desc: "key对应的内容, wx: any, alipay: Object/String"
  3087. }
  3088. }
  3089. }
  3090. }
  3091. },
  3092. clearStorageSync: {
  3093. status: 0,
  3094. desc: "同步清理本地数据缓存",
  3095. url: {
  3096. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.clearStorageSync.html",
  3097. alipay: "https://docs.alipay.com/mini/api/ulv85u"
  3098. },
  3099. body: {}
  3100. },
  3101. clearStorage: {
  3102. status: 0,
  3103. desc: "清理本地数据缓存",
  3104. url: {
  3105. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/wx.clearStorage.html",
  3106. alipay: "https://docs.alipay.com/mini/api/storage#a-nameaaulpuamyclearstorage"
  3107. },
  3108. body: {}
  3109. },
  3110. setBackgroundFetchToken: {
  3111. status: 2,
  3112. desc: "设置自定义登录态",
  3113. url: {
  3114. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.setBackgroundFetchToken.html",
  3115. alipay: ""
  3116. },
  3117. body: {}
  3118. },
  3119. onBackgroundFetchData: {
  3120. status: 2,
  3121. desc: "监听收到 backgroundFetch 数据时的回调",
  3122. url: {
  3123. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.onBackgroundFetchData.html",
  3124. alipay: ""
  3125. },
  3126. body: {}
  3127. },
  3128. getBackgroundFetchToken: {
  3129. status: 2,
  3130. desc: "获取设置过的自定义登录态",
  3131. url: {
  3132. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.getBackgroundFetchToken.html",
  3133. alipay: ""
  3134. },
  3135. body: {}
  3136. },
  3137. getBackgroundFetchData: {
  3138. status: 2,
  3139. desc: "拉取 backgroundFetch 客户端缓存数据",
  3140. url: {
  3141. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/storage/background-fetch/wx.getBackgroundFetchData.html",
  3142. alipay: ""
  3143. },
  3144. body: {}
  3145. },
  3146. createSelectorQuery: {
  3147. status: 1,
  3148. desc: "返回一个 SelectorQuery 对象实例",
  3149. url: {
  3150. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createSelectorQuery.html",
  3151. alipay: "https://docs.alipay.com/mini/api/selector-query"
  3152. },
  3153. body: {
  3154. msg: "返回值方法缺失",
  3155. returnValue: {
  3156. props: {
  3157. "in": {
  3158. type: 0,
  3159. desc: "将选择器的选取范围更改为自定义组件 component 内。(初始时,选择器仅选取页面范围的节点,不会选取任何自定义组件中的节点)"
  3160. }
  3161. }
  3162. }
  3163. }
  3164. },
  3165. createIntersectionObserver: {
  3166. status: 2,
  3167. desc: "创建并返回一个 IntersectionObserver 对象实例",
  3168. url: {
  3169. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/wxml/wx.createIntersectionObserver.html",
  3170. alipay: ""
  3171. },
  3172. body: {}
  3173. },
  3174. IntersectionObserver: {
  3175. status: 2,
  3176. desc: "IntersectionObserver 对象,用于推断某些节点是否可以被用户看见、有多大比例可以被用户看见",
  3177. url: {
  3178. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/wxml/IntersectionObserver.html",
  3179. alipay: ""
  3180. },
  3181. body: {}
  3182. },
  3183. NodesRef: {
  3184. status: 2,
  3185. desc: "用于获取 WXML 节点信息的对象",
  3186. url: {
  3187. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/wxml/NodesRef.html",
  3188. alipay: ""
  3189. },
  3190. body: {}
  3191. },
  3192. SelectorQuery: {
  3193. status: 0,
  3194. desc: "查询节点信息的对象",
  3195. url: {
  3196. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/wxml/SelectorQuery.html",
  3197. alipay: "https://docs.alipay.com/mini/api/selector-query"
  3198. },
  3199. body: {}
  3200. },
  3201. showToast: {
  3202. status: 1,
  3203. desc: "显示消息提示框",
  3204. url: {
  3205. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showToast.html",
  3206. alipay: "https://docs.alipay.com/mini/api/fhur8f"
  3207. },
  3208. body: {
  3209. msg: "入参参数差异/缺失",
  3210. params: {
  3211. props: {
  3212. title: {
  3213. type: 1,
  3214. desc: "提示的内容, wx: title, alipay: content"
  3215. },
  3216. icon: {
  3217. type: 1,
  3218. desc: "图标, wx: icon, alipay: type"
  3219. },
  3220. image: {
  3221. type: 0,
  3222. desc: "自定义图标的本地路径,image 的优先级高于 icon"
  3223. },
  3224. mask: {
  3225. type: 0,
  3226. desc: "是否显示透明蒙层,防止触摸穿透"
  3227. },
  3228. icon的合法值: {
  3229. type: 0,
  3230. desc: "显示加载图标,此时 title 文本最多显示 7 个汉字长度"
  3231. }
  3232. }
  3233. }
  3234. }
  3235. },
  3236. showModal: {
  3237. status: 1,
  3238. desc: "显示模态对话框",
  3239. url: {
  3240. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showModal.html",
  3241. alipay: "https://docs.alipay.com/mini/api/lt3uqc"
  3242. },
  3243. body: {
  3244. msg: "入参参数名称差异/参数缺失/返回值名称差异",
  3245. params: {
  3246. props: {
  3247. confirmText: {
  3248. type: 1,
  3249. desc: "确认按钮的文字,最多 4 个字符, wx: confirmText, alipay: confirmButtonText"
  3250. },
  3251. cancelText: {
  3252. type: 1,
  3253. desc: "取消按钮的文字,最多 4 个字符, wx: cancelText, alipay: cancelButtonText"
  3254. },
  3255. showCancel: {
  3256. type: 0,
  3257. desc: "是否显示取消按钮"
  3258. },
  3259. cancelColor: {
  3260. type: 0,
  3261. desc: "取消按钮的文字颜色,必须是 16 进制格式的颜色字符串"
  3262. },
  3263. confirmColor: {
  3264. type: 0,
  3265. desc: "确认按钮的文字颜色,必须是 16 进制格式的颜色字符串"
  3266. }
  3267. }
  3268. },
  3269. returnValue: {
  3270. props: {
  3271. confirm: {
  3272. type: 1,
  3273. desc: "wx: 为true时,表示用户点击了确定按钮, alipay: 点击confirm返回true,点击cancel返回false"
  3274. },
  3275. cancel: {
  3276. type: 1,
  3277. desc: "wx: 为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭)"
  3278. }
  3279. }
  3280. }
  3281. }
  3282. },
  3283. showLoading: {
  3284. status: 1,
  3285. desc: "显示 loading 提示框",
  3286. url: {
  3287. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showLoading.html",
  3288. alipay: "https://docs.alipay.com/mini/api/bm69kb"
  3289. },
  3290. body: {
  3291. msg: "入参参数名称差异/参数缺失",
  3292. params: {
  3293. props: {
  3294. title: {
  3295. type: 1,
  3296. desc: "提示的内容, wx: title, alipay: content"
  3297. },
  3298. mask: {
  3299. type: 0,
  3300. desc: "是否显示透明蒙层,防止触摸穿透"
  3301. }
  3302. }
  3303. }
  3304. }
  3305. },
  3306. showActionSheet: {
  3307. status: 1,
  3308. desc: "显示操作菜单",
  3309. url: {
  3310. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.showActionSheet.html",
  3311. alipay: "https://docs.alipay.com/mini/api/hr092g"
  3312. },
  3313. body: {
  3314. msg: "入参参数名称差异/参数缺失",
  3315. params: {
  3316. props: {
  3317. itemList: {
  3318. type: 1,
  3319. desc: "按钮的文字数组, wx: itemList(数组长度最大为6), alipay: items"
  3320. },
  3321. itemColor: {
  3322. type: 0,
  3323. desc: "按钮的文字颜色"
  3324. }
  3325. }
  3326. }
  3327. }
  3328. },
  3329. hideToast: {
  3330. status: 0,
  3331. desc: "隐藏消息提示框",
  3332. url: {
  3333. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideToast.html",
  3334. alipay: "https://docs.alipay.com/mini/api/iygd4e"
  3335. },
  3336. body: {}
  3337. },
  3338. hideLoading: {
  3339. status: 0,
  3340. desc: "隐藏 loading 提示框",
  3341. url: {
  3342. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.hideLoading.html",
  3343. alipay: "https://docs.alipay.com/mini/api/nzf540"
  3344. },
  3345. body: {}
  3346. },
  3347. showNavigationBarLoading: {
  3348. status: 0,
  3349. desc: "在当前页面显示导航条加载动画",
  3350. url: {
  3351. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.showNavigationBarLoading.html",
  3352. alipay: "https://docs.alipay.com/mini/api/lydg2a"
  3353. },
  3354. body: {}
  3355. },
  3356. setNavigationBarTitle: {
  3357. status: 0,
  3358. desc: "动态设置当前页面的标题",
  3359. url: {
  3360. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.setNavigationBarTitle.html",
  3361. alipay: "https://docs.alipay.com/mini/api/xwq8e6"
  3362. },
  3363. body: {}
  3364. },
  3365. setNavigationBarColor: {
  3366. status: 2,
  3367. desc: "设置页面导航条颜色",
  3368. url: {
  3369. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.setNavigationBarColor.html",
  3370. alipay: ""
  3371. },
  3372. body: {}
  3373. },
  3374. hideNavigationBarLoading: {
  3375. status: 0,
  3376. desc: "在当前页面隐藏导航条加载动画",
  3377. url: {
  3378. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideNavigationBarLoading.html",
  3379. alipay: "https://docs.alipay.com/mini/api/ncgsga"
  3380. },
  3381. body: {}
  3382. },
  3383. hideHomeButton: {
  3384. status: 1,
  3385. desc: "隐藏返回首页按钮",
  3386. url: {
  3387. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/navigation-bar/wx.hideHomeButton.html",
  3388. alipay: "https://docs.alipay.com/mini/api/ui-navigate"
  3389. },
  3390. body: {
  3391. msg: "封装后不支持回调",
  3392. params: {
  3393. props: {
  3394. success: {
  3395. type: 0,
  3396. desc: "接口调用成功的回调函数"
  3397. },
  3398. fail: {
  3399. type: 0,
  3400. desc: "接口调用失败的回调函数"
  3401. },
  3402. complete: {
  3403. type: 0,
  3404. desc: "接口调用结束的回调函数(调用成功、失败都会执行)"
  3405. }
  3406. }
  3407. }
  3408. }
  3409. },
  3410. setBackgroundTextStyle: {
  3411. status: 0,
  3412. desc: "动态设置下拉背景字体、loading 图的样式",
  3413. url: {
  3414. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/background/wx.setBackgroundTextStyle.html",
  3415. alipay: "https://docs.alipay.com/mini/api/aamqae"
  3416. },
  3417. body: {}
  3418. },
  3419. setBackgroundColor: {
  3420. status: 0,
  3421. desc: "动态设置窗口的背景色",
  3422. url: {
  3423. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/background/wx.setBackgroundColor.html",
  3424. alipay: "https://docs.alipay.com/mini/api/set-background#mysetBackgroundColor"
  3425. },
  3426. body: {}
  3427. },
  3428. showTabBarRedDot: {
  3429. status: 0,
  3430. desc: "显示tabBar某一项的右上角的红点",
  3431. url: {
  3432. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.showTabBarRedDot.html",
  3433. alipay: "https://docs.alipay.com/mini/api/dquxiq"
  3434. },
  3435. body: {}
  3436. },
  3437. showTabBar: {
  3438. status: 0,
  3439. desc: "显示 tabBar",
  3440. url: {
  3441. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.showTabBar.html",
  3442. alipay: "https://docs.alipay.com/mini/api/dpq5dh"
  3443. },
  3444. body: {}
  3445. },
  3446. setTabBarStyle: {
  3447. status: 0,
  3448. desc: "动态设置 tabBar 的整体样式",
  3449. url: {
  3450. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarStyle.html",
  3451. alipay: "https://docs.alipay.com/mini/api/wcf0sv"
  3452. },
  3453. body: {}
  3454. },
  3455. setTabBarItem: {
  3456. status: 0,
  3457. desc: "动态设置 tabBar 某一项的内容",
  3458. url: {
  3459. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarItem.html",
  3460. alipay: "https://docs.alipay.com/mini/api/zu37bk"
  3461. },
  3462. body: {}
  3463. },
  3464. setTabBarBadge: {
  3465. status: 0,
  3466. desc: "为 tabBar 某一项的右上角添加文本",
  3467. url: {
  3468. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.setTabBarBadge.html",
  3469. alipay: "https://docs.alipay.com/mini/api/qm7t3v"
  3470. },
  3471. body: {}
  3472. },
  3473. removeTabBarBadge: {
  3474. status: 0,
  3475. desc: "移除 tabBar 某一项右上角的文本",
  3476. url: {
  3477. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.removeTabBarBadge.html",
  3478. alipay: "https://docs.alipay.com/mini/api/lpbp5g"
  3479. },
  3480. body: {}
  3481. },
  3482. hideTabBarRedDot: {
  3483. status: 0,
  3484. desc: "隐藏 tabBar 某一项的右上角的红点",
  3485. url: {
  3486. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.hideTabBarRedDot.html",
  3487. alipay: "https://docs.alipay.com/mini/api/mg428a"
  3488. },
  3489. body: {}
  3490. },
  3491. hideTabBar: {
  3492. status: 0,
  3493. desc: "隐藏 tabBar",
  3494. url: {
  3495. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/tab-bar/wx.hideTabBar.html",
  3496. alipay: "https://docs.alipay.com/mini/api/at18z8"
  3497. },
  3498. body: {}
  3499. },
  3500. loadFontFace: {
  3501. status: 0,
  3502. desc: "动态加载网络字体",
  3503. url: {
  3504. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/font/wx.loadFontFace.html",
  3505. alipay: "https://docs.alipay.com/mini/api/ggawf0"
  3506. },
  3507. body: {}
  3508. },
  3509. stopPullDownRefresh: {
  3510. status: 0,
  3511. desc: "停止当前页面下拉刷新",
  3512. url: {
  3513. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/pull-down-refresh/wx.stopPullDownRefresh.html",
  3514. alipay: "https://docs.alipay.com/mini/api/pmhkbb"
  3515. },
  3516. body: {}
  3517. },
  3518. startPullDownRefresh: {
  3519. status: 0,
  3520. desc: "开始下拉刷新。调用后触发下拉刷新动画,效果与用户手动下拉刷新一致",
  3521. url: {
  3522. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/pull-down-refresh/wx.startPullDownRefresh.html",
  3523. alipay: "https://docs.alipay.com/mini/api/ui-pulldown"
  3524. },
  3525. body: {}
  3526. },
  3527. pageScrollTo: {
  3528. status: 1,
  3529. desc: "将页面滚动到目标位置",
  3530. url: {
  3531. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/scroll/wx.pageScrollTo.html",
  3532. alipay: "https://docs.alipay.com/mini/api/scroll#mypagescrollto"
  3533. },
  3534. body: {
  3535. msg: "参数缺失",
  3536. params: {
  3537. props: {
  3538. duration: {
  3539. type: 0,
  3540. desc: "滚动动画的时长,单位 ms"
  3541. }
  3542. }
  3543. }
  3544. }
  3545. },
  3546. createAnimation: {
  3547. status: 0,
  3548. desc: "创建一个动画实例 animation",
  3549. url: {
  3550. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/animation/wx.createAnimation.html",
  3551. alipay: "https://docs.alipay.com/mini/api/ui-animation#a-namen93ndhamycreateanimation"
  3552. },
  3553. body: {}
  3554. },
  3555. setTopBarText: {
  3556. status: 2,
  3557. desc: "动态设置置顶栏文字内容",
  3558. url: {
  3559. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/sticky/wx.setTopBarText.html",
  3560. alipay: ""
  3561. },
  3562. body: {}
  3563. },
  3564. nextTick: {
  3565. status: 2,
  3566. desc: "延迟一部分操作到下一个时间片再执行",
  3567. url: {
  3568. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/custom-component/wx.nextTick.html",
  3569. alipay: ""
  3570. },
  3571. body: {}
  3572. },
  3573. getMenuButtonBoundingClientRect: {
  3574. status: 2,
  3575. desc: "获取菜单按钮(右上角胶囊按钮)的布局位置信息",
  3576. url: {
  3577. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/menu/wx.getMenuButtonBoundingClientRect.html",
  3578. alipay: ""
  3579. },
  3580. body: {}
  3581. },
  3582. onWindowResize: {
  3583. status: 2,
  3584. desc: "监听窗口尺寸变化事件",
  3585. url: {
  3586. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.onWindowResize.html",
  3587. alipay: ""
  3588. },
  3589. body: {}
  3590. },
  3591. offWindowResize: {
  3592. status: 2,
  3593. desc: "取消监听窗口尺寸变化事件",
  3594. url: {
  3595. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.offWindowResize.html",
  3596. alipay: ""
  3597. },
  3598. body: {}
  3599. },
  3600. enableAlertBeforeUnload: {
  3601. status: 2,
  3602. desc: "开启小程序页面返回询问对话框",
  3603. url: {
  3604. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.enableAlertBeforeUnload.html",
  3605. alipay: ""
  3606. },
  3607. body: {}
  3608. },
  3609. disableAlertBeforeUnload: {
  3610. status: 2,
  3611. desc: "关闭小程序页面返回询问对话框",
  3612. url: {
  3613. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/interaction/wx.disableAlertBeforeUnload.html",
  3614. alipay: ""
  3615. },
  3616. body: {}
  3617. },
  3618. setWindowSize: {
  3619. status: 2,
  3620. desc: "设置窗口大小,该接口仅适用于 PC 平台",
  3621. url: {
  3622. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/window/wx.setWindowSize.html",
  3623. alipay: ""
  3624. },
  3625. body: {}
  3626. },
  3627. onKeyboardHeightChange: {
  3628. status: 2,
  3629. desc: "监听键盘高度变化",
  3630. url: {
  3631. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/keyboard/wx.onKeyboardHeightChange.html",
  3632. alipay: ""
  3633. },
  3634. body: {}
  3635. },
  3636. offKeyboardHeightChange: {
  3637. status: 2,
  3638. desc: "取消监听键盘高度变化事件",
  3639. url: {
  3640. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/keyboard/wx.offKeyboardHeightChange.html",
  3641. alipay: ""
  3642. },
  3643. body: {}
  3644. },
  3645. hideKeyboard: {
  3646. status: 0,
  3647. desc: "在input、textarea等focus拉起键盘之后,手动调用此接口收起键盘",
  3648. url: {
  3649. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/keyboard/wx.hideKeyboard.html",
  3650. alipay: ""
  3651. },
  3652. body: {
  3653. msg: "参数缺失",
  3654. params: {
  3655. props: {
  3656. success: {
  3657. type: 0,
  3658. desc: "接口调用成功的回调函数"
  3659. },
  3660. fail: {
  3661. type: 0,
  3662. desc: "接口调用失败的回调函数"
  3663. },
  3664. complete: {
  3665. type: 0,
  3666. desc: "接口调用结束的回调函数"
  3667. }
  3668. }
  3669. }
  3670. }
  3671. },
  3672. getSelectedTextRange: {
  3673. status: 2,
  3674. desc: "在input、textarea等focus之后,获取输入框的光标位置",
  3675. url: {
  3676. wechat: "https://developers.weixin.qq.com/miniprogram/dev/api/ui/keyboard/wx.getSelectedTextRange.html",
  3677. alipay: ""
  3678. },
  3679. body: {}
  3680. }
  3681. };
  3682. module.exports = infoObj;