Revert "Update form.html"

This reverts commit 7e58c528e1da334ebd993305a4c8a32d02fcb381.
This commit is contained in:
Anyon 2019-08-02 17:17:51 +08:00
parent 7e58c528e1
commit 79f2123099

View File

@ -99,7 +99,10 @@
function apply(list) { function apply(list) {
if (list.length < 1) list.push({ if (list.length < 1) list.push({
title: '新建图文', author: '管理员', content: '文章内容', read_num: 0, title: '新建图文',
author: '管理员',
content: '文章内容',
read_num: 0,
local_url: '__ROOT__/static/plugs/uploader/theme/image.png', local_url: '__ROOT__/static/plugs/uploader/theme/image.png',
}); });
for (var i in list) { for (var i in list) {
@ -170,7 +173,10 @@
$rootScope.addItem = function () { $rootScope.addItem = function () {
if ($rootScope.list.length > 7) return $.msg.tips('最多允许增加7篇文章哦'); if ($rootScope.list.length > 7) return $.msg.tips('最多允许增加7篇文章哦');
$rootScope.list.push({ $rootScope.list.push({
title: '新建图文', author: '管理员', content: '文章内容', read_num: 0, title: '新建图文',
author: '管理员',
content: '文章内容',
read_num: 0,
local_url: '__ROOT__/static/plugs/uploader/theme/image.png', local_url: '__ROOT__/static/plugs/uploader/theme/image.png',
style: "background-image:url('__ROOT__/static/plugs/uploader/theme/image.png')" style: "background-image:url('__ROOT__/static/plugs/uploader/theme/image.png')"
}); });
@ -206,4 +212,4 @@
} }
}); });
</script> </script>
{/block} {/block}