当前位置:网站首页>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}},
边栏推荐
- 线性代数对角化
- Bluetooth gap protocol
- An IP conflict is reported after installing the software on a dedicated computer terminal
- Game Thinking 19: Multi-dimensional calculation related to games: point product, cross product, point-line-surface distance calculation
- 国家强制性灯具安全标准GB7000.1-2015
- After the firewall iptable rule is enabled, the system network becomes slow
- uniapp time component encapsulates year-month-day-hour-minute-second
- mysql使用in函数的一个小问题
- Hash 这些知识你也应该知道
- 关于MP3文件中找不到TAG标签的问题
猜你喜欢
Put Cloudflare on the website (take Tencent Cloud as an example)
Shiny02---Shiny exception solution
TCP sticky packet unpacking problem + solution
双向循环带头链表
Game Thinking 19: Multi-dimensional calculation related to games: point product, cross product, point-line-surface distance calculation
SVG星球大战样式Toggle切换开关按钮
Hash 这些知识你也应该知道
TRACE32——外设寄存器查看与修改
支持触屏slider轮播插件
关于MP3文件中找不到TAG标签的问题
随机推荐
Cannot compare or sort text, ntext, and image data types
强网杯2022 pwn 赛题解析——house_of_cat
【 LeetCode 】 235. A binary search tree in recent common ancestor
VXE-Table融合多语言
TRACE32——通用寄存器查看与修改
栈与队列的基本介绍和创建、销毁、出入、计算元素数量、查看元素等功能的c语言实现,以及栈的压入、弹出序列判断,栈结构的链式表示与实现
访问被拒绝:“microsoft.web.ui.webcontrols”的解决办法
Task flow scheduling tool AirFlow,, 220804,,
window.open 全屏展示
谷歌零碎笔记之MVCC(草稿)
Summary of Text Characterization Methods
A small problem with mysql using the in function
Invalid operator for data type.The operator is add and the type is text.
Game Thinking 19: Multi-dimensional calculation related to games: point product, cross product, point-line-surface distance calculation
Flink学习10:使用idea编写WordCount,并打包运行
Shiny04---Application of DT and progress bar in shiny
Win10 设置锁屏壁纸提示尝试其它图片
moment的使用
Stored procedure writing experience and optimization measures
TCP sticky packet unpacking problem + solution