解决支付宝错误
This commit is contained in:
@@ -295,7 +295,7 @@ namespace Home.Controllers
|
||||
{
|
||||
Body = request.PackageName,
|
||||
Subject = oName,
|
||||
TotalAmount = request.OtherPayAmount.ToString(),
|
||||
TotalAmount = decimal.Round(decimal.Parse(request.OtherPayAmount.ToString()),2).ToString(),
|
||||
OutTradeNo = request.OrderNo,
|
||||
ProductCode = "FAST_INSTANT_TRADE_PAY",//QUICK_WAP_PAY
|
||||
TimeoutExpress="15m"
|
||||
|
||||
@@ -534,10 +534,18 @@ namespace Home.Controllers
|
||||
public async Task<IActionResult> MyCoupons()
|
||||
{
|
||||
var userId =this.Request.GetUserInfo().UserId;
|
||||
var model = await m_CouponService.GetUserCoupon(userId);
|
||||
var model = await m_CouponService.GetUserCoupon(userId);
|
||||
return View(model);
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
[UserAuth]
|
||||
public IActionResult CashOut()
|
||||
{
|
||||
var userId =this.Request.GetUserInfo().UserId;
|
||||
return View();
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 发送手机验证码
|
||||
/// </summary>
|
||||
@@ -598,7 +606,7 @@ namespace Home.Controllers
|
||||
};
|
||||
var retAmount = await m_UserService.UpdateAmount(amountInfo);
|
||||
|
||||
await m_CouponService.TaoBaoGive(userEntity.Id, 1, userEntity.TaoBao);
|
||||
await m_CouponService.TaoBaoGive(userEntity.Id, 9, userEntity.TaoBao);
|
||||
|
||||
|
||||
var taobaoEntity = notifyOrder.MapTo<TaoBaoOrderEntity>();
|
||||
|
||||
@@ -180,20 +180,20 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-sm-5 col-xs-5">
|
||||
应付款:
|
||||
总金额:
|
||||
</div>
|
||||
<div class="col-sm-7 col-xs-7">
|
||||
<span>{{OneTotalAmount}}</span>元
|
||||
</div>
|
||||
</div>
|
||||
@* <div class="row">
|
||||
<div class="row">
|
||||
<div class="col-sm-5 col-xs-5">
|
||||
应付款:
|
||||
</div>
|
||||
<div class="col-sm-7 col-xs-7">
|
||||
<span class="yingfu" style="font-size: 35px;font-weight: bold;">{{OnePayAmount}}</span>元
|
||||
</div>
|
||||
</div> *@
|
||||
</div>
|
||||
<p class="grayText songquan">每隔30天淘宝下单可获得一张优惠券</p>
|
||||
<p class="redText songquan">{{Tip}}</p>
|
||||
<div class="ok">
|
||||
|
||||
60
Host/Views.Mobile/User/CashOut.cshtml
Normal file
60
Host/Views.Mobile/User/CashOut.cshtml
Normal file
@@ -0,0 +1,60 @@
|
||||
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
<div id="app" style="margin-top: 10%;">
|
||||
<table class="table">
|
||||
<caption>提现管理</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>提现金额</th>
|
||||
<th>支付宝账号</th>
|
||||
<th>状态</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="info in tableData">
|
||||
<td>{{info.money}}</td>
|
||||
<td>{{info.alipay_account}}</td>
|
||||
<td>{{info.status}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script>
|
||||
var vm = new Vue({
|
||||
el:'#app',
|
||||
data:{
|
||||
tableData: [],
|
||||
},
|
||||
created:function(){
|
||||
this.post();
|
||||
},
|
||||
methods:{
|
||||
post:function(){
|
||||
var param = [];
|
||||
let cashOutData = {
|
||||
cookie:document.cookie
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async:false,
|
||||
url: 'http://autophp.wyk/order/index/getData',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(cashOutData),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == 10000) {
|
||||
param = res.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
this.tableData = param;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -15,5 +15,6 @@
|
||||
<li><img src="~/m/img/p2.png"><a asp-action="myrefundorders" asp-controller="user">退货订单<img src="~/m/img/arrow.png"></a></li>
|
||||
<li><img src="~/m/img/p3.png"><a asp-action="myaccounts" asp-controller="user">PPTP账号管理<img src="~/m/img/arrow.png"></a></li>
|
||||
<li><img src="~/m/img/p4.png"><a asp-action="mycoupons" asp-controller="user">我的优惠券<img src="~/m/img/arrow.png"></a></li>
|
||||
@* <li><img src="~/m/img/p4.png"></span><a asp-action="cashout" asp-controller="user">提现管理<img src="~/m/img/arrow.png"></a></li> *@
|
||||
</ul>
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
<div class="accout_tit">
|
||||
<span class="lineBar"></span>余额
|
||||
<button class="btnXq" onclick="$('#chargeBox').show()">充值</button>
|
||||
<button class="btnXq" onclick="$('#cash-out').show()">提现</button>
|
||||
@* <button class="btnXq" onclick="$('#cash-out').show()">提现</button> *@
|
||||
</div>
|
||||
<div class="model">
|
||||
<div class="item">
|
||||
|
||||
@@ -199,7 +199,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 text-right">
|
||||
应付款:
|
||||
总金额:
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<span class="blueText">{{OneTotalAmount}}</span>元
|
||||
@@ -208,7 +208,7 @@
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
@* <div class="row">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 text-right">
|
||||
应付款:
|
||||
</div>
|
||||
@@ -218,7 +218,7 @@
|
||||
<div class="col-lg-4 text-left">
|
||||
<span></span>
|
||||
</div>
|
||||
</div> *@
|
||||
</div>
|
||||
<p class="tiijiao-tipjiao" style="color:red">{{Tip}}</p>
|
||||
<p class="tijiao"><button class="btn btn-primary" type="button" v-on:click="onePay">确认支付</button></p>
|
||||
|
||||
@@ -351,7 +351,7 @@
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
@* <div class="row">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 text-right">
|
||||
应付款:
|
||||
</div>
|
||||
@@ -361,7 +361,7 @@
|
||||
<div class="col-lg-4 text-left">
|
||||
<span></span>
|
||||
</div>
|
||||
</div> *@
|
||||
</div>
|
||||
<p class="ijiao-tip" style="color:red">{{Tip}}</p>
|
||||
<p class="tijiao"><button class="btn btn-primary" type="button" v-on:click="morePay">确认支付</button></p>
|
||||
</form>
|
||||
|
||||
@@ -167,7 +167,7 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-lg-4 text-right">
|
||||
应付款:
|
||||
总金额:
|
||||
</div>
|
||||
<div class="col-lg-4">
|
||||
<span class="blueText">{{TotalAmount}}</span>元
|
||||
@@ -176,7 +176,7 @@
|
||||
<span></span>
|
||||
</div>
|
||||
</div>
|
||||
@* <div class="row">
|
||||
<div class="row">
|
||||
<div class="col-lg-4 text-right">
|
||||
应付款:
|
||||
</div>
|
||||
@@ -186,7 +186,7 @@
|
||||
<div class="col-lg-4 text-left">
|
||||
<span></span>
|
||||
</div>
|
||||
</div> *@
|
||||
</div>
|
||||
<p class="ijiao-tip" style="color:red">{{Tip}}</p>
|
||||
<p class="tijiao"><button class="btn btn-primary" type="button" v-on:click="onePay">确认支付</button></p>
|
||||
|
||||
|
||||
@@ -76,6 +76,9 @@
|
||||
<div class="item @(currentPath=="/user/mycoupons"?"active_b":"")">
|
||||
<img src="~/img/p5.png"><a href="/user/mycoupons">我的优惠券</a>
|
||||
</div>
|
||||
@* <div class="item @(currentPath=="/user/cashout"?"active_b":"")">
|
||||
<span class="glyphicon glyphicon-jpy" style="padding: 10px;"></span><a href="/user/cashout">提现管理</a>
|
||||
</div> *@
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-10 rightCon">
|
||||
|
||||
66
Host/Views/User/CashOut.cshtml
Normal file
66
Host/Views/User/CashOut.cshtml
Normal file
@@ -0,0 +1,66 @@
|
||||
|
||||
@{
|
||||
Layout = "_UserLayout";
|
||||
}
|
||||
<div id="app">
|
||||
<table class="table">
|
||||
<caption>提现管理</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用户</th>
|
||||
<th>提现金额</th>
|
||||
<th>提现理由</th>
|
||||
<th>支付宝账号</th>
|
||||
<th>状态</th>
|
||||
<th>提现时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr v-for="info in tableData">
|
||||
<td>{{info.username}}</td>
|
||||
<td>{{info.money}}</td>
|
||||
<td>{{info.reason}}</td>
|
||||
<td>{{info.alipay_account}}</td>
|
||||
<td>{{info.status}}</td>
|
||||
<td>{{info.create_time}}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<script>
|
||||
var vm = new Vue({
|
||||
el:'#app',
|
||||
data:{
|
||||
tableData: [],
|
||||
},
|
||||
created:function(){
|
||||
this.post();
|
||||
},
|
||||
methods:{
|
||||
post:function(){
|
||||
var param = [];
|
||||
let cashOutData = {
|
||||
cookie:document.cookie
|
||||
}
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
async:false,
|
||||
url: 'http://autophp.wyk/order/index/getData',
|
||||
dataType: "json",
|
||||
contentType: "application/json",
|
||||
data: JSON.stringify(cashOutData),
|
||||
beforeSend: function(xhr) {
|
||||
xhr.withCredentials = true;
|
||||
},
|
||||
crossDomain: true,
|
||||
success: function (res) {
|
||||
if (res.Code == 10000) {
|
||||
param = res.data;
|
||||
}
|
||||
}
|
||||
});
|
||||
this.tableData = param;
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
@@ -268,7 +268,7 @@
|
||||
<div class="col-lg-3">
|
||||
<div class="zhanghu">
|
||||
<div class="accout_tit"><span class="lineBar"></span>余额</div>
|
||||
<p class="charge" onclick="$('.cash-out').show()" style="float:left;font-size:25px;"><a>提现</a></p>
|
||||
@* <p class="charge" onclick="$('.cash-out').show()" style="float:left;font-size:25px;"><a>提现</a></p> *@
|
||||
<p class="charge" onclick="$('.chargeList').show()" style="font-size:25px;"><a>充值</a></p>
|
||||
<div class="money" style="padding: 20px 30px;">¥<span>@Model.UserModel.RestAmount</span></div>
|
||||
<p class="grayText text-center">可通过淘宝充值,或联系管理员充值</p>
|
||||
|
||||
Reference in New Issue
Block a user