新增商品超出配送范围 提示

master
lemon橪 2021-07-01 15:25:00 +08:00
parent 8500fb4087
commit 765ad65b8f
2 changed files with 53 additions and 34 deletions

View File

@ -114,7 +114,7 @@
<!-- 发票信息 -->
<invoices :res="receiptList" @callbackInvoice="callbackInvoice" v-if="invoiceFlag" />
<u-select v-model="shippingFlag" :list="shippingMethod" ></u-select>
<u-select v-model="shippingFlag" :list="shippingMethod"></u-select>
<!-- 优惠券 -->
<div class="box box4">
@ -180,9 +180,14 @@
</div>
</div>
<!-- 配送地区没有提示 -->
<div class="notSupportFreight">
<u-notice-bar :volume-icon="false" mode="horizontal" :list="notSupportFreightGoodsList"></u-notice-bar>
</div>
<!-- 结账 -->
<div class="box box6 mp-iphonex-bottom" v-if="orderMessage.priceDetailDTO">
<div class="navL">
<div class="box6 mp-iphonex-bottom" v-if="orderMessage.priceDetailDTO">
<div class="tabbar-left">
合计
<span class="number">
¥
@ -191,10 +196,10 @@
</div>
<div class="navRiv" @click="createTradeFun()">
<!-- #ifndef MP-WEIXIN -->
<div class="navR">提交订单</div>
<div class="tabbar-right">提交订单</div>
<!-- #endif -->
<!-- #ifdef MP-WEIXIN -->
<div class="navR">微信支付</div>
<div class="tabbar-right">微信支付</div>
<!-- #endif -->
</div>
@ -249,6 +254,8 @@ export default {
endWay: "", //
masterWay: "", //
pintuanFlage: true, //
notSupportFreight: [], //
notSupportFreightGoodsList:['以下商品超出配送范围:'],
};
},
filters: {
@ -467,7 +474,7 @@ export default {
}
} else {
uni.showToast({
title: "创建订单有误!请稍后重试",
title: res.data.message,
duration: 2000,
icon: "none",
});
@ -493,9 +500,8 @@ export default {
//
API_Address.getAddressDefault().then((res) => {
if (res.data.result) {
res.data.result.consigneeAddressPath = res.data.result.consigneeAddressPath.split(
","
);
res.data.result.consigneeAddressPath =
res.data.result.consigneeAddressPath.split(",");
this.address = res.data.result;
}
});
@ -520,9 +526,17 @@ export default {
this.getUserAddress();
} else {
this.address = res.data.result.memberAddress;
res.data.result.memberAddress.consigneeAddressPath = res.data.result.memberAddress.consigneeAddressPath.split(
","
);
res.data.result.memberAddress.consigneeAddressPath =
res.data.result.memberAddress.consigneeAddressPath.split(",");
}
if (res.data.result.notSupportFreight.length != 0) {
this.notSupportFreight = res.data.result.notSupportFreight;
res.data.result.notSupportFreight.forEach(item=>{
this.notSupportFreightGoodsList[0]+=(item.goodsSku.goodsName)
})
}
});
},
@ -574,6 +588,9 @@ export default {
width: 143rpx;
border-bottom: 2px dotted #999;
}
.tabbar-left {
margin-left: 32rpx;
}
.btn-one,
.wait {
@ -649,9 +666,7 @@ export default {
.tabC {
> p {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
@ -659,6 +674,24 @@ export default {
.box2 {
margin-top: 20rpx;
}
.notSupportFreight {
position: fixed;
bottom: 100rpx;
display: flex;
align-items: center;
left: 0;
background: #fdf6ec;
height: 100rpx;
width: 100%;
transition: 0.35s;
> .tips {
margin: 0 32rpx;
}
}
/deep/ .u-notice-bar-wrap{
width: 100%;
}
.userClass {
font-weight: bold;
@ -679,26 +712,18 @@ export default {
position: fixed;
bottom: 0;
left: 0;
margin: 0;
width: 100%;
height: 100rpx;
overflow: hidden;
line-height: 100rpx;
margin-bottom: 0px !important;
background: #fff;
color: #333;
width: 100%;
> .navL {
width: 65%;
}
> .navRiv {
float: left;
}
display: flex;
justify-content: space-between;
}
.navR {
.tabbar-right {
margin-top: 10rpx;
height: 80rpx;
color: #fff;
@ -707,6 +732,7 @@ export default {
padding: 0 44rpx;
text-align: center;
border-radius: 400px;
margin-right: 32rpx;
}
.sp_tag {
@ -792,11 +818,6 @@ export default {
padding: 0 32rpx;
}
.navL,
.navR {
float: left;
}
.wrapper {
background: #f9f9f9;
height: auto;
@ -804,9 +825,6 @@ export default {
overflow: auto !important;
}
.tab1 {
}
.ybname {
margin-left: 20rpx;
font-weight: 400;

View File

@ -103,6 +103,7 @@ export default {
icon: "none",
});
this.flage = false;
this.codeFlag = true;
}
})
.catch((e) => {