Commit 073cc8df authored by 刘文虎's avatar 刘文虎

包名

parent 25be66d1
Pipeline #3518 canceled with stages
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
<u-input <u-input
type="digit" type="digit"
v-model="form.offerMinPrice" v-model="form.offerMinPrice"
placeholder="输入价格" placeholder="最低价"
:clearable="false" :clearable="false"
input-align="right" input-align="right"
maxlength="11" maxlength="11"
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<u-input <u-input
type="digit" type="digit"
v-model="form.offerMaxPrice" v-model="form.offerMaxPrice"
placeholder="输入价格" placeholder="最高价"
:clearable="false" :clearable="false"
input-align="right" input-align="right"
maxlength="11" maxlength="11"
...@@ -137,11 +137,11 @@ export default { ...@@ -137,11 +137,11 @@ export default {
// this.$u.test.mobile()就是返回true或者false的 // this.$u.test.mobile()就是返回true或者false的
if (this.form.offerType === 'scope') { if (this.form.offerType === 'scope') {
if (!value) { if (!value) {
callback(new Error('请输入完整价格')); callback(new Error('请输入最低价'));
} else if (!this.form.offerMaxPrice) { } else if (!this.form.offerMaxPrice) {
callback(new Error('请输入完整价格')); callback(new Error('请输入最高价'));
} else if (parseFloat(this.form.offerMaxPrice) < parseFloat(value)) { } else if (parseFloat(this.form.offerMaxPrice) < parseFloat(value)) {
callback(new Error('最高价格不能低于最低价格')); callback(new Error('最高价不能低于最低价'));
} else { } else {
callback(); callback();
} }
......
...@@ -45,10 +45,8 @@ ...@@ -45,10 +45,8 @@
<view class="collapse-body-bottom"> <view class="collapse-body-bottom">
<text class="collapse-body-bottom-price"> <text class="collapse-body-bottom-price">
<text>¥</text> <text>¥</text>
<text v-if="item2.offerType === 'scope'"> <text v-if="item2.offerType === 'scope'">{{ item2.num == 0 ? 0 : item2.customPrice || 0 }}</text>
{{item2.customPrice||0 }} <text v-else>{{ item2.offerMinPrice }}</text>
</text>
<text v-else>{{item2.offerMinPrice}}</text>
</text> </text>
<view class="collapse-body-bottom-add"> <view class="collapse-body-bottom-add">
<zb-tooltip placement="top-end" ref="tooltip1" color="#7f7f7f" :visible="!quotedPriceTooltip"> <zb-tooltip placement="top-end" ref="tooltip1" color="#7f7f7f" :visible="!quotedPriceTooltip">
...@@ -194,14 +192,14 @@ export default { ...@@ -194,14 +192,14 @@ export default {
if (code === -10) { if (code === -10) {
this.$store.dispatch('Save_custom_id', 0); this.$store.dispatch('Save_custom_id', 0);
setTimeout(() => { setTimeout(() => {
this.toPage() this.toPage();
}, 1000); }, 1000);
} }
//TODO handle the exception //TODO handle the exception
} }
}, },
toPage() { toPage() {
let path='pages/bill/quoted-price/quoted-price' let path = 'pages/bill/quoted-price/quoted-price';
var pages = getCurrentPages(); var pages = getCurrentPages();
var index = 0; var index = 0;
for (var item of pages) { for (var item of pages) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment