diff --git a/apis/index.js b/apis/index.js index bc86f66..917ef93 100644 --- a/apis/index.js +++ b/apis/index.js @@ -10,8 +10,8 @@ import router from '../router' // 基础配置 const config = { - // apiUrl : 'https://douhuo.douhuofalv.com/api/', - apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境 + apiUrl : 'https://douhuo.douhuofalv.com/api/', + // apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境 timeout : 60000 } diff --git a/pages.json b/pages.json index fadcccc..56b75e6 100644 --- a/pages.json +++ b/pages.json @@ -784,7 +784,7 @@ "style": { "navigationBarTitleText": "增收赋能", "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#FFF" + "navigationBarBackgroundColor": "#ffffff" } }, { "path": "pages/empower/buy", @@ -793,7 +793,7 @@ "style": { "navigationBarTitleText": "报名", "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#FFF" + "navigationBarBackgroundColor": "#ffffff" } }, { "path": "pages/empower/order", @@ -802,7 +802,7 @@ "style": { "navigationBarTitleText": "订单", "enablePullDownRefresh": false, - "navigationBarBackgroundColor": "#FFF" + "navigationBarBackgroundColor": "#ffffff" } }], "globalStyle": { diff --git a/pages/empower/info.vue b/pages/empower/info.vue index bdc90a2..2137b2b 100644 --- a/pages/empower/info.vue +++ b/pages/empower/info.vue @@ -31,7 +31,7 @@ - 立即购买 + 立即购买 @@ -74,6 +74,13 @@ }, methods: { onBuy(){ + if(this.count.ing <= 0){ + uni.showToast({ + title: '暂无可报名学期', + icon : 'none' + }) + return + } this.$Router.push({ name : 'EmpowerBuy', params : { id: this.id } @@ -133,5 +140,6 @@ background-color: white; box-shadow: 0 0 10rpx 10rpx rgba(0, 0, 0, .04); .footer-btn{ background: $main-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; } }