删除密码显示

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 btcApi = 'https://www.zhixinchains.com/btc'; //BTC钱包
export const eosApi = 'https://www.zhixinchains.com/eos'; //EOS钱包
export const ethApi = 'https://www.zhixinchains.com/eth'; //ETH钱包
export const cctApi = 'https://www.zhixinchains.com/cct'; //币币
export const currencyApi = 'https://www.zhixinchains.com/currency'; //行情
export const jgimApi = 'https://www.zhixinchains.com/imjg'; //聊天
export const sysconfApi = 'https://www.zhixinchains.com/sysconf'; //行情
export const userApi = 'https://www.zhixinchains.com/user'; //用户
export const c2cApi = 'http://121.37.29.24/otc'; //法币
export const btcApi = 'http://121.37.29.24/btc'; //BTC钱包
export const eosApi = 'http://121.37.29.24/eos'; //EOS钱包
export const ethApi = 'http://121.37.29.24/eth'; //ETH钱包
export const cctApi = 'http://121.37.29.24/cct'; //币币
export const currencyApi = 'http://121.37.29.24/currency'; //行情
export const jgimApi = 'http://121.37.29.24/imjg'; //聊天
export const sysconfApi = 'http://121.37.29.24/sysconf'; //行情
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 yyyfUrl = 'http://www.iyyyf.com/'; //以渔有方地址
export const yyyfApi = 'http://121.37.29.24/yyyfuser'; //用户
export const yyyfUrl = 'http://113.98.59.231:8800/yyyf-server-app'; //以渔有方url
// export const c2cApi = 'https://c2c.flamex.io'; //法币
// export const btcApi = 'https://btc.flamex.io'; //BTC钱包

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

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

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

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

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

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

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

Loading…
Cancel
Save