Commit aee3070d by 李嘉林

1

parent 869e2e11
...@@ -259,7 +259,7 @@ const componentOptions = { ...@@ -259,7 +259,7 @@ const componentOptions = {
getProductList(code, type) { getProductList(code, type) {
let { goodsSort, attributeValueList } = this.data.datas.componentData; let { goodsSort, attributeValueList } = this.data.datas.componentData;
// 为了让默认是4,但是老数据存的是0, 所以要在用的地方把0改成4,把4改成0 // 为了让默认是4,但是老数据存的是0, 所以要在用的地方把0改成4,把4改成0
if (goodsSort == '0') { if (goodsSort - 0 == 0) {
goodsSort = '4'; goodsSort = '4';
} else if (goodsSort == '4') { } else if (goodsSort == '4') {
goodsSort = '0'; goodsSort = '0';
......
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