$ gnpm install @gidc-pc-base/gidc-pbank-parts-h5-standard-vx-gidc-deposit-income
存款收益卡片
import VxdepositIncome from '@/views/investment-manage/deposit/components/vx-deposit-income/index'; //收益展示组件
export default {
components: {
VxdepositIncome,
},
};
<template>
<vx-deposit-income :my-deposit="myDeposit" @go-my-save="goMySave"></vx-deposit-income>
</template>
<script>
import VxdepositIncome from '@/views/investment-manage/deposit/components/vx-deposit-income/index'; //收益展示组件
export default {
components: {
VxdepositIncome,
},
data() {
return {
myDeposit: {
lastEarning: "-300", //昨日收益金额
totalPositionAmt:"2500026.85", //总持仓金额
},
};
},
methods:{
// 跳转我的存款
goMySave() {
console.log('这是一个跳转');
},
},
};
</script>
属性 | 说明 | 类型 | 默认值 | 备注 |
---|---|---|---|---|
my-deposit |
收益明细 | {lastEarning: String, totalPositionAmt: String} |
- | 必传 |
功能跳转
Copyright 2013 - present © cnpmjs.org | Home |