|
@@ -79,7 +79,7 @@ Page({
|
|
itemCount: ['specRows', 'cheekRows', 'materialRows', 'colorRows'].filter(v => res.data[v].length).length
|
|
itemCount: ['specRows', 'cheekRows', 'materialRows', 'colorRows'].filter(v => res.data[v].length).length
|
|
});
|
|
});
|
|
//是否定制
|
|
//是否定制
|
|
- if (init && item.iscustomsize == 1) this.selectComponent("#customMade").init(item);
|
|
|
|
|
|
+ if (item.iscustomsize == 1) this.selectComponent("#customMade").init(item);
|
|
})
|
|
})
|
|
},
|
|
},
|
|
/* 预览媒体 */
|
|
/* 预览媒体 */
|
|
@@ -142,7 +142,6 @@ Page({
|
|
mask: true
|
|
mask: true
|
|
})
|
|
})
|
|
content[valuename] = (content[valuename] == value.parm) ? "" : value.parm;
|
|
content[valuename] = (content[valuename] == value.parm) ? "" : value.parm;
|
|
- console.log(content)
|
|
|
|
this.setData({
|
|
this.setData({
|
|
selectCount: ['cheek', 'color', 'material', 'spec'].filter(v => content[v].length).length
|
|
selectCount: ['cheek', 'color', 'material', 'spec'].filter(v => content[v].length).length
|
|
})
|
|
})
|
|
@@ -219,7 +218,6 @@ Page({
|
|
//是否为定制项
|
|
//是否为定制项
|
|
if (detail.iscustomsize == 1) custom = this.selectComponent("#customMade").getResult(true);
|
|
if (detail.iscustomsize == 1) custom = this.selectComponent("#customMade").getResult(true);
|
|
if (typeof custom == "boolean") return;
|
|
if (typeof custom == "boolean") return;
|
|
-
|
|
|
|
let content = Object.assign(this.data.content, {
|
|
let content = Object.assign(this.data.content, {
|
|
sa_brandid,
|
|
sa_brandid,
|
|
itemid: detail.itemid, //货品id
|
|
itemid: detail.itemid, //货品id
|
|
@@ -247,11 +245,15 @@ Page({
|
|
let detail = this.data.detail,
|
|
let detail = this.data.detail,
|
|
iscollection = detail.iscollection == 1 ? false : true,
|
|
iscollection = detail.iscollection == 1 ? false : true,
|
|
custom = {
|
|
custom = {
|
|
|
|
+ width: 0,
|
|
length: 0,
|
|
length: 0,
|
|
- width: 0
|
|
|
|
- };
|
|
|
|
|
|
+ },
|
|
|
|
+ favorites = {};
|
|
//是否为定制项
|
|
//是否为定制项
|
|
if (detail.iscustomsize == 1) custom = this.selectComponent("#customMade").getResult(true);
|
|
if (detail.iscustomsize == 1) custom = this.selectComponent("#customMade").getResult(true);
|
|
|
|
+ for (const key in custom) {
|
|
|
|
+ favorites['favorites' + key] = custom[key]
|
|
|
|
+ }
|
|
if (typeof custom == "boolean") return;
|
|
if (typeof custom == "boolean") return;
|
|
_Http.basic({
|
|
_Http.basic({
|
|
"id": 20231121143403,
|
|
"id": 20231121143403,
|
|
@@ -259,7 +261,8 @@ Page({
|
|
"itemid": this.data.detail.itemid, //货品id
|
|
"itemid": this.data.detail.itemid, //货品id
|
|
"qty": detail.orderminqty, //数量
|
|
"qty": detail.orderminqty, //数量
|
|
...custom,
|
|
...custom,
|
|
- iscollection
|
|
|
|
|
|
+ iscollection,
|
|
|
|
+ ...favorites
|
|
},
|
|
},
|
|
}).then(res => {
|
|
}).then(res => {
|
|
console.log(iscollection + "收藏夹", res)
|
|
console.log(iscollection + "收藏夹", res)
|