Commit 436dc694 by 冷斌

`试卷`

parent 4e7aff54
<include file="__THEME__/public_header_w3g" /> <include file="__THEME__/public_header_w3g"/>
<style type="text/css"> <style type="text/css">
.content_container { .content_container {
background: rgba(255, 255, 255, 1); background: rgba(255, 255, 255, 1);
border-radius: 0.75rem; border-radius: 0.75rem;
padding: 0.75rem 0.75rem 1.5625rem 0.75rem; padding: 0.75rem 0.75rem 1.5625rem 0.75rem;
} }
.input_container { .input_container {
margin-top: 0.5rem; margin-top: 0.5rem;
} }
.input_bottom { .input_bottom {
margin-top: 0.5rem; margin-top: 0.5rem;
justify-content: space-between; justify-content: space-between;
} }
.withdraw_hint { .withdraw_hint {
margin-top: 0.375rem; margin-top: 0.375rem;
margin-left: 1rem; margin-left: 1rem;
} }
>>>.van-field__control { >>> .van-field__control {
font-size: 1.25rem; font-size: 1.25rem;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
} }
</style> </style>
<div id="app"> <div id="app">
<div class="layout_v"> <div class="layout_v">
<div class="content_container layout_v"> <div class="content_container layout_v">
<div class="input_container layout_h"> <div class="input_container layout_h">
<div class="layout_v"> <div class="layout_v">
<div class="text_14_400 color_333333">提现金额</div> <div class="text_14_400 color_333333">提现金额</div>
<div class="layout_h"> <div class="layout_h">
<div class="color_333333 text_26_600 self_center">¥</div> <div class="color_333333 text_26_600 self_center">¥</div>
<van-field :placeholder="minWithdraw" v-model="value" input-align="left" type="number"></van-field> <van-field :placeholder="minWithdraw" v-model="value" input-align="left"
</div> type="number"></van-field>
</div> </div>
<div class="self_center layout_h_r weight_full"> </div>
<div @click="onAll" class="text_14_400 color_primary self_center">全部提现</div> <div class="self_center layout_h_r weight_full">
</div> <div @click="onAll" class="text_14_400 color_primary self_center">全部提现</div>
</div> </div>
<div class="divider"></div> </div>
<div class="input_bottom layout_h"> <div class="divider"></div>
<div> <div class="input_bottom layout_h">
<span class="text_14_400 color_333333">当前余额:¥<span class="text_14_400 color_EF4339">{{current}}</span>,最大可提现:¥<span class="text_14_400 color_EF4339">{{max}}</span></span> <div>
</div> <span class="text_14_400 color_333333">当前余额:¥<span
</div> class="text_14_400 color_EF4339">{{current}}</span>,最大可提现:¥<span
</div> class="text_14_400 color_EF4339">{{max}}</span></span>
<div @click="onWithdraw" class="confirm_button layout_h_c"> </div>
<span class="text_14_600 self_center color_white">确认提现</span> </div>
</div> </div>
</div> <div @click="onWithdraw" class="confirm_button layout_h_c">
<span class="text_14_600 self_center color_white">确认提现</span>
</div>
</div>
</div> </div>
<script> <script>
new Vue({ new Vue({
el: "#app", el: "#app",
data: function() { data: function () {
return { return {
value: "", value: "",
min: 1, min: 1,
current: "{$balance}", current: "{$balance}",
max: 5000 max: 5000
} }
}, },
computed: { computed: {
minWithdraw: function() { minWithdraw: function () {
return '最低满' + this.min + '可提现' return '最低满' + this.min + '可提现'
} }
}, },
methods: { methods: {
onWithdraw: function() { onWithdraw: function () {
let _this = this;
}, $.ajax({
onAll: function() { type: "POST",
this.value = this.max url: "{:U('home/User/applySpiltWithdraw')}",
} data: "tw_type='wxpay'&exchange_balance=" + _this.value + "&card_id=",
} dataType: "json",
}) success: function (res) {
if (typeof (res) != 'object') {
try {
res = JSON.parse(res);
} catch (e) {
ui.error("处理异常,请稍后再试");
return;
}
}
if (res.status == 1) {
ui.success(res.info);
setTimeout(function () {
location.reload();
}, 1000);
} else {
ui.error(res.info);
}
}
});
},
onAll: function () {
this.value = this.current
}
}
})
</script> </script>
<include file="__THEME__/public_footer_w3g" /> <include file="__THEME__/public_footer_w3g"/>
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