Commit 79fdc34d by 侯体倬

佣金展示 bug 修复

parent bdfd9844
...@@ -33,6 +33,7 @@ const componentOptions = { ...@@ -33,6 +33,7 @@ const componentOptions = {
cutPrice: "", // 砍价价格 cutPrice: "", // 砍价价格
minPrice: 0, minPrice: 0,
minGoodsSuggestedRetailPrice: 0, minGoodsSuggestedRetailPrice: 0,
commissionColor: "#ff9051", // 佣金默认颜色
}, },
// 数据监听器 // 数据监听器
observers: { observers: {
...@@ -61,6 +62,9 @@ const componentOptions = { ...@@ -61,6 +62,9 @@ const componentOptions = {
if(datas.componentData.angleSignImg && datas.componentData.angleSignImg.lenght != 0){ if(datas.componentData.angleSignImg && datas.componentData.angleSignImg.lenght != 0){
datas.componentData.angleSignImg = DFSImg(datas.componentData.angleSignImg,150,150,1) datas.componentData.angleSignImg = DFSImg(datas.componentData.angleSignImg,150,150,1)
} }
if (datas.componentData.commissionColor) {
this.setData({ commissionColor: datas.componentData.commissionColor });
}
if (datas.componentData.style === 'rowList' || datas.componentData.style === 'heap') { if (datas.componentData.style === 'rowList' || datas.componentData.style === 'heap') {
imgFillType = "aspectFit" imgFillType = "aspectFit"
} else if (datas.componentData.style == 'waterfall' && datas.componentData.imgShowMode == "1") { } else if (datas.componentData.style == 'waterfall' && datas.componentData.imgShowMode == "1") {
......
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
<block wx:if="{{items!=null&&items['minProductGoodsCommission']&&items['minProductGoodsCommission']-0>0.01}}"> <block wx:if="{{items!=null&&items['minProductGoodsCommission']&&items['minProductGoodsCommission']-0>0.01}}">
<view <view
class="showCommission" class="showCommission"
style="color:{{datas.componentData.commissionColor}};border-color:{{datas.componentData.commissionColor}};" style="color:{{commissionColor}};border-color:{{commissionColor}};"
wx:if="{{datas.componentData.commissionStyle==0}}" wx:if="{{datas.componentData.commissionStyle==0}}"
> >
<view class="commission-box" style="background-color:{{datas.componentData.commissionBgColor}}"> <view class="commission-box" style="background-color:{{datas.componentData.commissionBgColor}}">
...@@ -248,7 +248,7 @@ ...@@ -248,7 +248,7 @@
<view <view
class="showCommissionTwo flex" class="showCommissionTwo flex"
wx:if="{{datas.componentData.commissionStyle==1}}" wx:if="{{datas.componentData.commissionStyle==1}}"
style="color:{{datas.componentData.commissionColor}};border-color:{{datas.componentData.commissionColor}};" style="color:{{commissionColor}};border-color:{{commissionColor}};"
> >
<view class="commission-box" style="background-color:{{datas.componentData.commissionBgColor}}"> <view class="commission-box" style="background-color:{{datas.componentData.commissionBgColor}}">
<text class="iconfont-common common-iconfenxiang"></text> <text class="iconfont-common common-iconfenxiang"></text>
......
...@@ -292,8 +292,7 @@ const componentOptions = { ...@@ -292,8 +292,7 @@ const componentOptions = {
whetherQueryCollectCount: true, whetherQueryCollectCount: true,
whetherUseVirtualSalesQty: true, whetherUseVirtualSalesQty: true,
whetherUseVirtualCollectCount: true, whetherUseVirtualCollectCount: true,
whetherFindDistributionCommission: this whetherFindDistributionCommission: this.data.datas.componentData.whetherFindDistributionCommission,
.whetherFindDistributionCommission,
whetherFindRecommendedCardFlag: this.data.datas.componentData.vipPrice whetherFindRecommendedCardFlag: this.data.datas.componentData.vipPrice
? 1 ? 1
: 0, : 0,
......
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