Commit feff4cb1 authored by qinhaitao's avatar qinhaitao

fix: 🐛 tanchuangbug

parent 76939dff
...@@ -209,7 +209,7 @@ Component({ ...@@ -209,7 +209,7 @@ Component({
let initData = { let initData = {
ename: "", ename: "",
stock: "", stock: "",
useStock: "", useStock: 0,
type: +value, type: +value,
image: "", image: "",
desc: "", desc: "",
...@@ -419,7 +419,7 @@ Component({ ...@@ -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); console.log("stock==", stock, "useStock==", useStock);
if ( if (
(type == OBJECT_TYPE || type == EQUITY_TYPE) && (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