Commit 3e610c92 by 谢中龙

导购优惠券权限

parent 256b128d
......@@ -379,7 +379,10 @@ wxService.page({
calPreferentialPrice(params) {
wx.showLoading({
title: '加载中'
})
});
// params.checkPrice = true;
wxService.post(`/sale/trade/buyer/preview`, params).then(res => {
if (res) {
const { result, data } = res.data
......@@ -591,6 +594,7 @@ wxService.page({
goodsAddress: params.addressId ? false : true,
});
}
this.calPreferentialPrice(params)
}
}).finally(() => {
......
......@@ -203,7 +203,9 @@ wxService.page({
if(res){
let list = res.data.data.content ? res.data.data.content : [];
list.forEach(item => {
item.price = parseFloat(item.couponSetting.faceAmount / 100).toFixed(2);
item.couponType = item.couponSetting.type;
item.typeText = item.couponSetting.typeDesc;
item.couponBg = item.couponType == 1 ? diyongBg : (item.couponType == 2 ? discountBg : dingeBg);
});
......
......@@ -146,7 +146,7 @@ view{
width: 100%;
height: 320rpx;
display: flex;
justify-content: space-between;
/* justify-content: space-between; */
}
.coupon-list .coupon-list-item{
......@@ -154,6 +154,7 @@ view{
min-width: 33%;
max-width: 33%;
height: 100%;
margin-left: 4rpx;
background-position: center;
background-repeat: no-repeat;
background-size: 100%;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment