|
|
var $ = require('jquery'),
|
|
|
common = require('../../../common/common');
|
|
|
|
|
|
var ZeroClipboard = require("../../../common/util/ZeroClipboard.min");
|
|
|
ZeroClipboard.config({swfPath: "http://cdn.yoho.cn/yohobuy-portal/assets/images/ZeroClipboard.swf"});
|
|
|
|
|
|
var g = new common.grid({
|
|
|
el: "#product-pool",
|
|
|
hash: false,
|
...
|
...
|
@@ -196,16 +199,20 @@ $(document).on("click", "#deletePool", function () { |
|
|
$(document).on("click", "#viewUrl", function () {
|
|
|
var index = $(this).data("index");
|
|
|
var item = g.rows[index];
|
|
|
var html = "<table>"+
|
|
|
"<tr><td>【PC】</td><td>http://search.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"</td></tr>"+
|
|
|
var html = "<div class=\"alert alert-success\">点击链接名称可复制链接</div>"+
|
|
|
"<table class=\"table table-hover\">"+
|
|
|
"<tr><td><a class=\"btn btn-xs btn-success info-copy\" data-clipboard-text='http://search.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"' >【PC】</a></td><td style=\"padding-top:15px \">http://search.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"</td></tr>"+
|
|
|
"<tr><td><a class=\"btn btn-xs btn-success info-copy\" data-clipboard-text='http://search.m.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"'>【H5】</a></td><td style=\"padding-top:15px \">http://search.m.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"</td></tr>"+
|
|
|
"<tr><td><a class=\"btn btn-xs btn-success info-copy\" data-clipboard-text='http://search.m.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"&openby:yohobuy={\"params\":{\"title\":"+item.poolName+",\"productPool\":"+item.id+"}}'>【APP】</a></td><td >http://search.m.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"&openby:yohobuy={\"params\":{\"title\":"+item.poolName+",\"productPool\":"+item.id+"}}"+"</td></tr>"+
|
|
|
"</table>";
|
|
|
|
|
|
/* var html = "<font color='red'>【PC】</font><br>http://search.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"<br>";
|
|
|
html += "<font color='red'>【H5】</font><br>http://search.m.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"<br>";
|
|
|
html += "<font color='red'>【APP】</font><br>http://search.m.yohobuy.com/?filter_poolId="+item.id+"&title="+item.poolName+"&openby:yohobuy={\"params\":{\"shop_id\":\"1284\",\"title\":\"上衣\",\"productPool\":\"2522\"}}";*/
|
|
|
common.dialog.confirm("查看商品池链接", html, function () {
|
|
|
common.dialog.confirm("商品池链接", html, function () {
|
|
|
|
|
|
});
|
|
|
new ZeroClipboard($(".info-copy"));
|
|
|
});
|
|
|
|
|
|
$(document).on('click', '.info-copy', function () {
|
|
|
common.util.__tip("链接已复制好,可贴粘", "success")
|
|
|
});
|
|
|
|
|
|
//添加SKN到商品池
|
...
|
...
|
|