From 3dd0926ae1170346b732791d5bfe06c0a906cd5e Mon Sep 17 00:00:00 2001 From: weipengfei <2187978347@qq.com> Date: Fri, 27 Oct 2023 15:22:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E5=95=86=E5=93=81?= =?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E5=9B=BE=E7=89=87=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9,=E5=B1=95=E7=A4=BA=E6=9C=89=E7=99=BD=E8=BE=B9?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/admin/goods_details/index.vue | 69 ++++++++++++++++++++++++++--- pages/goods_details/index.vue | 24 ++++++---- 2 files changed, 79 insertions(+), 14 deletions(-) diff --git a/pages/admin/goods_details/index.vue b/pages/admin/goods_details/index.vue index 9fc4b31..6b6624d 100644 --- a/pages/admin/goods_details/index.vue +++ b/pages/admin/goods_details/index.vue @@ -264,14 +264,22 @@ 产品介绍 - + + + + + + - {{description.content.title}} - - - + {{description.content.title}} + + + + @@ -558,6 +566,23 @@ } that.$set(that, 'storeInfo', storeInfo); that.$set(that, 'description', storeInfo.content); + if(typeof that.description.content == 'string'){ + try{ + that.description.content = JSON.parse(that.description.content); + }catch(e){ + console.log(e); + } + } + if (that.description.type == 0 && typeof that.description.content == 'string') { + that.description.content = that.description.content.replace( + / \ No newline at end of file diff --git a/pages/goods_details/index.vue b/pages/goods_details/index.vue index cad92c0..943d57c 100644 --- a/pages/goods_details/index.vue +++ b/pages/goods_details/index.vue @@ -278,22 +278,22 @@ 产品介绍 - - - {{description.content.title}} + {{description.content.title}} - - + + - + @@ -1059,7 +1059,14 @@ } that.$set(that, 'storeInfo', storeInfo); that.$set(that, 'description', storeInfo.content); - if (that.description.type == 0) { + if(typeof that.description.content == 'string'){ + try{ + that.description.content = JSON.parse(that.description.content); + }catch(e){ + console.log(e); + } + } + if (that.description.type == 0 && typeof that.description.content == 'string') { that.description.content = that.description.content.replace( / \ No newline at end of file