main
fanfan 7 months ago
parent b4f3894886
commit a18b5deec3
  1. 6
      pages/goods/detail.vue
  2. 1
      pages/refund/detail.vue

@ -938,7 +938,8 @@
info.content = info.content info.content = info.content
.replace(/style=""/g, '') .replace(/style=""/g, '')
.replace(/<img " src=/g, '<img src=') .replace(/<img " src=/g, '<img src=')
.replace(/<img src=/g, '<img style="width: 100%; display:block" src=') .replace(/<img src=/g, '<img style="width: 100%; display:inline-block;height:auto" src=')
info.content=info.content.replace(/\<img/gi, '<img style="max-width:100%;height:auto" ');
info.contentLink = that.getValueAfterSymbol(that.getLinksFromRichText(info info.contentLink = that.getValueAfterSymbol(that.getLinksFromRichText(info
.content), 'client://') .content), 'client://')
info.isLink = that.containsLetterMix(info.contentLink, 'http') ? true : false info.isLink = that.containsLetterMix(info.contentLink, 'http') ? true : false
@ -2256,4 +2257,7 @@
text-align: center; text-align: center;
margin-right: 12rpx; margin-right: 12rpx;
} }
.detail-content{
overflow: hidden;
}
</style> </style>

@ -252,6 +252,7 @@
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
RefundApi.detail(app.orderRefundId) RefundApi.detail(app.orderRefundId)
.then(result => { .then(result => {
result.data.detail.refuse_desc=result.data.detail.refuse_desc?result.data.detail.refuse_desc.replace(/\<img/gi, '<img style="max-width:100%;height:auto" '):''
app.detail = result.data.detail app.detail = result.data.detail
resolve() resolve()
}) })

Loading…
Cancel
Save