mirror of https://github.com/layui/layui
2.0.1
parent
3dc39c1cfb
commit
7265b2c471
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -387,12 +387,11 @@ layui.define(['layer', 'form'], function(exports){
|
||||||
var that = this;
|
var that = this;
|
||||||
layui.use('upload', function(upload){
|
layui.use('upload', function(upload){
|
||||||
var uploadImage = set.uploadImage || {};
|
var uploadImage = set.uploadImage || {};
|
||||||
upload({
|
upload.render({
|
||||||
url: uploadImage.url
|
url: uploadImage.url
|
||||||
,method: uploadImage.type
|
,method: uploadImage.type
|
||||||
,elem: $(that).find('input')[0]
|
,elem: $(that).find('input')[0]
|
||||||
,unwrap: true
|
,done: function(res){
|
||||||
,success: function(res){
|
|
||||||
if(res.code == 0){
|
if(res.code == 0){
|
||||||
res.data = res.data || {};
|
res.data = res.data || {};
|
||||||
insertInline.call(iframeWin, 'img', {
|
insertInline.call(iframeWin, 'img', {
|
||||||
|
|
Loading…
Reference in New Issue