1.修改折扣1折显示问题
2.修改取消订单请求两次的问题
This commit is contained in:
lin 2022-03-21 17:32:56 +08:00
parent c07b3a5c5a
commit 7f40887829
4 changed files with 11 additions and 8 deletions

View File

@ -37,7 +37,7 @@
</i>
<span>
{{ item.couponAmount?item.couponAmount:(parseInt((1-item.discount)*10)+'折') }}
{{ item.couponAmount?item.couponAmount:(parseInt(10 - item.discount*10)+'折') }}
</span>
</div>
<strong>{{ item.couponName }}</strong>

View File

@ -167,7 +167,7 @@
</i>
<span>
{{ item.couponAmount?item.couponAmount:(parseInt((1-item.discount)*10)+'折') }}
{{ item.couponAmount?item.couponAmount:(parseInt(10 - item.discount*10)+'折') }}
</span>
</div>
<strong>{{ item.couponName }}</strong>

View File

@ -356,11 +356,13 @@ export default {
type: "warning",
message: "取消订单成功",
});
setTimeout(() => {
this.indet(this.userdata);
this.activeIndex=0;
this.useralllist=[];
}, 500);
/* 这个在全部变量去除的时候 记得加 */
// setTimeout(() => {
// this.indet(this.userdata);
// this.activeIndex=0;
// this.useralllist=[];
// console.log('2222');
// }, 500);
}
},

View File

@ -237,7 +237,8 @@
</i>
<span>
{{ item.couponAmount?item.couponAmount:(parseInt((1-item.discount)*10)+'折') }}
<!-- 不合并 因为0.1计算器不是0.1 -->
{{ item.couponAmount?item.couponAmount:(parseInt(10 - item.discount*10)+'折') }}
</span>
</div>
<strong>{{ item.couponName }}</strong>