Skip to content

Instantly share code, notes, and snippets.

View limichange's full-sized avatar
🎯
Focusing

limichange limichange

🎯
Focusing
View GitHub Profile
@limichange
limichange / taobao.js
Created June 14, 2019 10:59
处理淘宝价格数据
const skuBase = _DATA_Detail.skuBase
const sku2info = a.sku2info
let result = ''
skuBase.props[0].values.forEach(type => {
const vid = type.vid
const { skuId } = skuBase.skus.find(item => {
return item.propPath.split(':')[1] === vid.toString()
})