Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View File

@ -0,0 +1,35 @@
<form id='drawForm' autocomplete='off' >
<input type="hidden" id="token" value='{:WSTConf("CONF.pwdModulusKey")}'/>
<table width='100%' style='margin-top:10px;' class='wst-form' style='dislay:none'>
<tr>
<th width='120' align='right'>提现账号:</th>
<td style='line-height:25px;'>
【{$object['bankName']}】{$object['bankNo']}
</td>
</tr>
<tr>
<th width='120' align='right'>账号持有人:</th>
<td>{$object['bankUserName']}</td>
</tr>
<tr>
<th align='right'>提现金额<font color='red'>*</font></th>
<td>
<input type='text' id='money' class='j-ipt' style='width:250px' data-rule="提现金额: required;" onkeypress="return WST.isNumberdoteKey(event)" onblur="javascript:WST.limitDecimal(this,2)" onkeyup="javascript:WST.isChinese(this,1)" placeholder="可提现金额:¥{$shop['shopMoney']-$shop['rechargeMoney']}"/>
</td>
</tr>
<tr height='40'>
<th align='right'>支付密码<font color='red'>*</font></th>
<td>
<input type="password" style="display:none">
<input type='password' id='payPwd' class='j-ipt' style='width:250px' data-rule="支付密码: required;"/>
</td>
</tr>
<tr>
<td colspan='2' style='text-align: center;padding-top:5px;'>
<a class='s-btn' onclick="drawMoney()">保存</a>
<a class='s-btn2' style='margin-left:10px;' onclick='layerclose()'>取消</a>
</td>
</tr>
</table>
</form>
<script type="text/javascript" src="__STATIC__/js/rsa.js"></script>

View File

@ -0,0 +1,113 @@
$(function () {
$('#tab').TabPanel({tab:0,callback:function(tab){
switch(tab){
case 0:pageQuery(0);break;
case 1:pageConfigQuery(0);break;
}
}})
});
var isSetPayPwd = 1;
function getShopMoney(){
$.post(WST.U('home/shops/getShopMoney'),{},function(data,textStatus){
var json = WST.toJson(data);
if(json.status==1){
var shopMoney = json.data.shopMoney;
var rechargeMoney = json.data.rechargeMoney;
$('#shopMoney').html('¥'+shopMoney);
$('#lockMoney').html('¥'+json.data.lockMoney);
rechargeMoney = parseFloat(shopMoney - rechargeMoney)
$('#userCashMoney').html('¥'+rechargeMoney.toFixed(2));
if(json.data.isDraw==1){
$('#drawBtn').show();
}else{
$('#drawBtn').hide();
}
isSetPayPwd = json.data.isSetPayPwd;
}
});
}
function pageQuery(p){
var tips = WST.load({msg:'正在获取数据,请稍后...'});
var params = {};
params.page = p;
$.post(WST.U('home/cashdraws/pageQueryByShop'),params,function(data,textStatus){
layer.close(tips);
var json = WST.toJson(data);
if(json.status==1){
json = json.data;
if(params.page>json.TotalPage && json.TotalPage >0){
pageQuery(json.TotalPage);
return;
}
var gettpl = document.getElementById('draw-list').innerHTML;
laytpl(gettpl).render(json.Rows, function(html){
$('#draw-page-list').html(html);
});
laypage({
cont: 'draw-pager',
pages:json.TotalPage,
curr: json.CurrentPage,
skin: '#e23e3d',
groups: 3,
jump: function(e, first){
if(!first){
pageQuery(e.curr);
}
}
});
}
});
}
var w;
function toDrawMoney(){
if(isSetPayPwd==0){
WST.msg('您尚未设置支付密码,请先设置支付密码',{icon:2,time:1000},function(){
location.href = WST.U('home/users/security');
});
return;
}
var tips = WST.load({msg:'正在获取数据,请稍后...'});
$.post(WST.U('home/cashdraws/toEditByShop'),{},function(data,textStatus){
layer.close(tips);
w = WST.open({
type: 1,
title:"申请提现",
shade: [0.6, '#000'],
border: [0],
content: data,
area: ['550px', '250px'],
offset: '100px'
});
});
}
function drawMoney(){
$('#drawForm').isValid(function(v){
if(v){
var params = WST.getParams('.j-ipt');
if(window.conf.IS_CRYPT=='1'){
var public_key=$('#token').val();
var exponent="10001";
var rsa = new RSAKey();
rsa.setPublic(public_key, exponent);
params.payPwd = rsa.encrypt(params.payPwd);
}
var tips = WST.load({msg:'正在提交数据,请稍后...'});
$.post(WST.U('home/cashdraws/drawMoneyByShop'),params,function(data,textStatus){
layer.close(tips);
var json = WST.toJson(data);
if(json.status==1){
WST.msg(json.msg,{icon:1},function(){
pageQuery(WSTCurrPage);
getShopMoney();
layer.close(w);
});
}else{
WST.msg(json.msg,{icon:2});
}
});
}
});
}
function layerclose(){
layer.close(w);
}

