|
@@ -284,10 +284,20 @@
|
|
|
if (res.code == 0) {
|
|
|
this.detailShow = true
|
|
|
// 处理富文本
|
|
|
+ // #ifndef MP-ALIPAY
|
|
|
const description = res.data.description.replaceAll(".jpg\"", ".jpg?imageView2/2/w/750\"")
|
|
|
.replaceAll(".jpeg\"", ".jpeg?imageView2/2/w/750\"").replaceAll(".png\"",
|
|
|
".png?imageView2/2/w/750\"");
|
|
|
this.description = formatRichText(description);
|
|
|
+ // #endif
|
|
|
+
|
|
|
+ // #ifdef MP-ALIPAY
|
|
|
+ res.data.description.split(".jpg\"").join(".jpg?imageView2/2/w/750\"")
|
|
|
+ res.data.description.split(".jpeg\"").join(".jpeg?imageView2/2/w/750\"")
|
|
|
+ res.data.description.split(".png\"").join(".png?imageView2/2/w/750\"")
|
|
|
+ this.description = formatRichText(res.data.description);
|
|
|
+ console.log(this.description);
|
|
|
+ // #endif
|
|
|
}
|
|
|
}).catch(() => {
|
|
|
uni.hideLoading();
|