|
|
@@ -240,7 +240,7 @@
|
|
|
if (prices && prices.length) {
|
|
|
let _this = this
|
|
|
for (let i = 0; i < prices.length; i++) {
|
|
|
- if (_this.fragment.num >= prices[i].start && _this.fragment.num < prices[i].end) {
|
|
|
+ if (_this.fragment.num >= prices[i].start && _this.fragment.num <= prices[i].end) {
|
|
|
_this.fragment.price = _this.fragment.currency === 'RMB' ? prices[i].rMBPrice : prices[i].uSDPrice
|
|
|
break
|
|
|
}
|
|
|
@@ -330,6 +330,7 @@
|
|
|
}
|
|
|
this.changeNum(newNum)
|
|
|
getFragment(this.commodity, this.fragment)
|
|
|
+ this.onInput()
|
|
|
},
|
|
|
addNum () {
|
|
|
let pack = this.commodity.perQty || this.commodity.minPackQty
|
|
|
@@ -341,6 +342,7 @@
|
|
|
}
|
|
|
this.changeNum(newNum)
|
|
|
getFragment(this.commodity, this.fragment)
|
|
|
+ this.onInput()
|
|
|
},
|
|
|
inputNum () {
|
|
|
if ((/^[\d]*$/).test(this.fragment.num)) {
|