当前位置:网站首页>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}},边栏推荐
猜你喜欢
随机推荐
MongoDB 语法大全
利用Jenkins的持续集成
Takeda Fiscal 2022 First Quarter Results Strong; On Track to Achieve Full-Year Management Guidance
Libpq 是否支持读写分离配置
专用机终端安装软件后报IP冲突
Vulnhub靶机:HA_ NARAK
RK3568 environment installation
ARM Cortex-M上的Trace跟踪方案
谷歌零碎笔记之MVCC(草稿)
Shiny02---Shiny异常解决
Flink Learning 12: DataStreaming API
爬虫之验证码
在原有数据库基础上执行sql文件有则跳过没有则添加如何实现?
Vulnhub target drone: HA_ NARAK
It turns out that Maya Arnold can also render high-quality works!Awesome Tips
After working for 3 years, I recalled the comparison between the past and the present when I first started, and joked about my testing career
学习机赛道加速:请“卷”产品,不要“卷”营销
GAN生成动漫头像Pytorch
监听浏览器刷新操作
Shiny04---DT和进度条在shiny中的应用