View File

@ -0,0 +1,91 @@
{extend name="default/shops/base" /}
{block name="title"}提现管理-卖家中心{__block__}{/block}
{block name='css'}
<link href="__STATIC__/plugins/validator/jquery.validator.css?v={$v}" rel="stylesheet">
{/block}
{block name="content"}
<div class='money-head'>
<div class='shop-logo'><img height='100' width='100' src='__IMGURL__/{:session("WST_USER.shopImg")}'></div>
<div class='shop-info'>
<div class='shopName'>{:session('WST_USER.shopName')}</div>
<div class='shopMoney'>
<div class="usermoney">
可用资金:<font color='red' id='shopMoney'>¥0</font>
</div>
<div class="cashbox">
<span style='margin-left:20px;'><a class="cashbtn" id='drawBtn' href="javascript:toDrawMoney();" >申请提现</a></span>
<span class='draw-tips'>(至少¥{:WSTConf('CONF.drawCashShopLimit')}方可提现)</span>
</div>
<div class="wst-clear"></div>
</div>
<div class="wst-clear"></div>
<div class="money-rows">
<div class="lockbox">
冻结资金:<font color='red' id='lockMoney'>¥0</font>
</div>
<div class="cashbox">
<span class="cashmoney-box">可提现金额:<font color='red' id='userCashMoney'>¥0</font></span>
</div>
<div class="wst-clear"></div>
</div>
</div>
</div>
<div class='wst-user-content'>
<div id='tab' class="wst-tab-box">
<ul class="wst-tab-nav">
<li>提现记录</li>
</ul>
<div class='wst-tab-content'>
<div class='wst-tab-item'>
<table class='wst-list' style="font-size:13px;">
<thead>
<tr>
<th width='80'>提现单号</th>
<th width='100'>提现银行</th>
<th width='130'>开户地区</th>
<th width='130'>银行卡号</th>
<th width='100'>持卡人</th>
<th width='60'>提现金额</th>
<th width='250'>提现状态</th>
</tr>
</thead>
<script id="draw-list" type="text/html">
{{# for(var i = 0; i < d.length; i++){ }}
<tr>
<td>{{d[i].cashNo}}</td>
<td>{{d[i].accTargetName}}</td>
<td>{{ d[i].accAreaName }}</td>
<td>{{ d[i].accNo }}</td>
<td>{{ d[i].accUser }}</td>
<td>¥{{ d[i].money }}</td>
<td {{#if(d[i].cashSatus==-1){}}style='line-height:25px;'{{#}}}>
{{#if(d[i].cashSatus==1){}}提现成功
{{#}else if(d[i].cashSatus==-1){}}提现失败
<br/>原因{{d[i].cashRemarks}}
{{#}else{}}待处理{{#}}}</td>
</tr>
{{# } }}
</script>
<tbody id="draw-page-list"></tbody>
<tfoot>
<tr>
<td colspan='5' align="center" style='padding:5px 0px 5px 0px'>
<div id="draw-pager"></div>
</td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
{/block}
{block name="js"}
<script type='text/javascript' src='__STYLE__/shops/cashdraws/cashdraws.js?v={$v}'></script>
<script type="text/javascript" src="__STATIC__/plugins/validator/jquery.validator.min.js?v={$v}"></script>
<script>
$(function(){
getShopMoney();
})
</script>
{/block}