56 lines
2.0 KiB
Plaintext
56 lines
2.0 KiB
Plaintext
<#def designatedPath="/orderMerchantList.htm"/>
|
|
${zhiqim_manager_breadcrumb("商家管理")}
|
|
${zhiqim_manager_content()}
|
|
<script>
|
|
function exportData(){
|
|
var designIds = Z.FM.getCheckBoxValue("merchantName");
|
|
console.log(designIds);
|
|
|
|
var parentInput = window.opener.document.getElementById('merchantName');
|
|
if (parentInput) {
|
|
if(parentInput.value != ''){
|
|
parentInput.value = parentInput.value+','+designIds;
|
|
}else{
|
|
parentInput.value = designIds;
|
|
}
|
|
}
|
|
window.close();
|
|
}
|
|
</script>
|
|
<#-- 导航 -->
|
|
<div data-role="z-tabnav" class="z-tabnav-main z-mg-b20 ${zmr_color_class}">
|
|
<nav>
|
|
<ul>
|
|
<li class="z-active">商家列表</li>
|
|
</ul>
|
|
<div class="z-text-right z-mg-t10 z-mg-r5">
|
|
<button class="z-button ${zmr_color_class}" onclick="exportData()"><i class="z-font z-add"></i>保存商户</button>
|
|
|
|
</div>
|
|
</nav>
|
|
</div>
|
|
|
|
<#-- 列表 -->
|
|
<table class="z-table z-bordered z-h40-tr z-pd6 z-bg-white z-text-center">
|
|
<tr bgcolor="${zmr_thead_bgcolor}">
|
|
<td width="30"><input name="allDesignId" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${pageResult.pageNo()}" onclick="Z.FM.doSelectCheckBox('merchantName', this.checked);"> 选择</td>
|
|
<td width="20%">商家ID</td>
|
|
<td width="*">商家名称</td>
|
|
<td width="500">商家秘钥</td>
|
|
<td width="120">状态</td>
|
|
|
|
</tr>
|
|
${zhiqim_manager_tr_no_record(pageResult, 4, "暂时没有商家信息")}
|
|
<#for item : merchantList>
|
|
<tr class="z-pointer" ${zhiqim_manager_tr_onmouse()} ${zhiqim_manager_tr_click_radio()}>
|
|
<td><input name="merchantName" type="checkbox" data-role="z-checkbox" data-class="${zmr_color_class}" value="${item.getMerchantName()}"></td>
|
|
<td>${item.getMerchantId()}</td>
|
|
<td>${item.getMerchantName()}</td>
|
|
<td>${item.getMerchantSecret()}</td>
|
|
<td><#if item.isEnabled()>正常<#else><span class="z-text-red">停用</span></#if></td>
|
|
|
|
</tr>
|
|
</#for>
|
|
</table>
|
|
${zhiqim_manager_paging(pageResult, "/orderMerchantList.htm")}
|
|
${zhiqim_manager_content_end()} |