...
|
...
|
@@ -23,11 +23,10 @@ |
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import {debounce} from 'lodash';
|
|
|
import {debounce, get} from 'lodash';
|
|
|
import InputUfo from '../../components/input-ufo';
|
|
|
import Modal from '../../components/modal.vue';
|
|
|
import {createNamespacedHelpers} from 'vuex';
|
|
|
import {get} from 'lodash';
|
|
|
|
|
|
const {mapActions} = createNamespacedHelpers('ufo/order');
|
|
|
|
...
|
...
|
@@ -108,14 +107,14 @@ export default { |
|
|
this.errorTip = '价格只能为正整数';
|
|
|
} else if (!/9$/.test(price)) {
|
|
|
this.errorTip = '出售价格必须以9结尾';
|
|
|
} else if (price < this.skc.minPrice) {
|
|
|
} else if (this.skc.minPrice && price < this.skc.minPrice) {
|
|
|
this.errorTip = '您的出价过低';
|
|
|
} else if (price > this.skc.maxPrice) {
|
|
|
} else if (this.skc.maxPrice && price > this.skc.maxPrice) {
|
|
|
this.errorTip = '您的出价格过高';
|
|
|
} else if (price === this.skc.price) {
|
|
|
this.errorTip = '前后价格没有变化';
|
|
|
} else if (price === this.skc.price) {
|
|
|
this.errorTip = '前后价格没有变化'; //TODO
|
|
|
} else if (this.skc.suggestMaxPrice && price > this.skc.suggestMaxPrice) {
|
|
|
this.errorTip = '超出建议价将被限制展示,建议下调至合理价格区间';
|
|
|
} else {
|
|
|
this.errorTip = '';
|
|
|
valid = true;
|
...
|
...
|
|