1
0
Mirror von https://github.com/ialley-workshop-open/uni-halo.git synchronisiert 2026-06-11 04:39:35 +08:00

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

Dieser Commit ist enthalten in:
小莫唐尼
2022-12-06 18:36:06 +08:00
Ursprung acc9070134
Commit 3ba10fa105
2 geänderte Dateien mit 161 neuen und 158 gelöschten Zeilen
+6 -1
Datei anzeigen
@@ -1,5 +1,5 @@
<template>
<view class="">
<view class="cache-image">
<view v-if="loadStatus == 'loading'" class="img-loading" :style="[imgStyle, loadStyle]">
<!-- <text class="img-load-icon iconfont icon-loading"></text>
<text class="img-load-text">{{ loadText }}</text> -->
@@ -108,6 +108,7 @@ export default {
}
},
created() {
console.log('cache-image', this.url);
this.imgStyle = {
width: this.width,
height: this.height,
@@ -144,6 +145,10 @@ export default {
</script>
<style scoped lang="scss">
.cache-image {
width: 100%;
height: 100%;
}
.img-loading,
.img-error {
display: flex;