diff --git a/pages/empower/info.vue b/pages/empower/info.vue index a11a18f..d44a24d 100644 --- a/pages/empower/info.vue +++ b/pages/empower/info.vue @@ -31,7 +31,7 @@ - 立即购买 + 立即购买 @@ -72,6 +72,13 @@ }, methods: { onBuy(){ + if(this.count.ing <= 0){ + uni.showToast({ + title: '暂无可报名学期', + icon : 'none' + }) + return + } this.$Router.push({ name : 'EmpowerBuy', params : { id: this.id } @@ -131,5 +138,6 @@ background-color: white; box-shadow: 0 0 10rpx 10rpx rgba(0, 0, 0, .04); .footer-btn{ background: $mian-color; color: white; line-height: 100rpx; border-radius: 50rpx; flex: 1; text-align: center; font-weight: bold; font-size: 36rpx; } + .footer-btn.in{ opacity: .6; } }