Authored by 陈峰

Merge branch 'hotfix/changeprice' into 'master'

change price text tip



See merge request !3
... ... @@ -7,7 +7,7 @@
:transfer="true"
@on-sure="onSure">
<div class="change-price-modal">
<p class="modal-title">当前{{skc.sizeName}}码最低售价:¥{{skc.leastPrice}}</p>
<p class="modal-title">{{leastPriceMsg}}</p>
<InputUfo type="number" placeholder="定价需以9结尾 例如1999" :maxlength="8" class="ipt-number" v-model="chgPrice">
<span class="prepend" slot="prepend">¥</span>
</InputUfo>
... ... @@ -64,6 +64,14 @@ export default {
},
computed: {
...mapState(['fetchingChangePrice']),
leastPriceMsg() {
if (this.skc.leastPrice) {
return `当前${this.skc.sizeName}码最低售价:¥${this.skc.leastPrice}`;
} else if (this.skc.suggestMinPrice && this.skc.suggestMaxPrice) {
return `当前${this.skc.sizeName}码建议售价:¥${this.skc.suggestMinPrice} - ¥${this.skc.suggestMaxPrice}`;
}
return `当前${this.skc.sizeName}码最低售价:¥-`;
},
postLoading() {
return this.fetchingChangePrice || !this.calced;
}
... ...