删除密码显示

master
huan.xu 4 years ago
parent 4ea9391e3d
commit f896222f56
  1. 25
      src/api/app.js
  2. 119
      src/components/balances/banlanes-tabds.vue
  3. 126
      src/components/balances/bibi-balances/bibi-balances-table.vue
  4. 104
      src/components/common/header.vue
  5. 888
      src/pages/entry.vue
  6. 5
      src/pages/router.js
  7. 5
      src/router.js
  8. 8
      src/views/personal/profile.vue

@ -1,17 +1,18 @@
export const c2cApi = 'https://www.zhixinchains.com/otc'; //法币 export const c2cApi = 'http://121.37.29.24/otc'; //法币
export const btcApi = 'https://www.zhixinchains.com/btc'; //BTC钱包 export const btcApi = 'http://121.37.29.24/btc'; //BTC钱包
export const eosApi = 'https://www.zhixinchains.com/eos'; //EOS钱包 export const eosApi = 'http://121.37.29.24/eos'; //EOS钱包
export const ethApi = 'https://www.zhixinchains.com/eth'; //ETH钱包 export const ethApi = 'http://121.37.29.24/eth'; //ETH钱包
export const cctApi = 'https://www.zhixinchains.com/cct'; //币币 export const cctApi = 'http://121.37.29.24/cct'; //币币
export const currencyApi = 'https://www.zhixinchains.com/currency'; //行情 export const currencyApi = 'http://121.37.29.24/currency'; //行情
export const jgimApi = 'https://www.zhixinchains.com/imjg'; //聊天 export const jgimApi = 'http://121.37.29.24/imjg'; //聊天
export const sysconfApi = 'https://www.zhixinchains.com/sysconf'; //行情 export const sysconfApi = 'http://121.37.29.24/sysconf'; //行情
export const userApi = 'https://www.zhixinchains.com/user'; //用户 export const userApi = 'http://121.37.29.24/user'; //用户
export const FILE_URL = 'https://file.zhixinchains.com/'; //图片地址 export const FILE_URL = 'http://121.37.29.24/res/'; //图片地址
export const yyyfApi = 'https://www.zhixinchains.com/yyyfuser'; //用户 export const yyyfApi = 'http://121.37.29.24/yyyfuser'; //用户
export const yyyfUrl = 'http://www.iyyyf.com/'; //以渔有方地址
export const yyyfUrl = 'http://113.98.59.231:8800/yyyf-server-app'; //以渔有方url
// export const c2cApi = 'https://c2c.flamex.io'; //法币 // export const c2cApi = 'https://c2c.flamex.io'; //法币
// export const btcApi = 'https://btc.flamex.io'; //BTC钱包 // export const btcApi = 'https://btc.flamex.io'; //BTC钱包

