Merge branch 'hotfix/changeprice' into 'master'
change price text tip See merge request !3
Showing
1 changed file
with
9 additions
and
1 deletions
@@ -7,7 +7,7 @@ | @@ -7,7 +7,7 @@ | ||
7 | :transfer="true" | 7 | :transfer="true" |
8 | @on-sure="onSure"> | 8 | @on-sure="onSure"> |
9 | <div class="change-price-modal"> | 9 | <div class="change-price-modal"> |
10 | - <p class="modal-title">当前{{skc.sizeName}}码最低售价:¥{{skc.leastPrice}}</p> | 10 | + <p class="modal-title">{{leastPriceMsg}}</p> |
11 | <InputUfo type="number" placeholder="定价需以9结尾 例如1999" :maxlength="8" class="ipt-number" v-model="chgPrice"> | 11 | <InputUfo type="number" placeholder="定价需以9结尾 例如1999" :maxlength="8" class="ipt-number" v-model="chgPrice"> |
12 | <span class="prepend" slot="prepend">¥</span> | 12 | <span class="prepend" slot="prepend">¥</span> |
13 | </InputUfo> | 13 | </InputUfo> |
@@ -64,6 +64,14 @@ export default { | @@ -64,6 +64,14 @@ export default { | ||
64 | }, | 64 | }, |
65 | computed: { | 65 | computed: { |
66 | ...mapState(['fetchingChangePrice']), | 66 | ...mapState(['fetchingChangePrice']), |
67 | + leastPriceMsg() { | ||
68 | + if (this.skc.leastPrice) { | ||
69 | + return `当前${this.skc.sizeName}码最低售价:¥${this.skc.leastPrice}`; | ||
70 | + } else if (this.skc.suggestMinPrice && this.skc.suggestMaxPrice) { | ||
71 | + return `当前${this.skc.sizeName}码建议售价:¥${this.skc.suggestMinPrice} - ¥${this.skc.suggestMaxPrice}`; | ||
72 | + } | ||
73 | + return `当前${this.skc.sizeName}码最低售价:¥-`; | ||
74 | + }, | ||
67 | postLoading() { | 75 | postLoading() { |
68 | return this.fetchingChangePrice || !this.calced; | 76 | return this.fetchingChangePrice || !this.calced; |
69 | } | 77 | } |
-
Please register or login to post a comment