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
.replace(/style=""/g, '')
.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
.content), 'client://')
info.isLink = that.containsLetterMix(info.contentLink, 'http') ? true : false
@ -2256,4 +2257,7 @@
text-align: center;
margin-right: 12rpx;
}
.detail-content{
overflow: hidden;
}
</style>

@ -252,6 +252,7 @@
return new Promise((resolve, reject) => {
RefundApi.detail(app.orderRefundId)
.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
resolve()
})

Loading…
Cancel
Save