作者 sgj
1 个管道 的构建 失败 耗费 1 秒

添加最新版本的easywechat

... ... @@ -169,19 +169,21 @@
console.log(res)
openIframeLayer("{:url('activity/refund')}?id=" + selectedCategoriesId, '拒绝信息', {
area: ['700px', '300px'],
// btn: ['确定', '取消'],
btn: ['关闭'],
yes: function (index, layero) {
//do something
var iframeWin = window[layero.find('iframe')[0]['name']];
var selectedCategories = iframeWin.confirm();
if (selectedCategories.selectedCategoriesId.length == 0) {
layer.msg('请选择分类');
return;
}
$('#js-categories-id-input').val(selectedCategories.selectedCategoriesId.join(','));
$('#js-categories-name-input').val(selectedCategories.selectedCategoriesName.join(' '));
console.log(index)
console.log(layero)
var iframeWin= window[layero.find('iframe')];
// console.log('222222222222');
/* console.log($('#refund_form').html());
$('#refund_form').submit();*/
//console.log(layer.getFrameIndex(index));
layer.close(index); //如果设定了yes回调,需进行手工关闭
layer.close(index); //如果设定了yes回调,需进行手工关闭
console.log('reload');
location.reload()
}
});
}
... ...
... ... @@ -4,11 +4,11 @@
<div class="wrap">
<ul class="nav nav-tabs">
</ul>
<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('joinUnPass')}">
<form id="refund_form" method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('joinUnPass')}">
<div class="form-group ">
<label for="input-name" class="col-sm-2 control-label"><span class="form-required">*</span>拒绝理由</label>
<div class="col-md-10 col-sm-10">
<input class="form-control" type="text" required name="activity_name" id="refund_reason" value="" placeholder="请输入拒绝理由">
<input class="form-control" type="text" required name="refund_reason" id="refund_reason" value="" placeholder="请输入拒绝理由">
</div>
</div>
<input type="hidden" name="id" value="{$id}">
... ...