Helius
2022-05-16 595b2b00b7bff045b21bd830004e3a00b2c8ee03
src/main/resources/templates/febs/views/modules/news/newsInfoUpdate.html
@@ -101,6 +101,8 @@
                var form = layui.form;
                form.render();
            });
            initUserValue();
        });
        form.render();
@@ -108,12 +110,14 @@
            elem: '#febs-form-group-date'
        });
        layedit.set({   //设置图片接口
            uploadImage: {
                url: 'admin/goods/uploadFileBase64', //接口url
                type: 'post',
            }
        });
        //创建一个编辑器
        var index = layedit.build('lay_edit',{
            height: 300
@@ -177,10 +181,7 @@
            });
        }
        initUserValue();
        function initUserValue() {
            console.log(newsInfo);
            var thumb = newsInfo.thumb;
            $('#thumbImage').html('<img src="' + thumb + '" alt="" class="layui-upload-img" style="width: 100px">')
            form.val("newsInfo-update-form", {
@@ -191,6 +192,8 @@
                "thumb": newsInfo.thumb,
                "content": newsInfo.content,
            });
            layedit.setContent(index, newsInfo.content, false);
        }
    });
</script>