添加了跳转 #94

Merged
theluyuan merged 1 commits from xbx into master 2020-10-29 16:59:17 +08:00
2 changed files with 14 additions and 6 deletions
Showing only changes of commit 8d38b222d7 - Show all commits

View File

@ -4,8 +4,8 @@
<div class="tabs"> <div class="tabs">
<div class="beforetab">提现到指定账户</div> <div class="beforetab">提现到指定账户</div>
<span class="residue">余额{{ yue }}</span> <span class="residue">余额{{ yue }}</span>
<div class="topbtn topbtn2">提现到指定账户</div> <div class="topbtn topbtn2" @click="navto('/mine/addaccount')">提现到指定账户</div>
<div class="topbtn topbtn1">提现记录</div> <div class="topbtn topbtn1" @click="navto('/mine/transaction')">提现记录</div>
</div> </div>
<div class="line"></div> <div class="line"></div>
<div class="choose"> <div class="choose">
@ -131,6 +131,7 @@ import NavBottom from "@/components/NavBottom.vue";
import { cashout, getwallect } from "@/api"; import { cashout, getwallect } from "@/api";
import store from "@/store"; import store from "@/store";
import { message } from "ant-design-vue"; import { message } from "ant-design-vue";
import router from '@/router';
export default defineComponent({ export default defineComponent({
name: "Cashout", name: "Cashout",
components: { components: {
@ -150,8 +151,8 @@ export default defineComponent({
const moneychange: (e: number) => void = (e: number) => { const moneychange: (e: number) => void = (e: number) => {
console.log(e); console.log(e);
}; };
// const yue=ref<string>(store.state.userinfo.money) const yue=ref<number>(store.state.userinfo.moneyValue)
const yue = ref<number>(10000); // const yue = ref<number>(10000);
// yue.value=store.state.userinfo.money // yue.value=store.state.userinfo.money
const accountlist = ref<Array<any>>([]); const accountlist = ref<Array<any>>([]);
@ -193,6 +194,11 @@ export default defineComponent({
// toRaw(accountlist.value)[payinfo.value.type] // toRaw(accountlist.value)[payinfo.value.type]
// ); // );
} }
function navto(url: string){
router.push(url)
}
return { return {
money, money,
moneychange, moneychange,
@ -283,6 +289,7 @@ export default defineComponent({
color: #808080; color: #808080;
font-size: 11px; font-size: 11px;
margin-right: 28px; margin-right: 28px;
flex-shrink: 0;
} }
.chooseitem { .chooseitem {
display: flex; display: flex;
@ -301,7 +308,8 @@ export default defineComponent({
background: white; background: white;
border-radius: 17px; border-radius: 17px;
margin-left: 17px; margin-left: 17px;
margin-right: 46px; width: 256px;
margin-right: 30px;
margin-bottom: 17px; margin-bottom: 17px;
.hostinfo { .hostinfo {
display: flex; display: flex;

View File

@ -474,7 +474,7 @@ export default defineComponent({
width:1170px; width:1170px;
flex-wrap: wrap; flex-wrap: wrap;
.accountitem { .accountitem {
width: 372px; width: 368px;
height: 226px; height: 226px;
background: white; background: white;
border-radius: 17px; border-radius: 17px;