ZLW-PC\Administrator
7 years ago
20 changed files with 1015 additions and 89 deletions
-
1app/Common/function.php
-
65app/Http/Controllers/Api/CommentController.php
-
146app/Http/Controllers/Api/OrderController.php
-
24app/Http/Controllers/Api/UserController.php
-
12app/Http/Controllers/Api/UserWithdrawController.php
-
105app/Http/Controllers/Weixin/OrderController.php
-
64app/Http/Controllers/Weixin/UserController.php
-
47app/Http/Controllers/Weixin/WxPayController.php
-
63app/Http/Model/Comment.php
-
22app/Http/Model/Order.php
-
2app/Http/Model/UserRecharge.php
-
52app/Http/Model/UserWithdraw.php
-
42resources/views/weixin/order/orderComment.blade.php
-
101resources/views/weixin/order/orderDetail.blade.php
-
100resources/views/weixin/order/orderList.blade.php
-
12resources/views/weixin/user/index.blade.php
-
2resources/views/weixin/user/userAccount.blade.php
-
125resources/views/weixin/user/userWithdraw.blade.php
-
98resources/views/weixin/user/userWithdrawList.blade.php
-
21routes/web.php
@ -0,0 +1,42 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/> |
|||
<title>发表评价</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"> |
|||
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet"> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script><script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script> |
|||
<meta name="keywords" content="关键词"><meta name="description" content="描述"></head><body style="background-color:#f1f1f1;"> |
|||
<div class="classreturn loginsignup"> |
|||
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div> |
|||
<div class="ds-in-bl tit center"><span>发表评价</span></div> |
|||
<div class="ds-in-bl nav_menu"><a href="javascript:submit();" style="color:#e94e45;">发布</a></div> |
|||
</div> |
|||
|
|||
<form action="<?php echo route('weixin_order_comment'); ?>" method="post" id="myform"> |
|||
<?php if($post){ ?>
|
|||
<input name="order_id" type="hidden" value="<?php echo $post['id']; ?>"> |
|||
<div class="floor"> |
|||
<?php if($post['goods_list']){foreach($post['goods_list'] as $k=>$v){ ?>
|
|||
<div class="tit_h mt10"><img src="<?php echo $v['goods_img']; ?>"> <span class="fr"></span></div> |
|||
|
|||
<div style="padding:10px 10px 8px 10px;background-color:#fff;"><textarea rows="4" name="comment[<?php echo $k; ?>][content]" onfocus="if(value=='宝贝满足你的期待吗?说说你的使用心得,分享给想买的TA们吧'){value=''}" onblur="if(value==''){value='宝贝满足你的期待吗?说说你的使用心得,分享给想买的TA们吧'}">宝贝满足你的期待吗?说说你的使用心得,分享给想买的TA们吧</textarea></div> |
|||
<div class="tit_h" style="border-top:1px solid #eee;"><input type="checkbox" name="comment[<?php echo $k; ?>][is_anonymous]" value="1" checked> 匿名 <span class="fr">你写的评价会以匿名的形式展现</span></div> |
|||
<input name="comment[<?php echo $k; ?>][id_value]" type="hidden" value="<?php echo $v['goods_id']; ?>"> |
|||
<?php }} ?>
|
|||
</div> |
|||
<?php }else{ ?>
|
|||
<div style="text-align:center;line-height:40px;color:#999;">暂无记录</div> |
|||
<?php } ?>
|
|||
</form> |
|||
<style> |
|||
.tit_h{font-size:16px;font-weight:400;background-color:#fff;color:#383838;height:42px;line-height:41px;padding-left:10px;padding-right:10px;border-bottom:1px solid #eee;}
|
|||
.tit_h span{color:#999;font-size:14px;}
|
|||
.tit_h img{width:28px;height:28px;} |
|||
textarea{width:100%;border:none;color:#999;}
|
|||
</style> |
|||
|
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script> |
|||
<script> |
|||
function submit() |
|||
{ |
|||
$("#myform").submit(); |
|||
} |
|||
</script> |
|||
</body></html> |
@ -0,0 +1,125 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/> |
|||
<title>提现</title><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"> |
|||
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet"> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script> |
|||
<meta name="keywords" content="关键词"><meta name="description" content="描述"></head><body style="background-color:#f1f1f1;"> |
|||
<div class="classreturn loginsignup "> |
|||
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div> |
|||
<div class="ds-in-bl tit center"><span>提现</span></div> |
|||
<div class="ds-in-bl nav_menu"><a href="<?php echo route('weixin_user_withdraw_list'); ?>" style="color:#999;">提现明细</a></div> |
|||
</div> |
|||
|
|||
<style> |
|||
.adr_add{margin:0 10px;} |
|||
.adr-form-group{margin-top:10px;} |
|||
.adr-form-group input[type=text],.adr-form-group input[type=password],.adr-form-group textarea{display: block;width: 100%;font-size:16px;padding:10px;color: #777;vertical-align: middle;background-color: #fff;background-image: none;border: 1px solid #ddd;border-radius: 0;box-sizing:border-box;}
|
|||
.bottoma{display:block;font-size:18px;padding:10px;color:white;background-color:#f23030;text-align:center;}
|
|||
.yongjin_tip{padding:10px;background-color:#FFC;color:#666;border-bottom:1px solid #DDD;font-size:14px;}.yongjin_tip b{color:red;}
|
|||
</style> |
|||
<div class="yongjin_tip">余额:<b>¥<?php echo $user_info['money']; ?></b>,手续费率:<b>0.5%</b>,最少金额:<b>¥<?php echo $min_withdraw_money; ?></b></div>
|
|||
<div class="adr_add"> |
|||
<div class="adr-form-group"> |
|||
<label><font color="red">*</font>收款人姓名</label> |
|||
<input name="name" type="text" class="" id="name" placeholder="输入姓名"> |
|||
</div> |
|||
<div class="adr-form-group" class="text" style="background-color:#FFF; line-height:38px;"> |
|||
<label for="tx_alipay"><input type="radio" checked="checked" name="method" value="alipay" id="tx_alipay">支付宝</label> |
|||
<label for="tx_bank"><input type="radio" name="method" value="bank" id="tx_bank">银行卡</label> |
|||
</div> |
|||
<div class="adr-form-group"> |
|||
<label><font color="red">*</font>提现金额</label> |
|||
<input name="money" type="text" class="" id="money" placeholder="可提现金额:<?php if($is_withdraw==1){echo $user_info['money'];}else{echo '0';} ?>"> |
|||
</div> |
|||
<div class="adr-form-group"> |
|||
<label><font color="red">*</font>收款账号</label> |
|||
<input name="account" type="text" class="" id="account" placeholder=""> |
|||
</div> |
|||
<div id='bank' style="display:none;"> |
|||
<div class="adr-form-group"> |
|||
<label><font color="red">*</font>收款银行</label> |
|||
<input name="bank_name" type="text" class="" id="bank_name" placeholder=""> |
|||
</div> |
|||
<div class="adr-form-group"> |
|||
<label><font color="red">*</font>开户行</label> |
|||
<input name="bank_place" type="text" class="" id="bank_place" placeholder=""> |
|||
</div> |
|||
</div> |
|||
<div class="adr-form-group"> |
|||
<label><font color="red">*</font>支付密码(<a style="color:green;" href="<?php echo route('weixin_userinfo'); ?>">设置</a>)</label> |
|||
<input name="pay_password" type="password" class="" id="pay_password" placeholder="输入支付密码"> |
|||
</div> |
|||
</div> |
|||
<a style="margin:10px;" class="bottoma" href="javascript:submit();">提交</a> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/md5.min.js"></script> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script> |
|||
<script> |
|||
var access_token = '<?php echo $_SESSION['weixin_user_info']['access_token']; ?>'; |
|||
$(function(){ |
|||
$('#tx_alipay').click(function(){ |
|||
$('#bank').hide(); |
|||
}); |
|||
$('#tx_bank').click(function(){ |
|||
$('#bank').show(); |
|||
}); |
|||
}); |
|||
|
|||
function submit() |
|||
{ |
|||
var url = '<?php echo env('APP_API_URL').'/user_withdraw_add'; ?>'; |
|||
var name = $("#name").val(); |
|||
var method = $('[name="method"][checked]').val(); |
|||
var money = $("#money").val(); |
|||
var account = $("#account").val(); |
|||
var bank_name = $("#bank_name").val(); |
|||
var bank_place = $("#bank_place").val(); |
|||
var pay_password = $("#pay_password").val(); |
|||
|
|||
if(name == '' || method == '' || money == '' || account == '' || pay_password == '') |
|||
{ |
|||
//提示
|
|||
layer.open({ |
|||
content: '请填写必填项' |
|||
,skin: 'msg' |
|||
,time: 2 //2秒后自动关闭
|
|||
}); |
|||
|
|||
return false; |
|||
} |
|||
|
|||
if(method == 'bank') |
|||
{ |
|||
if(bank_name == '' || bank_place == '') |
|||
{ |
|||
//提示
|
|||
layer.open({ |
|||
content: '请填写必填项' |
|||
,skin: 'msg' |
|||
,time: 2 //2秒后自动关闭
|
|||
}); |
|||
|
|||
return false; |
|||
} |
|||
} |
|||
|
|||
$.post(url,{access_token:access_token,name:name,method:method,money:money,account:account,bank_name:bank_name,bank_place:bank_place,pay_password:md5(pay_password)},function(res) |
|||
{ |
|||
//提示
|
|||
layer.open({ |
|||
content: res.msg |
|||
,skin: 'msg' |
|||
,time: 2 //2秒后自动关闭
|
|||
}); |
|||
|
|||
if(res.code==0) |
|||
{ |
|||
location.href = "<?php echo route('weixin_user_withdraw_list'); ?>"; |
|||
} |
|||
else |
|||
{ |
|||
|
|||
} |
|||
},'json'); |
|||
} |
|||
</script> |
|||
</body></html> |
@ -0,0 +1,98 @@ |
|||
<!DOCTYPE html><html><head><meta http-equiv="content-type" content="text/html;charset=utf-8"/> |
|||
<title>提现明细</title><meta name="keywords" content="关键词"><meta name="description" content="描述"><meta content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport"> |
|||
<link href="<?php echo env('APP_URL'); ?>/css/weixin/style.css" type="text/css" rel="stylesheet"> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/jquery.min.js"></script> |
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/weixin/mobile.js"></script></head><body> |
|||
<div class="classreturn loginsignup"> |
|||
<div class="ds-in-bl return"><a href="javascript:history.back(-1);"><img src="<?php echo env('APP_URL'); ?>/images/weixin/return.png" alt="返回"></a></div> |
|||
<div class="ds-in-bl tit center"><span>提现明细</span></div> |
|||
</div> |
|||
|
|||
<script type="text/javascript" src="<?php echo env('APP_URL'); ?>/js/layer/mobile/layer.js"></script> |
|||
<style> |
|||
.money_list li{padding:15px;border-bottom:1px solid #ddd;}
|
|||
.money_list .tit{color:#000;font-size:18px;margin-bottom:5px;}
|
|||
.money_list .des{color:#999;font-size:16px;margin-bottom:5px;}
|
|||
.money_list .time{color:#8e8e8e;font-size:12px;}
|
|||
.money_list span{font-size:18px;float:right;vertical-align:middle;margin-top:5px;} |
|||
.money_list span.green{color:#04ba06;}
|
|||
</style> |
|||
<div class="floor"> |
|||
<?php if($list){ ?>
|
|||
<ul class="money_list cl"> |
|||
<?php foreach($list as $k=>$v){ ?>
|
|||
<li> |
|||
<span class="green">- <?php echo $v['money']; ?></span>
|
|||
<div class="info"><p class="tit">提现</p> |
|||
<p class="des">收款账号:<?php echo $v['name']; ?> ,提现方式:<?php echo $v['method']; ?> ,姓名:<?php echo $v['name']; ?><br>状态:<font color="red"><?php echo $v['status_text']; ?></font></p>
|
|||
<p class="time"><?php echo date('Y-m-d H:i:s',$v['add_time']); ?></p></div>
|
|||
</li> |
|||
<?php } ?>
|
|||
</ul> |
|||
<?php }else{ ?>
|
|||
<div style="text-align:center;line-height:40px;color:#999;">暂无记录</div> |
|||
<?php } ?>
|
|||
</div> |
|||
<script> |
|||
$(function(){ |
|||
var ajaxload = false; |
|||
var maxpage = false; |
|||
var startpage = 1; |
|||
var totalpage = <?php echo $totalpage; ?>;
|
|||
|
|||
var tmp_url = window.location.href; |
|||
msg = tmp_url.split("#"); |
|||
tmp_url = msg[0]; |
|||
|
|||
$(window).scroll(function () |
|||
{ |
|||
var listheight = $(".money_list").outerHeight(); |
|||
|
|||
if ($(document).scrollTop() + $(window).height() >= listheight) |
|||
{ |
|||
if(startpage >= totalpage) |
|||
{ |
|||
//$("#submit_bt_one").html("已是最后一页,没有更多数据!");
|
|||
return false; |
|||
} |
|||
|
|||
if(!ajaxload && !maxpage) |
|||
{ |
|||
ajaxload = true; |
|||
//$("#submit_bt_one").html("努力加载中...");
|
|||
var url = tmp_url; |
|||
var nextpage = startpage+1; |
|||
|
|||
$.get(url,{page_ajax:1,page:nextpage},function(res) |
|||
{ |
|||
if(res) |
|||
{ |
|||
$(".money_list").append(res); |
|||
startpage++; |
|||
|
|||
if(startpage >= totalpage) |
|||
{ |
|||
maxpage = true; |
|||
//$("#submit_bt_one").html("已是最后一页,没有更多数据!");
|
|||
} |
|||
else |
|||
{ |
|||
//$("#submit_bt_one").html("点击加载更多");
|
|||
} |
|||
|
|||
ajaxload = false; |
|||
} |
|||
else |
|||
{ |
|||
//$("#submit_bt_one").html("请求失败,请稍候再试!");
|
|||
ajaxload = false; |
|||
} |
|||
},'json'); |
|||
} |
|||
} |
|||
}); |
|||
}); |
|||
</script> |
|||
|
|||
@include('weixin.common.footer') |
|||
</body></html> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue