feat(entry): 修改entry 入口样式

master
kalel ma 4 years ago
parent e56e782709
commit bac7cf6f15
  1. 50
      src/components/common/header.vue
  2. BIN
      src/images/entry/alipay.png
  3. BIN
      src/images/entry/bank.png
  4. BIN
      src/images/entry/bg.png
  5. BIN
      src/images/entry/btn.png
  6. BIN
      src/images/entry/wallet.png
  7. BIN
      src/images/entry/wechat.png
  8. 265
      src/pages/entry.vue

@ -29,11 +29,7 @@
<ul class="nav-menu"> <ul class="nav-menu">
<!-- menu --> <!-- menu -->
<template v-for="m in menuRight"> <template v-for="m in menuRight">
<li <li :key="m.$index" class="menu-item" v-if="userData != '' && userData != undefined">
:key="m.$index"
class="menu-item"
v-if="userData != '' && userData != undefined"
>
<a <a
:class="perUrl === m.link.split('/')[1] ? 'navColor' : ''" :class="perUrl === m.link.split('/')[1] ? 'navColor' : ''"
v-t="m.t" v-t="m.t"
@ -60,19 +56,12 @@
slot="dropdown" slot="dropdown"
class="exRateDropdown" class="exRateDropdown"
> >
<el-dropdown-item <el-dropdown-item v-for="items in exRate.list" :key="items.id" :command="items.id">
v-for="items in exRate.list"
:key="items.id"
:command="items.id"
>
<div <div
class="dropdown-menu-item-inner" class="dropdown-menu-item-inner"
:class="[{'is-active': exRate.current === items}]" :class="[{'is-active': exRate.current === items}]"
> >
<i <i class="menu-item-icon el-icon-check" v-if="exRate.current === items"></i>
class="menu-item-icon el-icon-check"
v-if="exRate.current === items"
></i>
<span class="menu-item-text">{{ $t(items.name) }}</span> <span class="menu-item-text">{{ $t(items.name) }}</span>
</div> </div>
</el-dropdown-item> </el-dropdown-item>
@ -98,19 +87,12 @@
slot="dropdown" slot="dropdown"
class="langDropdown" class="langDropdown"
> >
<el-dropdown-item <el-dropdown-item v-for="item in lang.list" :key="item.lang" :command="item.lang">
v-for="item in lang.list"
:key="item.lang"
:command="item.lang"
>
<div <div
class="dropdown-menu-item-inner" class="dropdown-menu-item-inner"
:class="[{'is-active': lang.current === item}]" :class="[{'is-active': lang.current === item}]"
> >
<i <i class="menu-item-icon el-icon-check" v-if="lang.current === item"></i>
class="menu-item-icon el-icon-check"
v-if="lang.current === item"
></i>
<span class="menu-item-text">{{ item.name }}</span> <span class="menu-item-text">{{ item.name }}</span>
</div> </div>
</el-dropdown-item> </el-dropdown-item>
@ -136,27 +118,20 @@
<!-- 注册按钮 --> <!-- 注册按钮 -->
<li class="menu-item" v-if="userData == '' || userData == undefined"> <li class="menu-item" v-if="userData == '' || userData == undefined">
<a <a :href="'/login?perUrl=' + perUrl + '#/signUp'" class="registered">
:href="'/login?perUrl=' + perUrl + '#/signUp'"
class="registered"
>
<span>{{ $t('login.signUp.btn') }}</span> <span>{{ $t('login.signUp.btn') }}</span>
</a> </a>
</li> </li>
<!-- 用户手机号码 --> <!-- 用户手机号码 -->
<li class="menu-item" v-if="userData != '' && userData != undefined"> <li class="menu-item" v-if="userData != '' && userData != undefined">
<el-dropdown <el-dropdown @command="switchPage" trigger="click" class="menu-item-inner nav-dropdown">
@command="switchPage"
trigger="click"
class="menu-item-inner nav-dropdown"
>
<span class="dropdown-link"> <span class="dropdown-link">
<span> <span>
{{ {{
userData.mobilePhone.replace( userData.mobilePhone.replace(
/^(\d{3})\d*(\d{4})$/, /^(\d{3})\d*(\d{4})$/,
'$1****$2' '$1****$2'
) )
}} }}
</span> </span>
<i class="el-icon-arrow-down el-icon--right"></i> <i class="el-icon-arrow-down el-icon--right"></i>
@ -211,7 +186,6 @@
import {getCurrentLanguage} from '@/common/i18n'; import {getCurrentLanguage} from '@/common/i18n';
import {getExchangeRateCookie, setExchangeRateCookie} from '@/utils/auth'; import {getExchangeRateCookie, setExchangeRateCookie} from '@/utils/auth';
import {logOut} from '@/api/user'; import {logOut} from '@/api/user';
import Cookie from '@/common/cookie';
import {FILE_URL} from '@/api/app'; import {FILE_URL} from '@/api/app';
const Menu = { const Menu = {
@ -303,7 +277,7 @@ export default {
showClose: false, showClose: false,
confirmButtonText: '确定', confirmButtonText: '确定',
confirmButtonClass: 'btn-self-style', confirmButtonClass: 'btn-self-style',
callback: action => { callback: () => {
this.closeWindow(); this.closeWindow();
}, },
}); });

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

@ -1,29 +1,121 @@
<template> <template>
<div> <div class="entry-wrapper">
<nav-header border-style="full"></nav-header> <nav-header border-style="full"></nav-header>
<div class="usdList"> <div class="entry-content">
<div <p class="entry-title">区块链金融交易所实训系统</p>
class="usdItem" <div class="usdList">
v-for="(item, index) in [1, 2, 3]" <div class="usdItem wechat">
:key="index" <!-- 跳转到交易中心,携带交易对 -->
v-loading="loading" <a href="javascript:;">
element-loading-background="rgba(0, 0, 0, 0.2)" <p>初始资金100000CNY</p>
> <p>可用资金100000CNY</p>
<!-- 跳转到交易中心,携带交易对 --> <p>全部资金100000CNY</p>
<a href="javascript:;"> </a>
<p>微信 <i class="el-icon-star-off"></i></p> </div>
<p>初始资金100000000CNY</p> <div class="usdItem alipay">
<p>余额100000000CNY</p> <!-- 跳转到交易中心,携带交易对 -->
</a> <a href="javascript:;">
<p>初始资金100000CNY</p>
<p>可用资金100000CNY</p>
<p>全部资金100000CNY</p>
</a>
</div>
<div class="usdItem bank">
<!-- 跳转到交易中心,携带交易对 -->
<a href="javascript:;">
<p>初始资金100000CNY</p>
<p>可用资金100000CNY</p>
<p>全部资金100000CNY</p>
</a>
</div>
</div> </div>
</div> <div class="usdList tabs">
<div class="usdList tabs"> <el-tabs v-model="activeName" @tab-click="handleClick">
<el-tabs v-model="activeName" @tab-click="handleClick"> <el-tab-pane label="BTC" name="BTC">
<el-tab-pane label="BTC" name="BTC">余额1</el-tab-pane> <div class="tabs-flex">
<el-tab-pane label="USDT" name="USDT">余额20</el-tab-pane> <div class="flex-1">
<el-tab-pane label="EOS" name="EOS">余额30</el-tab-pane> <p>总资产: 0</p>
<el-tab-pane label="ETH" name="ETH">余额40</el-tab-pane> <p>0 CNY</p>
</el-tabs> </div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
</div>
</el-tab-pane>
<el-tab-pane label="USDT" name="USDT">
<div class="tabs-flex">
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
</div>
</el-tab-pane>
<el-tab-pane label="EOS" name="EOS">
<div class="tabs-flex">
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
</div>
</el-tab-pane>
<el-tab-pane label="ETH" name="ETH">
<div class="tabs-flex">
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
<div class="flex-1">
<p>总资产: 0</p>
<p>0 CNY</p>
</div>
</div>
</el-tab-pane>
</el-tabs>
</div>
<a href="javascript:;" class="entry-btn">
<img src="../images/entry/btn.png" />
</a>
</div> </div>
<Footer /> <Footer />
</div> </div>
@ -44,39 +136,140 @@ export default {
NavHeader, NavHeader,
Footer, Footer,
}, },
methods: {
handleClick() {},
},
}; };
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.entry-wrapper {
.entry-content {
background: url(../images/entry/bg.png);
background-size: cover;
.entry-btn {
width: 265px;
height: 30px;
display: block;
padding-bottom: 32px;
margin: 152px auto 0 auto;
cursor: pointer;
img {
width: 100%;
height: 100%;
display: block;
cursor: pointer;
}
}
}
.entry-title {
font-family: NotoSansHans-Regular;
font-size: 20px;
font-weight: normal;
font-stretch: normal;
line-height: 21px;
letter-spacing: 0px;
color: #00f5ff;
padding: 24px;
margin: 0;
}
}
.usdList { .usdList {
margin: 0 auto; margin: 0 auto;
width: 1180px; width: 815px;
margin-top: 34px; margin-top: 110px;
// margin: 2% auto 0;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.usdItem { .usdItem {
width: 28.5%; width: 128px;
height: 122px;
position: relative; position: relative;
background: rgba(43, 44, 53, 1); background-size: cover;
border: 1px solid rgba(71, 71, 71, 0.1);
border-radius: 4px 4px 4px 4px; &.wechat {
background-image: url(../images/entry/wechat.png);
}
&.bank {
background-image: url(../images/entry/bank.png);
}
&.alipay {
background-image: url(../images/entry/alipay.png);
}
a {
display: block;
}
p { p {
margin-left: 30px; font-family: NotoSansHans-DemiLight;
font-size: 16px; font-size: 10px;
color: #fff; font-weight: normal;
// margin-top: 9px; font-stretch: normal;
letter-spacing: 0px;
color: #08c7cf;
margin: 6px 8px;
&:first-child {
margin-top: 58px;
}
} }
} }
&.tabs { &.tabs {
color: #fff; color: #fff;
background: url(../images/entry/wallet.png);
background-size: cover;
margin-top: 85px;
.el-tabs { .el-tabs {
width: 100%; width: 755px;
margin: 60px auto 14px auto;
/deep/.el-tabs__header {
margin-bottom: 8px;
}
}
/DEEP/.el-tabs__nav {
/DEEP/.el-tabs__item {
font-family: NotoSansHans-Regular;
font-size: 15px;
font-weight: normal;
font-stretch: normal;
line-height: 40px;
letter-spacing: 0px;
color: #00f5ff;
&.is-active {
color: #00f5ff;
font-size: 20px;
font-weight: bold;
}
}
/DEEP/.el-tabs__active-bar {
width: 0 !important;
height: 0 !important;
border-left: 8px solid transparent;
border-right: 8px solid transparent;
border-bottom: 6px solid #00f5ff;
background: none;
margin-left: 5%;
}
}
/DEEP/.el-tabs__nav-wrap::after {
background-color: #00f5ff;
} }
.el-tab-pane { .el-tab-pane {
width: 100%; width: 100%;
min-height: 300px; }
}
.tabs-flex {
display: flex;
justify-content: space-between;
.flex-1 {
flex: 1;
p {
font-family: NotoSansHans-DemiLight;
font-size: 10px;
font-weight: normal;
font-stretch: normal;
line-height: 15px;
letter-spacing: 0px;
color: #08c7cf;
}
} }
} }
} }

Loading…
Cancel
Save