lion 12 months ago
parent c003de83bd
commit f8c424063d

@ -111,9 +111,23 @@
this.$u.api.getCard(this.form).then(res => { this.$u.api.getCard(this.form).then(res => {
if(res.available_dates.length===0){ if(res.available_dates.length===0){
if(!isNull(res.card.sku.help)){ if(!isNull(res.card.sku.help)){
toast(res.card.sku.help,4000) uni.showModal({
title:'提示',
content:res.card.sku.help,
cancelText:'关闭',
confirmText:'我已知晓',
showCancel:false
})
// toast(res.card.sku.help,4000)
}else{ }else{
toast(this.dateFalse,4000) uni.showModal({
title:'提示',
content:this.dateFalse,
cancelText:'关闭',
confirmText:'我已知晓',
showCancel:false
})
// toast(this.dateFalse,4000)
} }
return return
} }
@ -127,9 +141,23 @@
this.showHelp = this.openDate || this.endDate ? true : false this.showHelp = this.openDate || this.endDate ? true : false
if(this.$moment(today).isBefore(open_date) || this.$moment(today).isAfter(end_date)){ if(this.$moment(today).isBefore(open_date) || this.$moment(today).isAfter(end_date)){
if(!isNull(res.card.sku.help)){ if(!isNull(res.card.sku.help)){
toast(res.card.sku.help,4000) // toast(res.card.sku.help,4000)
uni.showModal({
title:'提示',
content:res.card.sku.help,
cancelText:'关闭',
confirmText:'我已知晓',
showCancel:false
})
}else{ }else{
toast(this.dateFalse,4000) uni.showModal({
title:'提示',
content:this.dateFalse,
cancelText:'关闭',
confirmText:'我已知晓',
showCancel:false
})
// toast(this.dateFalse,4000)
} }
return return
} }

Loading…
Cancel
Save