Commit 79fdc34d by 侯体倬

佣金展示 bug 修复

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