订阅者
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
<div class="mingxilist">
|
||||
<div class="tabs">
|
||||
<div class="beforetab">提现到指定账户</div>
|
||||
<span class="residue">余额:¥50</span>
|
||||
<span class="residue">余额:{{yue}}</span>
|
||||
<div class="topbtn topbtn2">提现到指定账户</div>
|
||||
<div class="topbtn topbtn1">提现记录</div>
|
||||
</div>
|
||||
@@ -97,7 +97,7 @@
|
||||
<div class="desc">注:每笔提现收取0.1%服务费,最低¥0.1</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="ale">*您的余额只有¥{{yue}},最低提现金额¥100</div>
|
||||
<div class="ale" v-if="payinfo.money<100 || payinfo.money>parseFloat(yue)">*您的余额只有{{parseFloat(yue)}},最低提现金额¥100</div>
|
||||
</div>
|
||||
<div class="cashoutall submit" @click="sub">立即提现</div>
|
||||
<NavBottom class="navbottom"></NavBottom>
|
||||
@@ -109,6 +109,7 @@
|
||||
import { defineComponent, onMounted, ref, toRaw } from "vue";
|
||||
import NavBottom from "@/components/NavBottom.vue";
|
||||
import { cashout, getwallect } from '@/api';
|
||||
import store from '@/store';
|
||||
export default defineComponent({
|
||||
name: "Cashout",
|
||||
components: {
|
||||
@@ -124,13 +125,14 @@ export default defineComponent({
|
||||
bankcode:"",
|
||||
bankname:"",
|
||||
international:0,
|
||||
typeid:0
|
||||
|
||||
})
|
||||
const moneychange: (e: number) => void = (e: number) => {
|
||||
console.log(e);
|
||||
};
|
||||
const yue=ref<number>(105)
|
||||
// const yue=ref<string>(store.state.userinfo.money)
|
||||
const yue=ref<number>(10000)
|
||||
// yue.value=store.state.userinfo.money
|
||||
const accountlist =ref<Array<any>>([])
|
||||
|
||||
onMounted(async () => {
|
||||
@@ -139,7 +141,7 @@ export default defineComponent({
|
||||
function onChange(e: any) {
|
||||
console.log(e.target.value);
|
||||
payinfo.value.type=e.target.value
|
||||
payinfo.value.typeid=toRaw(accountlist.value)[e.target.value].wallectid
|
||||
// payinfo.value.typeid=toRaw(accountlist.value)[e.target.value].wallectid
|
||||
// payinfo.value.type=toRaw(accountlist.value)[e.target.value].wallectid
|
||||
}
|
||||
function all(){
|
||||
@@ -147,7 +149,9 @@ export default defineComponent({
|
||||
}
|
||||
function sub(){
|
||||
console.log(toRaw(payinfo.value))
|
||||
// cashout(toRaw(payinfo.value))
|
||||
console.log(toRaw(payinfo.value))
|
||||
payinfo.value.money=Number(payinfo.value.money)
|
||||
cashout(toRaw(payinfo.value),toRaw(accountlist.value)[payinfo.value.type])
|
||||
|
||||
}
|
||||
return {
|
||||
@@ -158,7 +162,8 @@ export default defineComponent({
|
||||
all,
|
||||
yue,
|
||||
sub,
|
||||
accountlist
|
||||
accountlist,
|
||||
store
|
||||
};
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user