Commit 3d9f6b02 by 冷斌

fix bug

parent cd7bf737
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<span>支付宝</span> <span>支付宝</span>
</div> </div>
<div class="wayItemBd"> <div class="wayItemBd">
<img v-if="wayNum==1" src="__PUBLIC__/appapi/pay/img/right@2x.png"> <img v-if="wayNum==0" src="__PUBLIC__/appapi/pay/img/right@2x.png">
<img v-else src="__PUBLIC__/appapi/pay/img/no_right@2x.png"> <img v-else src="__PUBLIC__/appapi/pay/img/no_right@2x.png">
</div> </div>
</div> </div>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<span>银行卡</span> <span>银行卡</span>
</div> </div>
<div class="wayItemBd"> <div class="wayItemBd">
<img v-if="wayNum==2" src="__PUBLIC__/appapi/pay/img/right@2x.png"> <img v-if="wayNum==1" src="__PUBLIC__/appapi/pay/img/right@2x.png">
<img v-else src="__PUBLIC__/appapi/pay/img/no_right@2x.png"> <img v-else src="__PUBLIC__/appapi/pay/img/no_right@2x.png">
</div> </div>
</div> </div>
...@@ -59,9 +59,10 @@ ...@@ -59,9 +59,10 @@
el: '#app', el: '#app',
data: { data: {
//数据集 //数据集
wayNum: 1, // 1支付宝 2银行卡 wayNum: 0, // 1支付宝 2银行卡
allow_money: 999, // 可提现金额 allow_money: 999, // 可提现金额
withdraw_money:'', // 提现金额 withdraw_money:'', // 提现金额
source: 0
}, },
methods: { methods: {
info() { info() {
...@@ -97,7 +98,7 @@ ...@@ -97,7 +98,7 @@
//加载触发函数 //加载触发函数
let _this = this; let _this = this;
let url = _this.url('/index.php?g=Appapi&m=Profit&a=withdrawInfo'); let url = _this.url('/index.php?g=Appapi&m=Profit&a=withdrawInfo');
let info = _this.info(); _this.source = sessionStorage.getItem("source");
$.ajax({ $.ajax({
url: url, url: url,
dataType: "json", dataType: "json",
...@@ -110,7 +111,17 @@ ...@@ -110,7 +111,17 @@
window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=index'); window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=index');
return; return;
} }
if (_this.source == 1) {
_this.allow_money = d.votes;
}
if (_this.source == 2) {
_this.allow_money = d.i_votes;
}
if (_this.source == 3) {
_this.allow_money = d.f_votes;
}
} else { } else {
layer.msg(data.msg); layer.msg(data.msg);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment