提交 ee625d38 编写于 作者: jingqi.liu's avatar jingqi.liu

修改提示

上级 ea0776fd
...@@ -50,7 +50,11 @@ ...@@ -50,7 +50,11 @@
:has-tips="hasTips" :has-tips="hasTips"
:has-down.sync="item.hasDown" :has-down.sync="item.hasDown"
:has-stock="false" :has-stock="false"
@goUse="chooseCoupon" @goUse="
(item) => {
chooseCoupon(item, index);
}
"
/> />
</van-list> </van-list>
<div v-else> <div v-else>
...@@ -189,7 +193,7 @@ export default { ...@@ -189,7 +193,7 @@ export default {
this.refreshing = false; this.refreshing = false;
}); });
}, },
chooseCoupon(item) { chooseCoupon(item, index) {
switch (item.couponStatus) { switch (item.couponStatus) {
case 0: case 0:
this.POST( this.POST(
...@@ -207,7 +211,7 @@ export default { ...@@ -207,7 +211,7 @@ export default {
// } // }
}) })
.catch((err) => { .catch((err) => {
item.hasDown = false; this.$set(this.couponList[index], "hasDown", false);
this.$toast(err.message); this.$toast(err.message);
console.log("err", err); console.log("err", err);
}); });
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册