Merge branch 'test' into prod
This commit is contained in:
commit
7d0768c079
|
@ -60,7 +60,7 @@
|
|||
报名截止时间<text style="color: red;">*</text>
|
||||
</view>
|
||||
<view class="uni-list-cell-db">
|
||||
<uni-datetime-picker ref="abortDate" type="datetime" v-model="abortDate" @change="changeLog" />
|
||||
<uni-datetime-picker ref="abortDate" type="datetime" v-model="abortDate" @change="changeLog" />
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
@ -181,12 +181,29 @@ export default {
|
|||
},
|
||||
methods: {
|
||||
changeLog (e) {
|
||||
if (new Date(this.date).getTime() < new Date(e).getTime()) {
|
||||
// console.log(new Date(this.date).getTime());
|
||||
// console.log();
|
||||
// return
|
||||
let shoIHide = (new Date(e).getTime() - new Date(this.date).getTime()) < 57599000
|
||||
if(shoIHide){
|
||||
this.abortDate = e
|
||||
}else{
|
||||
toast("报名截止时间不能大于开始时间!")
|
||||
this.$refs.abortDate.clear()
|
||||
} else {
|
||||
this.abortDate = e
|
||||
}
|
||||
|
||||
// if (new Date(this.date).getTime() < new Date(e).getTime()) {
|
||||
// if (!shoIHide) {
|
||||
// toast("报名截止时间不能大于开始时间!")
|
||||
// this.$refs.abortDate.clear()
|
||||
// } else {
|
||||
// this.abortDate = e
|
||||
// }
|
||||
// toast("报名截止时间不能大于开始时间!")
|
||||
// this.$refs.abortDate.clear()
|
||||
// } else {
|
||||
// this.abortDate = e
|
||||
// }
|
||||
},
|
||||
chang (e) {
|
||||
this.joinValue = e.detail.value
|
||||
|
|
Loading…
Reference in New Issue