Commit feff4cb1 authored by qinhaitao's avatar qinhaitao

fix: 🐛 tanchuangbug

parent 76939dff
......@@ -209,7 +209,7 @@ Component({
let initData = {
ename: "",
stock: "",
useStock: "",
useStock: 0,
type: +value,
image: "",
desc: "",
......@@ -419,7 +419,7 @@ Component({
}
}
//库存奖品的库存值判断
let usePass = switchStock == 1 ? +stock >= +useStock : true;
let usePass = switchStock == 1 ? +stock >= (+useStock || 0) : true;
console.log("stock==", stock, "useStock==", useStock);
if (
(type == OBJECT_TYPE || type == EQUITY_TYPE) &&
......
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