Commit 3d9f6b02 by 冷斌

fix bug

parent cd7bf737
......@@ -23,7 +23,7 @@
<span>支付宝</span>
</div>
<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">
</div>
</div>
......@@ -34,7 +34,7 @@
<span>银行卡</span>
</div>
<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">
</div>
</div>
......@@ -59,9 +59,10 @@
el: '#app',
data: {
//数据集
wayNum: 1, // 1支付宝 2银行卡
wayNum: 0, // 1支付宝 2银行卡
allow_money: 999, // 可提现金额
withdraw_money:'', // 提现金额
source: 0
},
methods: {
info() {
......@@ -97,7 +98,7 @@
//加载触发函数
let _this = this;
let url = _this.url('/index.php?g=Appapi&m=Profit&a=withdrawInfo');
let info = _this.info();
_this.source = sessionStorage.getItem("source");
$.ajax({
url: url,
dataType: "json",
......@@ -110,7 +111,17 @@
window.location.href = _this.url('/index.php?g=Appapi&m=Profit&a=index');
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 {
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