init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,87 @@
|
||||
{include file="public/header"}
|
||||
<body>
|
||||
<style type="text/css"> textarea, input[type="text"], input[type="password"],.uneditable-input{border: 1px solid #ccc;background-color: #fff; } .change_box a{font-size: 14px;padding: 10.5px 10px;} .change_box .pass_edit{border-right:1px solid #e5e5e5;border-left:1px solid #e5e5e5;border-top:1px solid #e5e5e5; position: relative; color: #3daae9; } .change_box .pass_edit:after{content: ""; bottom: -2px; background: #fff; width: 100%; height: 5px; position: absolute; left: 0; } .x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; } .control-group{overflow: hidden; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px dotted #dddddd; } .control-label{float: left; padding-top: 3px; width: 160px; text-align: right; font-size: 14px; } .controls{text-align: left; overflow-x: auto; overflow-y: hidden; margin-left: 180px; } .controls input{width: 300px; height: 24px; font-size: 14px; border-radius: 4px; padding-left:6px; } .controls textarea{width: 400px; height: 90px; border-radius: 4px; } .form-horizontal{margin: 0 10px; } .bottom-buttom{border-top: 1px solid #e5e5e5; margin-top: 20px; background-color: #f5f5f5; padding: 30px 0; } .pass_submit{width: 50px; text-align: center; background-color:#3daae9; color: #fff; padding: 5px 10px; font-size: 16px; border-radius: 4px; cursor:pointer; } </style>
|
||||
<div class="x-nav" style="padding: 0px;">
|
||||
<span class="change_box">
|
||||
<a href="javascript:;" _href="/recharge/setting" class="pass_edit">充值提现配置</a>
|
||||
</span>
|
||||
<a class="layui-btn layui-btn-small refresh" style="line-height:1.6em;margin-top:3px;float:right"
|
||||
href="javascript:location.replace(location.href);" title="刷新">
|
||||
<i class="layui-icon" style="line-height:30px">ဂ</i></a>
|
||||
</div>
|
||||
<br>
|
||||
<div class="info_from form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label">充值U币:</label>
|
||||
<div class="controls">
|
||||
100 U币 =
|
||||
<input name="recharge_money" type="number" value="{$system.recharge_money}" class="required">
|
||||
分
|
||||
<span class="help-inline">
|
||||
<font color="red">*</font>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">提现U币:</label>
|
||||
<div class="controls">
|
||||
100 U币 =
|
||||
<input name="withdraw_money" type="number" value="{$system.withdraw_money}" class="required">
|
||||
分
|
||||
<span class="help-inline">
|
||||
<font color="red">*</font>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">提现U币手续费:</label>
|
||||
<div class="controls">
|
||||
<input name="withdraw_fee" type="number" value="{$system.withdraw_fee}" class="required">
|
||||
U币
|
||||
<span class="help-inline">
|
||||
<font color="red">*</font>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom-buttom">
|
||||
<label class="control-label"></label>
|
||||
<div class="controls">
|
||||
<div class='pass_submit'>保存</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
<script type="text/javascript">
|
||||
$('.pass_submit').click(function(){
|
||||
var rechargeMoney = $('input[name="recharge_money"]').val();
|
||||
var withdrawMoney = $('input[name="withdraw_money"]').val();
|
||||
var withdrawFee = $('input[name="withdraw_fee"]').val();
|
||||
if(rechargeMoney == '' || rechargeMoney == null){
|
||||
layer.alert('请填写充值U币配置!');
|
||||
return false;
|
||||
}
|
||||
if(withdrawMoney == '' || withdrawMoney == null){
|
||||
layer.alert('请填写提现U币配置!');
|
||||
return false;
|
||||
}
|
||||
$.ajax({
|
||||
url:"/recharge/saveSetting",
|
||||
type:"POST",
|
||||
dataType:"JSON",
|
||||
data:{
|
||||
recharge_money:rechargeMoney,
|
||||
withdraw_money:withdrawMoney,
|
||||
withdraw_fee:withdrawFee,
|
||||
},
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
layer.msg(data.msg);
|
||||
}else{
|
||||
layer.msg(data.msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</html>
|
||||
Reference in New Issue
Block a user