feat: 商品详情图片宽度兜底

This commit is contained in:
2026-08-01 12:55:23 +08:00
parent 082667a8be
commit a585857f92
2 changed files with 10 additions and 2 deletions
@@ -1,7 +1,7 @@
<template> <template>
<view class="detail-content-card ss-p-b-20"> <view class="detail-content-card ss-p-b-20">
<view class="card-content"> <view class="card-content">
<mp-html :content="content"></mp-html> <mp-html :content="content" :tag-style="tagStyle"></mp-html>
</view> </view>
</view> </view>
</template> </template>
@@ -13,6 +13,10 @@
default: '', default: '',
}, },
}); });
const tagStyle = {
img: 'display:block;width:100%;height:auto;',
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@@ -1,7 +1,7 @@
<template> <template>
<view class="detail-content-card ss-p-b-20"> <view class="detail-content-card ss-p-b-20">
<view class="card-content"> <view class="card-content">
<mp-html :content="content"></mp-html> <mp-html :content="content" :tag-style="tagStyle"></mp-html>
</view> </view>
</view> </view>
</template> </template>
@@ -13,6 +13,10 @@
default: '', default: '',
}, },
}); });
const tagStyle = {
img: 'display:block;width:100%;height:auto;',
};
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>