mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-04 13:10:26 +08:00
增加套餐相关代码
This commit is contained in:
18
web/public/js/components/plans/plan-price-view.js
Normal file
18
web/public/js/components/plans/plan-price-view.js
Normal file
@@ -0,0 +1,18 @@
|
||||
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>`
|
||||
})
|
||||
Reference in New Issue
Block a user