|
@@ -65,6 +65,7 @@ function skuData(driver) {
|
65
|
65
|
|
66
|
66
|
const htmlStr = await driver.getPageSource();
|
67
|
67
|
|
|
68
|
+ console.log('sku', colorIndex, sizeIndex,'总数',colorList.length,sizeList.length);
|
68
|
69
|
const d = getSkuData(htmlStr);
|
69
|
70
|
if (d) {
|
70
|
71
|
sku.push(d);
|
|
@@ -72,7 +73,6 @@ function skuData(driver) {
|
72
|
73
|
|
73
|
74
|
colorIndex++;
|
74
|
75
|
|
75
|
|
- console.log('colorIndex', colorIndex, colorList.length);
|
76
|
76
|
|
77
|
77
|
if (colorIndex === colorList.length) {
|
78
|
78
|
color.click();
|
|
@@ -90,7 +90,7 @@ function skuData(driver) {
|
90
|
90
|
|
91
|
91
|
sizeIndex++;
|
92
|
92
|
|
93
|
|
- console.log('color完毕', sizeIndex, sizeList.length);
|
|
93
|
+
|
94
|
94
|
|
95
|
95
|
if (sizeIndex === sizeList.length) {
|
96
|
96
|
resolve(sku);
|