Browse Source

商品详情使用富文本

pangqijun 1 year ago
parent
commit
c2f27615ab
1 changed files with 29 additions and 15 deletions
  1. 29 15
      src/views/mall/goodsinfo.vue

+ 29 - 15
src/views/mall/goodsinfo.vue

@@ -417,24 +417,38 @@
               },
               action: "/api/blade-resource/oss/endpoint/put-file-attach"
             },
+            // {
+            //   label: '图文详情',
+            //   prop: 'detailImgUrlList',
+            //   type: 'upload',
+            //   dataType: 'array',
+            //   listType: 'picture-card',
+            //   loadText: '上传中,请稍等',
+            //   accept: 'image/png, image/jpeg',
+            //   fileSize: 2048,
+            //   tip: '只能上传jpg/png文件,且不超过2M',
+            //   limit: 25,
+            //   span: 24,
+            //   hide: true,
+            //   propsHttp: {
+            //     res: 'data',
+            //     url: 'link',
+            //   },
+            //   action: "/api/blade-resource/oss/endpoint/put-file-attach"
+            // },
             {
-              label: '图文详情',
-              prop: 'detailImgUrlList',
-              type: 'upload',
-              dataType: 'array',
-              listType: 'picture-card',
-              loadText: '上传中,请稍等',
-              accept: 'image/png, image/jpeg',
-              fileSize: 2048,
-              tip: '只能上传jpg/png文件,且不超过2M',
-              limit: 25,
-              span: 24,
+              label: "图文详情",
+              prop: "detailContent",
               hide: true,
-              propsHttp: {
-                res: 'data',
-                url: 'link',
+              span: 24,
+              component: 'AvueUeditor',
+              options: {
+                action: '/api/blade-resource/oss/endpoint/put-file',
+                props: {
+                  res: "data",
+                  url: "link",
+                }
               },
-              action: "/api/blade-resource/oss/endpoint/put-file-attach"
             },
           ]
         },