| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458 |
- <template>
- <HeaderNav headerText="我的"></HeaderNav>
- <div class="index-user">
- <div class="user-info" @click="goUserCenter">
- <div class="info-left">
- <img src="../../assets/img/index/user/default-head.png" alt="" />
- <div class="left-message">
- <div class="name pf500 fs18 fc061237">用户昵称</div>
- <div class="id pf400 fs14 fc6A7187">ID: 658908</div>
- </div>
- </div>
- <div class="info-right">
- <img src="../../assets/icon/index/right-arrow.svg" alt="" />
- </div>
- </div>
- <div class="unlock-vip">
- <img src="../../assets/img/index/vip.svg" alt="" />
- </div>
- <div class="asset-management">
- <div class="asset-title pf600 fs18 fc333333">资产管理</div>
- <div class="index-menu">
- <div
- class="menu-item"
- v-for="(item, index) in indexMenu"
- :key="index"
- @click="goIndexMenu(index)">
- <img :src="item.image" alt="" />
- <div class="item-text pf400 fs14 fc666666">{{ item.name }}</div>
- </div>
- </div>
- </div>
- <div class="transaction">
- <div class="transaction-title pf600 fs18 fc333333">交易</div>
- <div class="index-menu">
- <div
- class="menu-item"
- v-for="(item, index) in transactionMenu"
- :key="index"
- @click="goTransaction(index)">
- <img :src="item.image" alt="" />
- <div class="item-text pf400 fs14 fc666666">{{ item.name }}</div>
- </div>
- </div>
- </div>
- <div class="common-functions">
- <div class="asset-title pf600 fs18 fc333333">常用功能</div>
- <div class="index-menu">
- <div
- class="menu-item"
- v-for="(item, index) in commonFunctions"
- :key="index"
- @click="goCommonFunc(index)">
- <img :src="item.image" alt="" />
- <div class="item-text pf400 fs14 fc666666">{{ item.name }}</div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script setup>
- import HeaderNav from "./components/HeaderNav.vue";
- import { useRoute, useRouter } from "vue-router";
- const router = useRouter();
- const goUserCenter = () => {
- router.push("/userCenter");
- };
- const goIndexMenu = (index) => {
- if (index == 0) {
- router.push("/rechargeIndex");
- } else if (index == 1) {
- router.push("/withdrawIndex");
- } else if (index == 2) {
- router.push("/transfer");
- } else if (index == 3) {
- router.push("/loanIndex");
- } else if (index == 4) {
- router.push("/userAsset");
- } else if (index == 5) {
- router.push("/icoIndex");
- }
- };
- const goTransaction = (index) => {
- if (index == 0) {
- router.push("/bitcoin/seconds");
- } else if (index == 1) {
- router.push("/bitcoin/contract");
- } else if (index == 2) {
- router.push("/bitcoin/options");
- } else if (index == 3) {
- router.push("/bitcoin/CryptocurrencyTrading");
- } else if (index == 4) {
- router.push("/financialIndex");
- } else if (index == 5) {
- router.push("/loanIndex");
- } else if (index == 6) {
- router.push("/otcIndex");
- }
- };
- const goCommonFunc = (index) => {
- if (index == 0) {
- router.push("/invite");
- } else if (index == 1) {
- } else if (index == 2) {
- router.push("/kyc/step1");
- } else if (index == 3) {
- router.push("/language");
- } else if (index == 4) {
- router.push("/detail");
- } else if (index == 5) {
- router.push("/userCenter");
- } else if (index == 6) {
- router.push("/about");
- }
- };
- const indexMenu = [
- {
- name: "充币",
- image: require("@/assets/img/index/user/chongbi.svg"),
- },
- {
- name: "提币",
- image: require("@/assets/img/index/user/tibi.svg"),
- },
- {
- name: "划转",
- image: require("@/assets/img/index/user/huazhuan.svg"),
- },
- {
- name: "我的贷款",
- image: require("@/assets/icon/index/Rectangle 4.png"),
- },
- {
- name: "我的资产",
- image: require("@/assets/icon/index/zichan.png"),
- },
- {
- name: "ICO",
- image: require("@/assets/img/index/user/ico.svg"),
- },
- ];
- const transactionMenu = [
- {
- name: "秒合约",
- image: require("@/assets/img/index/user/miaoheyue.svg"),
- },
- {
- name: "合约",
- image: require("@/assets/img/index/user/heyue.svg"),
- },
- {
- name: "期权",
- image: require("@/assets/img/index/user/qiquan.svg"),
- },
- {
- name: "币币",
- image: require("@/assets/icon/index/bibi.png"),
- },
- {
- name: "质押理财",
- image: require("@/assets/img/index/user/zhiya.svg"),
- },
- {
- name: "贷款",
- image: require("@/assets/img/index/user/daikuan.svg"),
- },
- {
- name: "OTC交易",
- image: require("@/assets/img/index/user/otc.svg"),
- },
- ];
- const commonFunctions = [
- {
- name: "邀请推广",
- image: require("@/assets/img/index/user/tuiguang.svg"),
- },
- {
- name: "客服",
- image: require("@/assets/img/index/user/kefu.svg"),
- },
- {
- name: "KYC认证",
- image: require("@/assets/img/index/user/kyc.svg"),
- },
- {
- name: "切换语言",
- image: require("@/assets/icon/index/yuyan.png"),
- },
- {
- name: "帮助中心",
- image: require("@/assets/img/index/user/help.svg"),
- },
- {
- name: "安全设置",
- image: require("@/assets/icon/index/anquanshezhi.png"),
- },
- {
- name: "关于我们",
- image: require("@/assets/icon/index/aboutus.png"),
- },
- ];
- </script>
- <style lang="less" scoped>
- .index-user {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- width: 100%;
- .user-info {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- margin-top: 48px;
- width: 345px;
- height: 56px;
- .info-left {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- height: 56px;
- img {
- width: 56px;
- height: 56px;
- }
- .left-message {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- margin-left: 16px;
- height: 56px;
- .name {
- height: 29px;
- line-height: 29px;
- }
- .id {
- margin-top: 4px;
- height: 23px;
- line-height: 23px;
- }
- }
- }
- .info-right {
- width: 9px;
- height: 16.5px;
- img {
- width: 100%;
- height: 100%;
- }
- }
- }
- .unlock-vip {
- margin-top: 21px;
- width: 345px;
- height: 100px;
- img {
- width: 100%;
- height: 100%;
- }
- }
- .asset-management {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- margin-top: 23px;
- width: 345px;
- .asset-title {
- width: 345px;
- height: 24px;
- line-height: 24px;
- letter-spacing: 0.2px;
- }
- .index-menu {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- flex-wrap: wrap;
- margin-top: 15px;
- width: 317px;
- .menu-item {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- margin-left: 29.6px;
- width: 57px;
- height: 57px;
- &:nth-child(1),
- &:nth-child(5) {
- margin-left: 0px;
- }
- &:nth-child(5),
- &:nth-child(6),
- &:nth-child(7),
- &:nth-child(8) {
- margin-top: 25px;
- }
- img {
- width: 32px;
- height: 32px;
- }
- .item-text {
- margin-top: 1px;
- height: 24px;
- line-height: 24px;
- letter-spacing: 0.2px;
- }
- }
- }
- }
- .transaction {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- margin-top: 23px;
- width: 345px;
- .transaction-title {
- width: 345px;
- height: 24px;
- line-height: 24px;
- letter-spacing: 0.2px;
- }
- .index-menu {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- flex-wrap: wrap;
- margin-top: 15px;
- width: 317px;
- .menu-item {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- margin-left: 29.6px;
- width: 57px;
- height: 57px;
- &:nth-child(1),
- &:nth-child(5) {
- margin-left: 0px;
- }
- &:nth-child(5),
- &:nth-child(6),
- &:nth-child(7),
- &:nth-child(8) {
- margin-top: 25px;
- }
- img {
- width: 32px;
- height: 32px;
- }
- .item-text {
- margin-top: 1px;
- height: 24px;
- line-height: 24px;
- letter-spacing: 0.2px;
- }
- }
- }
- }
- .common-functions {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- margin-top: 23px;
- margin-bottom: 40px;
- width: 345px;
- .asset-title {
- width: 345px;
- height: 24px;
- line-height: 24px;
- letter-spacing: 0.2px;
- }
- .index-menu {
- display: flex;
- flex-direction: row;
- justify-content: flex-start;
- flex-wrap: wrap;
- margin-top: 15px;
- width: 317px;
- .menu-item {
- display: flex;
- flex-direction: column;
- justify-content: flex-start;
- align-items: center;
- margin-left: 29.6px;
- width: 57px;
- height: 57px;
- &:nth-child(1),
- &:nth-child(5) {
- margin-left: 0px;
- }
- &:nth-child(5),
- &:nth-child(6),
- &:nth-child(7),
- &:nth-child(8) {
- margin-top: 25px;
- }
- img {
- width: 32px;
- height: 32px;
- }
- .item-text {
- margin-top: 1px;
- height: 24px;
- line-height: 24px;
- letter-spacing: 0.2px;
- }
- }
- }
- }
- }
- </style>
|