| | |
| | | <img class="ino-ico" v-show="$state.theme =='red' " src="../../assets/ico/zongzichan-red.png"> |
| | | <span class="ino-title">沪深资产总计</span> |
| | | <span class="ino-money"> |
| | | <span style="font-size: .3rem">¥</span> |
| | | <span style="font-size: .3rem">₹</span> |
| | | {{(Number($store.state.userInfo.enableAmt + $store.state.userInfo.allFreezAmt)).toFixed(2)}}</span> |
| | | </div> |
| | | <div class="money-info_progress"> |
| | |
| | | <span style="font-size: .2rem" |
| | | :style="{color:$state.theme =='red'&&'#000'}" |
| | | >资金互转 |
| | | <i |
| | | <i |
| | | style="font-size: .2rem" |
| | | class="iconfont icon-you"></i> |
| | | </span> |
| | |
| | | <div class="funds-list-item__title"> |
| | | <span class="funds-list-item__title-left"> |
| | | <!-- <span class="zhishu"> |
| | | |
| | | |
| | | </span> --> |
| | | 总操盘资金: |
| | | <span class="green">{{i.totalTradingAmount}}</span> |
| | |
| | | import * as api from '../../axios/api' |
| | | |
| | | export default { |
| | | data() { |
| | | return { |
| | | list:{ |
| | | list:[] |
| | | } |
| | | } |
| | | }, |
| | | computed:{ |
| | | progress() { |
| | | let per = this.$store.state.userInfo.userAmt/(this.$store.state.userInfo.userAmt+this.$store.state.userInfo.userIndexAmt) * 100 > 100?100:this.$store.state.userInfo.userAmt/(this.$store.state.userInfo.userAmt+this.$store.state.userInfo.userIndexAmt) * 100 > 100?this.$store.state.userInfo.userAmt/(this.$store.state.userInfo.userAmt+this.$store.state.userInfo.userIndexAmt) * 100 > 100?100:this.$store.state.userInfo.userAmt/(this.$store.state.userInfo.userAmt+this.$store.state.userInfo.userIndexAmt) * 100:100 |
| | | return per |
| | | } |
| | | }, |
| | | created() { |
| | | this.getlist() |
| | | }, |
| | | methods:{ |
| | | toRecharge () { |
| | | // 充值 |
| | | this.$router.push('/recharge') |
| | | }, |
| | | toCash () { |
| | | // 提现 |
| | | this.$router.push('/cash') |
| | | }, |
| | | async getlist () { |
| | | // 获取持仓列表 |
| | | let opt = { |
| | | userId: 0, |
| | | pageNum: this.pageNum, |
| | | pageSize: this.pageSize |
| | | } |
| | | console.log(opt) |
| | | let data = await api.getUserApplyList(opt) |
| | | if (data.status === 0) { |
| | | this.list = data.data |
| | | } |
| | | // else { |
| | | // this.$message.error(data.msg) |
| | | // } |
| | | }, |
| | | data () { |
| | | return { |
| | | list: { |
| | | list: [] |
| | | } |
| | | } |
| | | }, |
| | | computed: { |
| | | progress () { |
| | | let per = this.$store.state.userInfo.userAmt / (this.$store.state.userInfo.userAmt + this.$store.state.userInfo.userIndexAmt) * 100 > 100 ? 100 : this.$store.state.userInfo.userAmt / (this.$store.state.userInfo.userAmt + this.$store.state.userInfo.userIndexAmt) * 100 > 100 ? this.$store.state.userInfo.userAmt / (this.$store.state.userInfo.userAmt + this.$store.state.userInfo.userIndexAmt) * 100 > 100 ? 100 : this.$store.state.userInfo.userAmt / (this.$store.state.userInfo.userAmt + this.$store.state.userInfo.userIndexAmt) * 100 : 100 |
| | | return per |
| | | } |
| | | }, |
| | | created () { |
| | | this.getlist() |
| | | }, |
| | | methods: { |
| | | toRecharge () { |
| | | // 充值 |
| | | this.$router.push('/recharge') |
| | | }, |
| | | toCash () { |
| | | // 提现 |
| | | this.$router.push('/cash') |
| | | }, |
| | | async getlist () { |
| | | // 获取持仓列表 |
| | | let opt = { |
| | | userId: 0, |
| | | pageNum: this.pageNum, |
| | | pageSize: this.pageSize |
| | | } |
| | | console.log(opt) |
| | | let data = await api.getUserApplyList(opt) |
| | | if (data.status === 0) { |
| | | this.list = data.data |
| | | } |
| | | // else { |
| | | // this.$message.error(data.msg) |
| | | // } |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | } |
| | | .funds-list { |
| | | display: block; |
| | |
| | | &-right { |
| | | font-size: .24rem; |
| | | } |
| | | } |
| | | } |
| | | .account { |
| | | padding: 0; |
| | | .order-title { |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | .funds-list-loadmore { |
| | | background-color: #BC1816; |
| | | } |
| | | } |
| | | </style> |
| | | </style> |