| | |
| | | </view> |
| | | </view> |
| | | <view class="tabbtns"> |
| | | <up-button color='#fece01' class="text-69" text="报名" @click="enroll"></up-button> |
| | | <up-button color='#fece01' :loading='isLoading' loadingText="报名中" class="text-69" text="报名" @click="enroll"></up-button> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | orderObj: null, |
| | | tags: ['4小时', '可无经验', '手脚麻利', '计时'] |
| | | orderObj: {}, |
| | | tags: ['4小时', '可无经验', '手脚麻利', '计时'], |
| | | isLoading:false |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | }) |
| | | }, |
| | | enroll() { |
| | | this.isLoading = true |
| | | this.$api.saveBaoMing({ |
| | | orderId: this.orderObj.id |
| | | }).then(res => { |
| | |
| | | title: "报名成功!", |
| | | icon: "success" |
| | | }) |
| | | uni.navigateBack() |
| | | } else { |
| | | this.$util.showToast({ |
| | | title: res.error |
| | | }) |
| | | } |
| | | this.isLoading = false |
| | | }) |
| | | } |
| | | } |