...
|
...
|
@@ -23,7 +23,7 @@ |
|
|
<div class="width_drawal_tips">提现金额</div>
|
|
|
<div class="choice_with_drawal layout align_center justify flex_row flex_wrap">
|
|
|
{foreach name="$data" item="vo"}
|
|
|
<div class="choice_single layout align_center justify_center flex_diection">
|
|
|
<div class="choice_single layout align_center justify_center flex_diection" data-exp="{$vo}" data-rmb="{$key}">
|
|
|
<div class="choice_money">{$key}元</div>
|
|
|
<div class="choice_coupon">消耗{$vo}红包券</div>
|
|
|
</div>
|
...
|
...
|
@@ -42,11 +42,11 @@ |
|
|
</div>
|
|
|
<div class="layout justify flex_row with_dialog_msg">
|
|
|
<div>提现金额</div>
|
|
|
<div>10元</div>
|
|
|
<div class="rmb">10元</div>
|
|
|
</div>
|
|
|
<div class="layout justify flex_row with_dialog_msg">
|
|
|
<div>消耗红包劵</div>
|
|
|
<div>-10000</div>
|
|
|
<div class="exp">-10000</div>
|
|
|
</div>
|
|
|
<div class="layout justify flex_row with_dialog_btns">
|
|
|
<div class="with_btn_l">取消</div>
|
...
|
...
|
@@ -65,6 +65,18 @@ |
|
|
|
|
|
// 提现
|
|
|
$(".btn").click(function() {
|
|
|
var user_exp = $('.wallet_coupon').text();
|
|
|
var exp = $('.choiced').attr('data-exp');
|
|
|
var rmb = $('.choiced').attr('data-rmb');
|
|
|
if(exp == ''){
|
|
|
toast('请选择提现金额');
|
|
|
return false;
|
|
|
}else if(user_exp < exp){
|
|
|
toast('提现金额过高');
|
|
|
return false;
|
|
|
}
|
|
|
$(".rmb").text(rmb+"元");
|
|
|
$(".exp").text("-"+exp);
|
|
|
$(".with_drawal_modal").show();
|
|
|
$(".with_drawal_dialog").show();
|
|
|
})
|
...
|
...
|
|