You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
225 lines
6.4 KiB
HTML
225 lines
6.4 KiB
HTML
4 years ago
|
<extend name="Public/base" />
|
||
|
|
||
|
<block name="body">
|
||
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||
|
<link rel="stylesheet" type="text/css" href="__CSS__/admin_table.css" media="all">
|
||
|
<link href="__STATIC__/icons_alibaba/iconfont.css" rel="stylesheet">
|
||
|
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
|
||
|
<script type="text/javascript" src="__STATIC__/provincecityarea/AreaData_min.js"></script>
|
||
|
<script src="__STATIC__/layer/layer.js"></script>
|
||
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||
|
|
||
|
<style>
|
||
|
.tabcon1711 input.time {
|
||
|
width: 150px;
|
||
|
}
|
||
|
#form .txt_area {
|
||
|
width: 300px;
|
||
|
height: 150px;
|
||
|
}
|
||
|
.tabcon1711 .form_unit {
|
||
|
margin-left: 2px;
|
||
|
}
|
||
|
.tabcon1711 .mustmark {
|
||
|
margin-left:-7px;
|
||
|
}
|
||
|
.list-ratio {
|
||
|
display: table;
|
||
|
}
|
||
|
.list-ratio .li-ratio {
|
||
|
display: flex;
|
||
|
margin-bottom: 20px;
|
||
|
align-items: center;
|
||
|
}
|
||
|
.list-ratio .li-ratio .turnover, .list-ratio .li-ratio .turnover-ratio {
|
||
|
position: relative;
|
||
|
}
|
||
|
.list-ratio .li-ratio .turnover span, .list-ratio .li-ratio .turnover-ratio .error-message {
|
||
|
color: red;
|
||
|
position: absolute;
|
||
|
left: 0;
|
||
|
top: 30px;
|
||
|
white-space: nowrap;
|
||
|
display: none;
|
||
|
}
|
||
|
.iconfont-btn {
|
||
|
cursor: pointer;
|
||
|
}
|
||
|
.iconfont-style {
|
||
|
font-size: 18px;
|
||
|
color: #fff;
|
||
|
border-radius: 4px;
|
||
|
border: 0;
|
||
|
padding: 5px;
|
||
|
margin-left: 10px;
|
||
|
}
|
||
|
.iconfont-selected {
|
||
|
background-color: #0A9AF2;
|
||
|
}
|
||
|
.iconfont-selected:hover {
|
||
|
background-color: #03a9f4;
|
||
|
}
|
||
|
.iconfont-unselected {
|
||
|
background-color: #999;
|
||
|
}
|
||
|
.iconfont-unselected:hover {
|
||
|
background-color: #ababab;
|
||
|
}
|
||
|
</style>
|
||
|
<div class="cf main-place top_nav_list navtab_list">
|
||
|
<h3 class="page_title">{$meta_title}</h3>
|
||
|
<!-- <p class="description_text">说明:此功是创建推广员时所需填写信息</p>-->
|
||
|
</div>
|
||
|
|
||
|
<!-- 标签页导航 -->
|
||
|
<div class="tab-wrap">
|
||
|
<div class="tab-content tabcon1711">
|
||
|
<!-- 基础文档模型 -->
|
||
|
<div id="tab1" class="tab-pane in tab1">
|
||
|
<table border="0" cellspacing="0" cellpadding="0">
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td class="l">功能模块:</td>
|
||
|
<td class="r table_radio">
|
||
|
<input type="text" class="txt" name="wayStr" readonly value="{$way_str}">
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="l"><i class="mustmark">*</i>账号:</td>
|
||
|
<td class="r">
|
||
|
<select name="id" id="id" class="select_gallery">
|
||
|
<?php foreach($allaccount as $key => $item):?>
|
||
|
<option value="<?=$key?>" <?php if($info && $info['id'] == $key):?>selected<?php endif;?>><?=$item['account']?></option>
|
||
|
<?php endforeach;?>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="l">商户主体:</td>
|
||
|
<td class="r table_radio">
|
||
|
<input type="text" class="txt setdom" name="main_name" readonly value="">
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="l">支付账户名称:</td>
|
||
|
<td class="r table_radio">
|
||
|
<input type="text" class="txt setdom" name="name" readonly value="">
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="l">接口类型:</td>
|
||
|
<td class="r table_radio">
|
||
|
<input type="text" class="txt setdom" name="is_free_str" readonly value="">
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
|
||
|
<tr>
|
||
|
<td class="l noticeinfo">APPID:</td>
|
||
|
<td class="r table_radio">
|
||
|
<input name="appId" type="text" value="" readonly class="setdom">
|
||
|
<span class="notice-text"></span>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="l noticeinfo">alipayUserId:</td>
|
||
|
<td class="r table_radio">
|
||
|
<input name="alipayUserId" readonly type="text" value="" class="setdom">
|
||
|
<span class="notice-text"></span>
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td class="l noticeinfo">私钥:</td>
|
||
|
<td class="r table_radio">
|
||
|
<input name="rsaPrivateKey" type="text" class="setdom" readonly value="">
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<div id="merchant-detail" style="margin-top: 10px;">
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<input type="hidden" name="ways" id="ways" value="{$ways}" />
|
||
|
<div class="form-item cf">
|
||
|
<button class="submit_btn mlspacing" id="submit" type="submit" target-form="form-horizontal">
|
||
|
确认
|
||
|
</button>
|
||
|
<a class="submit_btn " alt="返回上一页" title="返回上一页" href="javascript:window.history.back();" >
|
||
|
返回
|
||
|
</a>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</block>
|
||
|
|
||
|
<block name="script">
|
||
|
<script type="text/javascript">
|
||
|
//导航高亮
|
||
|
highlight_subnav("{:U('lists')}");
|
||
|
$(".select_gallery").select2();
|
||
|
|
||
|
var allaccount = {$allaccount|json_encode=512};
|
||
|
|
||
|
$(function(){
|
||
|
|
||
|
showTab();
|
||
|
|
||
|
$('#id').on({
|
||
|
change: function() {
|
||
|
var id = $(this).val();
|
||
|
setDomValue(id)
|
||
|
}
|
||
|
})
|
||
|
|
||
|
$('#id').change()
|
||
|
|
||
|
function setDomValue(id){
|
||
|
var data = {};
|
||
|
// if(id == "0"){
|
||
|
// data = {
|
||
|
// id:0,
|
||
|
// alipayUserId: "",
|
||
|
// appId: "",
|
||
|
// rsaPrivateKey: "",
|
||
|
// is_free_str:"",
|
||
|
// main_name:"",
|
||
|
// name:""
|
||
|
// }
|
||
|
// }else{
|
||
|
data = allaccount[id]
|
||
|
// }
|
||
|
$("#tab1 .setdom").each(function(index,dom){
|
||
|
let name = $(dom).attr("name");
|
||
|
$(dom).val(data[name])
|
||
|
})
|
||
|
}
|
||
|
|
||
|
|
||
|
$('#submit').click(function (e) {
|
||
|
var send = {
|
||
|
id:$("#id option:selected").val(),
|
||
|
ways:$("#ways").val()
|
||
|
}
|
||
|
var url = "{:U('save')}"
|
||
|
$.post(url,send).success(function(result){
|
||
|
if (result.status == 1) {
|
||
|
layer.msg(result.message)
|
||
|
setTimeout(function() {
|
||
|
window.location.href = '{:U("lists")}'
|
||
|
}, 200)
|
||
|
} else {
|
||
|
layer.msg(result.message)
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
});
|
||
|
</script>
|
||
|
</block>
|