Commit d9ee5edf authored by duxinyuan's avatar duxinyuan

1

parent edb6ca6b
......@@ -19,6 +19,7 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
// $ (".banner_img").click (function () {
// BrowseServer ('cover_image');
// });
// alert("ggog")
//附件上传处理事件
$("#cover_image").change(function() {
var _this = $(this),
......@@ -224,12 +225,14 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
},
//上传图片
uploadImg : function(_this){
console.log(" in function ");
console.log(_this)
var formData = new FormData();
formData.append('type', 'shop_image_depot');
formData.append('image', _this[0].files[0]);
$.ajax({
type: 'post',
url: 'http://images.tonglianjituan.com/index/uploadImg',
url: 'https://images.tonglianjituan.com/index/uploadImg',
data: formData,
dataType: 'json',
contentType: false,
......@@ -241,7 +244,7 @@ define (['doT', 'text!temp/banner_template_tpl.html', 'ckfinder', 'ckfinderStart
var _url = _data.data.internet_img_name;
var tag = '' ;
tag += '<div class="col-xs-3 pictures" id='+_data.data.img_path+'>';
tag += ' <img src="http://images.tonglianjituan.com/'+_url+'" class="" id="" width="90%">';
tag += ' <img src="https://images.tonglianjituan.com/'+_url+'" class="" id="" width="90%">';
tag += ' <div style="text-align:center" id="'+_data.data.img_path+'"><a href="javascript:;" class="delet-pic-btn">删除</a></div>';
tag += '</div>';
$('.img_area').append(tag) ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment