Authored by 陈峰

调整接口和最低售价文案

@@ -113,7 +113,7 @@ export default { @@ -113,7 +113,7 @@ export default {
113 new_price: price, 113 new_price: price,
114 old_price: this.skc.price, 114 old_price: this.skc.price,
115 num: this.skc.storageNum, 115 num: this.skc.storageNum,
116 - skupType: this.skc.isAdvance === 'Y' ? 4 : 1 116 + skupType: this.skc.attributes,
117 }); 117 });
118 118
119 if (result && result.code === 200) { 119 if (result && result.code === 200) {
@@ -11,7 +11,7 @@ @@ -11,7 +11,7 @@
11 </div> 11 </div>
12 <div class="middle"> 12 <div class="middle">
13 <p class="size-store">¥{{value.goodsInfo.price}},{{value.goodsInfo.storageNum}}个库存</p> 13 <p class="size-store">¥{{value.goodsInfo.price}},{{value.goodsInfo.storageNum}}个库存</p>
14 - <p class="low-price">当前最低价¥{{value.goodsInfo.leastPrice}}</p> 14 + <p class="low-price">{{lastPriceTxt}}¥{{value.goodsInfo.leastPrice || '-'}}</p>
15 </div> 15 </div>
16 <div class="right"> 16 <div class="right">
17 <Button class="chg-price" @click.native="onChgPrice">调 价</Button> 17 <Button class="chg-price" @click.native="onChgPrice">调 价</Button>
@@ -43,6 +43,9 @@ export default { @@ -43,6 +43,9 @@ export default {
43 }; 43 };
44 }, 44 },
45 computed: { 45 computed: {
  46 + lastPriceTxt() {
  47 + return this.isPreSale ? '预售最低售价' : '现货最低售价';
  48 + },
46 isPreSale() { 49 isPreSale() {
47 return this.value.isAdvance === 'Y'; 50 return this.value.isAdvance === 'Y';
48 }, 51 },
@@ -69,7 +72,8 @@ export default { @@ -69,7 +72,8 @@ export default {
69 methods: { 72 methods: {
70 onNoSale() { 73 onNoSale() {
71 this.$emit('on-no-sale', Object.assign({ 74 this.$emit('on-no-sale', Object.assign({
72 - isAdvance: this.value.isAdvance 75 + isAdvance: this.value.isAdvance,
  76 + attributes: this.value.attributes
73 }, this.value.goodsInfo)); 77 }, this.value.goodsInfo));
74 78
75 this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', { 79 this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
@@ -78,7 +82,8 @@ export default { @@ -78,7 +82,8 @@ export default {
78 }, 82 },
79 onChgPrice() { 83 onChgPrice() {
80 this.$emit('on-change-price', Object.assign({ 84 this.$emit('on-change-price', Object.assign({
81 - isAdvance: this.value.isAdvance 85 + isAdvance: this.value.isAdvance,
  86 + attributes: this.value.attributes
82 }, this.value.goodsInfo)); 87 }, this.value.goodsInfo));
83 88
84 this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', { 89 this.$root.reportApp('', 'BUSINESS_UFO_SELL_CHANGE', {
@@ -171,7 +171,7 @@ export default { @@ -171,7 +171,7 @@ export default {
171 new_price: price, 171 new_price: price,
172 old_price: skc.price, 172 old_price: skc.price,
173 num: skc.storageNum, 173 num: skc.storageNum,
174 - skupType: skc.isAdvance === 'Y' ? 4 : 1 174 + skupType: skc.attributes
175 }); 175 });
176 176
177 if (result && result.code === 200) { 177 if (result && result.code === 200) {
@@ -194,7 +194,7 @@ export default { @@ -194,7 +194,7 @@ export default {
194 storage_id: skc.storageId, 194 storage_id: skc.storageId,
195 old_price: skc.price, 195 old_price: skc.price,
196 num: num, 196 num: num,
197 - skupType: skc.isAdvance === 'Y' ? 4 : 1 197 + skupType: skc.attributes
198 }); 198 });
199 199
200 if (result.code === 200) { 200 if (result.code === 200) {