diff --git a/components/cart/CardList.vue b/components/cart/CardList.vue index a301a9e..612b10f 100644 --- a/components/cart/CardList.vue +++ b/components/cart/CardList.vue @@ -3,7 +3,8 @@ 下单时间:{{item.createTime}} - {{item.stateText}} + {{ stateText[item.state] }} + @@ -51,7 +52,7 @@ }, data() { return { - + stateText : ['', '待参加', '已完成', '已取消'], }; }, components: { diff --git a/pages/index/cart.vue b/pages/index/cart.vue index d850d34..8d4382b 100644 --- a/pages/index/cart.vue +++ b/pages/index/cart.vue @@ -13,11 +13,7 @@ - + @@ -132,7 +128,6 @@ this.orderId = item.id; if (type == 0) { - // this.$refs.modal.open(); uni.showModal({ title: '是否取消订单?', success : res => {