|
@@ -13,6 +13,8 @@ import currency from "../../utils/currency";
|
|
|
|
|
|
Page({
|
|
|
data: {
|
|
|
+ itemCount: 0,
|
|
|
+ selectCount: 0,
|
|
|
labelList: getLabelList(),
|
|
|
hidePrice: wx.getStorageSync('hidePrice'),
|
|
|
badge: getApp().globalData.collectCount,
|
|
@@ -73,7 +75,8 @@ Page({
|
|
|
cheekRows: res.data.cheekRows,
|
|
|
materialRows: res.data.materialRows,
|
|
|
colorRows: res.data.colorRows,
|
|
|
- loading: false
|
|
|
+ loading: false,
|
|
|
+ itemCount: ['specRows', 'cheekRows', 'materialRows', 'colorRows'].filter(v => res.data[v].length).length
|
|
|
});
|
|
|
//是否定制
|
|
|
if (init && item.iscustomsize == 1) this.selectComponent("#customMade").init(item);
|
|
@@ -139,6 +142,10 @@ Page({
|
|
|
mask: true
|
|
|
})
|
|
|
content[valuename] = (content[valuename] == value.parm) ? "" : value.parm;
|
|
|
+ console.log(content)
|
|
|
+ this.setData({
|
|
|
+ selectCount: ['cheek', 'color', 'material', 'spec'].filter(v => content[v].length).length
|
|
|
+ })
|
|
|
this.getDetail(valuename == "spec")
|
|
|
},
|
|
|
|