@ -78,19 +78,19 @@
<el-button type="text" class="white size">o.oooooo</el-button> <el-button type="text" class="white size">o.oooooo</el-button>
</div>--> </div>-->
<div> <div>
<!-- 充值 <!-- 充值 -->
<span <span
class="blue" class="blue"
@click="handleTableActionClick('deposit', itembtc)" @click="handleTableActionClick('deposit', itembtc)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
> --> >
<!-- 提币 <!-- 提币 -->
<span <span
@click="handleTableActionClick('withdrawal', itembtc)" @click="handleTableActionClick('withdrawal', itembtc)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> --> >
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', itembtc)" @click="handleTableActionClick('transfer', itembtc)"
@ -148,18 +148,18 @@
</div> </div>
<div> <div>
<!-- 充值 <!-- 充值 -->
<span <span
@click="handleTableActionClick('deposit', itemETH)" @click="handleTableActionClick('deposit', itemETH)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
>--> >
<!-- 提币 <!-- 提币 -->
<span <span
@click="handleTableActionClick('withdrawal', itemETH)" @click="handleTableActionClick('withdrawal', itemETH)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> --> >
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', itemETH)" @click="handleTableActionClick('transfer', itemETH)"
@ -216,18 +216,18 @@
}}</span> }}</span>
</div> </div>
<div> <div>
<!-- 充值 <!-- 充值 -->
<span <span
@click="handleTableActionClick('deposit', item)" @click="handleTableActionClick('deposit', item)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
>--> >
<!-- 提币 <!-- 提币 -->
<span <span
@click="handleTableActionClick('withdrawal', item)" @click="handleTableActionClick('withdrawal', item)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> --> >
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', item)" @click="handleTableActionClick('transfer', item)"
@ -261,99 +261,13 @@
</el-col> </el-col>
</el-row> </el-row>
<!-- 判断是否有记录 ,无则显示 --> <!-- 判断是否有记录 ,无则显示 -->
<el-row v-else class="cec-table gundong" <el-row v-else class="no-data1">
> <el-col class="no-data">
<el-col
class="cec-title" >
<!-- 币种 -->
<div>
<span type="text" style="cursor: default;">BTC</span>
</div>
<!-- 可用 -->
<div>
<span type="text" class="white size">0</span>
</div>
<!-- 冻结 -->
<div>
<span type="text" class="white size">0</span>
</div>
<div>
<!-- 充值 -->
<span
class="blue" type="text">-</span>
</div>
</el-col>
<el-col
class="cec-title" >
<!-- 币种 -->
<div>
<span type="text" style="cursor: default;">ETH</span>
</div>
<!-- 可用 -->
<div>
<span type="text" class="white size">0</span>
</div>
<!-- 冻结 -->
<div>
<span type="text" class="white size">0</span>
</div>
<div> <div>
<!-- 充值 --> <img src="../../assets/home/ic_shuju.png" alt />
<span
class="blue" type="text">-</span>
</div>
</el-col>
<el-col
class="cec-title" >
<!-- 币种 -->
<div>
<span type="text" style="cursor: default;">EOS</span>
</div>
<!-- 可用 -->
<div>
<span type="text" class="white size">0</span>
</div>
<!-- 冻结 -->
<div>
<span type="text" class="white size">0</span>
</div>
<div>
<!-- 充值 -->
<span
class="blue" type="text">-</span>
</div> </div>
<div>{{ $t('balances.table.header_nodata') }}</div>
</el-col> </el-col>
<el-col
class="cec-title" >
<!-- 币种 -->
<div>
<span type="text" style="cursor: default;">USDT</span>
</div>
<!-- 可用 -->
<div>
<span type="text" class="white size">0</span>
</div>
<!-- 冻结 -->
<div>
<span type="text" class="white size">0</span>
</div>
<div>
<!-- 充值 -->
<span
class="blue" type="text">-</span>
</div>
</el-col>
</el-row> </el-row>
</div> </div>
<!-- </main> --> <!-- </main> -->
@ -768,7 +682,6 @@ export default {
// btcusdt // btcusdt
if (this.USDTPrie[i].currencyPair == 'BTC-USDT') { if (this.USDTPrie[i].currencyPair == 'BTC-USDT') {
// console.log(this.USDTPrie[i].amount); // console.log(this.USDTPrie[i].amount);
//
this.btcPrice = this.btcMang * this.USDTPrie[i].amount; this.btcPrice = this.btcMang * this.USDTPrie[i].amount;
// console.log('btc'+this.btcPrice); // console.log('btc'+this.btcPrice);
} }

@ -76,19 +76,19 @@
}}</span> }}</span>
</div> </div>
<div> <div>
<!-- 充值 --> <!-- 充值
<span <span
class="blue" class="blue"
@click="handleTableActionClick('deposit', itembtc)" @click="handleTableActionClick('deposit', itembtc)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
> >-->
<!-- 提币 --> <!-- 提币
<span <span
@click="handleTableActionClick('withdrawal', itembtc)" @click="handleTableActionClick('withdrawal', itembtc)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> > -->
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', itembtc)" @click="handleTableActionClick('transfer', itembtc)"
@ -146,18 +146,18 @@
</div> </div>
<div> <div>
<!-- 充值 --> <!-- 充值x
<span <span
@click="handleTableActionClick('deposit', itemOtcETH)" @click="handleTableActionClick('deposit', itemOtcETH)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
> > -->
<!-- 提币 --> <!-- 提币
<span <span
@click="handleTableActionClick('withdrawal', itemOtcETH)" @click="handleTableActionClick('withdrawal', itemOtcETH)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> >-->
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', itemOtcETH)" @click="handleTableActionClick('transfer', itemOtcETH)"
@ -214,18 +214,18 @@
}}</span> }}</span>
</div> </div>
<div> <div>
<!-- 充值 --> <!-- 充值
<span <span
@click="handleTableActionClick('deposit', item)" @click="handleTableActionClick('deposit', item)"
type="text" type="text"
>{{ $t('balances.table.header_last_recharge') }}</span >{{ $t('balances.table.header_last_recharge') }}</span
> >-->
<!-- 提币 --> <!-- 提币
<span <span
@click="handleTableActionClick('withdrawal', item)" @click="handleTableActionClick('withdrawal', item)"
type="text" type="text"
>{{ $t('balances.table.header_last_mention') }}</span >{{ $t('balances.table.header_last_mention') }}</span
> > -->
<!-- 划转 --> <!-- 划转 -->
<span <span
@click="handleTableActionClick('transfer', item)" @click="handleTableActionClick('transfer', item)"
@ -259,105 +259,19 @@
</el-col> </el-col>
</el-row> </el-row>
<!-- 判断是否有记录 ,无则显示 --> <!-- 判断是否有记录 ,无则显示 -->
<el-row v-else class="cec-table gundong" <el-row v-else class="no-data1">
> <el-col class="no-data">
<el-col
class="cec-title" >
<!-- 币种 -->
<div> <div>
<span type="text" style="cursor: default;">BTC</span> <img src="../../../assets/home/ic_shuju.png" alt />
</div>
<!-- 可用 -->
<div>
<span type="text" class="white size">0</span>
</div>
<!-- 冻结 -->
<div>
<span type="text" class="white size">0</span>
</div>
<div>
<!-- 充值 -->
<span
class="blue" type="text">-</span>
</div>
</el-col>
<el-col
class="cec-title" >
<!-- 币种 -->
<div>
<span type="text" style="cursor: default;">ETH</span>
</div>
<!-- 可用 -->
<div>
<span type="text" class="white size">0</span>
</div>
<!-- 冻结 -->
<div>
<span type="text" class="white size">0</span>
</div>
<div>
<!-- 充值 -->
<span
class="blue" type="text">-</span>
</div> </div>
<div>{{ $t('balances.table.header_nodata') }}</div>
</el-col> </el-col>
<el-col
class="cec-title" >
<!-- 币种 -->
<div>
<span type="text" style="cursor: default;">EOS</span>
</div>
<!-- 可用 -->
<div>
<span type="text" class="white size">0</span>
</div>
<!-- 冻结 -->
<div>
<span type="text" class="white size">0</span>
</div>
<div>
<!-- 充值 -->
<span
class="blue" type="text">-</span>
</div>
</el-col>
<el-col
class="cec-title" >
<!-- 币种 -->
<div>
<span type="text" style="cursor: default;">USDT</span>
</div>
<!-- 可用 -->
<div>
<span type="text" class="white size">0</span>
</div>
<!-- 冻结 -->
<div>
<span type="text" class="white size">0</span>
</div>
<div>
<!-- 充值 -->
<span
class="blue" type="text">-</span>
</div>
</el-col>
</el-row> </el-row>
</div> </div>
<!-- </main> --> <!-- </main> -->
</div> </div>
<!-- 充值 --> <!-- 充值
<el-dialog <el-dialog
:title="$t('balances.table.header_last_recharge')" :title="$t('balances.table.header_last_recharge')"
width="745px" width="745px"
@ -365,8 +279,8 @@
> >
<BibiBalancesDeposit :taInfo="tatoo"></BibiBalancesDeposit> <BibiBalancesDeposit :taInfo="tatoo"></BibiBalancesDeposit>
</el-dialog> </el-dialog>
-->
<!-- 提币 --> <!-- 提币
<el-dialog <el-dialog
:title="$t('balances.table.header_last_mention')" :title="$t('balances.table.header_last_mention')"
width="745px" width="745px"
@ -375,7 +289,7 @@
> >
<BibiBalancesWithdrawal :tiInfo="titoo"></BibiBalancesWithdrawal> <BibiBalancesWithdrawal :tiInfo="titoo"></BibiBalancesWithdrawal>
</el-dialog> </el-dialog>
-->
<!-- 划转 --> <!-- 划转 -->
<el-dialog <el-dialog
:title="$t('balances.table.header_between')" :title="$t('balances.table.header_between')"

