| | |
| | | </view> |
| | | <text class="amount-row-value">{{ amountData.distance + 'km' }}</text> |
| | | </view> |
| | | <view v-if="activeMode !== 'city' && amountData.days" class="amount-row amount-row-extra"> |
| | | <view class="amount-row-left"> |
| | | <text class="amount-row-label">寄存天数</text> |
| | | </view> |
| | | <text class="amount-row-value">{{ amountData.days + '天' }}</text> |
| | | </view> |
| | | <view v-if="amountData.insuranceFee" class="amount-row amount-row-extra"> |
| | | <view class="amount-row-left"> |
| | | <text class="amount-row-label">物品保费</text> |
| | |
| | | }, |
| | | async calculateLocalPriceOnly() { |
| | | if (!this.selectedStore || !this.form.arriveTime || !this.form.pickupTime) { |
| | | this.amountData = null |
| | | return |
| | | } |
| | | const luggageList = this.luggageTypes |
| | |
| | | quantity: item.count |
| | | })) |
| | | if (luggageList.length === 0) { |
| | | this.amountData = null |
| | | return |
| | | } |
| | | const res = await this.$u.api.calculateLocalPrice({ |
| | |
| | | }, |
| | | async calculateRemotePrice() { |
| | | if (!this.sendStore || !this.form.arriveTime || !this.form.pickupTime) { |
| | | this.amountData = null |
| | | return |
| | | } |
| | | if (!this.receiveStore && !this.receiveAddr) { |
| | | this.amountData = null |
| | | return |
| | | } |
| | | const luggageList = this.luggageTypes |
| | |
| | | quantity: item.count |
| | | })) |
| | | if (luggageList.length === 0) { |
| | | this.amountData = null |
| | | return |
| | | } |
| | | let fromLat = '' |