Commit 3e610c92 by 谢中龙

导购优惠券权限

parent 256b128d
...@@ -379,7 +379,10 @@ wxService.page({ ...@@ -379,7 +379,10 @@ wxService.page({
calPreferentialPrice(params) { calPreferentialPrice(params) {
wx.showLoading({ wx.showLoading({
title: '加载中' title: '加载中'
}) });
// params.checkPrice = true;
wxService.post(`/sale/trade/buyer/preview`, params).then(res => { wxService.post(`/sale/trade/buyer/preview`, params).then(res => {
if (res) { if (res) {
const { result, data } = res.data const { result, data } = res.data
...@@ -591,6 +594,7 @@ wxService.page({ ...@@ -591,6 +594,7 @@ wxService.page({
goodsAddress: params.addressId ? false : true, goodsAddress: params.addressId ? false : true,
}); });
} }
this.calPreferentialPrice(params) this.calPreferentialPrice(params)
} }
}).finally(() => { }).finally(() => {
......
...@@ -203,7 +203,9 @@ wxService.page({ ...@@ -203,7 +203,9 @@ wxService.page({
if(res){ if(res){
let list = res.data.data.content ? res.data.data.content : []; let list = res.data.data.content ? res.data.data.content : [];
list.forEach(item => { list.forEach(item => {
item.price = parseFloat(item.couponSetting.faceAmount / 100).toFixed(2);
item.couponType = item.couponSetting.type; item.couponType = item.couponSetting.type;
item.typeText = item.couponSetting.typeDesc;
item.couponBg = item.couponType == 1 ? diyongBg : (item.couponType == 2 ? discountBg : dingeBg); item.couponBg = item.couponType == 1 ? diyongBg : (item.couponType == 2 ? discountBg : dingeBg);
}); });
......
...@@ -146,7 +146,7 @@ view{ ...@@ -146,7 +146,7 @@ view{
width: 100%; width: 100%;
height: 320rpx; height: 320rpx;
display: flex; display: flex;
justify-content: space-between; /* justify-content: space-between; */
} }
.coupon-list .coupon-list-item{ .coupon-list .coupon-list-item{
...@@ -154,6 +154,7 @@ view{ ...@@ -154,6 +154,7 @@ view{
min-width: 33%; min-width: 33%;
max-width: 33%; max-width: 33%;
height: 100%; height: 100%;
margin-left: 4rpx;
background-position: center; background-position: center;
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 100%; 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