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

添加最新版本的easywechat

... ... @@ -540,6 +540,7 @@ class ActivityController extends AdminBaseController
$this->error('参数错误!');
}
$update['status']='2';
$update['refund_reason']=input('refund_reason');
$result=\db('join')->where($map)->update($update);
if ($result>0){
... ... @@ -637,6 +638,11 @@ class ActivityController extends AdminBaseController
return $this->fetch();
}
public function refund(){
$id=input('id');
$this->assign('id',$id);
return $this->fetch();
}
... ...
... ... @@ -97,7 +97,7 @@
<td>
<if condition="$vo['status'] eq 0">
<a href="{:url('activity/joinPass',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定审核通过吗?">通过</a>|
<a onclick="dorefund({$vo['id']})">拒绝</a>
<span onclick="dorefund({$vo['id']})">拒绝</span>
<!--
<a href="{:url('activity/joinUnPass',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定拒绝通过吗?">拒绝</a>|
-->
... ... @@ -164,6 +164,29 @@
});
}
function dorefund(res) {
var selectedCategoriesId = res
console.log(res)
openIframeLayer("{:url('activity/refund')}?id=" + selectedCategoriesId, '拒绝信息', {
area: ['700px', '300px'],
// 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(layer.getFrameIndex(index));
layer.close(index); //如果设定了yes回调,需进行手工关闭
}
});
}
</script>
</body>
</html>
\ No newline at end of file
... ...
<include file="public@header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
</ul>
<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="请输入拒绝理由">
</div>
</div>
<input type="hidden" name="id" value="{$id}">
<div class="form-group">
<label for="input-name" class="col-sm-2 control-label"><span class="form-required"></span></label>
<div class="col-md-6 col-sm-10">
<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
</div>
</div>
</form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>
\ No newline at end of file
... ...