当前位置:网站首页>v-if/v-else determines whether to display according to the calculation
v-if/v-else determines whether to display according to the calculation
2022-08-05 07:28:00 【Little Pudding Y】
Determine whether the input amount* amount is greater than the current balance or less than or equal to the current balance (two states)
Greater than current balance
Less than or equal to the current balance
html:
Create coupon Insufficient balance, please recharge first
data:
data() {return {quota: '', //issue quantitycouponAmount: '', //Pass a single amount when the issuing method is fixedbalance:'', //balance}},
I am doing the processing in computed
computed:{//Determine whether a single amount * total amount is greater than the balanceamount: function(){return this.couponAmount * this.quota}},
边栏推荐
- 学习机赛道加速:请“卷”产品,不要“卷”营销
- 向美国人学习“如何快乐”
- Shiny04---Application of DT and progress bar in shiny
- Antdesign a-select 下拉框超出长度换行显示
- VXE-Table融合多语言
- Why does Mysql fail to create a database
- Week 8 Document Clustering
- 奇怪的Access错误
- Takeda Fiscal 2022 First Quarter Results Strong; On Track to Achieve Full-Year Management Guidance
- TRACE32——通用寄存器查看与修改
猜你喜欢
随机推荐
导出SQLServer数据到Excel中
每月稳定干2万
Mysql master-slave delay reasons and solutions
TRACE32——Go.direct
Does Libpq support read-write separation configuration?
高端无主灯设计灯光设计该如何布置射灯灯具?
环网冗余式CAN/光纤转换器 CAN总线转光纤转换器中继集线器hub光端机
RNote108---显示R程序的运行进度
不能比较或排序 text、ntext 和 image 数据类型
青苹果论坛重新开放
常用的遍历map的方法
Bluetooth gap protocol
v-if/v-else根据计算判断是否显示
餐饮大单品「真香」,却没有穿透周期的能力
uniapp time component encapsulates year-month-day-hour-minute-second
Use of thread pool (combined with Future/Callable)
配合屏幕录像专家,又小又清晰!
GAN generates anime avatar Pytorch
关于MP3文件中找不到TAG标签的问题
MAYA船的建模