Showing
1 changed file
with
3 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-19 14:11:06 | 2 | * @Date: 2022-09-19 14:11:06 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2024-03-28 13:00:53 | 4 | + * @LastEditTime: 2024-03-28 18:20:06 |
| 5 | * @FilePath: /meihuaApp/src/pages/detail/index.vue | 5 | * @FilePath: /meihuaApp/src/pages/detail/index.vue |
| 6 | * @Description: 房间详情页面 | 6 | * @Description: 房间详情页面 |
| 7 | --> | 7 | --> |
| ... | @@ -187,7 +187,8 @@ onMounted(async () => { | ... | @@ -187,7 +187,8 @@ onMounted(async () => { |
| 187 | // 给所有 img 标签添加 mode 缩放模式 | 187 | // 给所有 img 标签添加 mode 缩放模式 |
| 188 | Taro.options.html.transformElement = (el) => { | 188 | Taro.options.html.transformElement = (el) => { |
| 189 | if (el.nodeName === 'image') { | 189 | if (el.nodeName === 'image') { |
| 190 | - el.setAttribute('mode', 'widthFix') | 190 | + el.setAttribute('mode', 'widthFix'); |
| 191 | + el.setAttribute('style', 'width: 100%'); | ||
| 191 | } | 192 | } |
| 192 | return el | 193 | return el |
| 193 | } | 194 | } | ... | ... |
-
Please register or login to post a comment