@@ -886,6 +887,22 @@
}
});
+ //追加到图集
+ $('#addToAlbum').click(function () {
+ var goodImage = $('#goodImage').val();
+ if (!!!goodImage) {
+ layer.msg('请先上传封面图');
+ return;
+ }
+ imgs.push(goodImage);
+ $('#imageIds').val(imgs);
+ var getTpl = image_tpl.innerHTML, view = document.getElementById('upload-more-list');
+ laytpl(getTpl).render(imgs, function (html) {
+ view.innerHTML = html;
+ });
+ layer.msg('追加成功');
+ });
+
//图集上传
$('#upBtnimageIds').click(function () {
cropperImg.cropImg({
diff --git a/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html b/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html
index 6f74499c..6f9c8d41 100644
--- a/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html
+++ b/CoreCms.Net.Web.Admin/wwwroot/views/good/goods/edit.html
@@ -146,10 +146,11 @@
-