Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
0f5954c1
Commit
0f5954c1
authored
Aug 01, 2019
by
agping
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
可上传重复图片
parent
c93f38f0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
financial_manager_daily_list.js
public/resource/js/financial_manager_daily_list.js
+2
-1
shop_edit.js
public/resource/js/shop_edit.js
+3
-1
No files found.
public/resource/js/financial_manager_daily_list.js
View file @
0f5954c1
...
@@ -261,7 +261,7 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
...
@@ -261,7 +261,7 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
});
});
});
});
//申请开业
//申请开业
$
(
'#file_input_pic_open'
).
on
(
'change'
,
function
(){
$
(
'#file_input_pic_open'
).
on
(
'change'
,
function
(
e
){
var
_this
=
$
(
this
);
var
_this
=
$
(
this
);
var
formData
=
new
FormData
();
var
formData
=
new
FormData
();
formData
.
append
(
'type'
,
'chat'
);
formData
.
append
(
'type'
,
'chat'
);
...
@@ -292,6 +292,7 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
...
@@ -292,6 +292,7 @@ define(['doT','html2canvas','text!temp/financial_manager_daily_list_template_tpl
});
});
$
(
'#container_body_img_open'
).
append
(
str_
);
//渲染图片
$
(
'#container_body_img_open'
).
append
(
str_
);
//渲染图片
e
.
target
.
value
=
''
;
//置空input值 可以上传重复图片
//一次上传一张图片
//一次上传一张图片
// $('#container_body_img_open').append('<div class="result-du-open"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-open">删除</span></div>'.stringFormatObj({
// $('#container_body_img_open').append('<div class="result-du-open"><img data-imgname="{0}" src="{1}" alt=""/> <span class="span-del-open">删除</span></div>'.stringFormatObj({
// '0': _data.data.img_path,
// '0': _data.data.img_path,
...
...
public/resource/js/shop_edit.js
View file @
0f5954c1
...
@@ -492,7 +492,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -492,7 +492,7 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
});
});
//图片上传,附件上传处理事件
//图片上传,附件上传处理事件
$
(
".upload-image-btn"
).
change
(
function
()
{
$
(
".upload-image-btn"
).
change
(
function
(
e
)
{
var
_this
=
$
(
this
),
var
_this
=
$
(
this
),
_spFile
=
_this
.
data
(
'spfile'
),
_spFile
=
_this
.
data
(
'spfile'
),
_limitTop
=
_this
.
data
(
'limittop'
),
_limitTop
=
_this
.
data
(
'limittop'
),
...
@@ -539,6 +539,8 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
...
@@ -539,6 +539,8 @@ define(['doT', 'css!style/shop_edit.css', 'ckfinder', 'ckfinderStart'], function
})
})
});
});
_this
.
parent
().
next
().
prepend
(
str_
);
_this
.
parent
().
next
().
prepend
(
str_
);
// e.target.value = '';//置空input值 可以上传重复图片
$
(
'input[type="file"]'
).
val
(
""
);
//置空input值 可以上传重复图片
// _this.parent().next().prepend('<li><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
// _this.parent().next().prepend('<li><img title="点击查看大图" src="{0}" /><a href="javascript:;" class="delet-pic-btn">删除</a></li>'.stringFormatObj({
// '0': ServerHostImageLiu+'/resource/lib/Attachments/images/'+_data.data.internet_img_name
// '0': ServerHostImageLiu+'/resource/lib/Attachments/images/'+_data.data.internet_img_name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment