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

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

@ -180,9 +180,14 @@
</div> </div>
</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="box6 mp-iphonex-bottom" v-if="orderMessage.priceDetailDTO">
<div class="navL"> <div class="tabbar-left">
合计 合计
<span class="number"> <span class="number">
¥ ¥
@ -191,10 +196,10 @@
</div> </div>
<div class="navRiv" @click="createTradeFun()"> <div class="navRiv" @click="createTradeFun()">
<!-- #ifndef MP-WEIXIN --> <!-- #ifndef MP-WEIXIN -->
<div class="navR">提交订单</div> <div class="tabbar-right">提交订单</div>
<!-- #endif --> <!-- #endif -->
<!-- #ifdef MP-WEIXIN --> <!-- #ifdef MP-WEIXIN -->
<div class="navR">微信支付</div> <div class="tabbar-right">微信支付</div>
<!-- #endif --> <!-- #endif -->
</div> </div>
@ -249,6 +254,8 @@ export default {
endWay: "", // endWay: "", //
masterWay: "", // masterWay: "", //
pintuanFlage: true, // pintuanFlage: true, //
notSupportFreight: [], //
notSupportFreightGoodsList:['以下商品超出配送范围:'],
}; };
}, },
filters: { filters: {
@ -467,7 +474,7 @@ export default {
} }
} else { } else {
uni.showToast({ uni.showToast({
title: "创建订单有误!请稍后重试", title: res.data.message,
duration: 2000, duration: 2000,
icon: "none", icon: "none",
}); });
@ -493,9 +500,8 @@ export default {
// //
API_Address.getAddressDefault().then((res) => { API_Address.getAddressDefault().then((res) => {
if (res.data.result) { 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; this.address = res.data.result;
} }
}); });
@ -520,9 +526,17 @@ export default {
this.getUserAddress(); this.getUserAddress();
} else { } else {
this.address = res.data.result.memberAddress; 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; width: 143rpx;
border-bottom: 2px dotted #999; border-bottom: 2px dotted #999;
} }
.tabbar-left {
margin-left: 32rpx;
}
.btn-one, .btn-one,
.wait { .wait {
@ -649,9 +666,7 @@ export default {
.tabC { .tabC {
> p { > p {
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
white-space: nowrap; white-space: nowrap;
} }
} }
@ -659,6 +674,24 @@ export default {
.box2 { .box2 {
margin-top: 20rpx; 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 { .userClass {
font-weight: bold; font-weight: bold;
@ -679,26 +712,18 @@ export default {
position: fixed; position: fixed;
bottom: 0; bottom: 0;
left: 0; left: 0;
width: 100%;
margin: 0;
height: 100rpx; height: 100rpx;
overflow: hidden; overflow: hidden;
line-height: 100rpx; line-height: 100rpx;
margin-bottom: 0px !important; margin-bottom: 0px !important;
background: #fff; background: #fff;
color: #333; color: #333;
width: 100%; display: flex;
justify-content: space-between;
> .navL {
width: 65%;
} }
> .navRiv { .tabbar-right {
float: left;
}
}
.navR {
margin-top: 10rpx; margin-top: 10rpx;
height: 80rpx; height: 80rpx;
color: #fff; color: #fff;
@ -707,6 +732,7 @@ export default {
padding: 0 44rpx; padding: 0 44rpx;
text-align: center; text-align: center;
border-radius: 400px; border-radius: 400px;
margin-right: 32rpx;
} }
.sp_tag { .sp_tag {
@ -792,11 +818,6 @@ export default {
padding: 0 32rpx; padding: 0 32rpx;
} }
.navL,
.navR {
float: left;
}
.wrapper { .wrapper {
background: #f9f9f9; background: #f9f9f9;
height: auto; height: auto;
@ -804,9 +825,6 @@ export default {
overflow: auto !important; overflow: auto !important;
} }
.tab1 {
}
.ybname { .ybname {
margin-left: 20rpx; margin-left: 20rpx;
font-weight: 400; font-weight: 400;

View File

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