Commit 436dc694 by 冷斌

`试卷`

parent 4e7aff54
<include file="__THEME__/public_header_w3g" />
<include file="__THEME__/public_header_w3g"/>
<style type="text/css">
.content_container {
background: rgba(255, 255, 255, 1);
......@@ -21,7 +21,7 @@
margin-left: 1rem;
}
>>>.van-field__control {
>>> .van-field__control {
font-size: 1.25rem;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
......@@ -36,7 +36,8 @@
<div class="text_14_400 color_333333">提现金额</div>
<div class="layout_h">
<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 class="self_center layout_h_r weight_full">
......@@ -46,7 +47,9 @@
<div class="divider"></div>
<div class="input_bottom layout_h">
<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>
......@@ -59,7 +62,7 @@
<script>
new Vue({
el: "#app",
data: function() {
data: function () {
return {
value: "",
min: 1,
......@@ -68,19 +71,43 @@
}
},
computed: {
minWithdraw: function() {
minWithdraw: function () {
return '最低满' + this.min + '可提现'
}
},
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() {
this.value = this.max
onAll: function () {
this.value = this.current
}
}
})
</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