• h5和app交互

    /**

    * APP请求h5

    */

    callApp() {

    var that = this

    let systemPhone = uni.getSystemInfoSync(); //调用获取系统信息同步接口

                                    //app_room_info 方法名 

    if (systemPhone.platform == 'ios') {

    //和ios交互信息

    window.app_room_info =function (data) { 

                                                //具体业务逻辑操作

    }

    } else {

    window['app_room_info']=(data)=>{

                                                //具体业务逻辑操作

    }

    }

    },