...
|
...
|
@@ -82,7 +82,7 @@ |
|
|
|
|
|
<a href="{:url('activity/joinPass',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定审核通过吗?">通过</a>|
|
|
|
<a href="{:url('activity/joinUnPass',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定审核通过吗?">拒绝</a>|
|
|
|
<a href="{:url('activity/joinTime',array('id'=>$vo['id']))}">修改参加活动时间</a>
|
|
|
<font onclick="doSelectCategory({$vo['id']})" href="{:url('activity/joinTime',array('id'=>$vo['id']))}">修改参加活动时间</font>
|
|
|
|
|
|
</td>
|
|
|
</tr>
|
...
|
...
|
@@ -93,5 +93,30 @@ |
|
|
</form>
|
|
|
</div>
|
|
|
<script src="__STATIC__/js/admin.js"></script>
|
|
|
<script type="application/javascript">
|
|
|
function doSelectCategory(res) {
|
|
|
|
|
|
var selectedCategoriesId = res
|
|
|
console.log(res)
|
|
|
openIframeLayer("{:url('activity/joinTime')}?id=" + selectedCategoriesId, '请完善信息', {
|
|
|
area: ['1000px', '700px'],
|
|
|
// 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 |
...
|
...
|
|