添加了跳转

This commit is contained in:
luyuan 2020-10-29 16:58:56 +08:00
parent 98c0e6d603
commit 8d38b222d7
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
2 changed files with 14 additions and 6 deletions

View File

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

View File

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