Authored by 陈峰

调整接口和最低售价文案

... ... @@ -113,7 +113,7 @@ export default {
new_price: price,
old_price: this.skc.price,
num: this.skc.storageNum,
skupType: this.skc.isAdvance === 'Y' ? 4 : 1
skupType: this.skc.attributes,
});
if (result && result.code === 200) {
... ...
... ... @@ -11,7 +11,7 @@
</div>
<div class="middle">
<p class="size-store">¥{{value.goodsInfo.price}},{{value.goodsInfo.storageNum}}个库存</p>
<p class="low-price">当前最低价¥{{value.goodsInfo.leastPrice}}</p>
<p class="low-price">{{lastPriceTxt}}¥{{value.goodsInfo.leastPrice || '-'}}</p>
</div>
<div class="right">
<Button class="chg-price" @click.native="onChgPrice">调 价</Button>
... ... @@ -43,6 +43,9 @@ export default {
};
},
computed: {
lastPriceTxt() {
return this.isPreSale ? '预售最低售价' : '现货最低售价';
},
isPreSale() {
return this.value.isAdvance === 'Y';
},
... ... @@ -69,7 +72,8 @@ export default {
methods: {
onNoSale() {
this.$emit('on-no-sale', Object.assign({
isAdvance: this.value.isAdvance
isAdvance: this.value.isAdvance,
attributes: this.value.attributes
}, this.value.goodsInfo));
this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
... ... @@ -78,7 +82,8 @@ export default {
},
onChgPrice() {
this.$emit('on-change-price', Object.assign({
isAdvance: this.value.isAdvance
isAdvance: this.value.isAdvance,
attributes: this.value.attributes
}, this.value.goodsInfo));
this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
... ...
... ... @@ -171,7 +171,7 @@ export default {
new_price: price,
old_price: skc.price,
num: skc.storageNum,
skupType: skc.isAdvance === 'Y' ? 4 : 1
skupType: skc.attributes
});
if (result && result.code === 200) {
... ... @@ -194,7 +194,7 @@ export default {
storage_id: skc.storageId,
old_price: skc.price,
num: num,
skupType: skc.isAdvance === 'Y' ? 4 : 1
skupType: skc.attributes
});
if (result.code === 200) {
... ...