义方快乐学堂8.0项目(移动端)
基础调用方法:
1.efunboxJS.upgradeApp(json);(应用自升级)
json:"{'title': '升级','type': '1','context': '1.修正登录异常\n2.xxxxxx','download_url':'url'}"
2.efunboxJS.closeApp();(关闭应用)
3.efunboxJS.WeChatLogin() ----call back js ---WeChatLoginSuccess(data)(微信登录)
4.efunboxJS.clickMusic(left,right);(点击音效 left,right是string类型:"1","1")
5.efunboxJS.toMiniProgram(programId,path);(programId:小程序id,path:跳转路径(首页传空)
支付调用方法:
1.WeChatPay(String json)(微信支付)
2.AliPay(String orderInfo) (支付宝支付)
播放调用方法
efunboxJS.playVideo(json,playindex, playtype);
样例 json:[{"videourl":"1","videoname":"name1","videoId":"321231","videoplaytime":"2000"},{"videourl":"1","videoname":"name1","videoId":"321231","videoplaytime":"2000"}]
playindex:0 (int类型)
playtype:0 (int类型,0=单独播放,播放完成直接关闭。1=单独循环播放。2=列表播放,播放完列表关闭)333