调整报名

This commit is contained in:
唐明明
2023-07-17 11:36:40 +08:00
parent bd1805d853
commit 663a5a9762
3 changed files with 14 additions and 6 deletions

View File

@@ -10,8 +10,8 @@ import router from '../router'
// 基础配置 // 基础配置
const config = { const config = {
// apiUrl : 'https://douhuo.douhuofalv.com/api/', apiUrl : 'https://douhuo.douhuofalv.com/api/',
apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境 // apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
timeout : 60000 timeout : 60000
} }

View File

@@ -784,7 +784,7 @@
"style": { "style": {
"navigationBarTitleText": "增收赋能", "navigationBarTitleText": "增收赋能",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#FFF" "navigationBarBackgroundColor": "#ffffff"
} }
}, { }, {
"path": "pages/empower/buy", "path": "pages/empower/buy",
@@ -793,7 +793,7 @@
"style": { "style": {
"navigationBarTitleText": "报名", "navigationBarTitleText": "报名",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#FFF" "navigationBarBackgroundColor": "#ffffff"
} }
}, { }, {
"path": "pages/empower/order", "path": "pages/empower/order",
@@ -802,7 +802,7 @@
"style": { "style": {
"navigationBarTitleText": "订单", "navigationBarTitleText": "订单",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#FFF" "navigationBarBackgroundColor": "#ffffff"
} }
}], }],
"globalStyle": { "globalStyle": {

View File

@@ -31,7 +31,7 @@
<rich-text :nodes="content"></rich-text> <rich-text :nodes="content"></rich-text>
<!-- 报名信息 --> <!-- 报名信息 -->
<view class="footer"> <view class="footer">
<view class="footer-btn" @click="onBuy">立即购买</view> <view :class="['footer-btn', count.ing <= 0 ? 'in' : '']" @click="onBuy">立即购买</view>
</view> </view>
</view> </view>
</template> </template>
@@ -74,6 +74,13 @@
}, },
methods: { methods: {
onBuy(){ onBuy(){
if(this.count.ing <= 0){
uni.showToast({
title: '暂无可报名学期',
icon : 'none'
})
return
}
this.$Router.push({ this.$Router.push({
name : 'EmpowerBuy', name : 'EmpowerBuy',
params : { id: this.id } params : { id: this.id }
@@ -133,5 +140,6 @@
background-color: white; background-color: white;
box-shadow: 0 0 10rpx 10rpx rgba(0, 0, 0, .04); 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{ 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; }
} }
</style> </style>