array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } 111string(0) "" int(1) int(10) int(70) int(8640000) string(13) "likecs_art_db" array(1) { ["query"]=> array(1) { ["match_all"]=> object(stdClass)#32 (0) { } } } array(1) { ["createtime.keyword"]=> array(1) { ["order"]=> string(4) "desc" } } int(10) int(0) int(8640000) array(2) { ["docs"]=> array(0) { } ["count"]=> int(0) } uini-app运行钉钉小程序及发布钉钉小程序 - 爱码网

①首先用HBuilder X创建一个uini-app项目

uini-app运行钉钉小程序及发布钉钉小程序

②在项目模板根目录创建一个package.json, 它的内容为

{
    "uni-app": {
        "scripts": {  
            "mp-dingtalk": {   
                "title":"钉钉小程序",   
                "env": {   
                    "UNI_PLATFORM": "mp-alipay"   
                },  
                "define": {   
                    "MP-DINGTALK": true   
                }  
            }  
        }  
    }
}

uini-app运行钉钉小程序及发布钉钉小程序

③鼠标点击项目, 点击上方的运行 -- 运行钉钉小程序即可完成钉钉小程序的启动

uini-app运行钉钉小程序及发布钉钉小程序

④等待小程序的编译运行, 项目会自动生成一个unpackage的文件夹, unni-App会告诉你打包的具体路径,  之后会系统会打开钉钉开发工具, 你讲具体路径输入进去, 即可完成钉钉小程序的编译

uini-app运行钉钉小程序及发布钉钉小程序

相关文章: