当前位置:网站首页>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}},边栏推荐
猜你喜欢
随机推荐
【深度学习实践(一)】安装TensorFlow
TCP sticky packet unpacking problem + solution
Antdesign a-select 下拉框超出长度换行显示
TRACE32——Go.direct
uniapp时间组件封装年-月-日-时-分-秒
busybox 知:构建
Hash 这些知识你也应该知道
cmake 学习使用笔记(三)
Flink学习10:使用idea编写WordCount,并打包运行
爬虫之验证码
props 后面的数据流是什么?
游戏模拟器成了外挂帮凶,灰产对抗再升级
Chapter3、色调映射
对数据类型而言运算符无效。运算符为 add,类型为 text。
2006年星座运势全解-射手
691. 立方体IV
C-Eighty seven(背包+bitset)
Week 8 Document Clustering
TRACE32——通用寄存器查看与修改
SVG星球大战样式Toggle切换开关按钮









