config.js 6.4 KB
/* 项目配置.基于默认配置,可以通过
 http://www.example.com/PUBLIC_PATH/web_adapter/adapter.html
访问自己的 app.如有修改,请对应变换访问地址即可.

服务器静态部署目录 PUBLIC_PATH,默认为用户 appId
*/

/* ==================== 用户相关配置.可根据需要,灵活修改. ============= */
/* app 入口文件. */
var APP_INDEX_PATH = '/html/common/index_win.html'

/* ====================== 以下适配器相关配置,一般不需要修改.=================== */
/* 适配器入口文件. */
var WEB_ADAPTER_INDEX_PATH = 'web_adapter/adapter.html'

/* 适配器核心js文件. */
var WEB_ADAPTER_CORE_JS_PATH = 'web_adapter/script/adapter.js'

/* =================== 应用和模块相关信息.一般由 APICloud 服务器自动生成.============= */
var PUBLIC_PATH = '/A6079080424317/'

var APP_INFO = {
    appId: 'A6079080424317',
    version: '1.2.23',
    appVersion: '00.00.01',
    appName: '慈界医养'
}

var MODULES_INFO = [{
    "name": "aliPay",
    "class": "UZAliPay",
    "methods": ["pay", "config", "payOrder", "auth"]
}
    , {
        "name": "aMap",
        "class": "GDMap",
        "methods": ["open", "takeSnapshotInRect", "close", "show", "hide", "setRect", "getLocation", "stopLocation", "getCoordsFromName", "getNameFromCoords", "getDistance", "showUserLocation", "setTrackingMode", "setCenter", "getCenter", "setZoomLevel", "getZoomLevel", "setMapAttr", "setRotation", "getRotation", "setOverlook", "getOverlook", "setRegion", "getRegion", "setScaleBar", "setCompass", "setLogo", "isPolygonContainsPoint", "interconvertCoords", "addEventListener", "removeEventListener", "addAnnotations", "getAnnotationCoords", "setAnnotationCoords", "annotationExist", "setBubble", "popupBubble", "closeBubble", "addBillboard", "addMobileAnnotations", "moveAnnotation", "removeAnnotations", "addLine", "addArc", "addPolygon", "addCircle", "addImg", "addLocus", "removeOverlay", "searchRoute", "drawRoute", "removeRoute", "searchBusRoute", "drawBusRoute", "removeBusRoute", "autocomplete", "searchInCity", "searchNearby", "searchInPolygon", "getProvinces", "getMunicipalities", "getNationWide", "getAllCities", "getVersion", "downloadRegion", "isDownloading", "pauseDownload", "cancelAllDownload", "clearDisk", "checkNewestVersion", "reloadMap", "setWebBubble", "districtSearch", "isShowsIndoorMap", "showsIndoorMap", "isShowsIndoorMapControl", "showsIndoorMapControl", "indoorMapControlSize", "setIndoorMapControlOrigin", "setCurrentIndoorMapFloorIndex", "clearIndoorMapCache", "addWebBubbleListener", "removeWebBubbleListener", "addHeatMap", "refreshHeatMap", "addMultiPoint", "addMoveAnimation", "cancelMoveAnimation", "convertCoordinate", "processedTrace", "cancelProcessedTrace", "getCitiesByProvince"]
    }
    , {
        "name": "clipBoard",
        "class": "UZClipBoard",
        "methods": ["set", "get", "setListener", "removeListener"]
    }
    , {
        "name": "FNScanner",
        "class": "UZFNScanner",
        "methods": ["open", "openScanner", "openView", "closeView", "decodeImg", "encodeImg", "switchLight", "setFrame", "onPause", "onResume"]
    }
    , {
        "name": "mam",
        "class": "UZMAM",
        "methods": ["checkUpdate", "addEvent", "execCommand", "showToastAlert", "hideToastAlert"],
        "syncMethods": ["syncExecCommand"],
        "launchClassMethod": "launch"
    }
    , {
        "name": "photoBrowser",
        "class": "ACPhotoBrowser",
        "methods": ["open", "close", "show", "hide", "getIndex", "setIndex", "getImage", "setImage", "appendImage", "deleteImage", "clearCache"]
    }
    , {
        "name": "qq",
        "class": "UZQQ",
        "methods": ["installed", "login", "logout", "shareText", "shareImage", "shareNews", "shareMusic", "shareVideo", "getUserInfo"]
    }
    , {
        "name": "rongCloud2",
        "class": "RongCloud",
        "methods": [
            "init", "connect", "reconnect", "disconnect", "setConnectionStatusListener", "logout",
            "sendTextMessage", "sendImageMessage", "sendVoiceMessage", "sendLocationMessage",
            "sendRichContentMessage", "sendCommandNotificationMessage", "setOnReceiveMessageListener",
            "getConversationList", "getConversationListByCount", "getConversation", "removeConversation",
            "clearConversations", "setConversationToTop",
            "getConversationNotificationStatus", "setConversationNotificationStatus",
            "getLatestMessages", "getHistoryMessages", "getHistoryMessagesByObjectName",
            "deleteMessages", "clearMessages",
            "getTotalUnreadCount", "getUnreadCount", "getUnreadCountByConversationTypes",
            "setMessageReceivedStatus", "clearMessagesUnreadStatus",
            "setMessageExtra",
            "getTextMessageDraft", "saveTextMessageDraft", "clearTextMessageDraft",
            "createDiscussion", "getDiscussion", "setDiscussionName", "addMemberToDiscussion",
            "removeMemberFromDiscussion", "quitDiscussion", "setDiscussionInviteStatus",
            "syncGroup", "joinGroup", "quitGroup", "getMessageCount", "getTopConversationList", "getBlockedConversationList",
            "joinChatRoom", "quitChatRoom", "getConnectionStatus", "getRemoteHistoryMessages", "setMessageSentStatus", "getCurrentUserId", "addToBlacklist", "removeFromBlacklist", "getBlacklistStatus", "getBlacklist", "setNotificationQuietHours", "removeNotificationQuietHours", "getNotificationQuietHours", "sendCommandMessage", "disableLocalNotification", "startNativeSingleCall", "startNativeMultiCall", "startNativeCustomerService", "setUserInfoProvider", "refreshUserInfo", "startCustomerService", "stopCustomerService", "selectCustomerServiceGroup", "switchToHumanMode", "evaluateRobotCustomerService", "evaluateHumanCustomerService", "addTypingStatusListener", "sendTypingStatus"
        ],
        "launchClassMethod": "launch"
    }

    , {
        "name": "UICityList",
        "class": "UZUICityList",
        "methods": ["open", "close", "hide", "show"]
    }
    , {
        "name": "wx",
        "class": "UZWX",
        "methods": ["isInstalled", "shareText", "shareImage", "shareMusic", "shareVideo", "shareWebpage", "shareProgram", "launchMiniProgram", "auth", "getToken", "getUserInfo", "refreshToken"]
    }
    , {
        "name": "wxPay",
        "class": "UZWxPay",
        "methods": ["getToken", "getOrderId", "payOrder", "config", "pay"]
    }
    , {
        "name": "zhiChiSobot",
        "class": "ZCSobotServerAPI",
        "methods": ["startZhiChiSobot", "getUnReadMessage", "closeSobotChat"]
    }
]