|
@@ -61,8 +61,9 @@
|
|
|
:show-cancel-button="true" @cancel="cancel" ref="uModal" :async-close="true"></u-modal>
|
|
|
<view class="bottom" v-if="detail.isShow">
|
|
|
<u-button v-if="!detail.isJoin && !endShow" @click="signUp">立即报名</u-button>
|
|
|
- <u-button v-if="detail.isJoin" style="background-color: #CCCCCC;">已报名</u-button>
|
|
|
- <u-button v-if="endShow" style="background-color: #CCCCCC;">报名已结束</u-button>
|
|
|
+ <u-button v-if="detail.isJoin" style="background-color: #CCCCCC;color: #fff;" disabled>已报名</u-button>
|
|
|
+ <u-button v-if="endShow" style="background-color: #CCCCCC;color: #fff;" disabled>
|
|
|
+ {{startShow ? '报名未开始' : '报名已结束'}}</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -80,6 +81,7 @@
|
|
|
show: false,
|
|
|
content: '您已报名成功!',
|
|
|
endShow: false,
|
|
|
+ startShow: false,
|
|
|
}
|
|
|
},
|
|
|
onLoad(op) {
|
|
@@ -112,6 +114,9 @@
|
|
|
this.endShow = false;
|
|
|
} else {
|
|
|
this.endShow = true;
|
|
|
+ if(date.getTime() < oDate1.getTime()) {
|
|
|
+ this.startShow = true;
|
|
|
+ }
|
|
|
}
|
|
|
}).catch(error => {
|
|
|
uni.showToast({
|