优化
This commit is contained in:
@@ -91,9 +91,9 @@ Page({
|
||||
},
|
||||
onPriceChange(e){
|
||||
console.log(e.detail);
|
||||
let value = e.detail.value;
|
||||
let min = this.data.config.min_inquiry_price;
|
||||
let max = this.data.config.max_inquiry_price;
|
||||
let value = Number(e.detail.value);
|
||||
let min = Number(this.data.config.min_inquiry_price);
|
||||
let max = Number(this.data.config.max_inquiry_price);
|
||||
if(value < min){
|
||||
value = min;
|
||||
Toast.fail('价格不能低于' + min + '元');
|
||||
|
||||
Reference in New Issue
Block a user