浏览代码

sunguidong

zhangguidong 2 年之前
父节点
当前提交
41c1646329
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      app/shop/view/public/js/goods_list.js

+ 9 - 1
app/shop/view/public/js/goods_list.js

@@ -333,8 +333,16 @@ function refreshTable(status) {
 }
 
 function add() {
-		location.href = ns.url('shop/goods/addGoods');
+	var html = $("#selectAddGoods").html();
+	laytpl(html).render({}, function (html) {
+		layer.open({
+			type: 1,
+			title: '选择商品类型',
+			area: ['600px'],
+			content: html
 
+		});
+	});
 }
 
 // 删除