|
|
|
|
@ -202,8 +202,6 @@
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</u-popup>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
|
</view>
|
|
|
|
|
</template>
|
|
|
|
|
@ -376,9 +374,11 @@
|
|
|
|
|
async getAddress() {
|
|
|
|
|
const res = await this.$u.api.getUserAddress()
|
|
|
|
|
this.listAddress = res.address
|
|
|
|
|
if (!this.type == 'edit') {
|
|
|
|
|
console.log("this.type",this.type)
|
|
|
|
|
if (!(this.type == 'edit')) {
|
|
|
|
|
this.showAddress = this.listAddress.length > 0 ? true : false
|
|
|
|
|
}
|
|
|
|
|
console.log("this.type",this.type,this.showAddress)
|
|
|
|
|
},
|
|
|
|
|
// async getExpress() {
|
|
|
|
|
// const res = await this.$u.api.getExpress()
|
|
|
|
|
@ -407,10 +407,12 @@
|
|
|
|
|
card_number: this.form.card_number
|
|
|
|
|
}).then(res => {
|
|
|
|
|
let data = res.card
|
|
|
|
|
if(data.open_dates && data.open_dates.length===0){
|
|
|
|
|
toast("当前无可提货时间")
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
if (data.open_dates) {
|
|
|
|
|
for (var k in data.open_dates) {
|
|
|
|
|
// 剩余数量大于0
|
|
|
|
|
|
|
|
|
|
if (data.open_dates[k]['quantity'] - data.open_dates[k]['booked'] > 0) {
|
|
|
|
|
if(this.isAfterTwoDays(k)){
|
|
|
|
|
let _k = this.momentDay(k)
|
|
|
|
|
@ -419,9 +421,10 @@
|
|
|
|
|
..._k
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}else{
|
|
|
|
|
toast("当前无可提货时间")
|
|
|
|
|
}
|
|
|
|
|
}).then(res => {
|
|
|
|
|
|
|
|
|
|
|