|
|
|
@ -249,7 +249,7 @@ |
|
|
|
<!-- 收货/取货地址簿弹出层 --> |
|
|
|
<uni-popup ref="bookPopup" background-color="#fff"> |
|
|
|
<view class="book-popup-content"> |
|
|
|
<address-list @selectAddress="handleSelectAddress" @syncAddress="handleSyncAddress" @close="$refs.bookPopup.close()"></address-list> |
|
|
|
<address-list @selectAddress="handleSelectAddress" @syncAddress="handleSyncAddress" @shopAreaList="updateArea" @close="$refs.bookPopup.close()"></address-list> |
|
|
|
</view> |
|
|
|
</uni-popup> |
|
|
|
|
|
|
|
@ -423,7 +423,7 @@ |
|
|
|
if (this.selectedCoupon) { |
|
|
|
total = total - parseFloat(this.selectedCoupon.discountAmount); |
|
|
|
} |
|
|
|
return total > 0 ? total : 0; |
|
|
|
return total > 0 ? total : 0.01; |
|
|
|
} |
|
|
|
}, |
|
|
|
watch: { |
|
|
|
@ -439,7 +439,7 @@ |
|
|
|
onShow() { |
|
|
|
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() |
|
|
|
this.initAddress() |
|
|
|
|
|
|
|
this.fetchCoupons() |
|
|
|
const now = new Date(); |
|
|
|
const startTime = new Date(now); |
|
|
|
const endTime = new Date(now); |
|
|
|
@ -536,6 +536,10 @@ |
|
|
|
} |
|
|
|
this.$refs.bookPopup.close(); |
|
|
|
}, |
|
|
|
updateArea(v){ |
|
|
|
this.shopArea = v |
|
|
|
this.kuaidiAreaList = v.filter(item => item.isCanteen === 2); |
|
|
|
}, |
|
|
|
handleSyncAddress(address) { |
|
|
|
if (this.addressSelectMode === 'put') { |
|
|
|
this.formData.address = address; |
|
|
|
|