@ -356,60 +356,62 @@ export default {
}, },
created() { created() {
let yyyfToken = localStorage.getItem('yyyfToken'); if (window.location.href.indexOf('/#/studyGrade?issueId=') == -1) {
this.isSubmit = localStorage.getItem('isSubmit') == 'true' ? true : false; let yyyfToken = localStorage.getItem('yyyfToken');
if (yyyfToken == '' || yyyfToken == undefined) { this.isSubmit = localStorage.getItem('isSubmit') == 'true' ? true : false;
this.$alert('未从以渔有方登录,点击确定返回登录', '提示', { if (yyyfToken == '' || yyyfToken == undefined) {
type: 'error', this.$alert('未从以渔有方登录,点击确定返回登录', '提示', {
showClose: false, type: 'error',
confirmButtonText: '确定', showClose: false,
confirmButtonClass: 'btn-self-style', confirmButtonText: '确定',
callback: () => { confirmButtonClass: 'btn-self-style',
window.location.href = yyyfUrl; callback: () => {
}, window.location.href = yyyfUrl;
}); },
} else { });
this.isTeacher = localStorage.getItem('userType') == 1 ? true : false; } else {
// this.isTeacher = localStorage.getItem('userType') == 1 ? true : false;
this.reqType = localStorage.getItem('reqType'); //
// this.reqType = localStorage.getItem('reqType');
if (this.reqType == 0) { //
// if (this.reqType == 0) {
this.remainingTime = localStorage.getItem('remainingTime'); //
// this.remainingTime = localStorage.getItem('remainingTime');
this.setIntervalInt = setInterval(this.showTime, 1000); //
} this.setIntervalInt = setInterval(this.showTime, 1000);
this.file = FILE_URL;
this.perUrl = window.location.pathname.split('/')[1];
// console.log(this.perUrl);
// this.userData = Cookie.get('userData');
this.userData = localStorage.getItem('userData');
if (this.userData != '' && this.userData != undefined) {
this.userData = JSON.parse(localStorage.getItem('userData'));
// console.log(this.userData);
if (this.userData.avatar != null) {
this.headerImg = this.file + this.userData.avatar;
} else {
this.headerImg = this.userData.avatar;
} }
} this.file = FILE_URL;
// console.log(this.headerImg); this.perUrl = window.location.pathname.split('/')[1];
// console.log(this.perUrl);
// this.userData = Cookie.get('userData');
this.userData = localStorage.getItem('userData');
if (this.userData != '' && this.userData != undefined) {
this.userData = JSON.parse(localStorage.getItem('userData'));
// console.log(this.userData);
if (this.userData.avatar != null) {
this.headerImg = this.file + this.userData.avatar;
} else {
this.headerImg = this.userData.avatar;
}
}
// console.log(this.headerImg);
const currentLang = getCurrentLanguage(); const currentLang = getCurrentLanguage();
for (let item of this.lang.list) { for (let item of this.lang.list) {
if (item.lang === currentLang) { if (item.lang === currentLang) {
this.lang.current = item; this.lang.current = item;
break; break;
}
} }
} const currentrate = getExchangeRateCookie();
const currentrate = getExchangeRateCookie(); for (let item of this.exRate.list) {
for (let item of this.exRate.list) { if (item.id === currentrate) {
if (item.id === currentrate) { this.exRate.current = item;
this.exRate.current = item; // setExchangeRateCookie(currentrate);
// setExchangeRateCookie(currentrate); break;
break; }
} }
} }
} }

@ -40,7 +40,8 @@
<div class="tabs-flex"> <div class="tabs-flex">
<div class="flex-1"> <div class="flex-1">
<p>总资产: {{ userTimeMoneyDto.btc }}</p> <p>总资产: {{ userTimeMoneyDto.btc }}</p>
<p>{{btcRMBCount}} CNY</p> <p>{{ btcRMBCount }} CNY</p>
<p>提币地址{{ userTimeMoneyDto.assessUserId }}</p>
</div> </div>
<!-- <div class="flex-1"> <!-- <div class="flex-1">
<p>总资产: 0</p> <p>总资产: 0</p>
@ -60,7 +61,8 @@
<div class="tabs-flex"> <div class="tabs-flex">
<div class="flex-1"> <div class="flex-1">
<p>总资产: {{ userTimeMoneyDto.usdt }}</p> <p>总资产: {{ userTimeMoneyDto.usdt }}</p>
<p>{{usdtRMBCount}} CNY</p> <p>{{ usdtRMBCount }} CNY</p>
<p>提币地址{{ userTimeMoneyDto.assessUserId }}</p>
</div> </div>
<!-- <div class="flex-1"> <!-- <div class="flex-1">
<p>总资产: 0</p> <p>总资产: 0</p>
@ -80,7 +82,8 @@
<div class="tabs-flex"> <div class="tabs-flex">
<div class="flex-1"> <div class="flex-1">
<p>总资产: {{ userTimeMoneyDto.eos }}</p> <p>总资产: {{ userTimeMoneyDto.eos }}</p>
<p>{{eosRMBCount}} CNY</p> <p>{{ eosRMBCount }} CNY</p>
<p>提币地址{{ userTimeMoneyDto.assessUserId }}</p>
</div> </div>
<!-- <div class="flex-1"> <!-- <div class="flex-1">
<p>总资产: 0</p> <p>总资产: 0</p>
@ -100,7 +103,8 @@
<div class="tabs-flex"> <div class="tabs-flex">
<div class="flex-1"> <div class="flex-1">
<p>总资产: {{ userTimeMoneyDto.eth }}</p> <p>总资产: {{ userTimeMoneyDto.eth }}</p>
<p>{{ethRMBCount}} CNY</p> <p>{{ ethRMBCount }} CNY</p>
<p>提币地址{{ userTimeMoneyDto.assessUserId }}</p>
</div> </div>
<!-- <div class="flex-1"> <!-- <div class="flex-1">
<p>总资产: 0</p> <p>总资产: 0</p>
@ -119,7 +123,7 @@
</el-tabs> </el-tabs>
</div> </div>
<a href="javascript:;" class="entry-btn" @click="goIndex"> <a href="javascript:;" class="entry-btn" @click="goIndex">
<img src="../images/entry/btn.png"/> <img src="../images/entry/btn.png" />
</a> </a>
<!-- <div class="usdList"> <!-- <div class="usdList">
<div class="usdItem" element-loading-background="rgba(0, 0, 0, 0.2)"> <div class="usdItem" element-loading-background="rgba(0, 0, 0, 0.2)">
@ -169,500 +173,502 @@
</template> </template>
<script> <script>
import NavHeader from '@/components/common/header'; import NavHeader from '@/components/common/header';
import Footer from '@/components/common/footer'; import Footer from '@/components/common/footer';
import {getUserTimeMoneyDto} from '@/api/yyyf'; import {getUserTimeMoneyDto} from '@/api/yyyf';
import {getLeftPrice} from '@/api/currency.js'; import {getLeftPrice} from '@/api/currency.js';
import {submit, reStart} from '@/api/yyyf'; import {submit, reStart} from '@/api/yyyf';
import {logOut} from '@/api/user'; import {logOut} from '@/api/user';
import {signUp, signIn} from '@/api/user'; import {signUp, signIn} from '@/api/user';
import {yyyfUrl} from '@/api/app.js'; import {yyyfUrl} from '@/api/app.js';
export default { export default {
name: 'entry', name: 'entry',
data() { data() {
return { return {
activeName: 'BTC', activeName: 'BTC',
userTimeMoneyDto: {}, userTimeMoneyDto: {},
tatolPrice: 0, tatolPrice: 0,
//0 1 2 //0 1 2
reqType: 2, reqType: 2,
// //
remainingTime: 0, remainingTime: 0,
// //
isSubmit: false, isSubmit: false,
newwin: undefined, newwin: undefined,
btcRMBCount: 0, btcRMBCount: 0,
usdtRMBCount: 0, usdtRMBCount: 0,
eosRMBCount: 0, eosRMBCount: 0,
ethRMBCount: 0 ethRMBCount: 0,
};
}; },
}, components: {
components: { NavHeader,
NavHeader, Footer,
Footer, },
methods: {
getUserTimeMoneyDtoMethod() {
let ths = this;
getUserTimeMoneyDto().then(res => {
if (res.data.code === 200) {
ths.userTimeMoneyDto = res.data.data;
this.getUSDTPrie();
} else {
ths.$message.warning({
message: res.data.msg,
onClose: function() {
ths.closeWindow();
},
});
}
});
}, },
methods: { login(params) {
getUserTimeMoneyDtoMethod() { signIn(params).then(res => {
let ths = this; // console.log(res);
getUserTimeMoneyDto().then(res => { if (res.data.code === 200) {
if (res.data.code === 200) { //
ths.userTimeMoneyDto = res.data.data; // if( this.checked === true ){
this.getUSDTPrie(); // Cookie.set('phoneNum',num)
} else { // Cookie.set('password',pass)
ths.$message.warning({ // }
message: res.data.msg, //tokencookie
onClose: function () { // Cookie.set('token', res.data.data.token);
ths.closeWindow(); localStorage.setItem('token', res.data.data.token);
}, //
}); localStorage.setItem('isSubmit', JSON.stringify(false));
} //cookie
}); // Cookie.set('userData', res.data.data);
}, localStorage.setItem('userData', JSON.stringify(res.data.data));
login(params) { // console.log(JSON.parse(localStorage.getItem('userData')));
signIn(params).then(res => {
// console.log(res); // userIDcookie
if (res.data.code === 200) { // Cookie.set('userID', res.data.data.id);
// localStorage.setItem('userID', res.data.data.id);
// if( this.checked === true ){
// Cookie.set('phoneNum',num) //
// Cookie.set('password',pass) localStorage.setItem('invitationCode', res.data.data.invitationCode);
// } this.isSubmit = false;
//tokencookie location.href = '/entry';
// Cookie.set('token', res.data.data.token); } else {
localStorage.setItem('token', res.data.data.token); this.$message.warning(res.data.msg);
// this.isSubmit = false;
localStorage.setItem('isSubmit', JSON.stringify(false));
//cookie
// Cookie.set('userData', res.data.data);
localStorage.setItem('userData', JSON.stringify(res.data.data));
// console.log(JSON.parse(localStorage.getItem('userData')));
// userIDcookie
// Cookie.set('userID', res.data.data.id);
localStorage.setItem('userID', res.data.data.id);
//
localStorage.setItem('invitationCode', res.data.data.invitationCode);
this.isSubmit = false;
location.href = '/entry';
} else {
this.$message.warning(res.data.msg);
this.isSubmit = false;
}
});
},
winOpen: function () {
if (this.newwin != undefined) {
if (
navigator.userAgent.indexOf('Firefox') != -1 ||
navigator.userAgent.indexOf('Chrome') != -1
) {
this.newwin.location.href = 'about:blank';
this.newwin.close();
} else {
this.newwin.opener = null;
this.newwin.open('', '_self');
this.newwin.close();
}
} }
this.newwin = window.open( });
'/', },
'onlywin', winOpen: function() {
'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, height=600,width=1100,left=180,top=100' if (this.newwin != undefined) {
);
},
closeWindow: function () {
if ( if (
navigator.userAgent.indexOf('Firefox') != -1 || navigator.userAgent.indexOf('Firefox') != -1 ||
navigator.userAgent.indexOf('Chrome') != -1 navigator.userAgent.indexOf('Chrome') != -1
) { ) {
window.location.href = 'about:blank'; this.newwin.location.href = 'about:blank';
window.close(); this.newwin.close();
} else { } else {
window.opener = null; this.newwin.opener = null;
window.open('', '_self'); this.newwin.open('', '_self');
window.close(); this.newwin.close();
} }
}, }
sign(params) { this.newwin = window.open(
signUp(params).then(res => { '/',
if (res.data.code === 200) { 'onlywin',
this.login({ 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, copyhistory=yes, height=600,width=1100,left=180,top=100'
tel: params.tel, );
password: params.password, },
}); closeWindow: function() {
} else { if (
this.$message.warning(res.data.msg); navigator.userAgent.indexOf('Firefox') != -1 ||
this.isSubmit = false; navigator.userAgent.indexOf('Chrome') != -1
} ) {
}); window.location.href = 'about:blank';
}, window.close();
exit(params) { } else {
logOut().then(res => { window.opener = null;
if (res.data.code === 200 || res.data.code === 202) { window.open('', '_self');
// Cookie.set('userData', ''); window.close();
localStorage.setItem('userData', ''); }
localStorage.removeItem('userpass'); },
localStorage.removeItem('userdate'); sign(params) {
localStorage.removeItem('nowPassNOValue'); signUp(params).then(res => {
if (params == undefined) { if (res.data.code === 200) {
//window.location.href = '/'; this.login({
this.closeWindow(); tel: params.tel,
} password: params.password,
});
// let pathName = window.location.pathname.split('/')[1]; } else {
// console.log(pathName); this.$message.warning(res.data.msg);
//退 this.isSubmit = false;
// if (pathName === 'personal') { }
// window.location.href = '/login'; });
// } else { },
// window.location.href = this.perUrl; exit(params) {
// } logOut().then(res => {
} else { if (res.data.code === 200 || res.data.code === 202) {
this.$message.warning(res.data.msg); // Cookie.set('userData', '');
localStorage.setItem('userData', '');
localStorage.removeItem('userpass');
localStorage.removeItem('userdate');
localStorage.removeItem('nowPassNOValue');
if (params == undefined) {
//window.location.href = '/';
this.closeWindow();
} }
});
}, // let pathName = window.location.pathname.split('/')[1];
goIndex() { // console.log(pathName);
this.winOpen(); //退
}, // if (pathName === 'personal') {
submitExam: function () { // window.location.href = '/login';
let self = this; // } else {
// // window.location.href = this.perUrl;
if (!self.isSubmit) { // }
self.isSubmit = true;
} else { } else {
return false; this.$message.warning(res.data.msg);
} }
});
},
goIndex() {
this.winOpen();
},
submitExam: function() {
let self = this;
//
if (!self.isSubmit) {
self.isSubmit = true;
} else {
return false;
}
submit().then(res => { submit().then(res => {
if (res.data.code === 200) { if (res.data.code === 200) {
this.$message.success({ this.$message.success({
message: '提交成功', message: '提交成功',
onClose: function () { onClose: function() {
if (self.reqType == 0) { if (self.reqType == 0) {
self.closeWindow();
} else {
localStorage.setItem('isSubmit', JSON.stringify(true));
self.isSubmit = false;
}
self.getUserTimeMoneyDtoMethod();
},
});
} else {
this.$message.warning({
message: res.data.msg,
onClose: function () {
self.closeWindow(); self.closeWindow();
}, } else {
}); localStorage.setItem('isSubmit', JSON.stringify(true));
} self.isSubmit = false;
}); }
}, self.getUserTimeMoneyDtoMethod();
reStartTest: function () { },
let self = this; });
//
if (!self.isSubmit) {
this.isSubmit = true;
} else { } else {
return false; this.$message.warning({
message: res.data.msg,
onClose: function() {
self.closeWindow();
},
});
} }
//退 });
this.exit(1); },
reStart().then(res => { reStartTest: function() {
if (res.data.code === 200) { let self = this;
this.$message.success({ //
message: '重新开始成功', if (!self.isSubmit) {
onClose: function () { this.isSubmit = true;
let signParams = { } else {
tel: res.data.data.tel, return false;
nickName: res.data.data.nickName, }
code: res.data.data.code, //退
password: res.data.data.password, this.exit(1);
internationalCode: null, reStart().then(res => {
invitationCode: '', if (res.data.code === 200) {
}; this.$message.success({
self.sign(signParams); message: '重新开始成功',
}, onClose: function() {
}); let signParams = {
} else { tel: res.data.data.tel,
this.$message.warning({ nickName: res.data.data.nickName,
message: res.data.msg, code: res.data.data.code,
onClose: function () { password: res.data.data.password,
self.closeWindow(); internationalCode: null,
}, invitationCode: '',
}); };
} self.sign(signParams);
}); },
}, });
getUSDTPrie() { } else {
let ths = this; this.$message.warning({
getLeftPrice().then(res => { message: res.data.msg,
ths.USDTPrie = res.data.data; onClose: function() {
// console.log(this.USDTPrie); self.closeWindow();
},
// });
let cnyAmount = this.USDTPrie[0].cnyAmount; }
let btcCount = 0; });
let usdtCount = this.userTimeMoneyDto.usdt; },
let eosCount = 0; getUSDTPrie() {
let ethCount = 0; let ths = this;
getLeftPrice().then(res => {
for (let i = 0; i < this.USDTPrie.length; i++) { ths.USDTPrie = res.data.data;
// btcusdt // console.log(this.USDTPrie);
if (ths.USDTPrie[i].currencyPair == 'BTC-USDT') {
// console.log(this.USDTPrie[i].amount); //
// let cnyAmount = this.USDTPrie[0].cnyAmount;
btcCount = ths.userTimeMoneyDto.btc * ths.USDTPrie[i].amount; let btcCount = 0;
// console.log('btc'+this.btcPrice); let usdtCount = this.userTimeMoneyDto.usdt;
} let eosCount = 0;
// return this.btcPrice; let ethCount = 0;
for (let i = 0; i < this.USDTPrie.length; i++) {
// btcusdt
if (ths.USDTPrie[i].currencyPair == 'BTC-USDT') {
// console.log(this.USDTPrie[i].amount);
//
btcCount = ths.userTimeMoneyDto.btc * ths.USDTPrie[i].amount;
// console.log('btc'+this.btcPrice);
} }
for (let i = 0; i < this.USDTPrie.length; i++) { // return this.btcPrice;
// btcusdt }
if (ths.USDTPrie[i].currencyPair == 'EOS-USDT') { for (let i = 0; i < this.USDTPrie.length; i++) {
// console.log(this.USDTPrie[i].amount); // btcusdt
// if (ths.USDTPrie[i].currencyPair == 'EOS-USDT') {
eosCount = ths.userTimeMoneyDto.eos * ths.USDTPrie[i].amount; // console.log(this.USDTPrie[i].amount);
// console.log('btc'+this.btcPrice); //
} eosCount = ths.userTimeMoneyDto.eos * ths.USDTPrie[i].amount;
// return this.btcPrice; // console.log('btc'+this.btcPrice);
} }
// return this.btcPrice;
}
for (let i = 0; i < this.USDTPrie.length; i++) { for (let i = 0; i < this.USDTPrie.length; i++) {
// btcusdt // btcusdt
if (ths.USDTPrie[i].currencyPair == 'ETH-USDT') { if (ths.USDTPrie[i].currencyPair == 'ETH-USDT') {
// console.log(this.USDTPrie[i].amount); // console.log(this.USDTPrie[i].amount);
// //
ethCount = ths.userTimeMoneyDto.eth * ths.USDTPrie[i].amount; ethCount = ths.userTimeMoneyDto.eth * ths.USDTPrie[i].amount;
// console.log('btc'+this.btcPrice); // console.log('btc'+this.btcPrice);
}
// return this.btcPrice;
} }
// return this.btcPrice;
}
ths.btcRMBCount = btcCount * cnyAmount; ths.btcRMBCount = btcCount * cnyAmount;
ths.usdtRMBCount = usdtCount * cnyAmount; ths.usdtRMBCount = usdtCount * cnyAmount;
ths.eosRMBCount = eosCount * cnyAmount; ths.eosRMBCount = eosCount * cnyAmount;
ths.ethRMBCount = ethCount * cnyAmount; ths.ethRMBCount = ethCount * cnyAmount;
let digitWallet = let digitWallet =
ths.btcRMBCount + ths.usdtRMBCount + ths.eosRMBCount + ths.ethRMBCount; ths.btcRMBCount +
ths.usdtRMBCount +
let total = ths.eosRMBCount +
digitWallet + ths.ethRMBCount;
ths.userTimeMoneyDto.aliPay +
ths.userTimeMoneyDto.wxPay + let total =
ths.userTimeMoneyDto.bankCard; digitWallet +
// ths.userTimeMoneyDto.aliPay +
ths.tatolPrice = Math.floor(total * 10) / 10; ths.userTimeMoneyDto.wxPay +
ths.userTimeMoneyDto.bankCard;
// console.log(this.tatolPrice); //
}); ths.tatolPrice = Math.floor(total * 10) / 10;
},
// console.log(this.tatolPrice);
});
}, },
created() { },
let ths = this; created() {
ths.getUserTimeMoneyDtoMethod(); let ths = this;
let yyyfToken = localStorage.getItem('yyyfToken'); ths.getUserTimeMoneyDtoMethod();
this.isSubmit = localStorage.getItem('isSubmit') == 'true' ? true : false; let yyyfToken = localStorage.getItem('yyyfToken');
if (yyyfToken == '' || yyyfToken == undefined) { this.isSubmit = localStorage.getItem('isSubmit') == 'true' ? true : false;
this.$alert('未从以渔有方登录,点击确定返回登录', '提示', { if (yyyfToken == '' || yyyfToken == undefined) {
type: 'error', this.$alert('未从以渔有方登录,点击确定返回登录', '提示', {
showClose: false, type: 'error',
confirmButtonText: '确定', showClose: false,
confirmButtonClass: 'btn-self-style', confirmButtonText: '确定',
callback: () => { confirmButtonClass: 'btn-self-style',
window.location.href = yyyfUrl; callback: () => {
}, window.location.href = yyyfUrl;
}); },
} else { });
ths.reqType = localStorage.getItem('reqType'); } else {
} ths.reqType = localStorage.getItem('reqType');
}, }
}; },
};
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.entry-wrapper { .entry-wrapper {
.entry-content { .entry-content {
background: url(../images/entry/bg.jpg); background: url(../images/entry/bg.jpg);
background-size: cover; background-size: cover;
.enrty-content__header {
display: flex;
justify-content: space-between;
align-items: center;
.centerNav {
margin-right: 24px;
}
}
.entry-btn { .enrty-content__header {
width: 265px; display: flex;
height: 30px; justify-content: space-between;
display: block; align-items: center;
padding-bottom: 32px;
margin: 0 auto 0 auto;
cursor: pointer;
img { .centerNav {
width: 100%; margin-right: 24px;
height: 100%;
display: block;
cursor: pointer;
}
} }
} }
.entry-title { .entry-btn {
font-family: NotoSansHans-Regular; width: 265px;
font-size: 20px; height: 30px;
font-weight: normal; display: block;
font-stretch: normal; padding-bottom: 32px;
line-height: 21px; margin: 0 auto 0 auto;
letter-spacing: 0px; cursor: pointer;
color: #00f5ff;
padding: 24px; img {
margin: 0; width: 100%;
height: 100%;
display: block;
cursor: pointer;
}
} }
} }
.paylist { .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;
}
}
.paylist {
position: relative;
&::before {
content: '';
display: block;
background-image: url(../images/entry/line1.png);
width: 730px;
position: absolute;
height: 105px;
top: -118px;
left: 40px;
background-size: cover;
}
}
.usdList {
margin: 0 auto;
width: 815px;
margin-top: 110px;
display: flex;
justify-content: space-between;
.usdItem {
width: 166px;
height: 158px;
position: relative; position: relative;
background-size: cover;
&::before { &.wechat {
content: ''; background-image: url(../images/entry/wechat.png);
display: block;
background-image: url(../images/entry/line1.png);
width: 730px;
position: absolute;
height: 105px;
top: -118px;
left: 40px;
background-size: cover;
} }
}
.usdList { &.bank {
margin: 0 auto; background-image: url(../images/entry/bank.png);
width: 815px; }
margin-top: 110px;
display: flex;
justify-content: space-between;
.usdItem { &.alipay {
width: 166px; background-image: url(../images/entry/alipay.png);
height: 158px; }
position: relative;
background-size: cover;
&.wechat { a {
background-image: url(../images/entry/wechat.png); display: block;
} margin-top: 85px;
}
&.bank { p {
background-image: url(../images/entry/bank.png); font-family: NotoSansHans-DemiLight;
} font-size: 10px;
font-weight: normal;
font-stretch: normal;
letter-spacing: 0px;
color: #08c7cf;
margin: 6px 8px;
&.alipay { &:first-child {
background-image: url(../images/entry/alipay.png); margin-top: 88px;
} }
}
}
a { &.tabs {
display: block; color: #fff;
margin-top: 85px; background: url(../images/entry/wallet1.png);
background-size: cover;
margin-top: -85px;
height: 315px;
width: 965px;
padding-top: 145px;
.el-tabs {
width: 755px;
margin: 60px auto 14px auto;
/deep/ .el-tabs__header {
margin-bottom: 8px;
} }
}
p { /DEEP/ .el-tabs__nav {
font-family: NotoSansHans-DemiLight; /DEEP/ .el-tabs__item {
font-size: 10px; font-family: NotoSansHans-Regular;
font-size: 15px;
font-weight: normal; font-weight: normal;
font-stretch: normal; font-stretch: normal;
line-height: 40px;
letter-spacing: 0px; letter-spacing: 0px;
color: #08c7cf; color: #00f5ff;
margin: 6px 8px;
&:first-child { &.is-active {
margin-top: 88px;
}
}
}
&.tabs {
color: #fff;
background: url(../images/entry/wallet1.png);
background-size: cover;
margin-top: -85px;
height: 315px;
width: 965px;
padding-top: 145px;
.el-tabs {
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; color: #00f5ff;
font-size: 20px;
&.is-active { font-weight: bold;
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 { /DEEP/ .el-tabs__active-bar {
background-color: #00f5ff; 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%;
} }
}
.el-tab-pane { /DEEP/ .el-tabs__nav-wrap::after {
width: 100%; background-color: #00f5ff;
}
} }
.tabs-flex { .el-tab-pane {
display: flex; width: 100%;
justify-content: space-between; }
}
.flex-1 { .tabs-flex {
flex: 1; display: flex;
justify-content: space-between;
p {
font-family: NotoSansHans-DemiLight; .flex-1 {
font-size: 10px; flex: 1;
font-weight: normal;
font-stretch: normal; p {
line-height: 15px; font-family: NotoSansHans-DemiLight;
letter-spacing: 0px; font-size: 10px;
color: #08c7cf; font-weight: normal;
} font-stretch: normal;
line-height: 6px;
letter-spacing: 0px;
color: #08c7cf;
} }
} }
} }
}
</style> </style>

@ -24,6 +24,11 @@ export default new Router({
name: 'entry', name: 'entry',
component: () => import('./entry.vue'), component: () => import('./entry.vue'),
}, },
{
path: './studyGrade',
name: 'studyGrade',
component: () => import('./studyGrade.vue'),
},
// { // {
// path: './entrustdetail', // path: './entrustdetail',
// name: 'entrustdetail', // name: 'entrustdetail',

@ -58,6 +58,11 @@ export default new Router({
name: 'entry', name: 'entry',
component: () => import('./pages/entry'), component: () => import('./pages/entry'),
}, },
{
path: '/studyGrade',
name: 'studyGrade',
component: () => import('./pages/studyGrade'),
},
{ {
path: '/about', path: '/about',
name: 'about', name: 'about',

@ -40,19 +40,19 @@
</div> </div>
</div> </div>
<div class="secondaryBox majorBoxStyle"> <!--<div class="secondaryBox majorBoxStyle">
<div class="profileContent"> <div class="profileContent">
<span class="secondaryTitle" <span class="secondaryTitle"
>{{ $t('personal.profile.basicInfo.loginPasswrod') }}</span >{{ $t('personal.profile.basicInfo.loginPasswrod') }}</span
> >
<span class="secondaryCont">*********</span> <span class="secondaryCont">*********</span>
<!-- <router-link to="/profile/change-password"> &lt;!&ndash; <router-link to="/profile/change-password">
<div class="btnRemake"> <div class="btnRemake">
{{ $t('personal.profile.basicInfo.changePasswordBtn') }} {{ $t('personal.profile.basicInfo.changePasswordBtn') }}
</div> </div>
</router-link>--> </router-link>&ndash;&gt;
</div> </div>
</div> </div>-->
</div> </div>
<div class="loginHistory" :style="{height: calac + 'px'}"> <div class="loginHistory" :style="{height: calac + 'px'}">

Loading…
Cancel
Save