Files
EdgeAdmin/web/public/js/components/plans/plan-price-view.js

18 lines
561 B
JavaScript
Raw Normal View History

2021-10-29 14:02:01 +08:00
Vue.component("plan-price-view", {
props: ["v-plan"],
data: function () {
return {
plan: this.vPlan
}
},
template: `<div>
<span v-if="plan.priceType == 'period'">
<span v-if="plan.monthlyPrice > 0">月度{{plan.monthlyPrice}}<br/></span>
<span v-if="plan.seasonallyPrice > 0">季度{{plan.seasonallyPrice}}<br/></span>
<span v-if="plan.yearlyPrice > 0">年度{{plan.yearlyPrice}}</span>
</span>
<span v-if="plan.priceType == 'bandwidth'">
基础价格{{plan.bandwidthPrice.base}}/GB
</span>
</div>`
})