打车软件-uniapp云打包后,cover-image不显示的原因
程序员文章站
2022-05-19 17:01:26
...
打车软件-uniapp云打包后,cover-image不显示的原因
uniapp中,当使用地图后,需要在地图上增加图标的,需要使用cover-image组件,在调试时候,是没有问题,可以正常显示,是需要在manifest.json中增加
写道
"app-plus" 下面增加
"runmode" : "liberate",
{
"name" : "满讯",
"appid" : "__UNI__70B4671",
"description" : "",
"versionName" : "1.0.1",
"versionCode" : 101,
"transformPx" : false,
"app-plus" : {
/* 5+App特有相关 */
"usingComponents" : true,
"runmode" : "liberate",
"nvueCompiler" : "uni-app",
"splashscreen" : {
"alwaysShowBeforeRender" : true,
"waiting" : false,
"autoclose" : true,
"delay" : 0
},
"compatible" : {
"ignoreVersion" : true //true表示忽略版本检查提示框,HBuilderX1.9.0及以上版本支持
},
"modules" : {
"Payment" : {},
"Maps" : {},
"Speech" : {},
"Push" : {}
},
/* 模块配置 */
"distribute" : {
/* 应用发布信息 */
"android" : {
/* android打包配置 */
"permissions" : [
"<uses-feature android:name=\"android.hardware.camera\"/>",
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_FINE_LOCATION\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.CALL_PHONE\"/>",
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
"<uses-permission android:name=\"android.permission.INTERNET\"/>",
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
"<uses-permission android:name=\"android.permission.READ_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
"<uses-permission android:name=\"android.permission.RECORD_AUDIO\"/>",
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
"<uses-permission android:name=\"android.permission.WRITE_CONTACTS\"/>",
"<uses-permission android:name=\"android.permission.WRITE_EXTERNAL_STORAGE\"/>",
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
]
},
"ios" : {},
/* ios打包配置 */
"sdkConfigs" : {
"maps" : {
"amap" : {
"appkey_ios" : "4fb001733e688bf6c2a1e21b73a9291a",
"appkey_android" : "083ce4d6de7f19a4ce8d3015b36b46ba"
}
},
"oauth" : {},
"speech" : {
"ifly" : {}
},
"ad" : {},
"push" : {},
"share" : {}
},
"icons" : {
"android" : {
"hdpi" : "unpackage/res/icons/72x72.png",
"xhdpi" : "unpackage/res/icons/96x96.png",
"xxhdpi" : "unpackage/res/icons/144x144.png",
"xxxhdpi" : "unpackage/res/icons/192x192.png"
},
"ios" : {
"appstore" : "unpackage/res/icons/1024x1024.png",
"ipad" : {
"app" : "unpackage/res/icons/76x76.png",
"app@2x" : "unpackage/res/icons/152x152.png",
"notification" : "unpackage/res/icons/20x20.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"proapp@2x" : "unpackage/res/icons/167x167.png",
"settings" : "unpackage/res/icons/29x29.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"spotlight" : "unpackage/res/icons/40x40.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png"
},
"iphone" : {
"app@2x" : "unpackage/res/icons/120x120.png",
"app@3x" : "unpackage/res/icons/180x180.png",
"notification@2x" : "unpackage/res/icons/40x40.png",
"notification@3x" : "unpackage/res/icons/60x60.png",
"settings@2x" : "unpackage/res/icons/58x58.png",
"settings@3x" : "unpackage/res/icons/87x87.png",
"spotlight@2x" : "unpackage/res/icons/80x80.png",
"spotlight@3x" : "unpackage/res/icons/120x120.png"
}
}
},
"splashscreen" : {
"android" : {
"hdpi" : "F:/桌面/打车app/qidong.png",
"xhdpi" : "F:/桌面/打车app/qidong.png",
"xxhdpi" : "F:/桌面/打车app/qidong.png"
},
"ios" : {
"iphone" : {
"portrait-896h@3x" : "F:/桌面/打车app/qidong.png",
"landscape-896h@3x" : "F:/桌面/打车app/qidong.png",
"portrait-896h@2x" : "F:/桌面/打车app/qidong.png",
"iphonex" : "F:/桌面/打车app/qidong.png",
"landscape-896h@2x" : "F:/桌面/打车app/qidong.png",
"iphonexl" : "F:/桌面/打车app/qidong.png",
"retina55" : "F:/桌面/打车app/qidong.png",
"retina55l" : "F:/桌面/打车app/qidong.png",
"retina40l" : "F:/桌面/打车app/qidong.png",
"retina40" : "F:/桌面/打车app/qidong.png",
"retina47l" : "F:/桌面/打车app/qidong.png",
"retina47" : "F:/桌面/打车app/qidong.png",
"retina35" : "F:/桌面/打车app/qidong.png"
},
"ipad" : {
"portrait-1366h@2x" : "F:/桌面/打车app/qidong.png",
"landscape-1366h@2x" : "F:/桌面/打车app/qidong.png",
"portrait-1194h@2" : "F:/桌面/打车app/qidong.png",
"landscape-1194h@2x" : "F:/桌面/打车app/qidong.png",
"portrait-1112h@2x" : "F:/桌面/打车app/qidong.png",
"landscape-1112h@2x" : "F:/桌面/打车app/qidong.png"
}
}
}
}
},
/* SDK配置 */
"quickapp" : {},
/* 快应用特有相关 */
"mp-weixin" : {
/* 小程序特有相关 */
"appid" : "",
"setting" : {
"urlCheck" : false
},
"usingComponents" : true,
"permission" : {
"scope.userLocation" : {
"desc" : "获取位置信息,以便定位查询"
}
}
},
"h5" : {
"title" : "洗车",
"domain" : "h5",
"router" : {
"base" : "/h5",
"mode" : "history"
},
"sdkConfigs" : {
"maps" : {}
}
}
}