新增自提显示
This commit is contained in:
@@ -48,6 +48,10 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="pick-up" v-if="is_selfraising == 1">
|
||||
<view class="title">自提地址</view>
|
||||
<view class="content">{{ orderInfo.store_list[index].store_address }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="common-active">
|
||||
@@ -387,6 +391,12 @@ export default {
|
||||
},
|
||||
async setDelivery(index) {
|
||||
// console.log(index);
|
||||
if(index == 1) {
|
||||
if(!this.isTakeawayer) this.$u.toast('此地区不支持骑手配送');
|
||||
return false;
|
||||
this.delivery = this.deliveryList[index];
|
||||
this.getFreight();
|
||||
}
|
||||
if(index == 2) {
|
||||
this.is_selfraising = 1;
|
||||
for (const key in this.freight) {
|
||||
@@ -400,12 +410,6 @@ export default {
|
||||
} else {
|
||||
this.is_selfraising = 0;
|
||||
}
|
||||
if(index == 1) {
|
||||
if(!this.isTakeawayer) this.$u.toast('此地区不支持骑手配送');
|
||||
return false;
|
||||
this.delivery = this.deliveryList[index];
|
||||
this.getFreight();
|
||||
}
|
||||
if(index == 0) {
|
||||
this.delivery = this.deliveryList[index];
|
||||
this.getFreight();
|
||||
@@ -434,6 +438,7 @@ export default {
|
||||
min-height: calc(100vh - var(--window-top));
|
||||
background-color: #ECECEC;
|
||||
padding-top: 1rpx;
|
||||
padding-bottom: 200rpx;
|
||||
.info-address {
|
||||
padding: 30rpx;
|
||||
display: flex;
|
||||
@@ -591,10 +596,24 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
.pick-up {
|
||||
padding: 30rpx;
|
||||
background: rgba(255,255,255,1);
|
||||
.title {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
margin-bottom: 30rpx;
|
||||
}
|
||||
.content {
|
||||
font-size: 30rpx;
|
||||
color: #343434;
|
||||
line-height: 40rpx;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
.common-active {
|
||||
padding-bottom: 200rpx;
|
||||
padding-bottom: 30rpx;
|
||||
> view {
|
||||
height: 98rpx;
|
||||
background: rgba(255,255,255,1);
|
||||
|
||||
Reference in New Issue
Block a user