1.记得把所需js导入

<script type="text/javascript" src="__ROOT__/statics/js/content_addtop.js{$js_debug}"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.DIMAUB;
</script>
<script type="text/javascript" src="__ROOT__/statics/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__ROOT__/statics/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
</script>

2.红色的地方写好了,上传成功后这里就会直接显示,这个flashupload上传函数的第三个参数后面加个_preview就能正常预览了,所以加粗的地方要注意一致。
同时斜体加粗部分要和input一致

<tr>
    <td width="180">头像:</td>
    <td>
        <input type='hidden' name='user_avatar' id='user_avatar' value="{$user_avatar|default=''}">
        <a href='javascript:void(0);' onclick="flashupload('avatar_images', '头像上传','***user_avatar***',thumb_images,'1,jpg|jpeg|gif|png|bmp,1,,,1','','','');return false;">
        <if condition="empty($user_avatar)">
            <img src="__ROOT__/statics/images/icon/upload-pic.png" id='**user_avatar_preview**' width='135' height='113' style='cursor:hand' />
        <else/>
            <img src="{$user_avatar}" id='**user_avatar_preview**' width='135' height='113' style='cursor:hand' />
        </if>
        </a>
    </td>
</tr>