Authored by 毕凯

图片质量

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node@6/6.10.0/bin/node',
1 verbose cli '/usr/local/bin/npm',
1 verbose cli 'version',
1 verbose cli 'patch' ]
2 info using npm@3.10.10
3 info using node@v6.10.0
4 info git [ 'status', '--porcelain' ]
5 verbose stack Error: Git working directory not clean.
5 verbose stack M src/js/individuation.js
5 verbose stack at /usr/local/lib/node_modules/npm/lib/version.js:247:19
5 verbose stack at /usr/local/lib/node_modules/npm/lib/utils/no-progress-while-running.js:21:8
5 verbose stack at ChildProcess.exithandler (child_process.js:197:7)
5 verbose stack at emitTwo (events.js:106:13)
5 verbose stack at ChildProcess.emit (events.js:191:7)
5 verbose stack at maybeClose (internal/child_process.js:877:16)
5 verbose stack at Socket.<anonymous> (internal/child_process.js:334:11)
5 verbose stack at emitOne (events.js:96:13)
5 verbose stack at Socket.emit (events.js:188:7)
5 verbose stack at Pipe._handle.close [as _onclose] (net.js:498:12)
6 verbose cwd /Users/ccbikai/yoho/yoho-js-sdk
7 error Darwin 16.5.0
8 error argv "/usr/local/Cellar/node@6/6.10.0/bin/node" "/usr/local/bin/npm" "version" "patch"
9 error node v6.10.0
10 error npm v3.10.10
11 error Git working directory not clean.
11 error M src/js/individuation.js
12 error If you need help, you may report this error at:
12 error <https://github.com/npm/npm/issues>
13 verbose exit [ 1, true ]
... ...
... ... @@ -12,7 +12,7 @@ let _replaceData = function(el, cond, data, wh, fp) {
el.find('.brand-name').html(data.brand_name);
el.find('.product-detail').attr('href', `//m.yohobuy.com/product/pro_${data.product_id}_${data.goods_id}/${data.cn_alphabet}.html?openby:yohobuy={"action":"go.productDetail","params":{"product_skn":${data.product_skn}}}`);
el.find('.product-detail-img').attr('src', utils.image(data.default_images, wh.w, wh.h, 2, 60));
el.find('.product-detail-img').attr('src', utils.image(data.default_images, wh.w, wh.h, 2, 75));
el.find('.product-name').html(data.product_name);
el.find('.vip-price-val').html(${data.vip_price}`);
el.find('.sale-price').html(${data.sales_price}`);
... ...