Authored by 郭成尧

slogan-modifeid

... ... @@ -500,7 +500,8 @@ let getNewProductAsyncData = (data) => {
if (bundleData && _.get(bundleData, 'bundleInfo.discountType', null) === 2) {
finalResult.discountBuy = {
num: _.get(bundleData, 'bundleInfo.bundleCount', 1),
promotionPhrase: _.get(bundleData, 'bundleInfo.promotionPhrase', '')
promotionPhrase: _.get(bundleData, 'bundleInfo.promotionPhrase', ''),
discount: _.get(bundleData, 'bundleInfo.discount', '')
};
}
... ...
... ... @@ -237,7 +237,8 @@ const tool = {
processDiscount(finalResult, bundleData) {
finalResult.discountBuy = {
num: _.get(bundleData, 'bundleInfo.bundleCount', 1),
promotionPhrase: _.get(bundleData, 'bundleInfo.promotionPhrase', '')
promotionPhrase: _.get(bundleData, 'bundleInfo.promotionPhrase', ''),
discount: _.get(bundleData, 'bundleInfo.discount', 1)
};
let oldPromotion = finalResult.promotion;
... ...
... ... @@ -56,7 +56,7 @@
</a>
</div>
{{#if @root.discountBuy}}
<span class="left-num-discount" style="color: #e10;position: absolute;top: 0.5rem;left: 9.5rem;overflow: hidden;white-space: nowrap;width: 5.2rem;-o-text-overflow: ellipsis;text-overflow: ellipsis;">{{@root.discountBuy.promotionPhrase}}</span>
<span class="left-num-discount" style="color: #e10;position: absolute;top: 0.5rem;left: 9.5rem;overflow: hidden;white-space: nowrap;width: 5.2rem;-o-text-overflow: ellipsis;text-overflow: ellipsis;">{{@root.discountBuy.num}}件起购,享{{@root.discountBuy.discount}}</span>
<input id="mnum" type="hidden" value="{{@root.discountBuy.num}}">
{{^}}
<span class="left-num"></span>
... ...