   }
                                });
                            });
                            layui.upload.render({
                                elem: "#avatar",
                                url: "/app/admin/upload/avatar",
                                acceptMime: "image/gif,image/jpeg,image/jpg,image/png",
                                field: "__file__",
                                done: function (res) {
                                    if (res.code > 0) return layui.layer.msg(res.