mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-05-19 18:10:15 +09:00
修复:修复小程序文章图片不显示BUG
This commit is contained in:
parent
acc9070134
commit
3ba10fa105
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="">
|
<view class="cache-image">
|
||||||
<view v-if="loadStatus == 'loading'" class="img-loading" :style="[imgStyle, loadStyle]">
|
<view v-if="loadStatus == 'loading'" class="img-loading" :style="[imgStyle, loadStyle]">
|
||||||
<!-- <text class="img-load-icon iconfont icon-loading"></text>
|
<!-- <text class="img-load-icon iconfont icon-loading"></text>
|
||||||
<text class="img-load-text">{{ loadText }}</text> -->
|
<text class="img-load-text">{{ loadText }}</text> -->
|
||||||
@ -108,6 +108,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
console.log('cache-image', this.url);
|
||||||
this.imgStyle = {
|
this.imgStyle = {
|
||||||
width: this.width,
|
width: this.width,
|
||||||
height: this.height,
|
height: this.height,
|
||||||
@ -144,6 +145,10 @@ export default {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
.cache-image {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
.img-loading,
|
.img-loading,
|
||||||
.img-error {
|
.img-error {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
312
manifest.json
312
manifest.json
@ -1,159 +1,157 @@
|
|||||||
{
|
{
|
||||||
"name": "uni-halo",
|
"name" : "uni-halo",
|
||||||
"appid": "__UNI__5748B6E",
|
"appid" : "__UNI__5748B6E",
|
||||||
"description": "uni-halo博客:基于halo开源博客系统API开发的多端博客。",
|
"description" : "uni-halo博客:基于halo开源博客系统API开发的多端博客。",
|
||||||
"versionName": "1.0.0",
|
"versionName" : "1.0.0",
|
||||||
"versionCode": 100,
|
"versionCode" : 100,
|
||||||
"transformPx": false,
|
"transformPx" : false,
|
||||||
/* 5+App特有相关 */
|
/* 5+App特有相关 */
|
||||||
"app-plus": {
|
"app-plus" : {
|
||||||
"usingComponents": true,
|
"usingComponents" : true,
|
||||||
"nvueStyleCompiler": "uni-app",
|
"nvueStyleCompiler" : "uni-app",
|
||||||
"compilerVersion": 3,
|
"compilerVersion" : 3,
|
||||||
"splashscreen": {
|
"splashscreen" : {
|
||||||
"alwaysShowBeforeRender": true,
|
"alwaysShowBeforeRender" : true,
|
||||||
"waiting": true,
|
"waiting" : true,
|
||||||
"autoclose": true,
|
"autoclose" : true,
|
||||||
"delay": 0
|
"delay" : 0
|
||||||
},
|
},
|
||||||
/* 模块配置 */
|
/* 模块配置 */
|
||||||
"modules": {
|
"modules" : {
|
||||||
"OAuth": {},
|
"OAuth" : {},
|
||||||
"Share": {}
|
"Share" : {}
|
||||||
},
|
},
|
||||||
/* 应用发布信息 */
|
/* 应用发布信息 */
|
||||||
"distribute": {
|
"distribute" : {
|
||||||
/* android打包配置 */
|
/* android打包配置 */
|
||||||
"android": {
|
"android" : {
|
||||||
"permissions": [
|
"permissions" : [
|
||||||
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
"<uses-feature android:name=\"android.hardware.camera\"/>",
|
||||||
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
"<uses-feature android:name=\"android.hardware.camera.autofocus\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.ACCESS_WIFI_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
"<uses-permission android:name=\"android.permission.CAMERA\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.CAPTURE_VIDEO_OUTPUT\"/>",
|
"<uses-permission android:name=\"android.permission.CAPTURE_VIDEO_OUTPUT\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_NETWORK_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.CHANGE_WIFI_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
"<uses-permission android:name=\"android.permission.FLASHLIGHT\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
"<uses-permission android:name=\"android.permission.GET_ACCOUNTS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
"<uses-permission android:name=\"android.permission.MODIFY_AUDIO_SETTINGS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
"<uses-permission android:name=\"android.permission.MOUNT_UNMOUNT_FILESYSTEMS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
"<uses-permission android:name=\"android.permission.READ_LOGS\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
"<uses-permission android:name=\"android.permission.READ_PHONE_STATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
"<uses-permission android:name=\"android.permission.VIBRATE\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
"<uses-permission android:name=\"android.permission.WAKE_LOCK\"/>",
|
||||||
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
"<uses-permission android:name=\"android.permission.WRITE_SETTINGS\"/>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
/* ios打包配置 */
|
/* ios打包配置 */
|
||||||
"ios": {
|
"ios" : {
|
||||||
"dSYMs": false,
|
"dSYMs" : false,
|
||||||
"capabilities": {
|
"capabilities" : {
|
||||||
"entitlements": {
|
"entitlements" : {
|
||||||
"com.apple.developer.associated-domains": [
|
"com.apple.developer.associated-domains" : [ "applinks:static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com" ]
|
||||||
"applinks:static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com"
|
}
|
||||||
]
|
}
|
||||||
}
|
},
|
||||||
}
|
/* SDK配置 */
|
||||||
},
|
"sdkConfigs" : {
|
||||||
/* SDK配置 */
|
"ad" : {
|
||||||
"sdkConfigs": {
|
"gdt" : {},
|
||||||
"ad": {
|
"csj" : {},
|
||||||
"gdt": {},
|
"360" : {},
|
||||||
"csj": {},
|
"ks" : {},
|
||||||
"360": {},
|
"sigmob" : {},
|
||||||
"ks": {},
|
"hw" : {},
|
||||||
"sigmob": {},
|
"bd" : {}
|
||||||
"hw": {},
|
},
|
||||||
"bd": {}
|
"oauth" : {
|
||||||
},
|
"weixin" : {
|
||||||
"oauth": {
|
"appid" : "wxd971954762ec4744",
|
||||||
"weixin": {
|
"UniversalLinks" : "https://static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com/uni-universallinks/__UNI__5748B6E/"
|
||||||
"appid": "wxd971954762ec4744",
|
}
|
||||||
"UniversalLinks": "https://static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com/uni-universallinks/__UNI__5748B6E/"
|
},
|
||||||
}
|
"share" : {
|
||||||
},
|
"weixin" : {
|
||||||
"share": {
|
"appid" : "wxd971954762ec4744",
|
||||||
"weixin": {
|
"UniversalLinks" : "https://static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com/uni-universallinks/__UNI__5748B6E/"
|
||||||
"appid": "wxd971954762ec4744",
|
}
|
||||||
"UniversalLinks": "https://static-699a26a5-a6cd-4b54-b603-5155b312a5f5.bspapp.com/uni-universallinks/__UNI__5748B6E/"
|
}
|
||||||
}
|
},
|
||||||
}
|
"icons" : {
|
||||||
},
|
"android" : {
|
||||||
"icons": {
|
"hdpi" : "unpackage/res/icons/72x72.png",
|
||||||
"android": {
|
"xhdpi" : "unpackage/res/icons/96x96.png",
|
||||||
"hdpi": "unpackage/res/icons/72x72.png",
|
"xxhdpi" : "unpackage/res/icons/144x144.png",
|
||||||
"xhdpi": "unpackage/res/icons/96x96.png",
|
"xxxhdpi" : "unpackage/res/icons/192x192.png"
|
||||||
"xxhdpi": "unpackage/res/icons/144x144.png",
|
},
|
||||||
"xxxhdpi": "unpackage/res/icons/192x192.png"
|
"ios" : {
|
||||||
},
|
"appstore" : "unpackage/res/icons/1024x1024.png",
|
||||||
"ios": {
|
"ipad" : {
|
||||||
"appstore": "unpackage/res/icons/1024x1024.png",
|
"app" : "unpackage/res/icons/76x76.png",
|
||||||
"ipad": {
|
"app@2x" : "unpackage/res/icons/152x152.png",
|
||||||
"app": "unpackage/res/icons/76x76.png",
|
"notification" : "unpackage/res/icons/20x20.png",
|
||||||
"app@2x": "unpackage/res/icons/152x152.png",
|
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||||
"notification": "unpackage/res/icons/20x20.png",
|
"proapp@2x" : "unpackage/res/icons/167x167.png",
|
||||||
"notification@2x": "unpackage/res/icons/40x40.png",
|
"settings" : "unpackage/res/icons/29x29.png",
|
||||||
"proapp@2x": "unpackage/res/icons/167x167.png",
|
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||||
"settings": "unpackage/res/icons/29x29.png",
|
"spotlight" : "unpackage/res/icons/40x40.png",
|
||||||
"settings@2x": "unpackage/res/icons/58x58.png",
|
"spotlight@2x" : "unpackage/res/icons/80x80.png"
|
||||||
"spotlight": "unpackage/res/icons/40x40.png",
|
},
|
||||||
"spotlight@2x": "unpackage/res/icons/80x80.png"
|
"iphone" : {
|
||||||
},
|
"app@2x" : "unpackage/res/icons/120x120.png",
|
||||||
"iphone": {
|
"app@3x" : "unpackage/res/icons/180x180.png",
|
||||||
"app@2x": "unpackage/res/icons/120x120.png",
|
"notification@2x" : "unpackage/res/icons/40x40.png",
|
||||||
"app@3x": "unpackage/res/icons/180x180.png",
|
"notification@3x" : "unpackage/res/icons/60x60.png",
|
||||||
"notification@2x": "unpackage/res/icons/40x40.png",
|
"settings@2x" : "unpackage/res/icons/58x58.png",
|
||||||
"notification@3x": "unpackage/res/icons/60x60.png",
|
"settings@3x" : "unpackage/res/icons/87x87.png",
|
||||||
"settings@2x": "unpackage/res/icons/58x58.png",
|
"spotlight@2x" : "unpackage/res/icons/80x80.png",
|
||||||
"settings@3x": "unpackage/res/icons/87x87.png",
|
"spotlight@3x" : "unpackage/res/icons/120x120.png"
|
||||||
"spotlight@2x": "unpackage/res/icons/80x80.png",
|
}
|
||||||
"spotlight@3x": "unpackage/res/icons/120x120.png"
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
/* 快应用特有相关 */
|
||||||
},
|
"quickapp" : {},
|
||||||
/* 快应用特有相关 */
|
/* 小程序特有相关 */
|
||||||
"quickapp": {},
|
"mp-weixin" : {
|
||||||
/* 小程序特有相关 */
|
"appid" : "wx1bb161867082c72f",
|
||||||
"mp-weixin": {
|
"setting" : {
|
||||||
"appid": "wx1bb161867082c72f",
|
"urlCheck" : false,
|
||||||
"setting": {
|
"minified" : true
|
||||||
"urlCheck": false,
|
},
|
||||||
"minified": true
|
"usingComponents" : true
|
||||||
},
|
},
|
||||||
"usingComponents": true
|
"mp-alipay" : {
|
||||||
},
|
"usingComponents" : true
|
||||||
"mp-alipay": {
|
},
|
||||||
"usingComponents": true
|
"mp-baidu" : {
|
||||||
},
|
"usingComponents" : true
|
||||||
"mp-baidu": {
|
},
|
||||||
"usingComponents": true
|
"mp-toutiao" : {
|
||||||
},
|
"usingComponents" : true
|
||||||
"mp-toutiao": {
|
},
|
||||||
"usingComponents": true
|
"uniStatistics" : {
|
||||||
},
|
"enable" : false
|
||||||
"uniStatistics": {
|
},
|
||||||
"enable": false
|
"vueVersion" : "2",
|
||||||
},
|
"h5" : {
|
||||||
"vueVersion": "2",
|
"title" : "uni-halo",
|
||||||
"h5": {
|
"devServer" : {
|
||||||
"title": "uni-halo",
|
"https" : false,
|
||||||
"devServer": {
|
"disableHostCheck" : true,
|
||||||
"https": false,
|
"proxy" : {
|
||||||
"disableHostCheck": true,
|
"/api" : {
|
||||||
"proxy": {
|
"target" : "https://b.925i.cn",
|
||||||
"/api": {
|
"changeOrigin" : true,
|
||||||
"target": "https://b.925i.cn",
|
"secure" : false,
|
||||||
"changeOrigin": true,
|
"pathRewrite" : {
|
||||||
"secure": false,
|
"^/api" : ""
|
||||||
"pathRewrite": {
|
}
|
||||||
"^/api": ""
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
"_spaceID" : "699a26a5-a6cd-4b54-b603-5155b312a5f5"
|
||||||
},
|
|
||||||
"_spaceID": "699a26a5-a6cd-4b54-b603-5155b312a5f5"
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user