mcya / vue-vux-init

vue-vux 项目初始化搭建
0 stars 0 forks source link

刘海屏配置 示例demo 仅供参考 #1

Open mcya opened 5 years ago

mcya commented 5 years ago

实战项目demo

{
    "@platforms": [
        "android",
        "iPhone",
        "iPad"
    ],
    "id": "xxxxxxxxx",/*应用的标识,创建应用时自动生成,勿手动修改*/
    "name": "xxxxxx",/*应用名称*/
    "version": {
        "name": "3.3.0",/*应用版本名称|||正式版本的跳跃一个版本打包*/
        "code": ""
    },
    "description": "",/*应用描述信息*/
    "icons": {
        "72": "icon.png"
    },
    "launch_path": "dist/index.html",/*应用的入口页面,默认为根目录下的index.html;支持网络地址,必须以http://或https://开头*/
    "developer": {
        "name": "",/*开发者名称*/
        "email": "",/*开发者邮箱地址*/
        "url": ""
    },
    "permissions": {
        "Accelerometer": {
            "description": "访问加速度感应器"
        },
        "Audio": {
            "description": "访问麦克风"
        },

        "Cache": {
            "description": "管理应用缓存"
        },
        "Camera": {
            "description": "访问摄像头"
        },
        "Console": {
            "description": "跟踪调试输出日志"
        },
        "Contacts": {
            "description": "访问系统联系人信息"
        },
        "Device": {
            "description": "访问设备信息"
        },
        "Downloader": {
            "description": "文件下载管理"
        },
        "Events": {
            "description": "应用扩展事件"
        },
        "File": {
            "description": "访问本地文件系统"
        },
        "Gallery": {
            "description": "访问系统相册"
        },
        "Geolocation": {
            "description": "访问位置信息"
        },
        "Invocation": {
            "description": "使用Native.js能力"
        },
        "Orientation": {
            "description": "访问方向感应器"
        },
        "Proximity": {
            "description": "访问距离感应器"
        },
        "Storage": {
            "description": "管理应用本地数据"
        },

        "Uploader": {
            "description": "管理文件上传任务"
        },
        "Runtime": {
            "description": "访问运行期环境"
        },
        "XMLHttpRequest": {
            "description": "跨域网络访问"
        },
        "Zip": {
            "description": "文件压缩与解压缩"
        },
        "Barcode": {
            "description": "管理二维码扫描插件"
        },
        "Maps": {
            "description": "管理地图插件"
        },
        "Speech": {
            "description": "管理语音识别插件"
        },
        "Webview": {
            "description": "窗口管理"
        },
        "NativeUI": {
            "description": "原生UI控件"
        },
        "Navigator": {
            "description": "浏览器信息"
        },
        "NativeObj": {
            "description": "原生对象"
        },
        "Messaging": {},"Push":{}
    },
    "plus": {
        "statusbar": {
            "immersed": true //开启沉浸式状态栏
        },
        "launchwebview": {
            "statusbar": {
                "background": "#51A7FE"
            }
        },
        "splashscreen": {
            "autoclose": true,/*是否自动关闭程序启动界面,true表示应用加载应用入口页面后自动关闭;false则需调plus.navigator.closeSplashscreen()关闭*/
            "waiting": true,
            "delay": "0"
        },
        "popGesture": "close",/*设置应用默认侧滑返回关闭Webview窗口,"none"为无侧滑返回功能,"hide"为侧滑隐藏Webview窗口。参考http://ask.dcloud.net.cn/article/102*/
        "runmode": "normal",/*应用的首次启动运行模式,可取liberate或normal,liberate模式在第一次启动时将解压应用资源(Android平台File API才可正常访问_www目录)*/
        "signature": "Sk9JTiBVUyBtYWlsdG86aHIyMDEzQGRjbG91ZC5pbw==",/*可选,保留给应用签名,暂不使用*/
        "distribute": {
            "plugins": {"push":{"igexin":{"appid":"JvM43IHEW19510Juq84FX2","appkey":"k7MEYAGXgE9iassz3zvqR7\n","appsecret":"uO3iNtePP69X4CGS89Wzs4"}},
                "maps": {
                    "amap": {
                        "appkey_ios": "4f9a30ceb9c90c0bd9660e0e874c7b3a",
                        "appkey_android": "18145d5b098de51ae99e0a99b2230d2e",
                        "description": ""
                    }
                }
            },
            "apple": {
                "appid": "",/*iOS应用标识,苹果开发网站申请的appid,如io.dcloud.HelloH5*/
                "mobileprovision": "",/*iOS应用打包配置文件*/
                "password": "",/*iOS应用打包个人证书导入密码*/
                "p12": "",/*iOS应用打包个人证书,打包配置文件关联的个人证书*/
                "devices": "universal",/*iOS应用支持的设备类型,可取值iphone/ipad/universal*/
                "frameworks": [],
                "UIBackgroundModes":["location"]/*iOS后台继续使用定位信息*/
                /*"UIReserveStatusbarOffset":false*/
            },
            "google": {
                /*"ImmersedStatusbar":true,*/
                "packagename": "",/*Android应用包名,如io.dcloud.HelloH5*/
                "keystore": "",/*Android应用打包使用的密钥库文件*/
                "password": "",/*Android应用打包使用密钥库中证书的密码*/
                "aliasname": "",/*Android应用打包使用密钥库中证书的别名*/
                "custompermissions": true,
                "permissions": ["<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>","<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>","<uses-permission android:name=\"android.permission.GET_TASKS\"/>","<uses-permission android:name=\"android.permission.VIBRATE\"/>","<uses-permission android:name=\"android.permission.READ_LOGS\"/>","<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>","<uses-feature android:name=\"android.hardware.camera.autofocus\"/>","<uses-permission android:name=\"android.permission.SYSTEM_ALERT_WINDOW\"/>","<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>","<uses-permission android:name=\"android.permission.READ_CALL_LOG\"/>","<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>","<uses-permission android:name=\"android.permission.RECEIVE_BOOT_COMPLETED\"/>","<uses-permission android:name=\"android.permission.CAMERA\"/>","<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>","<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>","<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>","<uses-permission android:name=\"android.permission.SEND_SMS\"/>","<uses-permission android:name=\"android.permission.INTERNET\"/>","<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>","<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>","<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>","<uses-permission android:name=\"android.permission.CALL_PHONE\"/>","<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>","<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>","<uses-feature android:name=\"android.hardware.camera\"/>","<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>","<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>","<uses-permission android:name=\"android.permission.RECEIVE_USER_PRESENT\"/>","<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>","<uses-permission android:name=\"android.permission.WRITE_SMS\"/>","<uses-permission android:name=\"android.permission.READ_SMS\"/>","<uses-permission android:name=\"android.permission.WRITE_CALL_LOG\"/>"]
            },
            "orientation": [
                "portrait-primary"
            ],/*应用支持的方向,portrait-primary:竖屏正方向;portrait-secondary:竖屏反方向;landscape-primary:横屏正方向;landscape-secondary:横屏反方向*/
            "icons": {
                "ios": {
                    "prerendered": true, /*应用图标是否已经高亮处理,在iOS6及以下设备上有效*/
                     /*应用图标,分辨率:512x512,用于自动生成各种尺寸程序图标*/
                    "iphone": {
                        "normal": "unpackage/res/icons/57x57.png", /*iPhone3/3GS程序图标,分辨率:57x57*/
                        "retina": "unpackage/res/icons/114x114.png", /*iPhone4程序图标,分辨率:114x114*/
                        "retina7": "unpackage/res/icons/120x120.png", /*iPhone4S/5/6程序图标,分辨率:120x120*/
                        "retina8": "unpackage/res/icons/180x180.png", /*iPhone6 Plus程序图标,分辨率:180x180*/
                        "spotlight-normal": "unpackage/res/icons/29x29.png", /*iPhone3/3GS Spotlight搜索程序图标,分辨率:29x29*/
                        "spotlight-retina": "unpackage/res/icons/58x58.png", /*iPhone4 Spotlight搜索程序图标,分辨率:58x58*/
                        "spotlight-retina7": "unpackage/res/icons/80x80.png", /*iPhone4S/5/6 Spotlight搜索程序图标,分辨率:80x80*/
                        "settings-normal": "unpackage/res/icons/29x29.png", /*iPhone4设置页面程序图标,分辨率:29x29*/
                        "settings-retina": "unpackage/res/icons/58x58.png", /*iPhone4S/5/6设置页面程序图标,分辨率:58x58*/
                        "settings-retina8": "unpackage/res/icons/87x87.png","spotlight@3x":"unpackage/res/icons/120x120.png","notification@2x":"unpackage/res/icons/40x40.png","notification@3x":"unpackage/res/icons/60x60.png"
                    },
                    "ipad": {
                        "normal": "unpackage/res/icons/72x72.png", /*iPad普通屏幕程序图标,分辨率:72x72*/
                        "retina": "unpackage/res/icons/144x144.png", /*iPad高分屏程序图标,分辨率:144x144*/
                        "normal7": "unpackage/res/icons/76x76.png", /*iPad iOS7程序图标,分辨率:76x76*/
                        "retina7": "unpackage/res/icons/152x152.png", /*iPad iOS7高分屏程序图标,分辨率:152x152*/
                        "spotlight-normal": "unpackage/res/icons/50x50.png", /*iPad Spotlight搜索程序图标,分辨率:50x50*/
                        "spotlight-retina": "unpackage/res/icons/100x100.png", /*iPad高分屏Spotlight搜索程序图标,分辨率:100x100*/
                        "spotlight-normal7": "unpackage/res/icons/40x40.png",/*iPad iOS7 Spotlight搜索程序图标,分辨率:40x40*/
                        "spotlight-retina7": "unpackage/res/icons/80x80.png",/*iPad iOS7高分屏Spotlight搜索程序图标,分辨率:80x80*/
                        "settings-normal": "unpackage/res/icons/29x29.png",/*iPad设置页面程序图标,分辨率:29x29*/
                        "settings-retina": "unpackage/res/icons/58x58.png","proapp@2x":"unpackage/res/icons/167x167.png","notification":"unpackage/res/icons/20x20.png","notification@2x":"unpackage/res/icons/40x40.png"
                    },"appstore":"unpackage/res/icons/1024x1024.png"
                },
                "android": {
                    "mdpi": "unpackage/res/icons/48x48.png", /*普通屏程序图标,分辨率:48x48*/
                    "ldpi": "unpackage/res/icons/48x48.png", /*大屏程序图标,分辨率:48x48*/
                    "hdpi": "unpackage/res/icons/72x72.png", /*高分屏程序图标,分辨率:72x72*/
                    "xhdpi": "unpackage/res/icons/96x96.png",/*720P高分屏程序图标,分辨率:96x96*/
                    "xxhdpi": "unpackage/res/icons/144x144.png",
                    "xxxhdpi": "unpackage/res/icons/192x192.png"
                }
            },
            "splashscreen": {
                "ios": {
                    "iphone": {
                        "default": "", /*iPhone3启动图片选,分辨率:320x480*/
                        /*3.5英寸设备(iPhone4)启动图片,分辨率:640x960*/
                        "retina40": "unpackage/res/startpage/640x1136.png",/*4.0 英寸设备(iPhone5/iPhone5s)启动图片,分辨率:640x1136*/
                        "retina47": "unpackage/res/startpage/750x1334.png",/*4.7 英寸设备(iPhone6)启动图片,分辨率:750x1334*/
                        /*5.5 英寸设备(iPhone6 Plus)启动图片,分辨率:1242x2208*/
                        "retina55l": "",
                        "retina55": "unpackage/res/startpage/1242x2208.png",
                        "retina35": "unpackage/res/startpage/640x960.png"
                    },
                    "ipad": {
                        "portrait": "unpackage/res/startpage/768x1004.png", /*iPad竖屏启动图片,分辨率:768x1004*/
                        "portrait-retina": "unpackage/res/startpage/1536x2008.png",/*iPad高分屏竖屏图片,分辨率:1536x2008*/
                        "landscape": "", /*iPad横屏启动图片,分辨率:1024x748*/
                        "landscape-retina": "", /*iPad高分屏横屏启动图片,分辨率:2048x1496*/
                        "portrait7": "unpackage/res/startpage/768x1024.png", /*iPad iOS7竖屏启动图片,分辨率:768x1024*/
                        "portrait-retina7": "unpackage/res/startpage/1536x2048.png",/*iPad iOS7高分屏竖屏图片,分辨率:1536x2048*/
                        "landscape7": ""
                    }
                },
                "android": {
                    "mdpi": "", /*普通屏启动图片,分辨率:240x282*/
                    "ldpi": "", /*大屏启动图片,分辨率:320x442*/
                    "hdpi": "unpackage/res/startpage/480x762.png", /*高分屏启动图片,分辨率:480x762*/
                    "xhdpi": "unpackage/res/startpage/720x1242.png", /*720P高分屏启动图片,分辨率:720x1242*/
                    "xxhdpi": "unpackage/res/startpage/1080x1882.png"
                }
            },
            "debug": false
        },"ads":{"rp":false,"splash":false,"push":false},"adid":"124065040506"
    },
    "dependencies": {
        "pages": {
            "index.html": {
                "resources": [
                    "static/lib/plus.js",
                    "static/js/app.bf7dac55c50ca998af42.js",
                    "static/js/manifest.08e42e4aa0e314d8bae6.js"
                ],
                "refer": [],
                "priority": 0
            },
            "index1.html": {
                "resources": [
                    "static/lib/plus.js"
                ],
                "refer": [],
                "priority": 0
            },
            "dist/index.html": {
                "resources": [
                    "dist/static/lib/plus.js",
                    "dist/static/qunee-min.js",
                    "dist/static/jquery.min.js",
                    "dist/static/graphs.js",
                    "dist/static/common.js",
                    "dist/static/lib/Update.js",
                    "dist/static/WritingPad.js"
                ],
                "refer": [],
                "priority": 0
            }
        },
        "idle": {
            "resources": [
                "static/js/19.57bdba3f0fe3ae512028.js.map",
                "static/js/15.2420befcf96e80921414.js.map",
                "static/js/0.5657a7a7e836ee8eef32.js.map",
                "static/js/18.7dd4aeb9da96e247381c.js"
            ]
        }
    },
    "unpackage":[
      "static/base.css",
      "static/swiper-3.4.2.min.js"
    ]
}
mcya commented 5 years ago
                "statusbar": {
            "immersed": true //开启沉浸式状态栏
        },
        "launchwebview": {
            "statusbar": {
                "background": "#51A7FE"
            }
        },
mcya commented 5 years ago

实战项目demo