main.js
1.42 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
*
*/
function checkAll(obj){
$("input[type='checkbox']").attr("checked",$(obj).attr("checked"));
}
function showExhibitBox(product_name,skn,order_id,product_id,goods_id,erp_sku_id,bid)
{
//Dialog
$('#exhibitDialog').dialog({
autoOpen: false,
width:510,
height:400,
modal: true,
resizable: false
});
//Dialog
$('#exhibitDialog1').dialog({
autoOpen: false,
width:510,
height:400,
modal: true,
resizable: false
});
if(product_name == '' || parseInt(skn) <= 0 || parseInt(order_id) <= 0 || parseInt(product_id) <= 0 || parseInt(goods_id) <= 0 || parseInt(erp_sku_id) <= 0)
{
alert('参数错误');
return false;
}
bid = bid || '';
var iframe = '<iframe height="380" width="510" onload="showExhibitDialog();" src="http://new.yoho.cn/partner/iframe/buycomment?skn=' + skn + '&product_name=' + product_name + '&order_id=' + order_id + '&product_id=' + product_id + '&goods_id=' + goods_id + '&erp_sku_id=' + erp_sku_id + '&bid=' + bid + '&t='+Math.random()+'" scrolling="no" frameborder="0"></iframe>';
$('#exhibitDialog').html(iframe);
$('#exhibitDialog1').dialog('open');
}
function showExhibitDialog()
{
$('#exhibitDialog1').dialog('close');
$('#exhibitDialog').dialog('open');
$('#exhibitDialog').removeClass('ui-dialog');
$('#exhibitDialog').removeClass('ui-dialog-content');
$('#exhibitDialog').attr('style', 'background: none repeat scroll 0 0 transparent;border: 0 none;padding: 0;');
}