全景页面删除重资产,显示人民币转换以及密码设置去掉验证码

master
huan.xu 4 years ago
parent 4fd6b74d55
commit 908a2f7504
  1. 105
      src/pages/entry.vue
  2. 4
      src/views/personal/profile.vue
  3. 9
      src/views/personal/setPayPassword.vue

@ -14,7 +14,7 @@
<a href="javascript:;">
<p>初始资金{{ userTimeMoneyDto.wxPayInit }} CNY</p>
<p>可用资金{{ userTimeMoneyDto.wxPay }} CNY</p>
<p>全部资金{{ tatolPrice }} CNY</p>
<!--<p>全部资金{{ tatolPrice }} CNY</p>-->
</a>
</div>
<div class="usdItem alipay">
@ -22,7 +22,7 @@
<a href="javascript:;">
<p>初始资金{{ userTimeMoneyDto.aliPayInit }} CNY</p>
<p>可用资金{{ userTimeMoneyDto.aliPay }} CNY</p>
<p>全部资金{{ tatolPrice }} CNY</p>
<!-- <p>全部资金{{ tatolPrice }} CNY</p>-->
</a>
</div>
<div class="usdItem bank">
@ -30,7 +30,7 @@
<a href="javascript:;">
<p>初始资金{{ userTimeMoneyDto.bankCardInit }}CNY</p>
<p>可用资金{{ userTimeMoneyDto.bankCard }} CNY</p>
<p>全部资金{{ tatolPrice }} CNY</p>
<!--<p>全部资金{{ tatolPrice }} CNY</p>-->
</a>
</div>
</div>
@ -40,7 +40,7 @@
<div class="tabs-flex">
<div class="flex-1">
<p>总资产: {{ userTimeMoneyDto.btc }}</p>
<!-- <p>0 CNY</p>-->
<p>{{btcRMBCount}} CNY</p>
</div>
<!-- <div class="flex-1">
<p>总资产: 0</p>
@ -60,7 +60,7 @@
<div class="tabs-flex">
<div class="flex-1">
<p>总资产: {{ userTimeMoneyDto.usdt }}</p>
<!-- <p>0 CNY</p>-->
<p>{{usdtRMBCount}} CNY</p>
</div>
<!-- <div class="flex-1">
<p>总资产: 0</p>
@ -80,7 +80,7 @@
<div class="tabs-flex">
<div class="flex-1">
<p>总资产: {{ userTimeMoneyDto.eos }}</p>
<!--<p>0 CNY</p>-->
<p>{{eosRMBCount}} CNY</p>
</div>
<!-- <div class="flex-1">
<p>总资产: 0</p>
@ -100,7 +100,7 @@
<div class="tabs-flex">
<div class="flex-1">
<p>总资产: {{ userTimeMoneyDto.eth }}</p>
<!-- <p>0 CNY</p>-->
<p>{{ethRMBCount}} CNY</p>
</div>
<!-- <div class="flex-1">
<p>总资产: 0</p>
@ -119,7 +119,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,16 +169,16 @@
</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 {
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 {
@ -192,6 +192,11 @@ export default {
//
isSubmit: false,
newwin: undefined,
btcRMBCount: 0,
usdtRMBCount: 0,
eosRMBCount: 0,
ethRMBCount: 0
};
},
components: {
@ -208,7 +213,7 @@ export default {
} else {
ths.$message.warning({
message: res.data.msg,
onClose: function() {
onClose: function () {
ths.closeWindow();
},
});
@ -248,7 +253,7 @@ export default {
}
});
},
winOpen: function() {
winOpen: function () {
if (this.newwin != undefined) {
if (
navigator.userAgent.indexOf('Firefox') != -1 ||
@ -268,7 +273,7 @@ export default {
'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() {
closeWindow: function () {
if (
navigator.userAgent.indexOf('Firefox') != -1 ||
navigator.userAgent.indexOf('Chrome') != -1
@ -323,7 +328,7 @@ export default {
goIndex() {
this.winOpen();
},
submitExam: function() {
submitExam: function () {
let self = this;
//
if (!self.isSubmit) {
@ -336,7 +341,7 @@ export default {
if (res.data.code === 200) {
this.$message.success({
message: '提交成功',
onClose: function() {
onClose: function () {
if (self.reqType == 0) {
self.closeWindow();
} else {
@ -349,14 +354,14 @@ export default {
} else {
this.$message.warning({
message: res.data.msg,
onClose: function() {
onClose: function () {
self.closeWindow();
},
});
}
});
},
reStartTest: function() {
reStartTest: function () {
let self = this;
//
if (!self.isSubmit) {
@ -370,7 +375,7 @@ export default {
if (res.data.code === 200) {
this.$message.success({
message: '重新开始成功',
onClose: function() {
onClose: function () {
let signParams = {
tel: res.data.data.tel,
nickName: res.data.data.nickName,
@ -385,7 +390,7 @@ export default {
} else {
this.$message.warning({
message: res.data.msg,
onClose: function() {
onClose: function () {
self.closeWindow();
},
});
@ -393,8 +398,9 @@ export default {
});
},
getUSDTPrie() {
let ths = this;
getLeftPrice().then(res => {
this.USDTPrie = res.data.data;
ths.USDTPrie = res.data.data;
// console.log(this.USDTPrie);
//
@ -406,20 +412,20 @@ export default {
for (let i = 0; i < this.USDTPrie.length; i++) {
// btcusdt
if (this.USDTPrie[i].currencyPair == 'BTC-USDT') {
if (ths.USDTPrie[i].currencyPair == 'BTC-USDT') {
// console.log(this.USDTPrie[i].amount);
//
btcCount = this.userTimeMoneyDto.btc * this.USDTPrie[i].amount;
btcCount = ths.userTimeMoneyDto.btc * ths.USDTPrie[i].amount;
// console.log('btc'+this.btcPrice);
}
// return this.btcPrice;
}
for (let i = 0; i < this.USDTPrie.length; i++) {
// btcusdt
if (this.USDTPrie[i].currencyPair == 'EOS-USDT') {
if (ths.USDTPrie[i].currencyPair == 'EOS-USDT') {
// console.log(this.USDTPrie[i].amount);
//
eosCount = this.userTimeMoneyDto.eos * this.USDTPrie[i].amount;
eosCount = ths.userTimeMoneyDto.eos * ths.USDTPrie[i].amount;
// console.log('btc'+this.btcPrice);
}
// return this.btcPrice;
@ -427,25 +433,30 @@ export default {
for (let i = 0; i < this.USDTPrie.length; i++) {
// btcusdt
if (this.USDTPrie[i].currencyPair == 'ETH-USDT') {
if (ths.USDTPrie[i].currencyPair == 'ETH-USDT') {
// console.log(this.USDTPrie[i].amount);
//
ethCount = this.userTimeMoneyDto.eth * 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 =
(btcCount + usdtCount + eosCount + ethCount) * cnyAmount;
ths.btcRMBCount + ths.usdtRMBCount + ths.eosRMBCount + ths.ethRMBCount;
let total =
digitWallet +
this.userTimeMoneyDto.aliPay +
this.userTimeMoneyDto.wxPay +
this.userTimeMoneyDto.bankCard;
ths.userTimeMoneyDto.aliPay +
ths.userTimeMoneyDto.wxPay +
ths.userTimeMoneyDto.bankCard;
//
this.tatolPrice = Math.floor(total * 10) / 10;
ths.tatolPrice = Math.floor(total * 10) / 10;
// console.log(this.tatolPrice);
});
@ -470,11 +481,11 @@ export default {
ths.reqType = localStorage.getItem('reqType');
}
},
};
};
</script>
<style scoped lang="scss">
.entry-wrapper {
.entry-wrapper {
.entry-content {
background: url(../images/entry/bg.jpg);
background-size: cover;
@ -517,9 +528,9 @@ export default {
padding: 24px;
margin: 0;
}
}
}
.paylist {
.paylist {
position: relative;
&::before {
@ -533,9 +544,9 @@ export default {
left: 40px;
background-size: cover;
}
}
}
.usdList {
.usdList {
margin: 0 auto;
width: 815px;
margin-top: 110px;
@ -575,7 +586,7 @@ export default {
margin: 6px 8px;
&:first-child {
margin-top: 58px;
margin-top: 88px;
}
}
}
@ -653,5 +664,5 @@ export default {
}
}
}
}
}
</style>

@ -46,11 +46,11 @@
>{{ $t('personal.profile.basicInfo.loginPasswrod') }}</span
>
<span class="secondaryCont">*********</span>
<router-link to="/profile/change-password">
<!-- <router-link to="/profile/change-password">
<div class="btnRemake">
{{ $t('personal.profile.basicInfo.changePasswordBtn') }}
</div>
</router-link>
</router-link>-->
</div>
</div>
</div>

@ -16,7 +16,7 @@
</div>
</div>
<div class="secondaryBox majorBoxStyle">
<!-- <div class="secondaryBox majorBoxStyle">
<div class="setBox">
<span class="setItem"
>{{ $t('personal.security.setMoneyPassword.code') }}</span
@ -32,7 +32,7 @@
{{ $t('personal.security.resend') }}{{ timerNum }}s
</p>
</div>
</div>
</div>-->
<div class="secondaryBox majorBoxStyle majorBoxStyleBc">
<div class="setBox">
@ -100,9 +100,10 @@ export default {
},
methods: {
submit() {
if (this.code === '') {
/* if (this.code === '') {
this.$message.warning(this.$t('personal.security.code_p'));
} else if (this.moneyPassword === '') {
} else */
if (this.moneyPassword === '') {
this.$message.warning(
this.$t('personal.security.setMoneyPassword.fund_p')
);

Loading…
Cancel
Save