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);
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
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;
...@@ -36,7 +36,8 @@ ...@@ -36,7 +36,8 @@
<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"
type="number"></van-field>
</div> </div>
</div> </div>
<div class="self_center layout_h_r weight_full"> <div class="self_center layout_h_r weight_full">
...@@ -46,7 +47,9 @@ ...@@ -46,7 +47,9 @@
<div class="divider"></div> <div class="divider"></div>
<div class="input_bottom layout_h"> <div class="input_bottom layout_h">
<div> <div>
<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> <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>
</div> </div>
</div> </div>
...@@ -59,7 +62,7 @@ ...@@ -59,7 +62,7 @@
<script> <script>
new Vue({ new Vue({
el: "#app", el: "#app",
data: function() { data: function () {
return { return {
value: "", value: "",
min: 1, min: 1,
...@@ -68,19 +71,43 @@ ...@@ -68,19 +71,43 @@
} }
}, },
computed: { computed: {
minWithdraw: function() { minWithdraw: function () {
return '最低满' + this.min + '可提现' return '最低满' + this.min + '可提现'
} }
}, },
methods: { methods: {
onWithdraw: function() { onWithdraw: function () {
let _this = this;
$.ajax({
type: "POST",
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() { onAll: function () {
this.value = this.max 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