1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 21:29:31 +08:00

修复:修复小程序文章图片不显示BUG

This commit is contained in:
小莫唐尼
2022-12-06 18:36:06 +08:00
parent acc9070134
commit 3ba10fa105
2 changed files with 161 additions and 158 deletions
+6 -1
View File
@@ -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;
+1 -3
View File
@@ -50,9 +50,7 @@
"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"
]
} }
} }
}, },