// ==UserScript== // @name 购物党比价工具【官方正版,持续维护】 // @author 购物党 // @name:zh-cn 购物党比价工具【官方正版,持续维护】 // @antifeature referral-link 含有购物党官方返利 // @description [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 // @description:zh-hk [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 // @run-at document-idle // @version 3.0.7 // @grant none // @require https://cdn.gwdang.com/js/monkey-vendor.js // @include https://www.hihonor.com/* // @include https://www.ymatou.hk/* // @include https://www.ymatou.com/* // @include http://traveldetail.fliggy.com/* // @include https://traveldetail.fliggy.com/* // @include http://*.wzhouhui.com/* // @include https://*.wzhouhui.com/* // @include http://cn.wemakeprice.com/* // @include https://cn.wemakeprice.com/* // @include http://cn.dod.nl/* // @include https://cn.dod.nl/* // @include http://*.decathlon.com.cn/* // @include https://*.decathlon.com.cn/* // @include http://cn.apo.com/* // @include https://cn.apo.com/* // @include http://*.ansgo.com/* // @include https://*.ansgo.com/* // @include http://*.perfumesclub.cn/* // @include https://*.perfumesclub.cn/* // @include http://*.net-a-porter.com/* // @include https://*.net-a-porter.com/* // @include http://*.kidsroom.cn/* // @include https://*.kidsroom.cn/* // @include http://cn.getthelabel.com/* // @include https://cn.getthelabel.com/* // @include http://*.farfetch.cn/* // @include https://*.farfetch.cn/* // @include http://item.kongfz.com/* // @include https://item.kongfz.com/* // @include http://book.kongfz.com/* // @include https://book.kongfz.com/* // @include http://cn.iherb.com/* // @include https://cn.iherb.com/* // @include http://*.hqhair.com/* // @include https://*.hqhair.com/* // @include http://*.wl.cn/* // @include https://*.wl.cn/* // @include http://*.columbia.com/* // @include https://*.columbia.com/* // @include http://*.columbiasports.cn/* // @include https://*.columbiasports.cn/* // @include http://*.ehaoyao.com/* // @include https://*.ehaoyao.com/* // @include http://*.bhphotovideo.com/* // @include https://*.bhphotovideo.com/* // @include http://*.shoes.com/* // @include https://*.shoes.com/* // @include http://*.jomashop.com/* // @include https://*.jomashop.com/* // @include http://cn.pharmacydirect.co.nz/* // @include https://cn.pharmacydirect.co.nz/* // @include http://*.holland-at-home.com/* // @include https://*.holland-at-home.com/* // @include http://cn.holland-at-home.com/* // @include https://cn.holland-at-home.com/* // @include http://*.rei.com/* // @include https://*.rei.com/* // @include http://item.aomygod.com/* // @include https://item.aomygod.com/* // @include http://*.huatuoyf.com/* // @include https://*.huatuoyf.com/* // @include http://*.forever21.com/* // @include https://*.forever21.com/* // @include http://zh.ashford.com/* // @include https://zh.ashford.com/* // @include http://*.bestbuy.com/* // @include https://*.bestbuy.com/* // @include http://*.target.com/* // @include https://*.target.com/* // @include http://cn.chemistdirect.com.au/* // @include https://cn.chemistdirect.com.au/* // @include http://*.ba.de/* // @include https://*.ba.de/* // @include http://m.wandougongzhu.cn/* // @include https://m.wandougongzhu.cn/* // @include http://cn.feelunique.com/* // @include https://cn.feelunique.com/* // @include http://shop.dixintong.com/* // @include https://shop.dixintong.com/* // @include http://cn.pharmacyonline.com.au/* // @include https://cn.pharmacyonline.com.au/* // @include http://cn.discount-apotheke.de/* // @include https://cn.discount-apotheke.de/* // @include http://*.carters.com/* // @include https://*.carters.com/* // @include http://*.katespade.co.uk/* // @include https://*.katespade.co.uk/* // @include http://*.katespade.cn/* // @include https://*.katespade.cn/* // @include http://*.beautybay.com/* // @include https://*.beautybay.com/* // @include http://cn.pharmacy4less.com.au/* // @include https://cn.pharmacy4less.com.au/* // @include http://*.newegg.com/* // @include https://*.newegg.com/* // @include http://*.newbalance.com/* // @include https://*.newbalance.com/* // @include http://*.bodybuilding.com/* // @include https://*.bodybuilding.com/* // @include http://*.ssnewyork.com/* // @include https://*.ssnewyork.com/* // @include http://*.wine9.com/* // @include https://*.wine9.com/* // @include http://*.kohls.com/* // @include https://*.kohls.com/* // @include http://*.gnc.com/* // @include https://*.gnc.com/* // @include http://*.qw.cc/* // @include https://*.qw.cc/* // @include http://*.haiershui.com/* // @include https://*.haiershui.com/* // @include http://*.ugg.com/* // @include https://*.ugg.com/* // @include http://*.ugg.cn/* // @include https://*.ugg.cn/* // @include http://*.yoger.com.cn/* // @include https://*.yoger.com.cn/* // @include http://*.flyco.com/* // @include https://*.flyco.com/* // @include http://*.yfdyf.com/* // @include https://*.yfdyf.com/* // @include http://*.joesnewbalanceoutlet.com/* // @include https://*.joesnewbalanceoutlet.com/* // @include http://*.jomoo.com.cn/* // @include https://*.jomoo.com.cn/* // @include http://*.dapu.com/* // @include https://*.dapu.com/* // @include http://china.coach.com/* // @include https://china.coach.com/* // @include http://*.shanmai.cn/* // @include https://*.shanmai.cn/* // @include http://*.fengbuy.com/* // @include https://*.fengbuy.com/* // @include http://*.t10.com/* // @include https://*.t10.com/* // @include http://cn.amcal.com.au/* // @include https://cn.amcal.com.au/* // @include http://cn.babyhaven.com/* // @include https://cn.babyhaven.com/* // @include http://*.51taouk.com/* // @include https://*.51taouk.com/* // @include http://*.usashopcn.com/* // @include https://*.usashopcn.com/* // @include http://*.petit-bateau.us/* // @include https://*.petit-bateau.us/* // @include http://*.tlcpharmacy.cn.com/* // @include https://*.tlcpharmacy.cn.com/* // @include http://*.km1818.com/* // @include https://*.km1818.com/* // @include http://*.bienmanger.cn/* // @include https://*.bienmanger.cn/* // @include http://*.syshop.com/* // @include https://*.syshop.com/* // @include http://*.qipaimall.com/* // @include https://*.qipaimall.com/* // @include http://mall.goumin.com/* // @include https://mall.goumin.com/* // @include http://*.taohwu.com/* // @include https://*.taohwu.com/* // @include http://*.xmeise.com/* // @include https://*.xmeise.com/* // @include http://*.septwolves.cn/* // @include https://*.septwolves.cn/* // @include http://*.kiehls.com/* // @include https://*.kiehls.com/* // @include http://*.puzeyf.com/* // @include https://*.puzeyf.com/* // @include http://*.aizhigu.com.cn/* // @include https://*.aizhigu.com.cn/* // @include http://*.hecha.cn/* // @include https://*.hecha.cn/* // @include http://*.zgshoes.com/* // @include https://*.zgshoes.com/* // @include http://cn.takeya.co.jp/* // @include https://cn.takeya.co.jp/* // @include http://*.shoprobam.com/* // @include https://*.shoprobam.com/* // @include http://*.opplestore.com/* // @include https://*.opplestore.com/* // @include http://*.maichawang.com/* // @include https://*.maichawang.com/* // @include http://*.bose.com/* // @include https://*.bose.com/* // @include http://dewaren.com/* // @include https://dewaren.com/* // @include http://*.winona.cn/* // @include https://*.winona.cn/* // @include http://*.motorola.com.cn/* // @include https://*.motorola.com.cn/* // @include http://*.danielwellington.cn/* // @include https://*.danielwellington.cn/* // @include http://*.danielwellington.com/* // @include https://*.danielwellington.com/* // @include http://youhui.pinduoduo.com/* // @include https://youhui.pinduoduo.com/* // @include http://*.yangkeduo.com/* // @include https://*.yangkeduo.com/* // @include http://*.finishline.com/* // @include https://*.finishline.com/* // @include http://*.skinstore.com/* // @include https://*.skinstore.com/* // @include http://item.wjike.com/* // @include https://item.wjike.com/* // @include http://youpin.mi.com/* // @include https://youpin.mi.com/* // @include http://*.xiaomiyoupin.com/* // @include https://*.xiaomiyoupin.com/* // @include http://store.steampowered.com/* // @include https://store.steampowered.com/* // @include http://*.jialich.cn/* // @include https://*.jialich.cn/* // @include http://*.tthigo.com/* // @include https://*.tthigo.com/* // @include http://*.modernavenue.com/* // @include https://*.modernavenue.com/* // @include http://*.tcl.com/* // @include https://*.tcl.com/* // @include http://*.bonjourhk.com/* // @include https://*.bonjourhk.com/* // @include http://m.bonjourhk.com/* // @include https://m.bonjourhk.com/* // @include http://*.trt.hk/* // @include https://*.trt.hk/* // @include http://*.forestfood.com/* // @include https://*.forestfood.com/* // @include http://*.converse.com.cn/* // @include https://*.converse.com.cn/* // @include http://*.fila.cn/* // @include https://*.fila.cn/* // @include http://*.levi.com.cn/* // @include https://*.levi.com.cn/* // @include http://*.levi.com/* // @include https://*.levi.com/* // @include http://*.hangowa.com/* // @include https://*.hangowa.com/* // @include http://*.super-in.com/* // @include https://*.super-in.com/* // @include http://*.ccxpet.com/* // @include https://*.ccxpet.com/* // @include http://*.360lj.com/* // @include https://*.360lj.com/* // @include http://*.hysjg.com/* // @include https://*.hysjg.com/* // @include http://*.0061.com.au/* // @include https://*.0061.com.au/* // @include http://mall.ecovacs.cn/* // @include https://mall.ecovacs.cn/* // @include http://mall.littleswan.com/* // @include https://mall.littleswan.com/* // @include http://*.vitagou.hk/* // @include https://*.vitagou.hk/* // @include http://*.hpstore.cn/* // @include https://*.hpstore.cn/* // @include http://*.kkguan.com/* // @include https://*.kkguan.com/* // @include http://*.mayn.com.cn/* // @include https://*.mayn.com.cn/* // @include http://*.peikua.com/* // @include https://*.peikua.com/* // @include http://item.kinhom.com/* // @include https://item.kinhom.com/* // @include http://*.9drug.com/* // @include https://*.9drug.com/* // @include http://*.tea7.com/* // @include https://*.tea7.com/* // @include http://*.01home.com/* // @include https://*.01home.com/* // @include http://*.aliexpress.com/* // @include https://*.aliexpress.com/* // @include http://*.easytoys.cn/* // @include https://*.easytoys.cn/* // @include http://*.kiwistarcare.com/* // @include https://*.kiwistarcare.com/* // @include http://*.carrefour.cn/* // @include https://*.carrefour.cn/* // @include http://china.lotte.com/* // @include https://china.lotte.com/* // @include http://*.ewatches.com/* // @include https://*.ewatches.com/* // @include http://global.timex.com/* // @include https://global.timex.com/* // @include http://comfortfirst.com/* // @include https://comfortfirst.com/* // @include http://*.luolai.cn/* // @include https://*.luolai.cn/* // @include http://*.youyu.com/* // @include https://*.youyu.com/* // @include http://*.yoox.cn/* // @include https://*.yoox.cn/* // @include http://store.yoox.cn/* // @include https://store.yoox.cn/* // @include http://*.suanjuzi.com/* // @include https://*.suanjuzi.com/* // @include http://*.yao123.com/* // @include https://*.yao123.com/* // @include http://item.baobeigezi.com/* // @include https://item.baobeigezi.com/* // @include http://*.baobeigezi.com/* // @include https://*.baobeigezi.com/* // @include http://*.opposhop.cn/* // @include https://*.opposhop.cn/* // @include http://store.oppo.com/* // @include https://store.oppo.com/* // @include http://*.oppo.com/* // @include https://*.oppo.com/* // @include http://hd.oppo.com/* // @include https://hd.oppo.com/* // @include http://mall.to8to.com/* // @include https://mall.to8to.com/* // @include http://item.yunhou.com/* // @include https://item.yunhou.com/* // @include http://item.yhd.com/* // @include https://item.yhd.com/* // @include http://*.haituncun.com/* // @include https://*.haituncun.com/* // @include http://*.walmart.com/* // @include https://*.walmart.com/* // @include http://*.vmei.com/* // @include https://*.vmei.com/* // @include http://*.jgb.cn/* // @include https://*.jgb.cn/* // @include http://*.51din.com/* // @include https://*.51din.com/* // @include http://*.aidai.com/* // @include https://*.aidai.com/* // @include http://shop.boqii.com/* // @include https://shop.boqii.com/* // @include http://*.spider.com.cn/* // @include https://*.spider.com.cn/* // @include http://*.jiae.com/* // @include https://*.jiae.com/* // @include http://*.zazhipu.com/* // @include https://*.zazhipu.com/* // @include http://*.shop.philips.com.cn/* // @include https://*.shop.philips.com.cn/* // @include http://tuan.zhongjiu.cn/* // @include https://tuan.zhongjiu.cn/* // @include http://*.zhongjiu.cn/* // @include https://*.zhongjiu.cn/* // @include http://*.kaluli.com/* // @include https://*.kaluli.com/* // @include http://shop.wstx.com/* // @include https://shop.wstx.com/* // @include http://*.purcotton.com/* // @include https://*.purcotton.com/* // @include http://shop.juanpi.com/* // @include https://shop.juanpi.com/* // @include http://*.jinxiang.com/* // @include https://*.jinxiang.com/* // @include http://*.163.com/* // @include https://*.163.com/* // @include http://*.guojimami.com/* // @include https://*.guojimami.com/* // @include http://*.baiyangwang.com/* // @include https://*.baiyangwang.com/* // @include http://cn.royyoungchemist.com.au/* // @include https://cn.royyoungchemist.com.au/* // @include http://cn.medihealshop.com/* // @include https://cn.medihealshop.com/* // @include http://*.medihealshop.com/* // @include https://*.medihealshop.com/* // @include http://cn.1001pharmacies.com/* // @include https://cn.1001pharmacies.com/* // @include http://*.lookfantastic.cn/* // @include https://*.lookfantastic.cn/* // @include http://*.lookfantastic.com/* // @include https://*.lookfantastic.com/* // @include http://you.163.com/* // @include https://you.163.com/* // @include http://product.bl.com/* // @include https://product.bl.com/* // @include http://*.bestinfoods.com/* // @include https://*.bestinfoods.com/* // @include http://*.muji.net/* // @include https://*.muji.net/* // @include http://*.easeeyes.com/* // @include https://*.easeeyes.com/* // @include http://*.lingshi.com/* // @include https://*.lingshi.com/* // @include http://*.nubia.com/* // @include https://*.nubia.com/* // @include http://shop.nubia.com/* // @include https://shop.nubia.com/* // @include http://*.nubia.cn/* // @include https://*.nubia.cn/* // @include http://*.kzj365.com/* // @include https://*.kzj365.com/* // @include http://*.kaola.com/* // @include https://*.kaola.com/* // @include http://*.kaola.com.hk/* // @include https://*.kaola.com.hk/* // @include http://*.kaola.com.hk/* // @include https://*.kaola.com.hk/* // @include http://*.ymatou.com/* // @include https://*.ymatou.com/* // @include http://detail.metao.com/* // @include https://detail.metao.com/* // @include http://*.coocaa.com/* // @include https://*.coocaa.com/* // @include http://*.lifevc.com/* // @include https://*.lifevc.com/* // @include http://*.supuy.com/* // @include https://*.supuy.com/* // @include http://*.supumall.com/* // @include https://*.supumall.com/* // @include http://*.mia.com/* // @include https://*.mia.com/* // @include http://miyabaobei.hk/* // @include https://miyabaobei.hk/* // @include http://*.miyabaobei.hk/* // @include https://*.miyabaobei.hk/* // @include http://item.gomehigo.hk/* // @include https://item.gomehigo.hk/* // @include http://*.wangfujing.com/* // @include https://*.wangfujing.com/* // @include http://global.gou.com/* // @include https://global.gou.com/* // @include http://*.gou.com/* // @include https://*.gou.com/* // @include http://*.ikjtao.com/* // @include https://*.ikjtao.com/* // @include http://*.bestkeep.cn/* // @include https://*.bestkeep.cn/* // @include http://*.ule.com/* // @include https://*.ule.com/* // @include http://shop.philips.com.cn/* // @include https://shop.philips.com.cn/* // @include http://shop.tcl.com/* // @include https://shop.tcl.com/* // @include http://mall.tcl.com/* // @include https://mall.tcl.com/* // @include http://*.e-changhong.com/* // @include https://*.e-changhong.com/* // @include http://shop.konka.com/* // @include https://shop.konka.com/* // @include http://shop.hisense.com/* // @include https://shop.hisense.com/* // @include http://*.hisense.com/* // @include https://*.hisense.com/* // @include http://*.ineigo.com/* // @include https://*.ineigo.com/* // @include http://*.skg.com/* // @include https://*.skg.com/* // @include http://*.oyeah.com/* // @include https://*.oyeah.com/* // @include http://*.morefood.com/* // @include https://*.morefood.com/* // @include http://*.zhen.com/* // @include https://*.zhen.com/* // @include http://shop.vivo.com.cn/* // @include https://shop.vivo.com.cn/* // @include http://gfive.b2c.eqimingxing.com/* // @include https://gfive.b2c.eqimingxing.com/* // @include http://*.6pm.com/* // @include https://*.6pm.com/* // @include http://shop.gionee.com/* // @include https://shop.gionee.com/* // @include http://z.gionee.com/* // @include https://z.gionee.com/* // @include http://store.lining.com/* // @include https://store.lining.com/* // @include http://*.mf910.com/* // @include https://*.mf910.com/* // @include http://*.k-touch.cn/* // @include https://*.k-touch.cn/* // @include http://item.grainger.cn/* // @include https://item.grainger.cn/* // @include http://piao.163.com/* // @include https://piao.163.com/* // @include http://mall.163.com/* // @include https://mall.163.com/* // @include http://detail.yao.95095.com/* // @include https://detail.yao.95095.com/* // @include http://*.ebay.com/* // @include https://*.ebay.com/* // @include http://*.100yue.com/* // @include https://*.100yue.com/* // @include http://*.feiniu.com/* // @include https://*.feiniu.com/* // @include http://*.lemall.com/* // @include https://*.lemall.com/* // @include http://item.feiniu.com/* // @include https://item.feiniu.com/* // @include http://*.xgbaby.com/* // @include https://*.xgbaby.com/* // @include http://*.zuipin.cn/* // @include https://*.zuipin.cn/* // @include http://item.feifei.cn/* // @include https://item.feifei.cn/* // @include http://*.feifei.com/* // @include https://*.feifei.com/* // @include http://guang.com/* // @include https://guang.com/* // @include http://*.haitaocheng.com/* // @include https://*.haitaocheng.com/* // @include http://*.rrs.com/* // @include https://*.rrs.com/* // @include http://*.rrsjk.com/* // @include https://*.rrsjk.com/* // @include http://shop.ccb.com/* // @include https://shop.ccb.com/* // @include http://*.meilishuo.com/* // @include https://*.meilishuo.com/* // @include http://item.meilishuo.com/* // @include https://item.meilishuo.com/* // @include http://*.mogujie.com/* // @include https://*.mogujie.com/* // @include http://shop.mogu.com/* // @include https://shop.mogu.com/* // @include http://shop.mogujie.com/* // @include https://shop.mogujie.com/* // @include http://shop.coolpad.com/* // @include https://shop.coolpad.com/* // @include http://shop.coolpad.cn/* // @include https://shop.coolpad.cn/* // @include http://*.yiguo.com/* // @include https://*.yiguo.com/* // @include http://item.wanggou.com/* // @include https://item.wanggou.com/* // @include http://mall.jia.com/* // @include https://mall.jia.com/* // @include http://*.jiumei.com/* // @include https://*.jiumei.com/* // @include http://weigou.baidu.com/* // @include https://weigou.baidu.com/* // @include http://shop.letv.com/* // @include https://shop.letv.com/* // @include http://*.xiaomi.com/* // @include https://*.xiaomi.com/* // @include http://item.mi.com/* // @include https://item.mi.com/* // @include http://*.mi.com/* // @include https://*.mi.com/* // @include http://*.handu.com/* // @include https://*.handu.com/* // @include http://*.yummy77.com/* // @include https://*.yummy77.com/* // @include http://*.fruitday.com/* // @include https://*.fruitday.com/* // @include http://*.benlai.com/* // @include https://*.benlai.com/* // @include http://taoshu.com/* // @include https://taoshu.com/* // @include http://*.meilele.com/* // @include https://*.meilele.com/* // @include http://*.gjw.com/* // @include https://*.gjw.com/* // @include http://*.oneplus.com/* // @include https://*.oneplus.com/* // @include http://store.apple.com/* // @include https://store.apple.com/* // @include http://*.apple.com/* // @include https://*.apple.com/* // @include http://*.apple.com.cn/* // @include https://*.apple.com.cn/* // @include http://*.j1.com/* // @include https://*.j1.com/* // @include http://miao.j1.com/* // @include https://miao.j1.com/* // @include http://*.zzl365.com/* // @include https://*.zzl365.com/* // @include http://mobile.139shop.com/* // @include https://mobile.139shop.com/* // @include http://139shop.com/* // @include https://139shop.com/* // @include http://*.yiwugou.com/* // @include https://*.yiwugou.com/* // @include http://*.zhiwo.com/* // @include https://*.zhiwo.com/* // @include http://*.miqi.cn/* // @include https://*.miqi.cn/* // @include http://*.miqi.cn/* // @include https://*.miqi.cn/* // @include http://*.camel.com.cn/* // @include https://*.camel.com.cn/* // @include http://*.kuaishubao.com/* // @include https://*.kuaishubao.com/* // @include http://*.juegg.com/* // @include https://*.juegg.com/* // @include http://mall.10010.com/* // @include https://mall.10010.com/* // @include http://*.wowsai.com/* // @include https://*.wowsai.com/* // @include http://*.tianpin.com/* // @include https://*.tianpin.com/* // @include http://*.tootoo.cn/* // @include https://*.tootoo.cn/* // @include http://item.minshengec.com/* // @include https://item.minshengec.com/* // @include http://*.sfbest.com/* // @include https://*.sfbest.com/* // @include http://ht.sfbest.hk/* // @include https://ht.sfbest.hk/* // @include http://shop.lenovo.com.cn/* // @include https://shop.lenovo.com.cn/* // @include http://*.lenovo.com.cn/* // @include https://*.lenovo.com.cn/* // @include http://shop.lenovomobile.com/* // @include https://shop.lenovomobile.com/* // @include http://*.lenovomobile.com/* // @include https://*.lenovomobile.com/* // @include http://*.lenovo.com.cn/* // @include https://*.lenovo.com.cn/* // @include http://thinkpad.lenovo.com.cn/* // @include https://thinkpad.lenovo.com.cn/* // @include http://*.vmall.com/* // @include https://*.vmall.com/* // @include http://*.ihush.com/* // @include https://*.ihush.com/* // @include http://*.fclub.cn/* // @include https://*.fclub.cn/* // @include http://item.yohobuy.com/* // @include https://item.yohobuy.com/* // @include http://*.yohobuy.com/* // @include https://*.yohobuy.com/* // @include http://*.fclub.cn/* // @include https://*.fclub.cn/* // @include http://ju.taobao.com/* // @include https://ju.taobao.com/* // @include http://*.tmall.com/* // @include https://*.tmall.com/* // @include http://detail.liangxinyao.com/* // @include https://detail.liangxinyao.com/* // @include http://world.tmall.com/* // @include https://world.tmall.com/* // @include http://detail.tmall.hk/* // @include https://detail.tmall.hk/* // @include http://*.taobao.com/* // @include https://*.taobao.com/* // @include http://2.taobao.com/* // @include https://2.taobao.com/* // @include http://ai.taobao.com/* // @include https://ai.taobao.com/* // @include http://chaoshi.detail.tmall.com/* // @include https://chaoshi.detail.tmall.com/* // @include http://detail.ju.taobao.com/* // @include https://detail.ju.taobao.com/* // @include http://*.vipshop.com/* // @include https://*.vipshop.com/* // @include http://*.vip.com/* // @include https://*.vip.com/* // @include http://tuan.lefeng.com/* // @include https://tuan.lefeng.com/* // @include http://*.lefeng.com/* // @include https://*.lefeng.com/* // @include http://*.jxdyf.com/* // @include https://*.jxdyf.com/* // @include http://*.jxdyf.com/* // @include https://*.jxdyf.com/* // @include http://*.tnice.com/* // @include https://*.tnice.com/* // @include http://auction1.paipai.com/* // @include https://auction1.paipai.com/* // @include http://item.xinbaigo.com/* // @include https://item.xinbaigo.com/* // @include http://*.orbis.com.cn/* // @include https://*.orbis.com.cn/* // @include http://*.sfht.com/* // @include https://*.sfht.com/* // @include http://*.d1.com.cn/* // @include https://*.d1.com.cn/* // @include http://*.chazuo.com/* // @include https://*.chazuo.com/* // @include http://*.u1baby.com/* // @include https://*.u1baby.com/* // @include http://*.homevv.com/* // @include https://*.homevv.com/* // @include http://*.paixie.net/* // @include https://*.paixie.net/* // @include http://tuan.paixie.net/* // @include https://tuan.paixie.net/* // @include http://faxian.paixie.net/* // @include https://faxian.paixie.net/* // @include http://*.tao3c.com/* // @include https://*.tao3c.com/* // @include http://*.zm7.cn/* // @include https://*.zm7.cn/* // @include http://s.etao.com/* // @include https://s.etao.com/* // @include http://product.pchouse.com.cn/* // @include https://product.pchouse.com.cn/* // @include http://buy.daphne.cn/* // @include https://buy.daphne.cn/* // @include http://*.lucemall.com.cn/* // @include https://*.lucemall.com.cn/* // @include http://*.easy361.com/* // @include https://*.easy361.com/* // @include http://item.360hqb.com/* // @include https://item.360hqb.com/* // @include http://q.360hqb.com/* // @include https://q.360hqb.com/* // @include http://*.goujiuwang.com/* // @include https://*.goujiuwang.com/* // @include http://*.huimai365.com/* // @include https://*.huimai365.com/* // @include http://*.jiuxian.com/* // @include https://*.jiuxian.com/* // @include http://*.winenice.com/* // @include https://*.winenice.com/* // @include http://*.yesmywine.com/* // @include https://*.yesmywine.com/* // @include http://mall.yesmywine.com/* // @include https://mall.yesmywine.com/* // @include http://*.banggo.com/* // @include https://*.banggo.com/* // @include http://ploy.banggo.com/* // @include https://ploy.banggo.com/* // @include http://*.yanyue.cn/* // @include https://*.yanyue.cn/* // @include http://*.bearbuy.com.cn/* // @include https://*.bearbuy.com.cn/* // @include http://*.amazon.cn/* // @include https://*.amazon.cn/* // @include http://*.amazon.com/* // @include https://*.amazon.com/* // @include http://*.amazon.co.uk/* // @include https://*.amazon.co.uk/* // @include http://*.amazon.de/* // @include https://*.amazon.de/* // @include http://*.amazon.co.jp/* // @include https://*.amazon.co.jp/* // @include http://*.amazon.fr/* // @include https://*.amazon.fr/* // @include http://*.amazon.ca/* // @include https://*.amazon.ca/* // @include http://*.amazon.it/* // @include https://*.amazon.it/* // @include http://*.amazon.es/* // @include https://*.amazon.es/* // @include http://*.dangdang.com/* // @include https://*.dangdang.com/* // @include http://*.globaldangdang.hk/* // @include https://*.globaldangdang.hk/* // @include http://z.jd.com/* // @include https://z.jd.com/* // @include http://item.jd.com/* // @include https://item.jd.com/* // @include http://i-item.jd.com/* // @include https://i-item.jd.com/* // @include http://item.paipai.com/* // @include https://item.paipai.com/* // @include http://item.yiyaojd.com/* // @include https://item.yiyaojd.com/* // @include http://item.jkcsjd.com/* // @include https://item.jkcsjd.com/* // @include http://item.jd.hk/* // @include https://item.jd.hk/* // @include http://paimai.jd.com/* // @include https://paimai.jd.com/* // @include http://*.jd.com/* // @include https://*.jd.com/* // @include http://*.jd.hk/* // @include https://*.jd.hk/* // @include http://*.360buy.com/* // @include https://*.360buy.com/* // @include http://re.jd.com/* // @include https://re.jd.com/* // @include http://auction.jd.com/* // @include https://auction.jd.com/* // @include http://club.jd.com/* // @include https://club.jd.com/* // @include http://*.360top.com/* // @include https://*.360top.com/* // @include http://detail.zol.com.cn/* // @include https://detail.zol.com.cn/* // @include http://dealer.zol.com.cn/* // @include https://dealer.zol.com.cn/* // @include http://*.zol.com/* // @include https://*.zol.com/* // @include http://*.fglady.cn/* // @include https://*.fglady.cn/* // @include http://*.ouku.com/* // @include https://*.ouku.com/* // @include http://*.newegg.comn/* // @include https://*.newegg.comn/* // @include http://zhadan.newegg.cn/* // @include https://zhadan.newegg.cn/* // @include http://tuan.newegg.cn/* // @include https://tuan.newegg.cn/* // @include http://product.kimiss.com/* // @include https://product.kimiss.com/* // @include http://*.redbaby.com.cn/* // @include https://*.redbaby.com.cn/* // @include http://product.m18.com/* // @include https://product.m18.com/* // @include http://list.m18.com/* // @include https://list.m18.com/* // @include http://*.m18.com/* // @include https://*.m18.com/* // @include http://*.w1.cn/* // @include https://*.w1.cn/* // @include http://*.ashford.com/* // @include https://*.ashford.com/* // @include http://*.sephora.cn/* // @include https://*.sephora.cn/* // @include http://*.lafaso.com/* // @include https://*.lafaso.com/* // @include http://*.s.cn/* // @include https://*.s.cn/* // @include http://*.51buy.com/* // @include https://*.51buy.com/* // @include http://*.51buy.cn/* // @include https://*.51buy.cn/* // @include http://*.okbuy.com/* // @include https://*.okbuy.com/* // @include http://*.letao.com/* // @include https://*.letao.com/* // @include http://*.buy007.com/* // @include https://*.buy007.com/* // @include http://*.taoxie.com/* // @include https://*.taoxie.com/* // @include http://ju.suning.com/* // @include https://ju.suning.com/* // @include http://item.suning.com/* // @include https://item.suning.com/* // @include http://*.suning.com/* // @include https://*.suning.com/* // @include http://*.suning.cn/* // @include https://*.suning.cn/* // @include http://qiang.suning.com/* // @include https://qiang.suning.com/* // @include http://product.suning.com/* // @include https://product.suning.com/* // @include http://*.suning.com/* // @include https://*.suning.com/* // @include http://*.coo8.com/* // @include https://*.coo8.com/* // @include http://*.lusen.com/* // @include https://*.lusen.com/* // @include http://*.lusen.com/* // @include https://*.lusen.com/* // @include http://item.gome.com.cn/* // @include https://item.gome.com.cn/* // @include http://tao.gome.com.cn/* // @include https://tao.gome.com.cn/* // @include http://q.gome.com.cn/* // @include https://q.gome.com.cn/* // @include http://tuan.gome.com.cn/* // @include https://tuan.gome.com.cn/* // @include http://*.gomehome.com/* // @include https://*.gomehome.com/* // @include http://*.gome.com.cn/* // @include https://*.gome.com.cn/* // @include http://*.yhd.com/* // @include https://*.yhd.com/* // @include http://*.yihaodian.com/* // @include https://*.yihaodian.com/* // @include http://*.1mall.com/* // @include https://*.1mall.com/* // @include http://try.yhd.com/* // @include https://try.yhd.com/* // @include http://*.womai.com/* // @include https://*.womai.com/* // @include http://*.leyou.com.cn/* // @include https://*.leyou.com.cn/* // @include http://leleshan.leyou.com.cn/* // @include https://leleshan.leyou.com.cn/* // @include http://*.shopin.net/* // @include https://*.shopin.net/* // @include http://*.xiu.com/* // @include https://*.xiu.com/* // @include http://outlets.xiu.com/* // @include https://outlets.xiu.com/* // @include http://ferragamo.xiu.com/* // @include https://ferragamo.xiu.com/* // @include http://tuan.xiu.com/* // @include https://tuan.xiu.com/* // @include http://item.mbaobao.com/* // @include https://item.mbaobao.com/* // @include http://*.mbaobao.com/* // @include https://*.mbaobao.com/* // @include http://item.vjia.com/* // @include https://item.vjia.com/* // @include http://*.7cv.com/* // @include https://*.7cv.com/* // @include http://*.qinqinbaby.com/* // @include https://*.qinqinbaby.com/* // @include http://*.chunshuitang.com/* // @include https://*.chunshuitang.com/* // @include http://*.x.com.cn/* // @include https://*.x.com.cn/* // @include http://*.guopi.com/* // @include https://*.guopi.com/* // @include http://*.no5.com.cn/* // @include https://*.no5.com.cn/* // @include http://*.sasa.com/* // @include https://*.sasa.com/* // @include http://*.sasa.com/* // @include https://*.sasa.com/* // @include http://*.hksasa.cn/* // @include https://*.hksasa.cn/* // @include http://*.dhc.net.cn/* // @include https://*.dhc.net.cn/* // @include http://*.9dadao.com/* // @include https://*.9dadao.com/* // @include http://*.360kxr.com/* // @include https://*.360kxr.com/* // @include http://*.m6go.com/* // @include https://*.m6go.com/* // @include http://*.likeface.com/* // @include https://*.likeface.com/* // @include http://*.qxian.com/* // @include https://*.qxian.com/* // @include http://*.didamall.com/* // @include https://*.didamall.com/* // @include http://*.yaodian100.com/* // @include https://*.yaodian100.com/* // @include http://*.yaofang.cn/* // @include https://*.yaofang.cn/* // @include http://*.lijiababy.com.cn/* // @include https://*.lijiababy.com.cn/* // @include http://99read.com/* // @include https://99read.com/* // @include http://product.china-pub.com/* // @include https://product.china-pub.com/* // @include http://*.bookschina.com/* // @include https://*.bookschina.com/* // @include http://*.efeihu.com/* // @include https://*.efeihu.com/* // @include http://tuan.efeihu.com/* // @include https://tuan.efeihu.com/* // @include http://*.360mart.com/* // @include https://*.360mart.com/* // @include http://*.yintai.com/* // @include https://*.yintai.com/* // @include http://item.yintai.com/* // @include https://item.yintai.com/* // @include http://*.quwan.com/* // @include https://*.quwan.com/* // @include http://*.urcosme.com/* // @include https://*.urcosme.com/* // @include http://*.strawberrynet.com/* // @include https://*.strawberrynet.com/* // @include http://*.strawberrynet.com/* // @include https://*.strawberrynet.com/* // @include http://*.luce.com.cn/* // @include https://*.luce.com.cn/* // @include http://*.k121.com/* // @include https://*.k121.com/* // @include http://*.happigo.com/* // @include https://*.happigo.com/* // @include http://mall.happigo.com/* // @include https://mall.happigo.com/* // @include http://*.gap.cn/* // @include https://*.gap.cn/* // @include http://*.misslele.com/* // @include https://*.misslele.com/* // @include http://*.5lux.com/* // @include https://*.5lux.com/* // @include http://*.5lux.com/* // @include https://*.5lux.com/* // @include http://*.xiaozhuren.com/* // @include https://*.xiaozhuren.com/* // @include http://*.all3c.com/* // @include https://*.all3c.com/* // @include http://*.idaphne.com/* // @include https://*.idaphne.com/* // @include http://product.pcbaby.com.cn/* // @include https://product.pcbaby.com.cn/* // @include http://*.binggo.com/* // @include https://*.binggo.com/* // @include http://*.tiantian.com/* // @include https://*.tiantian.com/* // @include http://tuan.tiantian.com/* // @include https://tuan.tiantian.com/* // @include http://*.xiji.com/* // @include https://*.xiji.com/* // @include http://*.xijie.com/* // @include https://*.xijie.com/* // @include http://mall.jumei.com/* // @include https://mall.jumei.com/* // @include http://pop.jumei.com/* // @include https://pop.jumei.com/* // @include http://*.jumei.com/* // @include https://*.jumei.com/* // @include http://item.jumei.com/* // @include https://item.jumei.com/* // @include http://*.jumeiglobal.com/* // @include https://*.jumeiglobal.com/* // @include http://item.jumeiglobal.com/* // @include https://item.jumeiglobal.com/* // @include http://buy.caomeipai.com/* // @include https://buy.caomeipai.com/* // @include http://*.dahuozhan.com/* // @include https://*.dahuozhan.com/* // @include http://*.dazhe.cn/* // @include https://*.dazhe.cn/* // @include http://*.huolida.com/* // @include https://*.huolida.com/* // @include http://*.12dian.com/* // @include https://*.12dian.com/* // @include http://*.yougou.com/* // @include https://*.yougou.com/* // @include http://*.yougou.com/* // @include https://*.yougou.com/* // @include http://*.111.com.cn/* // @include https://*.111.com.cn/* // @include http://*.daoyao.com/* // @include https://*.daoyao.com/* // @include http://*.jianke.com/* // @include https://*.jianke.com/* // @include http://*.360kad.com/* // @include https://*.360kad.com/* // @include http://*.lbxcn.com/* // @include https://*.lbxcn.com/* // @include http://book.douban.com/* // @include https://book.douban.com/* // @include http://dongxi.douban.com/* // @include https://dongxi.douban.com/* // @include http://product.it168.com/* // @include https://product.it168.com/* // @include http://product.pconline.com.cn/* // @include https://product.pconline.com.cn/* // @include http://product.pcpop.com/* // @include https://product.pcpop.com/* // @include http://cosme.pclady.com.cn/* // @include https://cosme.pclady.com.cn/* // @include http://brand.yoka.com/* // @include https://brand.yoka.com/* // @include http://detail.55bbs.com/* // @include https://detail.55bbs.com/* // @include http://hzp.onlylady.com/* // @include https://hzp.onlylady.com/* // @include http://*.24dq.com/* // @include https://*.24dq.com/* // @include http://*.muyingzhijia.com/* // @include https://*.muyingzhijia.com/* // @include http://item.muyingzhijia.com/* // @include https://item.muyingzhijia.com/* // @include http://*.houmart.com/* // @include https://*.houmart.com/* // @include http://*.onlyts.cn/* // @include https://*.onlyts.cn/* // @include http://*.winxuan.com/* // @include https://*.winxuan.com/* // @include http://item.winxuan.com/* // @include https://item.winxuan.com/* // @include http://detail.bookuu.com/* // @include https://detail.bookuu.com/* // @include http://e.bookuu.com/* // @include https://e.bookuu.com/* // @include http://wenju.bookuu.com/* // @include https://wenju.bookuu.com/* // @include http://book.beifabook.com/* // @include https://book.beifabook.com/* // @include http://product.yesky.com/* // @include https://product.yesky.com/* // @include http://product.pchome.net/* // @include https://product.pchome.net/* // @include http://product.enet.com.cn/* // @include https://product.enet.com.cn/* // @include http://*.ruiyi.com/* // @include https://*.ruiyi.com/* // @include http://*.ruiyi.cn/* // @include https://*.ruiyi.cn/* // @include http://*.rayi.com/* // @include https://*.rayi.com/* // @include http://*.rayi.cn/* // @include https://*.rayi.cn/* // @include http://*.nop.cn/* // @include https://*.nop.cn/* // @include http://product.imobile.com.cn/* // @include https://product.imobile.com.cn/* // @include http://product.cnmo.com/* // @include https://product.cnmo.com/* // @include http://phone.shouji.com.cn/* // @include https://phone.shouji.com.cn/* // @include http://product.tompda.com/* // @include https://product.tompda.com/* // @include http://*.3533.com/* // @include https://*.3533.com/* // @include http://product.intozgc.com/* // @include https://product.intozgc.com/* // @include http://product.chinabyte.com/* // @include https://product.chinabyte.com/* // @include http://app.tech.ifeng.com/* // @include https://app.tech.ifeng.com/* // @include http://www2.xitek.com/* // @include https://www2.xitek.com/* // @include http://product.imp3.net/* // @include https://product.imp3.net/* // @include http://*.menglu.com/* // @include https://*.menglu.com/* // @include http://*.moonbasa.com/* // @include https://*.moonbasa.com/* // @include http://*.ing2ing.com/* // @include https://*.ing2ing.com/* // @include http://*.qjherb.com/* // @include https://*.qjherb.com/* // @include http://*.korirl.com/* // @include https://*.korirl.com/* // @include http://*.alaves.com/* // @include https://*.alaves.com/* // @include http://*.0-100s.com/* // @include https://*.0-100s.com/* // @include http://*.cherriespie.com/* // @include https://*.cherriespie.com/* // @include http://*.clafield.com/* // @include https://*.clafield.com/* // @include http://*.baoyeah.com/* // @include https://*.baoyeah.com/* // @include http://*.suorang.com/* // @include https://*.suorang.com/* // @include http://*.monteamor.com/* // @include https://*.monteamor.com/* // @include http://*.rutisher.com/* // @include https://*.rutisher.com/* // @include http://*.keede.com/* // @include https://*.keede.com/* // @include http://*.kede.com/* // @include https://*.kede.com/* // @include http://*.vancl.com/* // @include https://*.vancl.com/* // @include http://*.dazhongdianqi.com.cn/* // @include https://*.dazhongdianqi.com.cn/* // @include http://*.skinstorechina.com/* // @include https://*.skinstorechina.com/* // @include http://item.buy.qq.com/* // @include https://item.buy.qq.com/* // @include http://*.zol.com.cn/* // @include https://*.zol.com.cn/* // @include http://*.pconline.com.cn/* // @include https://*.pconline.com.cn/* // @include http://*.yesky.com/* // @include https://*.yesky.com/* // @include http://*.it168.com/* // @include https://*.it168.com/* // @include http://*.pcpop.com/* // @include https://*.pcpop.com/* // @include http://*.pchome.net/* // @include https://*.pchome.net/* // @include http://*.139shop.com/* // @include https://*.139shop.com/* // @include http://*.milier.com/* // @include https://*.milier.com/* // @include http://*.sportica.cn/* // @include https://*.sportica.cn/* // @include http://*.zhenpin.com/* // @include https://*.zhenpin.com/* // @include http://*.gaojie.com/* // @include https://*.gaojie.com/* // @include http://*.naruko.com.cn/* // @include https://*.naruko.com.cn/* // @include http://*.vivian.com/* // @include https://*.vivian.com/* // @include http://*.vivian.cn/* // @include https://*.vivian.cn/* // @include http://*.masamaso.com/* // @include https://*.masamaso.com/* // @include http://*.masamaso.cn/* // @include https://*.masamaso.cn/* // @include http://*.linkmasa.com/* // @include https://*.linkmasa.com/* // @include http://*.linkmasa.cn/* // @include https://*.linkmasa.cn/* // @include http://item.secoo.com/* // @include https://item.secoo.com/* // @include http://paimai.secoo.com/* // @include https://paimai.secoo.com/* // @include http://sale.secoo.com/* // @include https://sale.secoo.com/* // @include http://*.ehaier.com/* // @include https://*.ehaier.com/* // @include http://qiji.ehaier.com/* // @include https://qiji.ehaier.com/* // @include http://*.handuyishe.com/* // @include https://*.handuyishe.com/* // @include http://*.wbiao.cn/* // @include https://*.wbiao.cn/* // @include http://*.shangpin.com/* // @include https://*.shangpin.com/* // @include http://*.shangpin.hk/* // @include https://*.shangpin.hk/* // @include http://*.pba.cn/* // @include https://*.pba.cn/* // @include http://*.metromall.cn/* // @include https://*.metromall.cn/* // @include http://*.lizi.com/* // @include https://*.lizi.com/* // @include http://*.kadang.com/* // @include https://*.kadang.com/* // @include http://*.aimer.com.cn/* // @include https://*.aimer.com.cn/* // @include http://*.lamiu.com/* // @include https://*.lamiu.com/* // @include http://*.esprit.cn/* // @include https://*.esprit.cn/* // @include http://*.liebo.com/* // @include https://*.liebo.com/* // @include http://*.wangjiu.com/* // @include https://*.wangjiu.com/* // @include http://*.xifuquan.com/* // @include https://*.xifuquan.com/* // @include http://*.189.cn/* // @include https://*.189.cn/* // @include http://*.hicdma.com/* // @include https://*.hicdma.com/* // @include http://*.e100.cn/* // @include https://*.e100.cn/* // @include http://store.samsung.com/* // @include https://store.samsung.com/* // @include http://store.meizu.com/* // @include https://store.meizu.com/* // @include http://detail.meizu.com/* // @include https://detail.meizu.com/* // @include http://b2c.958shop.com/* // @include https://b2c.958shop.com/* // @include http://*.okhqb.com/* // @include https://*.okhqb.com/* // @include http://*.ztedevice.com.cn/* // @include https://*.ztedevice.com.cn/* // @include http://*.daling.com/* // @include https://*.daling.com/* // @include http://item.showjoy.com/* // @include https://item.showjoy.com/* // @include http://*.ocj.com.cn/* // @include https://*.ocj.com.cn/* // @include http://*.ocj.kr/* // @include https://*.ocj.kr/* // @include http://*.lvyoumall.com/* // @include https://*.lvyoumall.com/* // @include http://*.kjt.com/* // @include https://*.kjt.com/* // @include http://store.logitech.com.cn/* // @include https://store.logitech.com.cn/* // @include http://shop.boohee.com/* // @include https://shop.boohee.com/* // @include http://*.meici.com/* // @include https://*.meici.com/* // @include http://*.beibei.com/* // @include https://*.beibei.com/* // @include http://store.nike.com/* // @include https://store.nike.com/* // @include http://*.nike.com/* // @include https://*.nike.com/* // @include http://*.fengqu.com/* // @include https://*.fengqu.com/* // @include http://*.mei.com/* // @include https://*.mei.com/* // @include http://*.vsigo.cn/* // @include https://*.vsigo.cn/* // @include http://*.sundan.com/* // @include https://*.sundan.com/* // @include http://hd.zazhipu.com/* // @include https://hd.zazhipu.com/* // @include http://*.microsoftstore.com.cn/* // @include https://*.microsoftstore.com.cn/* // @include http://*.xgdq.com/* // @include https://*.xgdq.com/* // @include http://*.xtep.com.cn/* // @include https://*.xtep.com.cn/* // @include http://*.xtep.com.cn/* // @include https://*.xtep.com.cn/* // @include http://*.staples.cn/* // @include https://*.staples.cn/* // @include http://mall.midea.com/* // @include https://mall.midea.com/* // @include http://*.midea.cn/* // @include https://*.midea.cn/* // @include http://www1.macys.com/* // @include https://www1.macys.com/* // @include http://cn.shopbop.com/* // @include https://cn.shopbop.com/* // @include http://*.hua.com/* // @include https://*.hua.com/* // @include http://shop.zhe800.com/* // @include https://shop.zhe800.com/* // @include http://*.cosme.com/* // @include https://*.cosme.com/* // @include http://*.diapers.com/* // @include https://*.diapers.com/* // @include http://*.windeln.de/* // @include https://*.windeln.de/* // @include http://*.windeln.com.cn/* // @include https://*.windeln.com.cn/* // @include http://*.escentual.com/* // @include https://*.escentual.com/* // @include http://*.biccamera.com/* // @include https://*.biccamera.com/* // @include http://*.esteelauder.com/* // @include https://*.esteelauder.com/* // @include http://*.saksfifthavenue.com/* // @include https://*.saksfifthavenue.com/* // @include http://*.thewatchery.com/* // @include https://*.thewatchery.com/* // @include http://item.tuhu.com/* // @include https://item.tuhu.com/* // @include http://item.tuhu.cn/* // @include https://item.tuhu.cn/* // @include http://eshop.htc.com/* // @include https://eshop.htc.com/* // @include http://roseonly.com.cn/* // @include https://roseonly.com.cn/* // @include http://*.taqu.cn/* // @include https://*.taqu.cn/* // @include http://shop.jx.189.cn/* // @include https://shop.jx.189.cn/* // @include http://*.bftv.com/* // @include https://*.bftv.com/* // @include http://*.axmall.com.au/* // @include https://*.axmall.com.au/* // @include http://*.lianjia.com/* // @include https://*.lianjia.com/* // @include http://*.ke.com/* // @include https://*.ke.com/* // @include http://*.5i5j.com/* // @include https://*.5i5j.com/* // @include http://*.lovo.cn/* // @include https://*.lovo.cn/* // @grant none // @namespace no // @downloadURL none // ==/UserScript== webpackJsonp([0],[ /* 0 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { modules: {}, version: 1647672387657, browser: {}, debug: /gwdebug/.test(window.location.href), extend: function extend(obj) { for (var i in obj) { this[i] = obj[i]; } } }; /***/ }), /* 1 */, /* 2 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var $ = __webpack_require__(1); var communicate = __webpack_require__(13); Promise.prototype.done = function (onFulfilled, onRejected) { return this.then(onFulfilled, onRejected)['catch'](function (error) { setTimeout(function () { throw error; }, 0); }); }; Promise.prototype.fail = function (onFulfilled, onRejected) { this.then(onFulfilled, onRejected)['catch'](function (error) { setTimeout(function () { throw error; }, 0); }); }; var wrap = function wrap(url) { if (!url) throw new Error('url 不能为空'); var start = '?'; var callback = 'callback=?&'; if (url.indexOf('?') > -1) { start = '&'; } var extension_env; //format是历史接口兼容 var format = 'format=jsonp&'; if (G.chrome_extension || G.from_device === 'maxthon' || G.from_device === 'firefox' || G.from_device === 'chrome') { extension_env = true; } //extension_env = true if (G.allowBackgroundRequest) { extension_env = true; } if (extension_env) { callback = ''; format = 'format=json&'; } var fp = ''; if (localStorage.getItem('gwdang-fp')) { fp = 'fp=' + localStorage.getItem('gwdang-fp') + '&dfp=' + localStorage.getItem('gwdang-dfp') + '&'; } return '' + url + start + callback + format + fp; }; module.exports.getCouponFromUrl = function (url) { return new Promise(function (resolve, reject) { module.exports.get(G.server + '/extension/CouponHandler?op=get&rawApi=' + encodeURIComponent(url)).then(function (res) { if (res.map && res.map.length > 0 && res.map[0].is_api && res.handle) { var _ret = (function () { var escapeStringRegExp = function escapeStringRegExp(str) { return str.replace(escapeStringRegExp.matchOperatorsRe, '\\$&'); }; var trueUrl = res.map[0].api.uri; var tag = res.map[0].api.tag; var NamedRe = __webpack_require__(210).named; escapeStringRegExp.matchOperatorsRe = /[|\\{}()[\]^$+*?.]/g; if (!res.handle[tag]) { if (url.indexOf('open.lesiclub.cn') > -1) { module.exports.rawGet(url).then(function (res) { resolve(res); }); return { v: undefined }; } else { // module.exports.rawGet(url).then(res => { // resolve(res) // }) res.handle = { "sg.weitaoke": ['"coupon_click_url":"(:.+?)"[\\s\\S]*?"coupon_info":"满(:\\d+)元减(:\\d+)元"'], "weitaoke": ['"coupon_click_url":"(:.+?)"[\\s\\S]*?"coupon_info":"满(:\\d+)元减(:\\d+)元"'], "uc.weitaoke": ['"coupon_click_url":"(:.+?)"[\\s\\S]*?"coupon_info":"满(:\\d+)元减(:\\d+)元"'], "edge.weitaoke": ['"coupon_click_url":"(:.+?)"[\\s\\S]*?"coupon_info":"满(:\\d+)元减(:\\d+)元"'] }; } } var re = NamedRe(new RegExp(res.handle[tag][0])); //trueUrl = trueUrl.replace('http://q.weitaoke.net', 'https://q.apptimes.cn') var r = undefined; if (trueUrl.indexOf('open.lesiclub.cn') > -1) { if (G.from_device === 'bijiago') { (function () { var runned = false; r = new Promise(function (resolve) { $.get(url).done(function (res) { runned = true; resolve(res); }); setTimeout(function () { if (!runned) { resolve(null); } }, 4000); }); })(); } else { r = module.exports.rawGet(trueUrl); } } else { r = module.exports.rawGet(trueUrl); } r.then(function (data) { if (!data.data) { resolve(null); return; } window.toTest = JSON.stringify(data); window.toTestRe = re; try { var result = re.exec(JSON.stringify(data)).captures; resolve({ code: 200, data: { click_url: result.link[0], tkl: result.tkl ? result.tkl[0] : '', coupon: { coupon_money: result.coupon[0], coupon_limit: result.limit[0] } } }); } catch (e) { resolve(null); } }); })(); if (typeof _ret === 'object') return _ret.v; } else { resolve(null); } })['catch'](function (e) { return resolve(null); }); }); }; module.exports.raw = function (url, isarg) { if (isarg) { url = url + '&union=' + G.union + '&version=' + G.version + '&from_device=' + G.from_device; } var _done; if (G.allowBackgroundRequest) { return new Promise(function (resolve) { communicate.trigger({ type: 'proxyRequest', url: url }); communicate.on(function (info) { if (info.type === 'proxyRequest' && info.id === url) { resolve(JSON.stringify(info.value)); } }); }); } else { var r = { done: function done(cb) { _done = cb; } }; var xhr = new XMLHttpRequest(); xhr.addEventListener('load', function () { if (_done) _done(xhr.responseText); }); xhr.addEventListener('error', function () { if (_done) _done(xhr.responseText); }); xhr.open("GET", url, true); xhr.send(); return r; } }; module.exports.getScript = function (url, fc, callback) { window[fc] = function (data) { callback(data); }; var dom = document.createElement('script'); dom.src = url; dom.type = "text/javascript"; document.body.appendChild(dom); }; /** * 普通GET请求,不会加上多余的参数 * @param url * @returns {Promise|*} */ module.exports.rawGet = function (url) { var allowCredentials = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; if (G.allowBackgroundRequest) { return new Promise(function (resolve, reject) { var resolved = false; communicate.trigger({ type: 'proxyRequest', url: url, referer: location.href }); communicate.on(function (info) { if (info.type === 'proxyRequest' && info.id === url) { resolved = true; resolve(info.value); } }); setTimeout(function () { if (!resolved) { reject(); } }, 3000); }); } else { if (allowCredentials) { return module.exports.requestXHR(url, {}); } return $.get(url); } }; // function request(url, callback, referer) { // var xmlhttp = new XMLHttpRequest(); // xmlhttp.addEventListener('load', function() { // callback(xmlhttp.responseText) // }) // xmlhttp.withCredentials = true // xmlhttp.open("GET", url, true); // // if (referer) { // // xmlhttp.setRequestHeader('x-referer', referer) // // } // xmlhttp.send(); // }; /** 请求自己接口 */ module.exports.get = function (url) { var instanceId = G.instanceId; var from_type = ""; if (G.from_type) { from_type = '&from_type=' + G.from_type; } url = wrap(url) + 'union=' + G.union + '&version=' + G.version + '&from_device=' + G.from_device + from_type; if (G.crc64) url += "&crc64=1"; if (!Promise.prototype.done) { Promise.prototype.done = Promise.prototype.then; Promise.prototype.fail = Promise.prototype['catch']; } if (G.allowBackgroundRequest) { return new Promise(function (resolve) { communicate.trigger({ type: 'proxyRequest', url: url, referer: location.href }); communicate.on(function (info) { if (instanceId && instanceId !== G.instanceId) { resolve(null); return; } if (info.type === 'proxyRequest' && info.id === url) { resolve(info.value); } }); }); } else { return new Promise(function (resolve, reject) { // request(url, function(res) { // try { // resolve(JSON.parse(res)) // } catch (e) { // resolve(res) // } // }, location.href) window.ts = $; $.ajax({ beforeSend: function beforeSend(request) { if (G.requestNeedToken) { //request.setRequestHeader("x-bjg-token", G.requestNeedToken); } }, dataType: "json", url: url, success: function success(data) { if (instanceId && instanceId !== G.instanceId) { resolve(null); return; } resolve(data); } }); // $.getJSON(url).then(res => resolve(res)) // console.log(url) // $.ajax(url, { // xhrFields: { // withCredentials: true // }, // jsonp: false, // jsonpCallback: '' // }).then(res => { // resolve(res) // }) }); } }; var postingId = 0; module.exports.post = function (url, data) { var useForm = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; var withCredentials = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; var reqId = postingId; postingId++; if (G.allowBackgroundRequest && navigator.userAgent.indexOf('MetaSr') === -1) { return new Promise(function (resolve) { communicate.trigger({ type: useForm ? 'proxyRequestPostForm' : 'proxyRequestPost', url: url, payload: data, reqId: reqId, referer: location.href }); communicate.on(function (info) { if (info.type.indexOf('proxyRequestPost') > -1 && info.id === reqId) { resolve(info.value); } }); }); } else { return module.exports.requestXHRPost(url, data, useForm, withCredentials); } }; /** 请求别人接口,隐藏痕迹 */ var getPure = function getPure(url) { //console.log('getPure ' + url) // 曾用于获取商品信息,现在不需要了 if (url.indexOf('https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0') > -1) { //console.warn('interupt ' + url) return { done: function done(cb) { cb({ intercepted: true, msg: 'view request.js' }); }, then: function then(cb) { cb({ intercepted: true, msg: 'view request.js' }); } }; } url = wrap(url); return $.ajax({ beforeSend: function beforeSend(request) { if (G.requestNeedToken) { //request.setRequestHeader("x-bjg-token", G.requestNeedToken); } }, dataType: "json", url: url }); }; module.exports.getPure = getPure; module.exports.requestXHR = function requestXHR(url) { var withCredentials = arguments.length <= 1 || arguments[1] === undefined ? true : arguments[1]; return new Promise(function (resolve) { var xmlhttp = new XMLHttpRequest(); xmlhttp.addEventListener('load', function () { try { var res = JSON.parse(xmlhttp.responseText); resolve(res); } catch (e) { resolve(xmlhttp.responseText); } }); xmlhttp.withCredentials = withCredentials; xmlhttp.open("GET", url, true); if (G.requestNeedToken) {} //xmlhttp.setRequestHeader('x-bjg-token', G.requestNeedToken) // if (referer) { // xmlhttp.setRequestHeader('x-referer', referer) // } xmlhttp.send(); }); }; module.exports.requestXHRPost = function requestXHR(url, data) { var form = arguments.length <= 2 || arguments[2] === undefined ? true : arguments[2]; var withCredentials = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; return new Promise(function (resolve) { var xmlhttp = new XMLHttpRequest(); xmlhttp.addEventListener('load', function () { try { var res = JSON.parse(xmlhttp.responseText); resolve(res); } catch (e) { resolve(xmlhttp.responseText); } }); xmlhttp.withCredentials = withCredentials; xmlhttp.open("POST", url, true); if (G.requestNeedToken) { //xmlhttp.setRequestHeader('x-bjg-token', G.requestNeedToken) } if (form) { (function () { var formData = new FormData(); Object.keys(data).forEach(function (item) { formData.append(item, data[item]); }); xmlhttp.send(formData); })(); } else { xmlhttp.setRequestHeader('Content-Type', 'text/plain'); xmlhttp.send(data); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 3 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; // 有时需要等待条件满足再执行 var metConditions = []; var waitList = {}; var dataList = {}; module.exports = { met: function met(condition) { var timeout = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var defaultValue = arguments.length <= 2 || arguments[2] === undefined ? null : arguments[2]; return new Promise(function (resolve) { if (metConditions.indexOf(condition) > -1) { resolve(dataList[condition]); } else { if (waitList[condition]) { waitList[condition].push(resolve); } else { waitList[condition] = [resolve]; } if (timeout) { setTimeout(function () { resolve(defaultValue); }, timeout); } } }); }, clearAll: function clearAll() { metConditions = []; waitList = {}; dataList = {}; }, clear: function clear(condition) { var idx = metConditions.indexOf(condition); if (idx > -1) { metConditions.splice(idx, 1); delete dataList[condition]; } }, setMet: function setMet(condition) { var data = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; if (metConditions.indexOf(condition) === -1) { metConditions.push(condition); dataList[condition] = data; } if (waitList[condition]) { waitList[condition].forEach(function (x) { return x(data); }); waitList[condition] = []; } } }; /***/ }), /* 4 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var tm = undefined; var load = undefined; var caches = undefined; function addcnzz(c) { var head = document.getElementsByTagName('head'); if (head && head[0]) head = head[0]; var script = document.createElement('script'); script.src = c; script.async = true; script.defer = true; script.language = "JavaScript"; head.appendChild(script); load = true; } module.exports.init = function (cnzz) { if (cnzz) { addcnzz(cnzz); } setTimeout(function () { log('ChromeVersion', __webpack_require__(81).getChromeVersion()); }, 1000); }; var log = function log(category, action, label, value, nodeid) { if (!load) { //console.log('cnzz not load') return; }; if (caches === category) { clearTimeout(tm); tm = setTimeout(function () { if (window._czc && window._czc.push) { action = action || '.'; label = label || ''; window._czc.push(["_trackEvent", category, action, label, value, nodeid]); caches = category; } }, 300); } else { if (window._czc && window._czc.push) { action = action || '.'; label = label || ''; window._czc.push(["_trackEvent", category, action, label, value, nodeid]); caches = category; } } }; var logged = []; var logOnce = function logOnce(category, action, label, value, nodeid) { // 同log,只记录一次 var id = [category, action, label, value, nodeid].join('-'); if (logged.indexOf(id) === -1) { log(category, action, label, value, nodeid); logged.push(id); } }; module.exports.log = log; module.exports.logOnce = logOnce; // 记录某个元素的曝光和悬浮 module.exports.hoverLog = function (element, name) { setTimeout(function () { if ($(element).length) { log(name, '曝光'); } $(element).hover(function () { logOnce(name, '悬浮'); }); }, 0); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) /***/ }), /* 5 */, /* 6 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var exports = {}; var data = {}; exports.get = function (key) { return data[key]; }; exports.data = data; exports.set = function (key, value) { if (value === undefined && key) { data = key; } else { data[key] = value; } }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /* 7 */, /* 8 */, /* 9 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var tm = undefined; var globalEvent = undefined; var userData = __webpack_require__(6); function goLog(event) { var userid = __webpack_require__(80).getInfo('user_extension_id') || ''; userid = userid || G.userid; var t_server = G.tj_server; if (G.new_extension && !G.fdsMod) t_server = G.server; if (!event) event = ""; if (!t_server) t_server = G.server; var n = 'img_random' + Math.random(); var img = window[n] = new Image(); img.onload = img.onerror = function () { window[n] = null; }; img.src = t_server + '/visit/?version=' + G.version + '&userid=' + userid + '&ext_v=' + G.ext_v + '&from_device=' + G.from_device + '&permanent_id=' + userData.get('p_id') + '&random=' + Math.random() + '&action=' + event + '&refer=' + encodeURIComponent(document.referrer) + '&url=' + encodeURIComponent(location.href) + '&title=' + encodeURIComponent(document.title); } if (G.from_type === 'bjg_360') return; return function (event) { if (G.from_device === '360') return; if (globalEvent === event) { globalEvent = event; clearTimeout(tm); tm = setTimeout(function () { goLog(event); }, 500); } else { globalEvent = event; goLog(event); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 10 */, /* 11 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__(13); module.exports.retry = function (wait, cb, times, time) { //@param function wait 等待的条件 //@param function cb 条件满足后做的操作 //@param number times 尝试的次数 //@param number time 每次等待的时间 var _times = 0; function _try() { if (_times >= times) return; if (wait()) cb();else { _times++; setTimeout(_try, time); } } _try(); }; module.exports.settings = function (op, key, value) { var request = __webpack_require__(2); request.get(G.server + '/brwext/permanent_id?' + ('version=2&op=' + op + '&' + key + '=' + value)).done(function (msg) { G[key] = value; }); }; module.exports.setLocal = function (key, value) { communicate.trigger({ 'type': 'setStorage', 'key': key, 'value': value }); }; module.exports.openTab = function () { communicate.trigger({ 'type': 'opentab' }); }; // module.exports.addFavorCheck = () => { // communicate.trigger({ // 'type': 'addFavorCheck' // }) // } module.exports.getTimeNumber = function (time, type) { // 1: xxxx-xx-xx 2.xx-xx 3.xx.xx 4. xxxx.xx.xx var dateObj = new Date(time); var y = dateObj.getFullYear(); var m = dateObj.getMonth() + 1; var d = dateObj.getDate(); if (m < 10) m = '0' + m; if (d < 10) d = '0' + d; var str = ''; switch (type) { case "1": str = y + '-' + m + '-' + d; break; case "2": str = m + '-' + d; break; case "3": str = m + '.' + d; break; case "4": str = y + '.' + m + '.' + d; break; case "5": str = y + '/' + m + '/' + d; break; default: str = '(' + y + '.' + m + '.' + d + ')'; } return str; }; /** * 数组去重 * @param array */ module.exports.arrayUnique = function (array) { var newArray = []; array.forEach(function (item) { if (newArray.indexOf(item) === -1) { newArray.push(item); } }); return newArray; }; module.exports.setSimplePagePos = function (dom, detail, detailW) { var mainW = $(window).width(); var left = dom.offset().left; var domw = dom.outerWidth(); var dleft = left + domw - detailW - 2; if (dleft < 0) dleft = 0; if (dleft + detailW > mainW) dleft = mainW - detailW - 2; detail.css('left', dleft + 'px'); }; module.exports.deepCopy = function (obj) { return $.extend(true, {}, obj); }; module.exports.waitForConditionFn = function (conditionFn) { var checkInterval = arguments.length <= 1 || arguments[1] === undefined ? 300 : arguments[1]; return new Promise(function (resolve) { var t = setInterval(function () { if (conditionFn()) { resolve(true); clearInterval(t); } }, checkInterval); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 12 */, /* 13 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//content-env 与 extension-env 通信 module.exports.trigger = function (data) { if (document.createEvent) { var evt = document.createEvent('CustomEvent'); data.evt_from = G.from_device; evt.initCustomEvent('gwd_extension', true, true, data); document.dispatchEvent(evt); } }; module.exports.on = function (cb) { if (document.addEventListener) { document.addEventListener('gwd_content', function (e) { if (navigator.userAgent.indexOf('Firefox') > -1) { cb(JSON.parse(e.detail)); } else { cb(e.detail); } }); } else { document.attachEvent('gwd_content', function (e) { cb(e.detail); }); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 14 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var b2cCompare = __webpack_require__(58); var tbCompare2 = __webpack_require__(57); var amazonGlobal = __webpack_require__(60); var calWidth = __webpack_require__(27); var utils = __webpack_require__(11); var log = __webpack_require__(9); var runDp = {}; var moduleControl = function moduleControl(id) { log('track:' + id); switch (id) { case 'b2c_compare': b2cCompare.renderTopDetail(); break; case 'tb_compare': tbCompare2.renderTopDetail2('taobao'); break; case 'tm_compare': tbCompare2.renderTopDetail2('tmall'); break; case 'amazon_compare': amazonGlobal.renderTopDetail('tmall'); break; } }; var checkImage = function checkImage(dom, src) { var image = new Image(); image.onload = function () { $(dom).attr('src', src); }; image.onerror = function () { $(dom).attr('src', G.noImg); }; image.src = src; }; var turnPage = function turnPage(type, dom, id) { var widthObj = calWidth.init(); var list = dom.find('.all-products li'); var totalP = Number(dom.find('.page-num').text()); var curentP = Number(dom.find('.current-page').text()); var sNum = widthObj.b2cShowListNum; if (id.indexOf('b2c') === -1) { sNum = widthObj.showListNum; } list.hide(); if (type === 1) { if (curentP === totalP) curentP = 0; module.exports.loadImg(sNum * curentP, sNum * (curentP + 1), dom.find('.all-products li img')); for (var i = sNum * curentP; i < sNum * (curentP + 1); i++) { list.eq(i).show(); } curentP++; } else { if (curentP === 1) curentP = totalP + 1; module.exports.loadImg(sNum * (curentP - 2), sNum * (curentP - 1), dom.find('.all-products li img')); for (var i = sNum * (curentP - 2); i < sNum * (curentP - 1); i++) { list.eq(i).show(); } curentP--; } dom.find('.current-page').text(curentP); }; module.exports.loadImg = function (start, end, dom) { for (var i = start; i < end; i++) { var itemimg = $(dom).eq(i)[0]; if (!itemimg) return; var src = itemimg.getAttribute('data-original'); var defaultsrc = itemimg.src; if (src !== defaultsrc) checkImage(itemimg, src); } }; var autoFixWidth = function autoFixWidth() { var reset = arguments.length <= 0 || arguments[0] === undefined ? true : arguments[0]; var barW = $(window).width(); if (reset) { $('.gwd-hidden').removeClass('gwd-hidden'); } var feedW = $('#gwdang-feed-close').outerWidth(); var history = $('#gwd_history').outerWidth(); var searchW = $('.search-mod').outerWidth(); var lowW = $('#gwd_lowpri').outerWidth(); var leftW = $('.gwd-topbar-left').outerWidth(); var logoW = $('.gwd-topbar-logo').outerWidth(); var promoW = $('#promo_quan_btn').outerWidth(); var adWidth = $('#gwdang-banner-ad').outerWidth(); var adWidth2 = $('#gwdang-banner-ad2').outerWidth(); var shareBtn = $('.shareExt').outerWidth(); var suggestW = $('.gwdang-suggest').outerWidth(); //let freeW = barW - (feedW + history + searchW + lowW + leftW + logoW + adWidth + adWidth2 + shareBtn); //if (freeW < -1000) return; var freeW = $('#gwd-space').outerWidth(); if ($('#gwd-space').outerWidth() > 10) { return; } var list = ['.shareExt', '.gwdang-suggest', '.search-mod', '#gwd_history', '#gwdang-favor']; if (freeW < 5) { for (var i = 0; i < list.length; i++) { var toCheck = list[i]; if (!$(toCheck)[0]) continue; if (!$(toCheck).hasClass('gwd-hidden')) { $(toCheck).addClass('gwd-hidden'); setTimeout(function () { autoFixWidth(false); }, 0); return; } } } if (freeW < 50) { $('.shareExt').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('.gwdang-suggest').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('.search-mod').addClass('gwd-hidden'); freeW += searchW; } if (freeW < 50) { $('#gwd_history').addClass('gwd-hidden'); freeW += history; } if (freeW < 50) { $('#gwdang-banner-ad2').addClass('gwd-hidden'); freeW += adWidth2; } if (freeW < 50) { $('#gwd_lowpri').addClass('gwd-hidden'); $('.gwd-topbar-right').css('min-width', 'auto'); freeW += lowW; } if (freeW < 50) { $('#promo_quan_btn').addClass('gwd-hidden'); freeW += promoW; } if ($('.gwd-topbar-right').outerWidth() === 400) { $('.gwd-topbar-right').css('min-width', 'auto'); } }; module.exports.autoFixWidth = autoFixWidth; module.exports.listenBar = function (style) { var renderSetting = undefined; if (style === 'top') { $(G.dval).on('mouseenter', '.gwdang-tab', function () { var id = $(this).attr('id'); if (!runDp[id] && id !== 'gwdang-trend') { runDp[id] = true; moduleControl(id); } else { //$(this).find('.top-bar-detail').show() $(document).trigger('renderAgain'); } $(this).addClass('tab-hover'); }); $(G.dval).on('mouseleave', '.gwdang-tab', function () { var id = $(this).attr('id'); // 价格走势的展开框因为有特殊情况, 所以不在这里隐藏, 单独添加事件监控 if (id === 'gwdang-trend') return false; //$('.top-bar-detail').hide() $(this).removeClass('tab-hover'); }); $(G.dval).on('click', '.turn-page a', function () { var id = $(this).attr('id'); var dom = $(this).parent().parent(); if (id.match(/(?:b2c|taobao|tmall|fuzzy)-prev-page/)) { turnPage(-1, dom, id); } else if (id.match(/(?:b2c|taobao|tmall|fuzzy)-next-page/)) { turnPage(1, dom, id); } }); $('.gwd_close').on('click', function () { $('#gwdang_main').hide(); $('#gwdang-mini').show(); utils.setLocal('top_fold', '1'); utils.settings('set_p_fold', 'p_fold', '1'); $('body').css('padding-top', '0px').removeClass('gwd_unfold'); }); $('.gwd-topbar-logo').on('mouseenter', function () { if (!renderSetting) { __webpack_require__(238).insertSettingView(); renderSetting = true; } $("#gwd_setting_div").show(); }); $('.gwd-topbar-logo').on('mouseleave', function () { $("#gwd_setting_div").hide(); }); $('#gwd_fold_pointer').on('click', function () { $('#gwdang_main').show(); $('#gwdang-mini').hide(); utils.setLocal('top_fold', '0'); utils.settings('set_p_fold', 'p_fold', '0'); $('body').css('padding-top', '36px').addClass('gwd_unfold'); autoFixWidth(); }); } else { $('#bjd_bottom_detail').on('mouseenter', '.btm-tab', function () { $(this).find('.gwd-btn-detail').show(); }); $('#bjd_bottom_detail').on('mouseleave', '.btm-tab', function () { $(this).find('.gwd-btn-detail').hide(); }); } var resizeT = undefined; $(window).resize(function () { clearTimeout(resizeT); resizeT = setTimeout(function () { autoFixWidth(); }, 500); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 15 */, /* 16 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var userData = __webpack_require__(6); var request = __webpack_require__(2); var countryConfig = __webpack_require__(25); var communicate = __webpack_require__(13); var globalCurrency = {}; var unitConfig = [{ unitName: '千', times: 1000 }, { unitName: '万', times: 10000 }]; var unit = 1; var getPriceBeforeExchangeRate = function getPriceBeforeExchangeRate(price, type) { if (!price) return; price = price.toString(); unit = 1; if (Array.prototype.forEach) { unitConfig.forEach(function (i) { if (price.indexOf(i.unitName) > -1) { unit = i.times; } }); } price = price.replace(/^[^\d]+/ig, ''); price = price.replace(/[¥\$]/ig, ''); price = price.match(/[0-9.,]+/) && price.match(/[0-9.,]+/)[0]; if (!price) return price; price = priceFormat(price, type); price = price.replace(/,/ig, ''); price = $.trim(price); var range_left = price.indexOf('-'); if (range_left > 0) { price = price.substr(0, range_left); } //修正价格提取出现的小数部分不准确问题(如一号店) price = price.replace(/^(\d+\.)\<.+\>(\d{0,2})\<\/.+\>/ig, "$1$2"); return price; }; module.exports = function (price, type) { price = getPriceBeforeExchangeRate(price, type); //fix end price = exchangeRate(price, type); if (parseFloat(price) > 0) { price = parseFloat(price); if (unit) price = price * unit; return price; } else return 0; }; module.exports.getPriceBeforeExchangeRate = getPriceBeforeExchangeRate; var exchangeRate = function exchangeRate(price, type) { var exRate = undefined; if (type) { exRate = globalCurrency[type] || 1; } else { exRate = userData.get('currency') || G.currency || 1; } return parseFloat((Number(price) * exRate).toFixed(2)); }; var priceFormat = function priceFormat(price, type) { if (type) return price; if (G.pageInfo.type == 1) return price; var host = location.host; var euroAmazonConfig = { 'www.amazon.de': 'prime', 'www.amazon.fr': 'premium' }; if (euroAmazonConfig[host] && $('#nav-logo .nav-logo-tagline').text().replace(/\s/g, '').trim().toLowerCase().indexOf(euroAmazonConfig[host]) > -1) price = price.replace('.', '').replace(',', '.'); return price; }; var storeRate = function storeRate(currency) { communicate.trigger({ type: 'setStoreRate', info: JSON.stringify(currency) }); }; var getStoreRate = function getStoreRate() { communicate.on(function (info) { if (info && info.type == 'getStoreRate') { try { var currency = info.value.currency; var newInfo = JSON.parse(currency); globalCurrency = newInfo.elsecurr; G.currency = newInfo.currency; } catch (e) {} } }); communicate.trigger({ type: 'getStoreRate' }); }; var readyGet = function readyGet() { if (location.host === 'www.amazon.cn') return; if (location.host.indexOf('amazon') > -1 || location.host.indexOf('6pm') > -1) { getStoreRate(); } }; readyGet(); module.exports.getExRate = function (type) { return parseFloat(globalCurrency[type] | 1); }; module.exports.getRate = function (callback) { var site = G.logsite; var moneyInfo = countryConfig.getMoneyInfo(site); if (moneyInfo) { var url = G.server + '/extension?ac=currency&url=' + encodeURIComponent(location.href); request.get(url).then(function (data) { if (data && data.currency) { userData.set('currency', data.currency); globalCurrency = data.elsecurr; G.currency = data.currency; storeRate(data); } callback(); })['catch'](function () { //callback() }); } else { callback(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 17 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var domains = { '\\.jd\\.com': '360buy', 'dangdang\\.com': 'dangdang', 'vmei\\.com': 'vmei', 'tootoo\\.cn': 'tootoo', 'www\\.spider\\.com\\.cn': 'spider', '.*?boqii\\.com': 'boqii', 'www\\.51din\\.com': '51din', 'www\\.haituncun\\.com': 'haituncun', 'yunhou\\.com': 'yunhou', '.*?vip\\.com': 'vip', 'www\\.mallvv\\.com': 'homevv', 'rayi\\.cn': 'rayi', 'www\\.yaofang\\.cn': 'yaofang', 'www\\.likeface\\.com': 'likeface', 'www\\.guopi\\.com': 'guopi', 'www\\.menglu\\.com': 'menglu', '(.*?)\\.m18\\.com': 'm18', '\\.efeihu\\.com': 'efeihu', '//www\\.mei\\.com/silo/.*-event-event\\.html': 'mei', 'benlai\\.com': 'benlai', '//www\\.kjt\\.com': 'kjt', 'www\\.kjt\\.com': 'kjt', 'bestinfoods.com': 'bestinfoods', '\\.j1\\.com': 'j1', 'yummy77\\.com': 'yummy77', '\\.360kxr\\.com': '360kxr', 'item\\.feiniu\\.com': 'feiniu', 'shop\\.lenovomobile\\.com': 'lenovo', 'supuy\\.com': 'supuy', 'supumall\\.com': 'supumall', 'yohobuy\\.com': 'yohobuy', 'mf910\\.com': 'mf910', 'sundan\\.com': 'sundan', '\\.tao3c\\.com': 'tao3c', 'aidai\\.com': 'aidai', 'x\\.com\\.cn': 'x', 'feifei\\.(?:cn|com)': 'feifei', 'lovo\\.cn': 'lovo', 'yintai\\.com': 'yintai', 'banggo\\.com': 'banggo', '5lux\\.com': '5lux', 'amazon\\.de': 'amazon_de', '\\.paixie\\.net': 'paixie', '\\.handu\\.com': 'handu', '\\.gou\\.com': 'm6go', 'minshengec\\.com': 'minshengec', 'lemall\\.com': 'lemall', 'ocj\\.com\\.cn': 'ocj', 'nike\\.com': 'nike', 'sfbest\\.(?:hk|com)': 'sfbest', '\\.winxuan\\.com': 'winxuan', '\\.shopin\\.net': 'shopin', '\\.mbaobao\\.com': 'mbaobao', 'www\\.ymatou\\.com': 'ymatou', 'coocaa\\.com': 'coocaa', '111\\.com\\.cn': '111', 'shop\\.lenovo\\.com\\.cn': 'lenovo', 'fruitday\\.com': 'fruitday', 'amazon\\.es': 'amazon', 'meici\\.com': 'meici', 'beibei\\.com': 'beibei', 'keede\\.com': 'keede', 'kede\\.com': 'keede', 'xijie.com': 'xijie', 'camel.com.cn': 'camel', 'meituan\\.com': 'meituan', '\\.amazon\\.cn': 'amazon', '\\.amazon\\.com': 'amazon_us', 'lenovo\\.com': 'lenovo', 'easeeyes\\.com': 'easeeyes', 'aimer\\.com\\.cn': 'aimer', 'showjoy\\.com': 'showjoy', 'yesmywine\\.com': 'yesmywine', 'tiantian\\.com': 'tiantian', '\\.gap\\.cn': 'gap', 'wangfujing\\.com': 'wangfujing', '\\.mei\\.com': 'mei', 'amazon\\.ca': 'amazon_ca', 'secoo\\.com': 'secoo', 'www\\.metao\\.com': 'metao', 'metao\\.com': 'metao', 'amazon\\.com\\.br': 'amazon', 'baiyangwang.com': 'baiyangwang', 'bookuu\\.com': 'bookuu', '100yue\\.com': '100yue', 'meilele\\.com': 'meilele', 'd1\\.com\\.cn': 'd1', 'm\\.d1\\.cn': 'd1', '.taqu.cn': 'taqu', 'letao\\.com': 'letao', 'www\\.kaola\\.com': 'kaola', 'lamiu\\.com': 'lamiu', '\\.vmall\\.com': 'vmall', 'morefood\\.com': 'morefood', '\\.xiji.com': 'xiji', 'shop\\.letv\\.com': 'lemall', 'vjia\\.com': 'vjia', 'staples\\.cn': 'staples', '\\.zm7\\.cn': 'zm7', '\\.(?:moonbasa|korirl|rutisher|suorang|alaves|ing2ing|0-100s|qjherb|monteamor)\\.com': 'moonbasa', 'fengqu\\.com': 'fengqu', 'bestkeep\\.cn': 'bestkeep', 'ocj\\.kr': 'ocj', 'amazon\\.co\\.jp': 'amazon_jp', 'zhen\\.com': 'zhen', '\\.xiu\\.com': 'xiu', '(\\.)?homevv\\.com': 'homevv', 'daling.com': 'daling', 'amazon\\.in': 'amazon', 'feiniu\\.com': 'feiniu', 'jiumei\\.com': 'jiumei', 'taoxie\\.com': 'taoxie', 'amazon\\.it': 'amazon', 'zazhipu\\.com': 'zazhipu', '\\.bl\\.com': 'bl', '.*?bl\\.com': 'bl', 'you.163.com': 'you163', 'lingshi\\.com': 'lingshi', 'hua\\.com': 'hua', '\\.m6go\\.com': 'm6go', 'lefeng\\.com': 'lefeng', '360kad\\.com': '360kad', '\\.99read\\.com': '99read', '\\.miqi\\.cn': 'miqi', 'qinqinbaby\\.com': 'qinqinbaby', 'vancl\\.com': 'vancl', '\\.jiuxian\\.com': 'jiuxian', 'jiae\\.com': 'jiae', 'midea\\.com': 'midea', 'amazon\\.com\\.mx': 'amazon', 'xifuquan\\.com': 'xifuquan', 'amazon\\.com': 'amazon_us', 'wangjiu\\.com': 'wangjiu', 'amazon\\.nl': 'amazon', '\\.okbuy\\.com': 'okbuy', 'amazon\\.com\\.au': 'amazon', 'sasa\\.com': 'sasa', '(\\.)?yiguo\\.com': 'yiguo', 'muyingzhijia\\.com': 'muyingzhijia', '.*?zuipin\\.cn': 'zuipin', '\\.zhiwo\\.com': 'zhiwo', 'store\\.logitech\\.com\\.cn': 'logitech', '\\.newegg(\\.com)?\\.cn': 'newegg', 'efotile\\.com': 'efotile', '\\.ouku\\.com': 'ouku', '\\.no5\\.com\\.cn': 'no5', 'haierjingshui\\.com': 'haierjingshui', 'www\\.kzj365\\.com': 'kzj365', 'wbiao\\.cn': 'wbiao', '\\.lusen\\.com': 'lusen', 'jumei\\.com': 'jumei', 'xgdq\\.com': 'xgdq', 'mia\\.com': 'miyabaobei', 'miyabaobei.hk': 'miyabaobei', 'ule\\.com': 'ule', '\\.okhqb\\.com': 'okhqb', 'jianke\\.com': 'jianke', '\\.jxdyf\\.com': 'jxdyf', 'xtep\\.com\\.cn': 'xtep', 'guojimami.com': 'guojimami', 'ehaier\\.com': 'ehaier', 'lbxcn\\.com': 'lbxcn', '\\.camel\\.com\\.cn': 'camel', '(?:vivian|linkmasa|masamaso)\\.(?:com|cn)': 'masamaso', 'lifevc.com': 'lifevc', 'chunshuitang\\.com': 'chunshuitang', '\\.bookschina\\.com': 'bookschina', 'leyou\\.com\\.cn': 'leyou', '\\.yougou\\.com': 'yougou', 'amazon\\.co\\.uk': 'amazon_uk', 'gjw\\.com': 'gjw', 'lining\\.com': 'lining', '\\.s\\.cn': 'scn', 'hisense\\.com': 'hisense', '\\.china-pub\\.com': 'chinapub', 'jumeiglobal\\.com': 'jumei', '\\.(xiao)?mi\\.com': 'mi', '\\.sephora\\.cn': 'sephora', 'jinxiang.com': 'jxdyf', 'purcotton.com': 'purcotton', 'wstx.com': 'wstx', 'zhongjiu.cn': 'zhongjiu', 'www.kaluli.com': 'kaluli', 'mall.to8to.com': 'to8to', 'www.opposhop.cn': 'opposhop', 'baobeigezi.com': 'baobeigezi', 'www.markmall.com': 'markmall', 'happigo\\.com': 'happigo', 'aolaigo\\.com': 'aolaigo', 'skg\\.com': 'skg', 'coolpad\\.com': 'coolpad', 'dixintong\\.com': 'dixintong', 'vivo\\.com\\.cn': 'vivo', 'luolai\\.cn': 'luolai', 'aomygod\\.com': 'aomygod', 'suanjuzi\\.com': 'suanjuzi', 'gionee\\.com': 'gionee', 'yao123\\.com': 'yao123', 'tuhu\\.cn': 'tuhu', 'walmart\\.com': 'walmart', 'vsigo\\.cn': 'vsigo', 'lookfantastic\\.com': 'lookfantastic', 'ashford\\.com': 'ashford', 'shopbop\\.com': 'shopbop', '6pm\\.com': '6pm', 'amazon\\.fr': 'amazon_fr', 'suning\\.com': 'suning', 'gome.com.cn': 'gome', 's\\.taobao\\.com': 'taobao', 'list\\.tmall\\.com': 'tmall', 'yhd.com': 'yihaodian', 'xiaomiyoupin\\.com': 'youpin-mi', '\\.yangkeduo\\.com': 'yangkeduo' }; var siteIdHash = { "amazon": 1, "dangdang": 2, "360buy": 3, "zol": 4, "fglady": 5, "ouku": 6, "newegg": 7, "kimiss": 8, "redbaby": 9, "m18": 10, "sephora": 12, "lefeng": 13, "scn": 14, "51buy": 15, "menglu": 16, "moonbasa": 17, "keede": 18, "vancl": 19, "okbuy": 21, "letao": 22, "buy007": 23, "taoxie": 24, "suning": 25, "coo8": 26, "lusen": 27, "gome": 28, 'dazhongdianqi': 29, "yihaodian": 31, "womai": 32, "leyou": 33, "shopin": 34, "xiu": 35, "mbaobao": 36, "vjia": 37, '7cv': 38, "youpin-mi": 39, "chunshuitang": 40, "x": 41, "guopi": 42, "no5": 43, 'sasa': 45, "360kxr": 50, "m6go": 51, "likeface": 52, "morefood": 54, "yaofang": 56, "99read": 59, "chinapub": 60, "bookschina": 61, "winxuan": 62, "efeihu": 63, "yintai": 66, "happigo": 72, "gap": 73, '5lux': 75, "tmall": 83, "tiantian": 84, "xijie": 85, "jumei": 86, "yougou": 93, "111": 94, 'jianke': 97, "muyingzhijia": 98, "lingshi": 99, "banggo": 100, "yesmywine": 101, "jiumei": 102, "jiuxian": 103, "gjw": 108, "okhqb": 109, "bookuu": 110, "tao3c": 111, "d1": 115, "rayi": 120, "paixie": 122, "taobao": 123, "homevv": 124, "jxdyf": 125, "sfbest": 126, "benlai": 127, "tootoo": 128, "tuotuo": 128, "vip": 129, "vmall": 134, "lenovo": 135, 'apple': 136, "zm7": 138, "miqi": 139, "zhiwo": 140, "j1": 141, 'wangjiu': 142, 'lamiu': 146, 'aimer': 147, "wbiao": 153, 'handu': 154, "ehaier": 155, "secoo": 156, 'camel': 157, 'masamaso': 158, 'zhen': 162, 'xifuquan': 164, "mi": 167, 'lemall': 168, "meituan": 172, 'ctrip': 173, "yiguo": 174, "yummy77": 175, "fruitday": 178, "feiniu": 180, "feifei": 181, 'zuipin': 182, 'yohobuy': 184, 'lvmama': 185, 'bestkeep': 188, 'mf910': 194, 'markmall': 194, "miyabaobei": 195, 'ule': 196, 'minshengec': 197, 'wangfujing': 198, 'nuomi': 199, "meilele": 201, "mogujie": 203, 'elong': 206, "supumall": 210, 'ly': 211, 'lining': 213, 'springtour': 215, 'haierjingshui': 217, "coocaa": 218, 'lifevc': 220, 'kzj365': 222, "kaola": 223, "ymatou": 224, "metao": 225, 'kjt': 226, "logitech": 227, 'amazon_us': 228, 'amazon_jp': 229, "xiji": 232, 'nike': 233, '360kad': 234, 'lbxcn': 235, 'meici': 236, 'beibei': 237, '6pm': 238, 'shopbop': 241, 'amazon_de': 246, 'ashford': 247, 'lookfantastic': 248, 'vsigo': 252, '100yue': 256, 'amazon_uk': 266, "daling": 267, "fengqu": 268, 'mei': 269, 'showjoy': 270, 'ocj': 271, 'sundan': 272, 'easeeyes': 273, 'yunhou': 274, 'haituncun': 275, 'walmart': 276, 'vmei': 277, 'jgb': 278, '51din': 279, 'aidai': 280, 'boqii': 281, 'toursforfun': 282, 'lulutrip': 283, 'spider': 284, 'jiae': 286, 'zazhipu': 287, 'xgdq': 288, 'xtep': 289, 'midea': 290, 'staples': 291, 'efotile': 292, 'lovo': 294, 'hua': 295, 'zhe800': 296, 'tuhu': 299, 'taqu': 313, 'bl': 347, 'bestinfoods': 348, 'you163': 349, 'guojimami': 351, 'baiyangwang': 352, 'juanpi': 360, 'purcotton': 364, 'amazon_fr': 365, 'amazon_ca': 366, 'wstx': 367, 'hisense': 368, 'zhongjiu': 369, 'yangkeduo': 370, 'to8to': 371, 'opposhop': 372, 'baobeigezi': 373, 'yao123': 374, 'gionee': 376, 'suanjuzi': 377, 'aomygod': 378, 'luolai': 379, 'vivo': 380, 'dixintong': 381, 'coolpad': 382, 'skg': 383, 'aolaigo': 385 }; var siteName = { 0: "购物党", 1: "亚马逊", 2: "当当网", 3: "京东商城", 4: "中关村在线", 5: "风尚伊人网", 6: "欧酷网", 7: "新蛋中国", 8: "闺蜜网", 9: "红孩子", 10: "麦网", 11: "唯伊商城", 12: "丝芙兰", 13: "乐蜂网", 14: "名鞋库", 15: "易迅网", 16: "梦露时尚网", 17: "梦芭莎", 18: "可得眼镜网", 19: "凡客诚品", 20: "淘秀-百丽鞋业", 21: "好乐买", 22: "乐淘", 23: "奥讯运动商城", 24: "淘鞋网", 25: "苏宁易购", 26: "库巴网(国美)", 27: "绿森数码", 28: "国美在线", 29: "大中电器", 30: "国美体育", 31: "一号店", 32: "中粮我买网", 33: "乐友孕婴童", 34: "上品折扣", 35: "走秀网", 36: "麦包包", 37: "V+(凡客)", 38: "七彩谷", 39: "小米有品", 40: "春水堂", 41: "桔色成人", 42: "果皮网", 43: "No5时尚广场", 44: "IDSHE.COM", 45: "香港莎莎", 46: "DHC中国", 47: "烧包网", 48: "日全食", 49: "第九大道", 50: "开心人大药房", 51: "麦乐购", 52: "悦美丽", 53: "抢鲜网", 54: "猫诚食品", 55: "耀点100百货商城", 56: "药房网", 57: "中关村在线商城", 58: "丽家宝贝", 59: "99网上书城", 60: "互动出版网", 61: "中国图书网", 62: "文轩网", 63: "飞虎乐购", 65: "致美网(SkinStore China)", 66: "银泰百货", 67: "趣玩", 68: "UrCosme", 69: "草莓网", 70: "露倩网", 71: "酷运动", 72: "快乐购", 73: "GAP中国", 74: "妙乐乐母婴用品商城", 75: "第五大道奢侈品网", 76: "小主人网", 77: "宜家家居官网", 78: "新七天电器网", 79: "达芙妮官网", 80: "太平洋亲子网", 81: "太平洋家居网", 82: "缤购网(红孩子)", 83: "天猫", 84: "天天网", 85: "西街运动网", 86: "聚美优品", 87: "小熊在线商城", 88: "草莓派化妆品商城", 89: "大货栈网上超市", 90: "名品打折", 91: "活力达保健品网", 92: "12点零食", 93: "优购网", 94: "1药网", 95: "导药网(上海复美大药房)", 96: "烟悦网", 97: "健客网", 98: "母婴之家", 99: "中国零食网", 100: "邦购网", 101: "也买酒", 102: "酒美网", 103: "酒仙网", 104: "惠健康商城", 105: "工贸家电", 106: "后玛特网上超市", 107: "虎扑识货", 108: "购酒网", 109: "华强北商城", 110: "博库书城", 111: "高鸿商城", 112: "西单igo5", 113: "新世界百货", 114: "汉光百货", 115: "D1优尚", 116: "易斯来福", 117: "优悦生活", 118: "插座网", 119: "ORBIS中国", 120: "锐意网", 121: "优1宝贝", 122: "拍鞋网", 123: "淘宝网", 124: "为为网", 125: "金象网", 126: "顺丰优选", 127: "本来生活", 128: "沱沱工社", 129: "唯品会", 130: "聚尚网", 131: "俏物悄语", 132: "天品网", 134: "华为商城", 135: "联想商城", 136: "苹果官网", 138: "卓美网", 139: "米奇网", 140: "知我药妆", 141: "健一网", 142: "网酒网", 143: "比度克", 144: "裂帛服饰", 145: "ESPRIT中文官网", 146: "兰缪内衣", 147: "爱慕官网", 148: "卡当网", 149: "丽子美妆", 150: "麦德龙", 151: "PBA美妆", 152: "尚品网", 153: "万表网", 154: "韩都衣舍", 155: "海尔商城", 156: "寺库网", 157: "骆驼官方商城", 158: "玛萨玛索", 159: "NOP男装", 160: "牛尔官网", 161: "高街网", 162: "珍品网", 163: "斯波帝卡", 164: "皙肤泉", 165: "米粒儿", 167: "小米商城", 168: "乐视商城", 169: "多看阅读", 170: "QQ网购", 171: "大众点评", 172: "美团", 173: "携程网", 174: "易果网", 175: "美味七七", 178: "天天果园", 179: "聚美海外购", 180: "飞牛网", 181: "飞飞商城", 182: "醉品商城", 183: "贝备网", 184: "有货", 185: "驴妈妈旅游网", 186: "青芒果", 187: "优彩网", 188: "跨境淘", 189: "包包树", 190: "满座网", 191: "一城一品", 192: "中国足彩网", 193: "发彩网", 194: "马克华菲", 195: "蜜芽", 196: "邮乐网", 197: "民生商城", 198: "王府井网上商城", 199: "百度糯米", 200: "去哪儿网", 201: "美乐乐", 202: "美丽说", 203: "蘑菇街", 204: "窝窝团", 205: "锦江之星", 206: "艺龙旅行网", 207: "布丁酒店", 208: "芒果网", 209: "500彩票网", 210: "速普商城", 211: "同程网", 213: "李宁官方商城", 214: "新东方在线", 215: "春秋旅游", 216: "永乐票务", 217: "海尔净水商城", 218: "酷开商城", 219: "魅族在线商店", 220: "LifeVC", 221: "努比亚官网", 222: "康之家网上药店", 223: "考拉海购", 224: "洋码头", 225: "蜜淘", 226: "跨境通", 227: "罗技官网", 228: "亚马逊美国", 229: "亚马逊日本", 230: "eBay", 231: "AliExpress", 232: "西集网", 233: "Nike", 234: "康爱多网上药店", 235: "老百姓网上药店", 236: "美西时尚", 237: "贝贝网", 238: "6PM", 239: "GNC美国官网", 240: "MYHABIT", 241: "SHOPBOP", 242: "Walgreens", 243: "STP", 244: "美国新蛋", 245: "Jomashop", 246: "亚马逊德国", 247: "Ashford", 248: "LookFantastic", 249: "REI", 250: "iHerb", 251: "Carter's", 252: "视客眼镜网", 253: "END.", 254: "CampSaver", 255: "乐天国际", 256: "百悦网", 257: "Woot", 258: "海淘城", 259: "Joe's NB Outlet", 260: "FinishLine", 261: "Vitacost", 262: "Groupon", 263: "Macy's", 264: "Moosejaw", 265: "GILT", 266: "亚马逊英国", 267: "达令", 268: "丰趣海淘", 269: "魅力惠", 270: "尚妆网", 271: "东方CJ", 272: "顺电网上商城", 273: "易视网", 274: "云猴网", 275: "海豚村", 276: "Walmart", 277: "唯美美妆", 278: "金箍棒海外购", 279: "我要订", 280: "爱戴网", 281: "波奇宠物商城", 282: "途风网", 283: "路路行", 284: "蜘蛛网", 285: "微软中国", 286: "加意新品", 287: "杂志铺", 288: "小狗电器", 289: "特步官方商城", 290: "美的商城", 291: "史泰博", 292: "方太商城", 293: "贝思客", 294: "LOVO家纺", 295: "中国鲜花礼品网", 296: "折800", 297: "暴风TV", 298: "途家网", 299: "途虎养车网", 300: "HTC官方商城", 301: "roseonly官网", 302: "融360", 303: "你我贷", 304: "Cosme Shopping", 305: "Diapers", 306: "Windeln.de", 307: "Babyneo.de", 308: "Escentual", 309: "TheWatchery", 310: "Saks Fifth Avenue", 311: "Estee Lauder", 312: "Bic Camera", 313: "他趣", 314: "穷游网", 315: "澳新优选", 316: "无印良品", 317: "Gmarket", 318: "11号街", 319: "Smartbargains", 320: "雅虎日本商城", 321: "布鲁明戴尔", 322: "Mikihouse", 323: "ToysRUs日本官网", 324: "ComfortFirst", 325: "金宝贝", 326: "Albee Baby", 327: "Babymarkt", 328: "UGG官网", 329: "Neiman Marcus", 330: "Shoebuy", 331: "Szul", 332: "Timex", 333: "Kay Jewelers", 334: "eWatches", 335: "Swarovski美国官网", 336: "World of Watches", 337: "Daniel Wellington", 338: "Beauty Bay", 339: "Beauty.com", 340: "Beauty Bar", 341: "SkinStore", 342: "兰芝韩国官网", 343: "BOSE美国官网", 344: "Best Buy", 345: "B&H", 346: "索尼日本官网", 347: "百联", 348: "源品优购", 349: "网易严选", 350: "锦江国际", 351: "国际妈咪", 352: "百洋商城", 353: "遨游网", 354: "Roy Young中文官网", 355: "Mediheal中文官网", 356: "1001 pharmacies中文官网", 357: "Lookfantastic中文官网", 359: "开心保保险网", 360: "卷皮网", 361: "Booking.com", 362: "澳洲PO药房中文官网", 363: "德国BA保镖药房中文网", 364: "全棉时代", 365: "亚马逊法国", 366: "亚马逊加拿大", 367: "外设天下", 368: "海信商城", 369: "中酒网", 370: "拼多多", 371: "土巴兔家居商城", 372: "OPPO在线商城", 373: "宝贝格子", 374: "国药网", 375: "百程旅行网", 376: "金立手机官网", 377: "酸橘子", 378: "奥买家全球购", 379: "罗莱官方商城", 380: "VIVO官方商城", 381: "迪信通官方商城", 382: "酷派商城", 383: "SKG官网", 384: "爱奇艺", 385: "奥莱购", 386: "每日优鲜", 387: "圃神跨境", 388: "Feelunique中文网", 389: "Chemist Direct中文网", 390: "Net Pharmacy中文网", 391: "Pharmacy 4 Less中文网", 392: "Pharmacy Direct中文网", 393: "Amcal中文网", 394: "La Redoute中文网", 395: "德国UKA优卡有机中文网", 396: "Erwin Mueller穆勒家居中文网", 397: "Kiwi Discovery中文网", 398: "Springlane中文网", 399: "德国JAKO-O婴童用品中文网", 400: "EasyToys中文站", 401: "英国TLC中文网", 402: "法国BM彼洋美食", 403: "Dewaren德国狮子家中文网", 404: "DC德式康线上药房中文官网", 405: "荷兰之家中文站", 406: "鱿鱼网", 407: "KiwiStarcare官网", 408: "ZUK联想手机商城", 409: "Kiehl's美国官网", 410: "Zappos", 411: "COACH蔻驰中国官网", 412: "YOOX中文官网", 413: "韩国11街中文官网", 414: "英超海淘", 415: "HQhair.com", 416: "Kate Spade", 417: "Vitafy中文官网", 418: "乐天网购", 419: "家乐福网上商城", 420: "茶七网", 421: "普泽大药房", 422: "Kohl's", 423: "Body Building", 424: "Nordstrom", 425: "Costco", 426: "Target", 427: "Kmart", 428: "Overstock", 429: "Sears", 430: "老板电器官方商城", 431: "狗民网商城", 432: "飞科商城", 433: "欧普照明", 434: "世界婴童网", 435: "益丰大药房", 436: "好订网", 437: "爱回收", 438: "野兽派", 439: "九牧卫浴官方商城", 440: "七匹狼官方商城", 441: "链家", 442: "我爱我家", 443: "六间房秀场", 444: "八百方网上药店", 445: "优集品", 446: "买卖宝", 447: "优众网", 448: "爱康国宾健康商城", 449: "维也纳酒店官网", 450: "M'CAKE", 451: "美色商城", 452: "诺心蛋糕官网", 453: "简单学习网", 454: "精华在线", 455: "桃花坞", 456: "钻石小鸟官网", 457: "康美健康商城", 458: "佐卡伊官网", 459: "淘书网", 460: "爱之谷", 461: "铁友旅行网", 462: "莆田网", 463: "味多美官网", 464: "林清轩官网", 467: "美国购物网", 468: "品尚汇", 469: "柒牌官方商城", 470: "游多多客栈", 471: "1688平价精选", 472: "优个网", 473: "大朴网", 474: "薇诺娜官网", 475: "蔚蓝图书网", 476: "山脉户外", 477: "何金昌官网", 478: "买茶网", 479: "优e网", 480: "51YOU旅游网", 481: "北发图书网", 482: "晶品网", 483: "华佗药房", 484: "威锋商城", 485: "诺一良品", 486: "和茶网", 487: "天时汇官网", 488: "趣网商城", 489: "蜜柚旅行", 490: "好药师网上药店", 491: "IDX爱定客", 492: "优雅100", 493: "S&S女装", 494: "倩碧美国官网", 495: "华夏e当", 496: "Brooks Brothers", 497: "欧美淘", 498: "印通天下", 499: "哥伦比亚美国官网", 500: "BEST全球购", 501: "New Balance美国官网", 502: "万集客", 503: "Bally英国官网", 504: "一嗨租车", 505: "嘉利成", 506: "多庆屋中文官网", 507: "Forever 21", 508: "摩登大道", 509: "木鸟短租", 510: "最会游", 511: "中原地产", 512: "Bobbi Brown美国官网", 513: "Super-in", 514: "汉购网", 515: "Levis德国官网", 516: "斐乐FILA官方商城", 517: "匡威中国官方商城", 518: "Next美国官网", 519: "iTrip爱去旅行网", 520: "拉手网", 521: "六丰商城", 522: "同仁堂天然淘", 523: "我订花", 524: "Foodi", 525: "中国森林食品网", 526: "香港卓悦化妆品", 527: "维他购", 528: "金海马商城", 529: "亮健好药房", 530: "唱吧直播间", 531: "Oakley美国官网", 532: "逸行网", 533: "Clarks美国官网", 534: "Starwood Hotels", 535: "Marriott万豪美国官网", 536: "Yes Style", 537: "Evisu中文官网", 538: "Life's Easy", 539: "宠宠熊官方商城", 540: "0061澳洲制造", 541: "KK馆全球购", 542: "Style O'Clock", 543: "配夸全球购", 544: "Air France", 545: "Accor Hotels中文官网", 546: "Space.NK", 547: "嗨厨房", 548: "W Concept", 549: "GANT英国官网", 550: "CAT Footwear英国官网", 551: "Saucony英国官网", 552: "造作家居", 553: "小天鹅官方商城", 554: "CAN看尚商城", 555: "时尚日记", 556: "Guess澳大利亚官网", 557: "Etihad Airways", 558: "FIIL商城", 559: "免税易购", 560: "特购社", 561: "Wiggle中文官网", 562: "Melissa香港官网", 563: "科沃斯官方商城", 564: "Calvin Klein", 565: "MEMEBOX美美箱", 566: "Hilton美国官网", 567: "Revolve Clothing", 568: "资生堂美国官网", 569: "娇韵诗美国官网", 570: "Starbucks美国官网", 571: "Ray-Ban美国官网", 572: "Puma美国官网", 573: "Nautica美国官网", 574: "La Mer美国官网", 575: "Kipling美国官网", 576: "Jurlique美国官网", 577: "Hush Puppies", 578: "Origins美国官网", 579: "Folli Follie美国官网", 580: "L'Occitane美国官网", 581: "麦田", 582: "惠普官方商城", 583: "国大地产", 584: "首家商城", 585: "青岛Q房网", 586: "广州家家顺房产网", 587: "杭州豪世华邦房产网", 588: "HealthPost", 589: "房天下", 590: "梦想书城", 591: "海优世纪馆", 592: "扫货特卖", 593: "热拍网", 594: "蚂蚁短租", 595: "银票网", 596: "爱虎保", 597: "Incake官网", 598: "聚星直播", 599: "艺网", 600: "康辉旅行网", 601: "安适购海外商城", 602: "霹雳爸爸海淘平台", 603: "小牛在线", 604: "AHAVA", 605: "Fifth", 606: "The Watch Hut", 607: "BabyHaven中文网", 608: "玫丽网", 609: "Get The Label 中文网", 610: "松屋百货中文网", 611: "Timberland", 612: "Topman", 613: "HomeAway", 614: "Beauty Expert", 615: "海蜜严选", 616: "Mankind", 617: "The Hut", 618: "Topshop", 619: "Mamaladen", 620: "Traveler store", 621: "Travelzoo", 622: "UMI Children's Shoes", 623: "新秀丽美国官网", 624: "Ferrari Store", 625: "Willer Travel", 626: "Unineed", 627: "Acne Studios中文网", 628: "Aeropostale", 629: "Agoda中文站", 630: "Alba Moda", 631: "Allbeauty", 632: "AllSaints", 633: "Allsole", 634: "Urban Outfitters", 635: "Vitabiotics", 636: "Belle Maison", 637: "贝玲妃美国官网", 638: "BH Cosmetics", 639: "美莱新青年", 640: "Vitamin Bay", 641: "Waitrose", 642: "Wolford", 643: "Boohoo", 644: "Boots.com", 645: "British Corner Shop", 646: "宜人贷", 647: "萤石商城", 648: "Coggles.com", 649: "Corset Deal", 650: "COTTON ON", 651: "Crocs英国官网", 652: "CRUISE", 653: "Dell美国官网", 654: "Dermstore", 655: "Disney Store", 656: "Dorothy Perkins", 657: "痘痘康官方商城", 658: "度假客", 659: "Dune London", 660: "Eastbay", 661: "East Dane中文网", 662: "Zaful", 663: "Zavvi", 664: "Feinkeit.de", 665: "eibmarkt", 666: "Belluna中文网", 667: "Emirates阿联酋航", 668: "Eastern Mountain Sports", 669: "ETERNA", 670: "Eurail", 671: "Exante Diet", 672: "Expedia UK", 673: "FALKE", 674: "Famous Footwear", 675: "Bonpont", 676: "Foreo", 677: "网信", 678: "Forever Unique", 679: "Forzieri", 680: "Free Country", 681: "CERRUTI 1881", 682: "French Connection", 683: "Gift land", 684: "Cult Beauty", 685: "Fancy", 686: "Kent&Curwen", 687: "Grow Gorgeous中文网", 688: "KoreanMall中文站", 689: "STYLEBOP.com", 690: "HOTEL INFO", 691: "House of Fraser", 692: "惠租车", 693: "Vitamin Planet", 694: "Wow Mall", 695: "IWOOT", 696: "讲究商城", 697: "YA-MAN", 698: "海保保险", 699: "Juicy Couture", 700: "Kenko", 701: "The jewel hut", 702: "KIKO美国官网", 703: "Lancer Skincare", 704: "LEGO shop", 705: "Moss Bros", 706: "Lord & Taylor", 707: "Stylenanda中文网", 708: "人卫智网", 709: "有道翻译", 710: "Filthy Fragrance", 711: "麦知网", 712: "MatchesFashion", 713: "松本清", 714: "移动商街", 715: "Microsoft Store", 716: "Mio Skincare中文站", 717: "Miss Selfridge", 718: "Mountain Gear", 719: "360好药", 720: "My Bag", 721: "Myprotein", 722: "美骑易购商城", 723: "Myvitamins", 724: "NET-A-PORTER中文网", 725: "New Balance英国官网", 726: "叮当快药", 727: "New Look", 728: "中华会计网校", 729: "必迈官网", 730: "耐克香港官网", 731: "耐克巴西官网", 732: "映客直播", 733: "New York & Company", 734: "Oasis英国官网", 735: "Orbitz", 736: "Orchira", 737: "Origins英国官网", 738: "PetSmart", 739: "君融贷", 740: "哪拍网", 741: "格力官方商城", 742: "ProBikeKit", 743: "Qatar Airways卡塔尔航空", 744: "Radley英国官网", 745: "安联保险", 746: "Ralph Lauren", 747: "Rebecca Minkoff", 748: "优米网", 749: "21Cake", 750: "Rentalcar", 751: "Dr. Pierre Ricaud", 752: "Rockport", 753: "Ruelala", 754: "56人旅游网", 755: "Saks Fifth Avenue OFF 5TH", 756: "安纳塔拉", 757: "SC24.com", 758: "车速递租车", 759: "SHOES.COM", 760: "Spring", 761: "Simply Supplements", 762: "宜和购物", 763: "Farfetch中文网", 764: "Ssense", 765: "Steve Madden", 766: "Free People中文网", 767: "高搜易", 768: "iMomoko中文网", 769: "淘豆", 770: "Michael Kors中文网", 771: "三佳购物", 772: "联金所", 773: "宅豆网", 774: "网易云", 775: "德国药房apo.com中文网", 776: "读秒", 777: "好享商城", 778: "西狗全球购", 779: "玩哪网", 780: "紫马财行", 781: "金猫银猫", 782: "跨境网", 783: "Millennium&Copthorne Hotels中文网", 784: "Reebonz", 785: "薇美铺", 786: "五洲会海购", 787: "惠家有", 788: "Meli Melo中文网", 789: "小财迷", 790: "Ashford中文网", 791: "韩国CJONmart中文网", 792: "益钱网", 793: "THE GRAND中文免税店", 794: "欧迪办公", 795: "天虹网上商城", 796: "以岭健康城", 797: "客路旅行", 1001: "亚马逊第三方", 1003: "京东手机端", 1015: "易迅北京", 1025: "苏宁北京", 1031: "一号店上海", 1032: "中粮我买网华东", 1124: "为为网北京", 1126: "顺丰上海", 2003: "京东微信端", 2015: "易迅广东", 2025: "苏宁广州", 2031: "一号店广东", 2032: "中粮我买华南", 2126: "顺丰广州", 3015: "易迅湖北", 3025: "苏宁成都", 3031: "一号店湖北", 4031: "一号店四川" }; module.exports.getSiteId = function (site) { return siteIdHash[site]; }; module.exports.getSiteName = function (site, siteId) { if (!siteId) siteId = siteIdHash[site]; return siteName[siteId]; }; var passLinks = function passLinks(site, callback) { var pagerParser = __webpack_require__(230); var id = -1; if (!(id = siteIdHash[site]) || !pagerParser[id]) { return; } var links = pagerParser[id](document); if (!links) { return; } // var sendMessage = function() { // var queue = pyDomain[site] ? 0 : 1 //0: need python // //if (links.length) { // chrome.runtime.sendMessage({ // action: 'pager', // links: Array.prototype.slice.call(links), // args: [ // [id] // ], // url: document.URL, // queue: queue // }) // //} // } if (links.wait) { setTimeout(function () { links = Array.prototype.slice.call(document._links); callback(id, links); }, 5500); } else { callback(id, links); } }; module.exports.init = function (callback) { //$(function() { //document.addEventListener("DOMContentLoaded", function() { for (var key in domains) { if (document.location.hostname.match(key)) { passLinks(domains[key], callback); break; } } //}, false) //}) }; /***/ }), /* 18 */, /* 19 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) { var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; var request = __webpack_require__(2); var md5 = __webpack_require__(243); var host = 'i.gwdang.com'; var userData = __webpack_require__(6); var communicate = __webpack_require__(13); var test = { code: 1 }; var getUserToken = function getUserToken() { var resolved = false; return new Promise(function (resolve) { communicate.trigger({ type: 'checkUserToken' }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'checkUserToken') { resolved = true; resolve(data.value); } }); }); }; var signParams = function signParams(params) { var query = Object.keys(params).sort(function (a, b) { return a.localeCompare(b); }).map(function (x) { return x + params[x]; }).join(''); var res = md5(md5(query) + params.ac); return res; }; var post = function post(url, params, data) { params.platform = 'ext'; params.t = parseInt(new Date().getTime() / 1000); var toSign = _extends({}, params, data, { ac: url.toLowerCase().replace('/', '').replace(/\//g, '.') }); params.sign = signParams(toSign); console.log('sign', params.sign); var query = Object.keys(params).map(function (x) { return x + '=' + encodeURIComponent(params[x]); }).join('&'); return request.post('https://' + host + url + '?' + query, data, true, true); }; function requestXHR(url, callback, referer) { var xmlhttp = new XMLHttpRequest(); xmlhttp.addEventListener('load', function () { callback(xmlhttp.responseText); }); xmlhttp.withCredentials = true; xmlhttp.open("GET", url, true); // if (referer) { // xmlhttp.setRequestHeader('x-referer', referer) // } xmlhttp.send(); }; var get = function get(url, params) { params.platform = 'ext'; if (!params.t) { params.t = parseInt(new Date().getTime() / 1000); } // let cb = 'cb' + parseInt(Math.random() * 10000) // if (!G.allowBackgroundRequest) { // params.callback = cb // } params.sign = signParams(_extends({}, params, { ac: url.toLowerCase().replace('/', '').replace(/\//g, '.') })); var query = Object.keys(params).map(function (x) { return x + '=' + encodeURIComponent(params[x]); }).join('&'); if (G.allowBackgroundRequest && G.canUseLocalLoginCheck) { return request.rawGet('https://' + host + url + '?' + query); } else { return new Promise(function (resolve) { var cancel = true; requestXHR('https://' + host + url + '?' + query, function (res) { cancel = false; try { var r = JSON.parse(res); resolve(r); } catch (e) { resolve(res); } }); setTimeout(function () { if (cancel) { resolve({ code: 0 }); } }, 4000); // $.get(`https://${host}${url}?${query}`).then(res => { // try { // let r = JSON.parse(res) // resolve(r) // } catch (e) { // resolve(res) // } // }) // $.ajax({ // url: `https://${host}${url}?${query}`, // dataType: 'jsonp', // jsonp: '', // jsonpCallback: cb, // success: function(data){ // resolve(data) // } // }); }); } }; var getQueryString = function getQueryString(url, params) { params.platform = 'ext'; params.t = parseInt(new Date().getTime() / 1000); params.sign = signParams(_extends({}, params, { ac: url.toLowerCase().replace('/', '').replace(/\//g, '.') })); var query = Object.keys(params).map(function (x) { return x + '=' + encodeURIComponent(params[x]); }).join('&'); return 'https://' + host + url + '?' + query; }; var current = null; var currentCollectId = null; var getDetail = function getDetail(dp_id) { return new Promise(function (resolve, reject) { if (!G.productChecked || !G.productChecked.collected) { resolve({}); return; } if (current) { resolve(current); } else { get('/UserCollection/Detail', { dp_id: dp_id }).then(function (res) { try { if (typeof res === 'string') { res = JSON.parse(res); } current = res; resolve(res); } catch (e) { resolve({}); } }); } }); }; module.exports = { /** * 登录 * @param username * @param password * @param remember * @returns {*} */ login: function login(username, password, remember) { return post('/User/Login', {}, { account: username, passwd: password, remember_me: remember }); }, /** * 退出登录 */ logout: function logout() { return get('/User/Logout', {}); }, /** * 发送短信 * @param {string} phone - 电话号码 * @returns Promise */ sendSms: function sendSms(phone) { return post('/UserHelper/SmsCode', {}, { phone: phone, tag: 'login' }); }, /** * 检查某个商品是否被收藏 * @param dp_id * @returns {*} */ checked: function checked(dp_id) { var token; return regeneratorRuntime.async(function checked$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!G.canUseLocalLoginCheck) { context$1$0.next = 6; break; } context$1$0.next = 3; return regeneratorRuntime.awrap(getUserToken()); case 3: token = context$1$0.sent; if (token) { context$1$0.next = 6; break; } return context$1$0.abrupt('return', new Promise(function (resolve) { return resolve({ code: 0 }); })); case 6: return context$1$0.abrupt('return', get('/UserCollection/Checked', { dp_id: dp_id })); case 7: case 'end': return context$1$0.stop(); } }, null, this); }, /** * 收藏详情 * @param dp_id */ detail: function detail(dp_id) { return getDetail(dp_id); }, /** * 获取收藏列表 * @param tab * @param pg * @param ps * @returns {*} */ getList: function getList(tab, pg) { if (tab === undefined) tab = 'default'; var ps = arguments.length <= 2 || arguments[2] === undefined ? 30 : arguments[2]; return get('/UserCollection/List', { ps: ps, tab: tab }); }, /** * 添加商品收藏 * @param settingPrice * @param type * @returns {*} */ add: function add(settingPrice, type) { if (current && current.data) { return post('/UserCollection/Modify', {}, { collection_id: current.data.id, notifier_site: type, notifier_threshold: settingPrice }); } var price = G.dp.price; if (G.dp.storeInfo && G.dp.storeInfo.length) { if (G.dp.storeInfo[0].currency) { price = G.dp.oldPrice; } } var oinfo = userData.get('other_info'); if (!price) { if (oinfo && oinfo['code-server'] && oinfo['code-server']['price']) { price = oinfo['code-server']['price']; } } return new Promise(function (resolve) { post('/UserCollection/Add', {}, { dp_id: G.dp.dpId, title: G.dp.name ? G.dp.name : document.title, url: location.href, img: G.dp.img ? G.dp.img : '', price: price, promo_price: 0, notifier_site: type, notifier_threshold: settingPrice }).then(function (res) { if (typeof res === 'string') { res = JSON.parse(res); } if (res.data) { current = res; } resolve(res); }); }); }, /** * 删除商品收藏 * @param id * @returns {*} */ 'delete': function _delete() { var collectionId = arguments.length <= 0 || arguments[0] === undefined ? null : arguments[0]; var id = collectionId ? collectionId : current && current.data ? current.data.id : ''; return post('/UserCollection/Delete', {}, { collection_ids: id }); }, clearCurrent: function clearCurrent() { current = null; }, checkLoginStatus: function checkLoginStatus() { return post('/User/Detail', {}, {}); }, /** * 降价数量 * @param time */ checkFavor: function checkFavor(time) { return get('/UserCollection/Tip', { t: time / 1000 }); }, getQueryString: getQueryString }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(7))) /***/ }), /* 20 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function (obj) { if (G.from_device === '360' || G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if (G.from_device === 'bijiago' && G.ss_name !== 'priceDog' || G.cooperation) { obj.sitename = 'taobao'; } else { if (obj.source) { var url = obj.pureUrl || obj.url; url = url + (url.indexOf('?') > -1 ? '&' : '?') + 'source=' + obj.source; // if (!G.forbidCoupon) { // url = `${G.server}/extension/RedirectInTb?id=${obj.id}&format=&site=taobao` // } return url; } } } var source = ''; var site = obj.sitename || ''; if (obj.source) source = obj.source; if (true) return G.u_server + '/redirect/tao?id=' + obj.id + '&site=' + site + '&source=' + source + '&from_device=' + G.from_device; }; module.exports.buildCommon = function (data) { // 针对淘宝客接口tbres 返回的数据 没有优惠券的部分做链接转换。 if (!(data.tmall instanceof Array)) { for (var i = 0; i < data.tmall.product.length; i++) { var item = data.tmall.product[i]; var obj = { 'source': 'common', 'img_url': item.pic_url, 'title': item.title, 'price': item.price, 'shop_name': item.nick, 'sales': item.volume || '0', 'id': item.num_iid, 'url': item.url, 'discuss': item.comment_count || '0', 'istaobao': '0', 'pureUrl': "https://detail.tmall.com/item.htm?id=" + item.num_iid, 'dp_id': G.now_dp_id, 'site_id': G.site_id }; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if ((G.from_device === 'bijiago' || G.cooperation) && !G.forbidCoupon) { item.url = module.exports(obj); } else if (!G.forbidCoupon) { // item.url = `https://hb.fan-yong.com/tb/convert/?p=108607450089&u=${item.num_iid}&t=0` // item.url = `${G.server}/extension/RedirectInTb?id=${item.num_iid}&format=&site=taobao`; item.url = obj.pureUrl + '&source=common'; } else { item.url = obj.pureUrl + '&source=common'; } } else { item.url = module.exports(obj); } } } if (!(data.taobao instanceof Array)) { for (var i = 0; i < data.taobao.product.length; i++) { var item = data.taobao.product[i]; var obj = { 'source': 'common', 'img_url': item.pic_url, 'title': item.title, 'price': item.price, 'shop_name': '', 'sales': item.volume || '0', 'id': item.num_iid, 'url': item.url, 'discuss': item.comment_count || '0', 'istaobao': '1', 'pureUrl': "https://item.taobao.com/item.htm?id=" + item.num_iid, 'dp_id': G.now_dp_id, 'site_id': G.site_id }; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { if ((G.from_device === 'bijiago' || G.cooperation) && !G.forbidCoupon) { item.url = module.exports(obj); } else if (!G.forbidCoupon) { // item.url = `https://hb.fan-yong.com/tb/convert/?p=108607450089&u=${item.num_iid}&t=0` // item.url = `${G.server}/extension/RedirectInTb?id=${item.num_iid}&format=&site=taobao`; item.url = obj.pureUrl + '&source=common'; } else { item.url = obj.pureUrl + '&source=common'; } } else { item.url = module.exports(obj); } } } return data; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 21 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime, Vue) { var _this = this; var html = __webpack_require__(246); var template = __webpack_require__(5); var miniFavor = __webpack_require__(29); var request = __webpack_require__(2); var userData = __webpack_require__(6); var globalCondition = __webpack_require__(3); var globalFavor = {}; var isRender = undefined, firstRender = undefined; var QRrendered = undefined; var addLoginBeforeEvent = function addLoginBeforeEvent() { $('#login-remind p').css('color', '#E4393C'); }; var settingRemind = function settingRemind(type, email) { var setting_type = type; var setting_email = email || ''; var url = G.c_server + '/api/remind_setting?action=set&email=' + G.email + '&setting_type=' + setting_type + '&remind_email=' + setting_email; request.get(url); }; var addRemindEvent = function addRemindEvent() { var qrcodeShow = undefined; // $('#favor_box .bar-jiangjia-re .select-item').off('click', addLoginBeforeEvent) $('.remindHint').hide(); $('#favor_box .bar-jiangjia-re .select-item').on('click', function () { $(this).parent().parent().find('.select-item').removeClass('selected'); $(this).addClass('selected'); if ($(this).hasClass('qrcode-item')) { $('#remind_qrcode_img').show(); } else if ($(this).hasClass('email-item')) { $('#remind_qrcode_img').hide(); } }); $('#bar_subbtn').on('click', function () { var ischoosed = $('#favor_box').hasClass('favor_choosed'); var dom = $('#favor_box .jj-remind .select-item.selected'); var notify_site = dom.attr('data-type'); var price = dom.parent().find('input').val(); var hasDot = price.split('.').length > 1; if (!/^[\d\.]+$/.test(price) || price < 0 || hasDot && price.split('.')[1].length > 2 || isNaN(parseFloat(price))) { $('.error_remind').text('请输入正确格式的价格').show().fadeOut(2000); return; } if (price > allowedMinPrice) { $('.error_remind').text('价格不能高于当前商品价格').show().fadeOut(2000); return; } if (!price || price === '0' || price.match(/[a-zA-Z]/)) { $('.error_remind').text('请输入商品期望价格').show().fadeOut(2000); return; } if (!ischoosed) { var remind_email = undefined; var remind_type = $('#favor_box .jj-style .select-item.selected').attr('data-type'); if (remind_type === '1') { remind_email = $('#favor_box .jj-style .re-mail').val(); } settingRemind(remind_type, remind_email); $('#favor_box').addClass('favor_choosed'); $('#edit_remind_style, #remind_qrcode').show(); } /*notify_site => 0 全网 1 当前网站*/ // $(`#${G.extName}-trend-detail`).hide() $('#remind_qrcode_img').hide(); qrcodeShow = false; miniFavor.add_favor(notify_site, price); }); $('#remind_qrcode').on('click', function () { QRrendered = $('#remind_qrcode_img img').attr('src'); if (!qrcodeShow) { if (!QRrendered) { getQRcode(function () { $('#remind_qrcode_img').show(); qrcodeShow = true; }); } else { $('#remind_qrcode_img').show(); qrcodeShow = true; } } else { $('#remind_qrcode_img').hide(); qrcodeShow = false; } }); $('#edit_remind_style').on('click', function () { $('#favor_box').removeClass('favor_choosed'); $('#edit_remind_style').hide(); }); }; module.exports.loginRenderTop = function () { $('#login-remind').hide(); addRemindEvent(); }; var addEvent = function addEvent() { $('#login-remind .go_login_btn').on('click', function () { // $('#login-remind p').css('color', '#9b9b9b') // $('#login-remind').hide() // $('.login-content').show().animate({ // right: '0px' // }, 500) var url = encodeURIComponent(location.href); location.href = 'https://www.gwdang.com/user/login?ext=1&from_url=' + url; }); $('body').on('gwd-login-complete', function (e) { G.userLogin = true; addRemindEvent(); }); $('#loginClickBtnBar').on('click', function () { var userN = $('#barusername').val(); var psd = $('#barpassword').val(); if (userN && psd) { miniFavor.userLogin(userN, psd, function () { addRemindEvent(); }); } else { $('#login_remind_tle, #login_remind_tle_bar').css('display', 'block').fadeOut(5000); return; } }); $('#favor_box').on('mouseenter', function () { getQRcode(); }); $('#log_back_btn').on('click', function () { $('#login-remind').show(); $('.login-content').animate({ right: '-292px' }, 500, function () { $('.login-content').hide(); }); }); }; var getQRcode = function getQRcode(callback) { var force = arguments.length <= 1 || arguments[1] === undefined ? false : arguments[1]; var url; return regeneratorRuntime.async(function getQRcode$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('userLoginChecked')); case 2: if (!((QRrendered || !G.userLogin) && !force)) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: url = 'https://www.gwdang.com/collect/get_qrcode/'; if (G.qrApi && G.qrApi !== 'default') { url = G.qrApi; } request.rawGet(url, true).then(function (data) { QRrendered = true; $('#remind_qrcode_img img').attr('src', data.img_url); $('.qrcode-jj img').attr('src', data.img_url); $('.sk-qrcode img').attr('src', data.img_url); if (callback) { callback(); } $('#remind_qrcode').show(); }); case 7: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.getQRcode = getQRcode; var allowedMinPrice = 0; // 渲染登录下的降价提醒 var renderTop2 = function renderTop2(msg) { var oinfo = userData.get('other_info'); if (!oinfo) return; var dp_query = userData.get('dp_query'); var choosed = undefined, remind_type = undefined, lowestUrl = undefined; var now = oinfo.now; if (!now.dp_id && now.url_crc && now.site_id) { now.dp_id = now.url_crc + '-' + now.site_id; } if (!now.dp_id) return; var url = encodeURIComponent(location.href); var nowprice = G.dp.oldPrice || oinfo['code-server'] && oinfo['code-server'].price || G.dp.price; allowedMinPrice = nowprice; if (G.aliSite) nowprice = G.dp.price; var allprice = dp_query && dp_query.b2c.min_price || nowprice; nowprice = Number(nowprice.toString().replace(',', '')); allprice = Number(allprice.toString().replace(',', '')); if (dp_query && dp_query.b2c.product && dp_query.b2c.product.length !== 0) { lowestUrl = dp_query.b2c.product[0].url; } if (G.aliSite) { lowestUrl = 'javascript:'; } if (msg.has_remind_type) { choosed = true; } if (msg.is_collected) { globalFavor.is_collected = msg.is_collected; if (parseInt(msg.notify_site) === 1) nowprice = msg.remind_price;else allprice = msg.remind_price; } nowprice = nowprice || globalFavor['nowprice']; allprice = allprice || nowprice; globalFavor.notify_site = msg.notify_site; remind_type = msg.remind_type || '0'; var imgHost = G.imgHost; if (G.from_device === 'firefox') { imgHost = G.localImg; } var riyuan = ""; if (location.host === 'www.amazon.co.jp') { riyuan = "日元"; } var views = template.compile(html)({ choosed: choosed, islogin: true, email: '', emailvalue: '', url: url, aliSite: G.aliSite, imgHost: imgHost, lowestUrl: lowestUrl, notify_site: globalFavor.notify_site, nowprice: nowprice, allprice: allprice, remind_type: remind_type, extName: G.extName, money: globalFavor['money'], riyuan: riyuan, lastprice: Number(globalFavor['nowprice']).toFixed(2), price_range: globalFavor['price_range'] }); if (globalFavor.notify_site === undefined) { setTimeout(function () { $('.remind-item-snd .select-item').addClass('selected'); }, 1000); } $('#favor_box').remove(); $(globalFavor['dom']).append(views); addRemindEvent(); }; var renderTop = function renderTop(dom, money) { $('#favor_box').remove(); var lowestUrl = undefined; var allprice = G.dp.oldPrice || G.dp.price; var dp_query = G.save_dp_query; if (dp_query && dp_query.b2c.product) { lowestUrl = dp_query.b2c.product[0].url; } var imgHost = G.imgHost; if (G.from_device === 'firefox') { imgHost = G.localImg; } var riyuan = ""; if (location.host === 'www.amazon.co.jp') { riyuan = "日元"; } var url = encodeURIComponent(location.href); var view = template.compile(html)({ email: G.email, emailvalue: '', lowestUrl: lowestUrl, notify_site: '0', nowprice: globalFavor['nowprice'], allprice: allprice, remind_type: '0', url: url, imgHost: imgHost, extName: G.extName, money: money, riyuan: riyuan, aliSite: G.aliSite, lastprice: Number(globalFavor['nowprice']).toFixed(2), price_range: globalFavor['price_range'] }); $(dom).append(view); var CommonLogin = __webpack_require__(35)['default']; new Vue({ el: '#gwd-login-remind', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-remind', showAlterLogin: true, alterLoginPosition: 'row' } }); } }); $('#favor_box .bar-jiangjia-re .select-item').on('click', addLoginBeforeEvent); }; var renderAgain = function renderAgain() { if (!firstRender) return; //if (isRender) return; isRender = true; $('#favor_box').remove(); // 加载之前需要获取到提醒方式 __webpack_require__(29).getRemindStyle(renderTop2); }; module.exports.init = function (dom, money, info) { firstRender = true; if (!info.store) { return; } globalFavor['nowprice'] = Number(info['store'][0].current_price); var price_ranges = info['store'][0].price_range.split('-'); globalFavor['price_range'] = Number(price_ranges[0]).toFixed(2) + ' ~ ' + Number(price_ranges[1]).toFixed(2); globalFavor['dom'] = dom; globalFavor['money'] = money; if (G.userLogin) { // 如果已经登录,让用户触发加载,因为需要请求网站接口 $(document).on('renderAgain', function () { renderAgain(); }); } else { // if ($('#favor_box').length) { // renderAgain() // } else { // renderTop(dom, money) // } renderTop(dom, money); } addEvent(); }; module.exports.renderAgain = renderAgain; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0), __webpack_require__(7), __webpack_require__(15)["default"])) /***/ }), /* 22 */, /* 23 */, /* 24 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var href=window.location.href;var host=window.location.host;var pageInfo; //检查是否在此页面出现小工具栏 module.exports.isAvailablePage = function(){for(var pattern in sitePattern) {if(host.match(new RegExp(pattern,'i'))){return sitePattern[pattern];}}return false;}; //检查是否在此页面出现比价 module.exports.isProductPage = function(url){url = url || href;if(url.indexOf('oneplus.com/cn/store') > -1){return false;}if(G.from_device === 'bijiago' && location.href.indexOf('https://pcsitepp-fm.jd.com/') > -1){return '360buy';}for(var pattern in productPattern) {var matchs=url.match(new RegExp(pattern,'i'));if(matchs){ //if (url.match(new RegExp(pattern))) { var site=productPattern[pattern];if(site === "amazon" && location.host !== "www.amazon.cn" && matchs[1]){var m=matchs[1];if(m.indexOf('.') > -1)m = m.split('.')[1];m = 'amazon-' + m;return m;}return productPattern[pattern];}}return false;};var page404=function page404(site){var page;switch(site){default:if($('#content h2').text().indexOf('您查看的商品找不到了') > -1)page = true;break;}return page;}; //检查是否屏蔽此域名 module.exports.isInBanList = function(){if(G.dcmExt)return false;if(!G.iframe){var no_url=href.match(/[&\?]no_url/);if(!no_url && (self.location != top.location || self.frameElement && self.frameElement.tagName == "IFRAME" || window.top != window.self)){return true;}}var main_url=href;if(location.href.indexOf('?') > 0){main_url = href.substr(0,href.indexOf('?'));} // kaluli网站 if(main_url.match(/\.kaluli.com/)){return false;} //有一个carters的网站,防止被下面cart匹配到给屏蔽,提前判断如果匹配到carters就return false if(main_url.match(/(?:cartridge|Camcorder|carters|feifei\.com\/order\/|ref=ord_cart_shr)/) != null){return false;}if(location.host.indexOf(G.extName + '.com') > -1)return true;if(main_url.match(/detail\.zol\.com\.cn/))return false;if(main_url.match(/(?:cart|member|order|myhome|picture_index|handle-buy-box|chat|t.sina.com.cn|discussion|union.dangdang|eve.360buy|bank.vmall|checkout|confirm|gateway|trade|http:\/\/i.taobao.com|we.taobao.com|passport.yougou.com)/ig) != null){return true;}return false;};var specialHost=function specialHost(name){if(name === 'swarovski'){if(location.href.match(/Web_GB\/en/)){name = 'swarovski-en';}}return name;};var getPageInfo=function getPageInfo(){if(pageInfo)return pageInfo;var name="";if(module.exports.isInBanList()){return pageInfo = {type:0,siteName:name};}name = module.exports.isProductPage();if(name){if(typeof name !== 'string'){G.hidebar = name.hidebar;name = name.name;}G.site = name;G.logsite = name;if(name.indexOf("amazon") > -1)G.site = "amazon";if(page404(name)){return pageInfo = {type:0,siteName:name};}return pageInfo = {type:2,siteName:name};}name = module.exports.isAvailablePage();if(name){if(typeof name !== 'string'){G.hidebar = name.hidebar;name = name.name;}name = specialHost(name);G.site = name;G.logsite = name;return pageInfo = {type:1,siteName:name};}return pageInfo = {type:0,siteName:''};};var sitePattern={'www\\.epicgames\\.com':'epic','www\\.stbchina\\.cn':'stbchina','www\\.mafengwo\\.cn':'mafengwo','www\\.kjt\\.com':'kjt','www\\.lifevc.com':'lifevc','www\\.coocaa\\.com':'coocaa','(?:www|shop)\\.nubia\\.(?:cn|com)':'nubia','www\\.kzj365\\.com':'kzj365','\\.kaola\\.com':'kaola','www\\.ymatou\\.(?:com|hk)':'ymatou','www\\.metao\\.com':'metao','shop\\.philips\\.com\\.cn':'philips','www\\.tcl\\.com':'tcl','www\\.e-changhong\\.com':'changhong','shop\\.konka\\.com':'konka','shop\\.hisense\\.com':'hisense','www\\.ineigo\\.com':'ineigo','www\\.skg\\.com':'skg','www\\.k-touch\\.cn':'k-touch','\\.gionee\\.com':'gionee','(?:www|store)\\.oppo\\.com':'oppo','gfive\\.b2c\\.eqimingxing\\.com':'gfive','shop\\.vivo\\.com\\.cn':'vivo','www\\.grainger\\.cn':'grainger','(?:mall|piao)\\.163\\.com':'wy163','t\\.dianping\\.com':'dianping','\\.nuomi\\.com':'nuomi','\\.meituan\\.com':'meituan','www\\.ebay\\.com':'ebay','yao\\.95095\\.com':{name:'taobao',hidebar:true},'\\.feiniu\\.com':'feiniu','item\\.feiniu\\.com':'feiniu','\\.feifei\\.(?:cn|com)':'feifei','\\.guang\\.com':'guang','\\.meilishuo\\.com':'meilishuo','\\.mogu(?:jie|)\\.com':'mogujie','shop\\.coolpad\\.cn':'coolpad','\\.sephora\\.cn':'sephoracps','cn\\d*\\.strawberrynet\\.com':'strawberrynet','\\.yesmywine\\.com':'yesmywine','(\\.)?yiguo\\.com':'yiguo','\\.wanggou\\.com':'wanggou','mall\\.jia\\.com':'jia','weigou\\.baidu\\.com':'baidu-weigou','\\.(xiao)?mi\\.com':'xiaomi','shop\\.letv\\.com':'lemall','\\.handu\\.com':'handu','(?:www\\.|^)taoshu\\.com':'taoshu','\\.ouku\\.com':'ouku','\\.j1\\.com':'j1','\\.zm7\\.cn':'zm7','\\.1688\\.com':{name:'1688',hidebar:true},'\\.yiwugou\\.com':'yiwugou','\\.zhiwo\\.com':'zhiwo','\\.muyingzhijia\\.com':'muyingzhijia','\\.vmall\\.com':'vmall','\\.hihonor\\.com':'hihonor','\\.didamall\\.com':'didamall','\\.xiji.com':'xiji','\\.xijie.com':'xijie','\\.miqi\\.cn':'miqi','\\.zol\\.com(?:$|/|\\?)':'zol','zol\\.com\\.cn':'zol','\\.camel\\.com\\.cn':'camel','camel.com.cn':'camel','(\\.)?homevv\\.com':'homevv','\\.paixie\\.net':'paixie','\\.tao3c\\.com':'tao3c','\\.amazon\\.cn':'amazon','\\.dangdang\\.com':'dangdang','s8\\.taobao\\.com':'s8','taobao\\.(?:com|hk)':{name:'taobao',hidebar:true},'\\.(?:360buy|jd|jkcsjd)\\.com':'360buy','\\.(?:360buy|jd)\\.hk':'360buy','\\.yiyaojd.com':'360buy','\\i-item\\.jd\\.com':'360buy','\\.newegg(\\.com)?\\.cn':'newegg','\\.redbaby\\.com\\.cn':'redbaby','\\.51buy\\.com':'51buy','\\.yixun\\.com':'51buy','\\.okbuy\\.com':'okbuy','\\.shopee\\.tw':'shopee','\\.suning\\.com':'suning','\\.coo8\\.com':'coo8','\\.lusen\\.com':'lusen','\\.gome\\.com\\.cn':'gome','\\.gomehome\\.com':'gome','\\.gomehigo\\.hk':'gomehigo','\\.yhd\\.com':'yihaodian','\\.yihaodian\\.com':'yihaodian','\\.1mall\\.com':'yihaodian','\\.womai\\.com':'womai','\\.leyou\\.com\\.cn':'leyou','\\.shopin\\.net':'shopin','\\.no5\\.com\\.cn':'no5','\\.xiu\\.com':'xiu','\\.mbaobao\\.com':'mbaobao','\\.360kxr\\.com':'360kxr','\\.m6go\\.com':'m6go','\\.gou\\.com':'m6go','\\.smzdm\\.com':'smzdm','\\.99read\\.com':'99read','\\.china-pub\\.com':'china-pub','\\.bookschina\\.com':'bookschina','\\.efeihu\\.com':'efeihu','\\.yintai\\.com':'yintai','\\.quwan\\.com':'quwan','\\.k121\\.com':'k121','\\.happigo\\.com':'happigo','\\.gap\\.cn':'gap','\\.binggo\\.com/':'binggo','\\.yougou\\.com':'yougou','\\.jxdyf\\.com':'jxdyf','\\.winxuan\\.com':'winxuan','\\.bookuu\\.com':'bookuu','\\.jiuxian\\.com':'jiuxian','\\.vancl\\.com':'vancl','\\.111\\.com\\.cn':'111','\\.sfbest\\.(?:hk|com)':'sfbest','\\.vip(shop)?\\.com':'vipshop','\\.vipglobal\\.hk':'vipshop','\\.jumei\\.com':'jumei','jumeiglobal\\.com':'jumeiglobal','\\.lefeng\\.com':'lefeng','www\\.benlai\\.com':'benlai','(?:\\.|^)letao\\.com':'letao','\\.139shop\\.com':'139shop','(?:\\.|^)zzl365\\.com':'zzl365','\\.tiantian\\.com':'tiantian','\\.taoxie\\.com':'taoxie','\\.gjw\\.com':'gjw','www\\.d1\\.com\\.cn':'d1','\\.ihush\\.com':'ihush','www\\.s\\.cn':'s','\\.(?:moonbasa|korirl|rutisher|suorang|alaves|ing2ing|0-100s|qjherb|monteamor)\\.com':'moonbasa','\\.wangjiu\\.com':'wangjiu','\\.liebo\\.com':'liebo','\\.esprit\\.cn':'esprit','(?:\\.|^)lamiu\\.com':'lamiu','\\.aimer\\.com\\.cn':'aimer','www\\.kadang\\.com':'kadang','www\\.lizi\\.com':'lizi','www\\.metromall\\.cn':'metromall','www\\.pba\\.cn':'pba','\\.shangpin\\.com':'shangpin','\\.wbiao\\.cn':'wbiao','\\.handuyishe\\.com':'handuyishe','\\.ehaier\\.com':'ehaier','\\.secoo\\.com':'secoo','(?:vivian|linkmasa|masamaso)\\.(?:com|cn)':'masamaso','www\\.naruko\\.cn':'naruku','www\\.sportica\\.cn':'sportica','(?:\\.|^)xifuquan\\.com':'xifuquan','www\\.milier\\.com':'milier','www\\.nop\\.cn':'nop','\\.lenovo\\.com':'lenovo','shop\\.lenovo\\.com\\.cn':'lenovo','shop\\.lenovomobile\\.com':'lenovo','\\.189\\.cn':'189','\\.hicdma\\.com':'hicdma','\\.e100\\.cn':'e100','store\\.samsung\\.com':'samsung','www.apple\\.com':'apple','store.apple\\.com':'apple','\\.meizu\\.com':'meizu','\\.958shop\\.com':'958shop','\\.okhqb\\.com':'okhqb','\\.ztedevice\\.com\\.cn':'ztedevice','\\.kuaishubao\\.com':'kuaishubao','\\.lvyoumall\\.com':'lvyoumall','(?:www\\.|^)x\\.com\\.cn':'x','\\.lingshi\\.com':'lingshi','\\.ctrip\\.com':'ctrip','\\.zuipin\\.cn':'zuipin','www\\.xgbaby\\.com':'bbready','\\.yohobuy\\.com':'yohobuy','\\.lvmama\\.com':'lvmama','(?:\\.|^)qmango\\.com':'qmango','www\\.228cai\\.com':'228cai','\\.ikjtao\\.com':'ikjtao','www\\.bestkeep\\.cn':'ikjtao','\\.bagtree\\.cn':'bagtree','yichengpin\\.com':'yichengpin','zgzcw\\.com':{name:'zgzcw',hidebar:true},'www\\.mia\\.com':'miyabaobei','\\.miyabaobei.hk':'miyabaobei','\\.ule\\.com':'ule','minshengec\\.com':'minshengec','wangfujing\\.com':'wangfujing','\\.qunar\\.com':'qunar','\\.meilele\\.com':'meilele','www\\.55tuan\\.com':'55tuan','jinjianginns\\.com':'jinjianginns','\\.elong\\.com':'elong','podinns\\.com':'podinns','mangocity\\.com':'mangocity','\\.500\\.com':'500','www\\.ly\\.com':'ly','e-lining\\.com':'e-lining','\\.lining\\.com':'lining','\\.koolearn\\.com':'koolearn','\\.springtour\\.com':'springtour','\\.qinqinbaby\\.com':'qinqinbaby','winenice\\.com':'winenice','\\.sasa\\.com':'sasa','(?:\\.|^)5lux\\.com':'5lux','\\.228\\.com\\.cn':'228','\\.rrs\\.com':'rrs','\\.rrsjk.com':'rrs','(?:\\.|^)buy\\.ccb\\.com':'ccb','\\.banggo\\.com':'banggo','www\\.amazon\\.com':'amazon-com','www\\.amazon\\.co\\.jp':'amazon-jp','www\\.amazon\\.in':'amazon-in','www\\.amazon\\.fr':'amazon-fr','www\\.amazon\\.de':'amazon-de','www\\.amazon\\.it':'amazon-it','www\\.amazon\\.co.uk':'amazon-uk','www\\.amazon\\.nl':'amazon-nl','www\\.amazon\\.es':'amazon-es','www\\.amazon\\.ca':'amazon-ca','www\\.amazon\\.com\\.mx':'amazon-mx','www\\.amazon\\.com\\.br':'amazon-br','www\\.amazon\\.com\\.au':'amazon-au','store\\.logitech\\.com\\.cn':'logitech','\\.boohee\\.com':'boohee','nike\\.com':'nike','\\.jianke\\.com':'jianke','\\.360kad\\.com':'360kad','\\.lbxcn\\.com':'lbxcn','\\.meici\\.com':'meici','\\.beibei\\.com':'beibei','\\.aliexpress\.com':{name:'aliexpress',hidebar:true},'\\.6pm\\.com':'6pm','\\.gnc\\.com':'gnc','\\.myhabit\\.com':'myhabit','\\.shopbop\\.com':'shopbop','\\.drugstore\\.com':'drugstore','www\\.walgreens\\.com':'walgreens','sierratradingpost\\.com':'sierratradingpost','\\.newegg\\.com':'newegg-us','\\.jomashop\\.com':'jomashop','\\.ashford\\.com':'ashford','lookfantastic\\.com':'lookfantastic-com','lookfantastic\\.cn':'lookfantastic-cn','\\.rei\\.com':'rei','cn\\.iherb\\.com':'iherb','\\.iherb\\.com':'iherb-com','\\.carters\\.com':'carters','www\\.endclothing\\.com':'endclothing','\\.campsaver\\.com':'campsaver','global\\.rakuten\\.com':'rakuten','(?:\\.|^)100yue\\.com':'100yue','www\\.woot\\.com':'woot','www\\.haitaocheng\\.com':'haitaocheng','joesnewbalanceoutlet\\.com':'joesnewbalanceoutlet','\\.finishline\\.com':'finishline','\\.vitacost\\.com':'vitacost','\\.groupon.com':'groupon','\\.supumall\\.com':'supumall','www1\\.macys\\.com':'macys','www\\.moosejaw\\.com':'moosejaw','www\\.lemall\\.com':'lemall','www\\.jiumei\\.com':'jiumei','(?:\\.|^)chunshuitang\\.com':'chunshuitang','www\\.daling.com':'daling','www\\.oyeah\\.com':'oyeah','www\\.morefood\\.com':'morefood','www\\.yummy77\\.com':'yummy77','www\\.fruitday\\.com':'fruitday','www\\.gilt\\.com':'gilt','www\\.fengqu\\.com':'fengqu','www\\.mei\\.com':'mei','\\.vsigo\\.cn':'vsigo','www\\.keede\\.com':'keede','www\\.kede\\.com':'keede','k1\\.keede\\.cn':'keede','www\\.showjoy\\.com':'showjoy','\\.ocj\\.com\\.cn':'ocj','\\.ocj\\.kr':'ocj','\\.tmall\\.(?:com|hk)':{name:'tmall',hidebar:true},'www\\.sundan\\.com':'sundan','www\\.jiae\\.com':'jiae','(?:\\.|^)zazhipu\\.com':'zazhipu','www\\.easeeyes\\.com':'easeeyes','microsoftstore\\.com\\.cn':'microsoftstore','(?:\\.|^)xgdq\\.com':'xgdq','\\.bestcake\\.com':'bestcake','\\.lovo\\.cn':'lovo','www\\.hua\\.com':'hua','www\\.xtep\\.com\\.cn':'xtep','www\\.staples\\.cn':'staples','(?:\\.|^)efotile\\.com':'efotile','www\\.zhe800\\.com':'zhe800','www\\.aidai\\.com':'aidai','www\\.bftv\\.com':'bftv','\\.tujia\\.com':'tujia','\\.cosme\\.com':'cosme','www\\.diapers\\.com':'diapers','www\\.windeln\\.de':'windeln','www\\.babyneo\\.de':'babyneo','www\\.escentual\\.com':'escentual','www\\.thewatchery\\.com':'thewatchery','\\.biccamera.com':'biccamera','\\.tuhu.(?:cn|com)':'tuhu','eshop\\.htc\\.com':'htc','roseonly\\.com\\.cn':'roseonly','\\.rong360.com':'rong360','\\.niwodai.com':'niwodai','www\\.esteelauder.com':'esteelauder','\\.saksfifthavenue.com':'saksfifthavenue','\\.taqu.cn':'taqu','\\.qyer.com':'qyer','\\.axmall\\.com\\.au':'axmall','\\.muji.net':'muji','(?:\\.|^)gmarket.co.kr':'gmarket','english.11st.co.kr':'11st','\\.smartbargains\\.com':'smartbargains','\\.shopping\\.yahoo\\.co\\.jp':'yahooshop','\\.bloomingdales\\.com':'bloomingdales','\\.mikihouse\\.jp':'mikihouse','\\.toysrus\\.co\\.jp':'toysrus','\\.comfortfirst\\.com':'comfortfirst','\\.gymboree\\.com':'gymboree','\\.albeebaby.com':'albeebaby','\\.babymarkt.de':'babymarkt','\\.uggaustralia.co.uk':'uggaustralia','www\\.ugg\\.com':'ugg','neimanmarcus\\.com':'neimanmarcus','www\\.shoebuy.com':'shoebuy','www\\.szul\\.com':'szul','www\\.timex.com':'timex','\\.timex.com':'timex','www\\.kay.com':'kay','\\.ewatches.com':'ewatches','\\.swarovski.com':'swarovski','\\.worldofwatches.com':'worldofwatches','www.danielwellington.com':'danielwellington','\\.danielwellington\\.cn':'danielwellington-cn','\\.beautybay.com':'beautybay','\\.beauty.com':'beauty','www.beautybar.com':'beautybar','skinstore.com':'skinstore','www.laneige.com':'laneige','(?:\\.|^)bose.com':'bose','(?:\\.|^)bestbuy.com':'bestbuy','bhphotovideo.com':'bhphotovideo','(?:\\.|^)sony.jp':'sony','\\.bl\\.com':'bl','(?:\\.|^)you.163.com':'you163','(?:\\.|^)jinjiang.com':'jinjiang','(?:\\.|^)bestinfoods.com':'bestinfoods','(?:\\.|^)jinxiang.com':'jinxiang','(?:\\.|^)guojimami.com':'guojimami','(?:\\.|^)baiyangwang.com':'baiyangwang','\\.aoyou.com':'aoyou','(?:\\.|^)royyoungchemist.com.au':'royyoungchemist','(?:\\.|^)medihealshop.com':'medihealshop','(?:\\.|^)1001pharmacies.com':'1001pharmacies','(?:\\.|^)lookfantastic.cn':'lookfantastic-cn','(?:\\.|^)1\\.163\\.com':'1-163','www\\.kaixinbao.com':'kaixinbao','(?:\\.|^)booking.com':'booking','(?:\\.|^)juanpi.com':'juanpi','(?:\\.|^)pharmacyonline.com':'pharmacyonline','(?:\\.|^)bodyguardapotheke.com':'bodyguardapotheke','(?:\\.|^)purcotton.com':'purcotton','(?:\\.|^)wstx.com':'wstx','www\\.midea\\.com':'midea','www\\.midea\\.cn':'midea','mall\\.midea\\.com':'midea','\\.kaluli.com':'kaluli',"(?:\\.|^)yunhou\\.com":"yunhou","(?:\\.|^)haituncun\\.com":"haituncun","(?:\\.|^)vmei\\.com":"vmei","(?:\\.|^)jgb\\.cn":"jgb","(?:\\.|^)51din\\.com":"51din","(?:\\.|^)boqii\\.com":"boqii","cn.toursforfun\\.com":"toursforfun","(?:\\.|^)lulutrip\\.com":"lulutrip","(?:\\.|^)spider\\.com\\.cn":"spider","(?:\\.|^)walmart\\.com":"walmart","mall.to8to.com":"to8to",'www.opposhop.cn':'opposhop','baobeigezi.com':'baobeigezi','www.yao123.com':'yao123','www.menglu.com':'menglu','www.guopi.com':'guopi','www.likeface.com':'likeface','www.mallvv.com':'homevv','www.markmall.com':'markmall','www\\.baicheng\\.com':'baicheng','www\\.suanjuzi\\.com':'suanjuzi','\\.jinxiang\\.com':'jinxiang','\\.aomygod\\.com':'aomygod','(?:\\.|^)luolai\\.cn':'luolai','\\.vivo\\.com\\.cn':'vivo','\\.dixintong\\.com':'dixintong','\\.coolpad\\.com':'coolpad','\\.skg\\.com':'skg','vip\\.iqiyi\\.com':'iqiyi','\\aolaigo\\.com':'aolaigo','vip\\.missfresh\\.cn':'missfresh','\\.pushenkuajing\\.com':'pushenkuajing','cn\\.feelunique\\.com':'feelunique-cn','\\.chemistdirect\\.com\\.au':'chemistdirect','\\.netpharmacy\\.co\\.nz':'netpharmacy','\\.pharmacy4less\\.com\\.au':'pharmacy4less','\\.pharmacydirect\\.co\\.nz':'pharmacydirect','\\.amcal\\.com\\.au':'amcal','\\.laredoute\\.cn':'laredoute','cn\\.unserekleineapotheke\\.de':'unserekleineapotheke','\\.erwinmueller\\.com\\.cn':'erwinmueller','\\.kiwidiscovery\\.co\\.nz':'kiwidiscovery','\\.springlane\\.de':'springlane','\\.jako-o\\.com':'jako-o','\\.easytoys\\.cn':'easytoys','\\.tlcpharmacy\\.cn\\.com':'tlcpharmacy','\\.bienmanger\\.cn':'bienmanger','\\.dewaren\\.com':'dewaren','\\.discount-apotheke\\.de':'discount-apotheke','\\.holland-at-home\\.com':'holland-at-home','\\.youyu\\.com':'youyu','\\.kiwistarcare\\.com':'kiwistarcare','\\.lenovomobile\\.com':'lenovomobile','\\.51taouk\\.com':'51taouk','\\.kiehls\\.com':'kiehls','\\.zappos\\.com':'zappos','\\.coach\\.com':'coach','\\.yoox\\.cn':'yoox','\\.11street\\.com\\.cn':'11street','\\.ba\\.de':'ba','www\\.hqhair\\.com':'hqhair','www\\.katespade\\.co\\.uk':'katespade','cn\\.vitafy\\.de':'vitafy','www\\.yoox\\.cn':'yoox','\\.m18\\.com':'m18','comfortfirst\\.com':'comfortfirst','china\\.lotte\\.com':'lotte','\\.carrefour\\.cn':'carrefour','www\\.tea7\\.com':'tea7','\\.zhongjiu.cn':'zhongjiu','\\.puzeyf\\.com':'puzeyf','www\\.kohls\\.com':'kohls','www\\.bodybuilding\\.com':'bodybuilding','\\.nordstrom\\.com':'nordstrom','www\\.costco\\.com':'costco','www\\.target\\.com':'target','www\\.kmart\\.com':'kmart','www\\.overstock\\.com':'overstock','www\\.sears\\.com':'sears','www\\.shoprobam\\.com':'shoprobam','mall\\.goumin\\.com':'goumin','www\\.flyco\\.com':'flyco','www\\.opplestore\\.com':'opplestore','www\\.syshop\\.com':'syshop','www\\.yfdyf\\.com':'yfdyf','ssl\\.hotels\\.cn':'hotels','aihuishou\\.com':'aihuishou','www\\.thebeastshop\\.com':'thebeastshop','www\\.jomooshop\\.com':'jomooshop','www\\.septwolves\\.cn':'septwolves','\\.lianjia\\.com':{name:'lianjia',hidebar:true},'\\.maitian\\.cn':{name:'maitian',hidebar:true},'\\.5i5j\\.com':{name:'5i5j',hidebar:true},'\\.ke\\.com':{name:'ke',hidebar:true},'\\.6\\.cn':'home6','www\\.800pharm\\.com':'800pharm','www\\.ujipin\\.com':'ujipin','pc\\.mmb\\.cn':'mmb','www\\.ihaveu\\.com':'ihaveu','mall\\.ikang\\.com':'ikang','www\\.wyn88\\.com':'wyn88','www\\.mcake\\.com':'mcake','www\\.xmeise\\.com':'xmeise','www\\.lecake\\.com':'lecake','www\\.jd100\\.com':'jd100','www\\.jinghua\\.com':'jinghua','www\\.taohwu\\.com':'taohwu','www\\.zbird\\.com':'zbird','www\\.km1818\\.com':'km1818','www\\.zocai\\.com':'zocai','www\\.taoshu\\.com':'taoshu','www\\.aizhigu\\.com\\.cn':'aizhigu','www\\.tieyou\\.com':'tieyou','www\\.fieldschina\\.com':'fieldschina','www\\.wdmcake\\.cn':'wdmcake','mall\\.lqxshop\\.com':'lqxshop','www\\.usashopcn\\.com':'usashopcn','www\\.wine9\\.com':'wine9','www\\.qipaimall\\.com':'qipaimall','www\\.yododo\\.cn':'yododo','www\\.yoger\\.com\\.cn':'yoger','www\\.dapu\\.dapu':'dapu','www\\.winona\\.cn':'winona','www\\.wl\\.cn':'wl','www\\.shanmai\\.cn':'shanmai','www\\.zgshoes\\.com':'zgshoes','www\\.maichawang\\.com':'maichawang','www\\.uemall\\.com':'uemall','\\.51you\\.com':'51you','\\.beifabook\\.com':'beifabook','www\\.jpeen\\.com':'jpeen','www\\.huatuoyf\\.com':'huatuoyf','www\\.fengbuy\\.com':'fengbuy','\\.uiyi\\.com':'uiyi','www\\.hecha\\.cn':'hecha','www\\.t10\\.com':'t10','www\\.qw\\.cc':'qw','\\.miutour\\.com':'miutour','www\\.ehaoyao\\.com':'ehaoyao','www\\.idx\\.com\\.cn':'idx','www\\.uya100\\.com':'uya100','www\\.ssnewyork\\.com':'ssnewyork','www\\.clinique\\.com':'clinique','www\\.hxepawn\\.com':'hxepawn','www\\.brooksbrothers\\.com':'brooksbrothers','www\\.omtao\\.com':'omtao','www\\.ep365\\.com':'ep365','www\\.columbiasports\\.cn':'columbiasports','\\.bstapp\\.cn':'bstapp','www\\.newbalance\\.com':'newbalance','\\.wjike\\.com':'wjike','www\\.bally\\.co\\.uk':'bally','\\.1hai\\.cn':'1hai','www\\.jialich\\.cn':'jialich','\\.takeya\\.co\\.jp':'takeya','www\\.forever21\\.com':'forever21','www\\.modernavenue\\.com':'modernavenue','www\\.muniao\\.com':'muniao','\\.centanet\\.com':'centanet','www\\.zuihuiyou\\.com':'zuihuiyou','www\\.bobbibrowncosmetic\\.com':'bobbibrowncosmetics','www\\.super-in\\.com':'super-in','www\\.hangowa\\.com':'hangowa','www\\.levi\\.com':'levi','www\\.fila\\.cn':'fila','www\\.converse\\.com\\.cn':'converse','us\\.nextdirect\\.com':'nextdirect','www\\.itrip\\.com':'itrip','www\\.lashou\\.com':'lashou','www\\.liufeng\\.com':'liufeng','www\\.trt\\.hk':'trt','www1\\.wodinghua\\.com':'wodinghua','\\.wuliwuli\\.cn':'wuliwuli','www\\.forestfood\\.com':'forestfood','\\.bonjourhk\\.com':'bonjourhk','www\\.vitagou\\.hk':'vitagou','\\.kinhom\\.com':'kinhom','www\\.360lj\\.com':'360lj','v\\.changba\\.com':'changba','www\\.oakley\\.com':'oakley','www\\.jpyoo\\.com':'jpyoo','www\\.clarksusa\\.com':'clarksusa','www\\.starwoodhotels\\.com':'starwoodhotels','www\\.marriott\\.com\\.cn':'marriott-cn','www\\.yesstyle\\.com':'yesstyle','^evisu\\.com':'evisu','^lifeseasy\\.com\\.cn':'lifeseasy','www\\.ccxpet\\.com':'ccxpet','www\\.0061\\.com\\.au':'x0061','www\\.kkguan\\.com':'kkguan','www\\.style-oclock\\.com':'style-oclock','www\\.peikua\\.com':'peikua','www\\.airfrance\\.(?:us|com)':'airfrance','www\\.accorhotels\\.com':'accorhotels','www\\.spacenk\\.com':'spacenk','www\\.haichufang\\.com':'haichufang','us\\.wconcept\\.com':'wconcept','www\\.gant\\.co\\.uk':'gant','www\\.catfootwear\\.com':'catfootwear','www\\.saucony\\.com':'saucony','www\\.zaozuo\\.com':'zaozuo','\\.littleswan\\.com':'littleswan','www\\.can\\.tv':'can','www\\.ssrj\\.com':'ssrj','shop\\.guess\\.net\\.au':'guess','www\\.etihad\\.com':'etihad','store\\.fiil\\.com':'fiil','www\\.mianshui365\\.com':'mianshui365','www\\.tegoushe\\.com':'tegoushe','www\\.wiggle\\.cn':'wiggle','www\\.mdreams\\.com':'mdreams','\\.ecovacs\\.cn':'ecovacs','www\\.calvinklein\\.cn':'calvinklein','cn\\.memebox\\.com':'memebox','www3\\.hilton\\.com':'hilton','www\\.revolve\\.com':'revolve','www\\.shiseido\\.com':'shiseido','www\\.clarinsusa\\.com':'clarinsusa','store\\.starbucks\\.com':'starbucks','www\\.ray-ban\\.com':'ray-ban','us\\.puma\\.com':'puma','www\\.nautica\\.com':'nautica','www\\.cremedelamer\\.com':'cremedelamer','www\\.kipling-usa\\.com':'kipling-usa','www\\.jurlique\\.com':'jurlique','www\\.hushpuppies\\.com':'hushpuppies','www\\.origins\\.com':'origins','www\\.follifollie\\.us\\.com':'follifollie','usa\\.loccitane\\.com':'loccitane','\\.hpstore\\.cn':'hpstore','\\.01home\\.com':'01home','www\\.healthpost\\.co\\.nz':'healthpost','\\.imengxiang\\.cn':'imengxiang','www\\.hysj\\.com':'hysj','\\.saohuo7\\.com':'saohuo7','\\.repai\\.com':'repai','www\\.mayi\\.com':'mayi','\\.yinpiao\\.com':'yinpiao','\\.ihome-ins.com':'ihome-ins','\\.incake\\.net':'incake','\\.kuwo\\.cn':'kuwo','www\\.ywart\\.com':'ywart','www\\.cct\\.cn':'cct','www\\.ansgo\\.com':'ansgo','www\\.pilibaba\\.com':'pilibaba','www\\.xiaoniu88\\.com':'xiaoniu88','www\\.ahava\\.com':'ahava','\\.5-fifth\\.com':'5-fifth','\\.thewatchhut\\.co\\.uk':'thewatchhut','\\.babyhaven\\.com':'babyhaven','cn\\.cosme-de\\.com':'cosme-de','cn\\.getthelabel\\.com':'getthelabel','cn\\.matsuya\\.com':'matsuya','www\\.timberland\\.com':'timberland','\\.topman\\.com':'topman','www\\.homeaway\\.com':'homeaway','www\\.beautyexpert\\.com':'beautyexpert','\\.haimi\\.com':'haimi','www\\.mankind\\.co\\.uk':'mankind','www\\.thehut\\.com':'thehut','www\\.topshop\\.com':'topshop','mamaladen\\.com':'mamaladen','www\\.traveler-store\\.com':'traveler-store','www\\.travelzoo\\.com':'travelzoo','www\\.umishoes\\.com':'umishoes','store\\.ferrari\\.com':'ferrari','willerexpress\\.com':'willerexpress','www\\.unineed\\.com':'unineed','www\\.acnestudios\\.com':'acnestudios','www\\.aeropostale\\.com':'aeropostale','www\\.agoda\\.com':'agoda','www\\.albamoda\\.de':'albamoda','www\\.allbeauty\\.com':'allbeauty','www\\.allsaints\\.com':'allsaints','www\\.allsole\\.com':'allsole','www\\.urbanoutfitters\\.com':'urbanoutfitters','www\\.vitabiotics\\.com':'vitabiotics','www\\.bellemaison\\.jp':'bellemaison','www\\.benefitcosmetics\\.com':'benefitcosmetics','www\\.bhcosmetics\\.com':'bhcosmetics','www\\.bjmylikes\\.com':'bjmylikes','www\\.vitaminbay\\.com':'vitaminbay','www\\.waitrose\\.com':'waitrose','www\\.wolfordshop\\.co\\.uk':'wolfordshop','www\\.boohoo\\.com':'boohoo','www\\.boots\\.com':'boots','www\\.britishcornershop\\.co\\.uk':'britishcornershop','www\\.yirendai\\.com':'yirendai','www\\.ys7\\.com':'ys7','www\\.coggles\\.com':'coggles','www\\.corsetdeal\\.com':'corsetdeal','^cottonon\\.com':'cottonon','www\\.crocs\\.co\\.uk':'crocs','www\\.cruisefashion\\.com':'cruisefashion','www\\.dell\\.com':'dell','www\\.dermstore\\.com':'dermstore','www\\.disneystore\\.com':'disneystore','www\\.dorothyperkins\\.com':'dorothyperkins','www\\.doudoukang\\.com':'doudoukang','www\\.dujiake\\.com':'dujiake','www\\.dunelondon\\.com':'dunelondon','www\\.eastbay\\.com':'eastbay','www\\.eastdane\\.com':'eastdane','www\\.zaful\\.com':'zaful','www\\.zavvi\\.com':'zavvi','cn\\.feinkeit\\.de':'feinkeit','www\\.eibmarkt\\.com':'eibmarkt','www\\.belluna\\.cn':'belluna','www\\.emirates\\.com':'emirates','www\\.ems\\.com':'ems','www\\.eterna\\.de':'eterna','www\\.eurail\\.com':'eurail','www\\.exantediet\\.com':'exantediet','www\\.expedia\\.co\\.uk':'expedia','www\\.falke\\.com':'falke','www\\.famousfootwear\\.com':'famousfootwear','www\\.foreo\\.com':'foreo','www\\.wangxinlicai\\.com':'wangxinlicai','www\\.foreverunique\\.co\\.uk':'foreverunique','www\\.au\\.forzieri\\.com':'forzieri','www\\.freecountry\\.com':'freecountry','www\\.frenchconnection\\.com':'frenchconnection','www\\.gift-land\\.com':'gift-land','cn\\.growgorgeous\\.com':'growgorgeous','www\\.hotel\\.info':'hotel','www\\.houseoffraser\\.co\\.uk':'houseoffraser','www\\.huizuche\\.com':'huizuche','www\\.iwantoneofthose\\.com':'iwantoneofthose','www\\.jjglobal\\.com':'jjglobal','www\\.juicycouture\\.com':'juicycouture','www\\.kenko\\.com':'kenko','www\\.kikocosmetics\\.com':'kikocosmetics','www\\.lancerskincare\\.co\\.uk':'lancerskincare','shop\\.lego\\.com':'lego','www\\.lordandtaylor\\.com':'lordandtaylor','www\\.maizhi\\.com':'maizhi','www\\.matchesfashion\\.com':'matchesfashion','www\\.matsukiyo\\.co\\.jp':'matsukiyo','www\\.microsoft\\.com':'microsoft','cn\\.mioskincare\\.com':'mioskincare','www\\.missselfridge\\.com':'missselfridge','www\\.mountaingear\\.com':'mountaingear','www\\.mybag\\.com':'mybag','www\\.myprotein\\.com':'myprotein-com','www\\.myvitamins\\.com':'myvitamins','www\\.net-a-porter\\.com':'net-a-porter','www\\.newbalance\\.co\\.uk':'newbalance-uk','www\\.newlook\\.com':'newlook','www\\.nike\\.com\\.br':'nike-br','www\\.nike\\.com\\.hk':'nike-hk','www\\.nyandcompany\\.com':'nyandcompany','www\\.oasis-stores\\.com':'oasis-stores','www\\.orbitz\\.com':'orbitz','www\\.orchira\\.co\\.uk':'orchira','www\\.origins\\.co\\.uk':'origins-uk','www\\.petsmart\\.com':'petsmart','www\\.probikekit\\.co\\.uk':'probikekit','www\\.qatarairways\\.com':'qatarairways','www\\.radley\\.co\\.uk':'radley','www\\.ralphlauren\\.cn':'ralphlauren','www\\.rebeccaminkoff\\.com':'rebeccaminkoff','www\\.rentalcars\\.com':'rentalcars','www\\.ricaud\\.com':'ricaud','www\\.rockport\\.com':'rockport','www\\.ruelala\\.com':'ruelala','www\\.saksoff5th\\.com':'saksoff5th','www\\.sc24\\.com':'sc24','www\\.shoes\\.com':'shoes','www\\.shopspring\\.com':'shopspring','www\\.simplysupplements\\.co\\.uk':'simplysupplements','www\\.ssense\\.com':'ssense','www\\.stevemadden\\.com':'stevemadden','www\\.taodo\\.com':'taodo','www\\.michaelkors\\.cn':'michaelkors','www\\.ttcj\\.tv':'ttcj','www\\.uf-club\\.com':'uf-club','www\\.zhaidou\\.com':'zhaidou','www\\.163yun\\.com':'163yun','cn\\.apo\\.com':'apo','loan-m\\.jimu\\.com':'jimu','www\\.hao24\\.com':'hao24','m\\.seagoor\\.com':'seagoor','www\\.wannar\\.com':'wannar','www\\.caihang\\.com':'caihang','www\\.csmall\\.com':'csmall','www\\.kuajing\\.com':'kuajing','www\\.millenniumhotels\\.com':'millenniumhotels','www\\.reebonz\\.cn':'reebonz','cn\\.wemakeprice\\.com':'wemakeprice','www\\.wzhouhui\\.com':'wzhouhui','www\\.huijiayou\\.cn':'huijiayou','www\\.melimelo\\.cn':'melimelo','www\\.91xcm\\.com':'91xcm','zh\\.ashford\\.com':'ashford-zh','cjonmart\\.cn':'cjonmart','www\\.cnyto\\.me':'cnyto','www\\.granddfs\\.com':'granddfs','www\\.officedepot\\.com':'officedepot','www\\.tianhong\\.cn':'tianhong','www\\.yilingshop\\.com':'yilingshop','www\\.klook\\.com':'klook','m\\.ddky\\.com':'ddky','www\\.chinaacc\\.com':'chinaacc','www\\.bmai\\.com':'bmai','m\\.inke\\.cn':'inke','www\\.junrongdai\\.com':'junrongdai','www\\.napai\\.cn':'napai','mall\\.gree\\.com':'gree','sales\\.allianz\\.com':'allianz','v\\.youmi\\.cn':'youmi','www\\.21cake\\.com':'21cake','www\\.56ren\\.com':'56ren','www\\.anantara\\.com':'anantara','www\\.chesudi\\.com':'chesudi','www\\.ehmall\\.com':'ehmall','www\\.farfetch\\.cn':'farfetch','www\\.freepeople\\.com':'freepeople','www\\.gaosouyi\\.com':'gaosouyi','www\\.charm-color\\.':'charm-color','www\\.felissimo\\.co\\.jp':'felissimo','www\\.surfstitch\\.com':'surfstitch','www\\.lornajane\\.sg':'lornajane','www\\.reiss\\.com':'reiss','www\\.gzl\\.com\\.cn':'gzl','www\\.9drug\\.com':'9drug','www\\.yungoubs\\.com':'yungoubs','www\\.yencity\\.com':'yencity','class\\.hujiang\\.com':'hujiang','iphx\\.meituan\\.com':'meituan-iphx','www\\.svgouwu\\.com':'svgouwu','linktech\\.hqwx\\.com':'hqwx','\\.hysjg\\.com':'hysjg','\\.maimaicn\\.com':'maimaicn','\\.tyfo\\.com':'tyfo','www\\.tthigo\\.com':'tthigo','www\\.mayn\\.com\\.cn':'mayn','\\.harrods\\.com':'harrods','\\.theundone\\.com':'theundone','www\\.imomoko\\.com':'imomoko','www\\.perfumesclub\\.cn':'perfumesclub','www\\.godaddy\\.com':'godaddy','www\\.mytheresa\\.com':'mytheresa','www\\.backcountry\\.com':'backcountry','www\\.marriott\\.com':'marriott','www\\.mrporter\\.com':'mrporter','www\\.priceline\\.com':'priceline','english\\.ctrip\\.com':'ctrip-en','cn\\.monnierfreres\\.com':'monnierfreres','www\\.myprotein\\.cn':'myprotein','www\\.toryburch\\.com':'toryburch-com','www\\.italist\\.com':'italist','www\\.askderm\\.com':'askderm','www\\.tatcha\\.com':'tatcha','www\\.hollandandbarrett\\.com':'hollandandbarrett','www\\.ninewest\\.com':'ninewest','www\\.bergdorfgoodman\\.com':'bergdorfgoodman','www\\.ihg\\.com':'ihg','www\\.footlocker\\.com':'footlocker','www\\.rodial\\.co':'rodial','www\\.feelunique\\.com':'feelunique','www\\.jackwills\\.com':'jackwills','www\\.kidsroom\\.de':'kidsroom','cn\\.dod\\.nl':'dod','www\\.karenmillen\\.com':'karenmillen','cn\\.illicopharma\\.com':'illicopharma','www\\.tedbaker\\.com':'tedbaker','www\\.b-glowing\\.com':'b-glowing','www\\.adiexpress\\.com':'adiexpress','www\\.fragrancex\\.com':'fragrancex','www\\.peterthomasroth\\.com':'peterthomasroth','www\\.gap\\.com':'gap-com','www\\.cecile\\.co':'cecile','www\\.barneys\\.com':'barneys','www\\.debuycn\\.com':'debuycn','www\\.smashbox\\.com':'smashbox','www\\.lastcall\\.com':'lastcall','www\\.superdrug\\.com':'superdrug','www\\.libertylondon\\.com':'libertylondon','www\\.chemistdirect\\.co\\.uk':'chemistdirect-uk','www\\.skincarerx\\.com':'skincarerx','www\\.haba\\.co':'haba','shop\\.panasonic\\.com':'panasonic','www\\.beautifiedyou\\.com':'beautifiedyou','store\\.nba\\.com':'nba','www\\.elfcosmetics\\.com':'elfcosmetics','www\\.uniqlo\\.com':'uniqlo','www\\.uniqlo\\.cn':'uniqlo','www\\.colehaan\\.com':'colehaan','www\\.carters\\.com':'carters','www\\.sportsdirect\\.com':'sportsdirect','www\\.adorama\\.com':'adorama','www\\.ae\\.com':'ae','us\\.amorepacific\\.com':'amorepacific','www\\.anntaylor\\.com':'anntaylor','clearance\\.asics\\.com':'asics','www\\.asos\\.com':'asos','www\\.aveneusa\\.com':'aveneusa','www\\.barneyswarehouse\\.com':'barneyswarehouse','bensherman\\.com':'bensherman','www\\.blissworld\\.com':'blissworld','www\\.blueandcream\\.com':'blueandcream','www\\.bonds\\.com':'bonds','www\\.cookieskids\\.com':'cookieskids','www\\.cosmeland\\.jp':'cosmeland','www\\.crabtree-evelyn\\.com':'crabtree-evelyn','www\\.crocs\\.ca':'crocs-ca','www\\.darphin\\.com':'darphin','www\\.davidscookies\\.com':'davidscookies','www\\.dickiesstore\\.co':'dickiesstore','us\\.dockers\\.com':'dockers','www\\.easyspirit\\.com':'easyspirit','www\\.ebags\\.com':'ebags','www\\.echemist\\.co':'echemist','www\\.eddiebauer\\.com':'eddiebauer','www\\.elemis\\.com':'elemis','www\\.elizabetharden\\.co':'elizabetharden','www\\.ena\\.travel':'ena','www\\.evitamins\\.com':'evitamins','www\\.fashionesta\\.com':'fashionesta','www\\.figleaves\\.com':'figleaves','www\\.folica\\.com':'folica','www\\.fragrancenet\\.com':'fragrancenet','www\\.glamglow\\.co\\.uk':'glamglow-uk','www\\.godivachocolates\\.co':'godivachocolates','www\\.goldsmiths\\.co':'goldsmiths','www\\.growgorgeous\\.co\\.uk':'growgorgeous-uk','www\\.happysocks\\.com':'happysocks','www\\.harveynichols\\.com':'harveynichols','www\\.hatley\\.com':'hatley','www\\.herbspro\\.com':'herbspro','www\\.houseofholland\\.co':'houseofholland','www\\.jayjays\\.com':'jayjays','www\\.jetairways\\.com':'jetairways','www\\.journeys\\.com':'journeys','www\\.karmaloop\\.com':'karmaloop','www\\.keds\\.com':'keds','www\\.labseries\\.co':'labseries','leejeans\\.com':'leejeans','livingsocial\\.com':'livingsocial','www\\.wkzuche\\.com':'wkzuche','www\\.uzise\\.com':'uzise','m\\.laiyifen\\.com':'laiyifen','www\\.avast\\.com':'avast','usa\\.kaspersky\\.com':'kaspersky','www\\.steepandcheap\\.com':'steepandcheap','www\\.glamglow\\.com':'glamglow-com','www\\.cledepeaubeaute\\.com':'cledepeaubeaute','www\\.kicksusa\\.com':'kicksusa','www\\.lacoste\\.com':'lacoste','.*\\.bilibili\\.com':'bilibili','www\\.perriconemd\\.com':'perriconemd','www\\.gemvara\\.com':'gemvara','www\\.bluenile\\.com':'bluenile','www\\.modaoperandi\\.com':'modaoperandi','www\\.parrot\\.com':'parrot','cn\\.fashionbunker\\.com':'fashionbunker','www\\.final-score\\.com':'final-score','www\\.dkny\\.com':'dkny','shop\\.mango\\.com':'mango','www\\.charlottetilbury\\.com':'charlottetilbury','www\\.vmware\\.com':'vmware','www\\.avira\\.com':'avira','www\\.jewelry\\.com':'jewelry','www\\.eset\\.com':'eset','buy\\.norton\\.com':'norton','www\\.jimmyjazz\\.com':'jimmyjazz','www\\.roxy\\.com':'roxy','www\\.nastygal\\.com':'nastygal','www\\.marcjacobs\\.com':'marcjacobs','(?:^|www\\.)beastsmode\\.cn':'beastsmode','www\\.theapollobox\\.com':'theapollobox','www\\.yamibuy\\.com':'yamibuy','www\\.hbx\\.com':'hbx','www\\.horchow\\.com':'horchow','www\\.bluefly\\.com':'bluefly','www\\.swansonvitamins\\.com':'swansonvitamins','www\\.jcrew\\.com':'jcrew','www\\.bebe\\.com':'bebe','www\\.mucfc\\.com':'mucfc','www\\.only\\.cn':'only','www\\.veromoda\\.com':'veromoda','www\\.jackjones\\.com':'jackjones','www\\.selected\\.com':'selected','www\\.hanes\\.com':'hanes','www\\.algenist\\.com':'algenist','(?:^|www\\.)factory\\.jcrew\\.com':'jcrew-factory','www\\.lolewomen\\.com':'lolewomen','www\\.underarmour\\.com':'underarmour-com','www\\.theory\\.com':'theory','www\\.intimina\\.com':'intimina','www\\.nydj\\.com':'nydj','www\\.jny\\.com':'jny','bonobos\\.com':'bonobos','www\\.alphaindustries\\.com':'alphaindustries','venuekings\\.com':'venuekings','(?:^|www\\.)goop\\.com':'goop','www\\.silkyscents\\.com':'silkyscents','www\\.shopsky\\.com':'shopsky','www\\.vitaminworld\\.com':'vitaminworld','www\\.bumbleandbumble\\.com':'bumbleandbumble','mattandnat\\.com':'mattandnat','www\\.ladyfootlocker\\.com':'ladyfootlocker','www\\.aliceandolivia\\.com':'aliceandolivia','www\\.lancome-usa\\.com':'lancome-usa','www\\.sk-ii\\.com':'sk-ii','www\\.beautifulhalo\\.com':'beautifulhalo','www\\.footaction\\.com':'footaction','www\\.vitaminshoppe\\.com':'vitaminshoppe','www\\.reebok\\.com':'reebok','(?:^|www\\.)jet\\.com':'jet','www\\.burtsbeesbaby\\.com':'burtsbeesbaby','www\\.yoins\\.com':'yoins','www\\.skechers\\.com':'skechers','www\\.toofaced\\.com':'toofaced','elevtd\\.shoebuy\\.com':'shoebuy-elevtd','www\\.katvondbeauty\\.com':'katvondbeauty','www\\.mountainsteals\\.com':'mountainsteals','www\\.tours4fun\\.com':'tours4fun','www\\.jewelryaffairs\\.com':'jewelryaffairs','www\\.perfume\\.com':'perfume','www\\.tgw\\.com':'tgw','www\\.prescriptives\\.com':'prescriptives','www\\.perryellis\\.com':'perryellis','www\\.originalpenguin\\.com':'originalpenguin','www\\.naturalizer\\.com':'naturalizer','www\\.luisaviaroma\\.com':'luisaviaroma','www\\.giorgioarmanibeauty-usa\\.com':'giorgioarmanibeauty-usa','us\\.caudalie\\.com':'caudalie','www\\.murad\\.com':'murad','www\\.betseyjohnson\\.com':'betseyjohnson','www\\.thebodyshop\\.com':'thebodyshop','hampdenclothing\\.com':'hampdenclothing','www\\.anthropologie\\.com':'anthropologie','www\\.armani\\.com':'armani','us\\.shop\\.ecco\\.com':'ecco-us','www\\.loft\\.com':'loft','www\\.shuuemura-usa\\.com':'shuuemura-usa','www\\.therealreal\\.com':'therealreal','www\\.c21stores\\.com':'c21stores','www\\.ctshirts\\.com':'ctshirts','www\\.superjeweler\\.com':'superjeweler','us\\.jimmychoo\\.com':'jimmychoo','www\\.fwrd\\.com':'fwrd','www\\.aveda\\.com':'aveda','na-kd\\.com':'na-kd','www\\.nancymeyer\\.com':'nancymeyer','www\\.baublebar\\.com':'baublebar','us\\.elevenparis\\.com':'elevenparis','www\\.lindtusa\\.com':'lindtusa','www\\.narscosmetics\\.com':'narscosmetics','www\\.jackrabbit\\.com':'jackrabbit','www\\.macmall\\.com':'macmall','www\\.champssports\\.com':'champssports','store\\.dji\\.com':'dji','www\\.bodenusa\\.com':'bodenusa','www\\.crazy8\\.com':'crazy8','www\\.moltonbrown\\.com':'moltonbrown','needsupply\\.com':'needsupply','www\\.solesociety\\.com':'solesociety','www\\.childrensplace\\.com':'childrensplace','www\\.sigmabeauty\\.com':'sigmabeauty','www\\.adidas\\.com':'adidas-us','www\\.veronicabeard\\.com':'veronicabeard','www\\.cross\\.com':'cross','www\\.monsterproducts\\.com':'monsterproducts','www\\.theoutnet\\.com':'theoutnet','www\\.clarisonic\\.com':'clarisonic','www\\.dermadoctor\\.com':'dermadoctor','www\\.solsticesunglasses\\.com':'solsticesunglasses','www\\.pixiemarket\\.com':'pixiemarket','vip\\.yunifang\\.com':'yunifang','api\\.globalwinner\\.cn':'globalwinner','www\\.biotherm-usa\\.com':'biotherm-usa','www\\.jomalone\\.com':'jomalone','www\\.yvesrocherusa\\.com':'yvesrocherusa','www\\.mountainhardwear\\.com':'mountainhardwear','www\\.boscovs\\.com':'boscovs','www\\.putmeinthestory\\.com':'putmeinthestory','www\\.petit-bateau\\.us':'petit-bateau','www\\.striderite\\.com':'striderite','www\\.bcbg\\.com':'bcbg','www\\.marissacollections\\.com':'marissacollections','www\\.chineselaundry\\.com':'chineselaundry','www\\.ylang23\\.com':'ylang23','www\\.thewalkingcompany\\.com':'thewalkingcompany','www\\.perfumania\\.com':'perfumania','www\\.philosophy\\.com':'philosophy','www\\.underarmour\\.cn':'underarmour','www\\.bestgymequipment\\.co':'bestgymequipment','thesportsedit\\.com':'thesportsedit','www\\.treds\\.co':'treds','www\\.selfridges\\.com':'selfridges','www\\.toryburch\\.co\\.uk':'toryburch-uk','zh\\.virginatlantic\\.com':'virginatlantic','www.\\chowsangsang\\.com':'chowsangsang','www.speedo.com.cn':'speedo', // '\\.steampowered\\.com': 'steampowered', '\\.pinduoduo\\.com':'pinduoduo','\\.yangkeduo\\.com':'yangkeduo','\\.rakuten\\.co\\.jp':'rakuten','\\.computeruniverse\\.net':'computeruniverse','\\.prodirectsoccer\\.com':'prodirectsoccer','\\.prodirectrunning\\.com':'prodirectrunning','\\.dbox\\.co\\.nz':'dbox','\\.motorola\\.com\\.cn':'motorola','\\.haiershui\\.com':'haiershui','\\.wandougongzhu\\.cn':'wandougongzhu','www\\.xiaomiyoupin\\.com':'youpin-mi','bananarepublic\\.gap\\.com':'bananarepublic-gap','\\.decathlon\\.com\\.cn':'decathlon','\\.oneplus\\.com':'oneplus','\\.heytap\\.com':'heytap'};var productPattern={'dest/test\\.html':'test','^(?:http|https)://www\\.epicgames\\.com/store\\/[\\w\\W]+':'epic','^(?:http|https)://www\\.stbchina\\.cn/item.html#\\?itemId=\\d+':'heytap','^(?:http|https)://www\\.heytap\\.com/products\\/\\d+\\.html':'heytap','^(?:http|https)://shopee\\.tw/.*\\.\\d+\\.\\d+':'shopee','^(?:http|https)://shopee\\.tw/product\\/\\d+\\/\\d+':'shopee','^(?:http|https)://traveldetail\\.fliggy\\.com/item.htm':'fliggy','^(?:http|https)://www\\.wzhouhui\\.com/product[\\d\\-\\/]+.html':'wzhouhui','^(?:http|https)://cn\\.wemakeprice\\.com/[\\d\\-\\/]+':'wemakeprice','^(?:http|https)://cn\\.dod\\.nl/product/\\d+\\.html':'dod','^(?:http|https)://www\\.decathlon\\.com\\.cn/zh/p/':'decathlon','^(?:http|https)://cn\\.apo\\.com/product/detail/\\d+':'apo','^(?:http|https)://www\\.ansgo\\.com/product-\\d+\\.html':'ansgo','^(?:http|https)://www\\.perfumesclub\\.cn/product/\\d+\\.html':'perfumesclub','^(?:http|https)://www\\.net-a-porter\\.com/cn/[a-z]{2}/product/[\\w\\W]+':'net-a-porter','^(?:http|https)://www\\.kidsroom\\.cn/zh/[\\w\\W]+':'kidsroom','^(?:http|https)://cn\\.getthelabel\\.com/product/\\d+\\.html':'getthelabel','^(?:http|https)://www\\.farfetch\\.cn/cn/shopping/[\\w\\W]+\\.aspx':'farfetch','^(?:http|https)://item\\.kongfz\\.com/book/\\d+\\.html':'kongfz','^(?:http|https)://book\\.kongfz\\.com/\\d+/\\d+/':'kongfz','^(?:http|https)://cn\\.iherb\\.com/pr/[a-z0-9A-Z-]+/\\d+':'iherb','^(?:http|https)://www\\.hqhair\\.com/[a-z0-9-]+/\\d+\\.html':'hqhair','^(?:http|https)://www\\.wl\\.cn/\\d+':'wl','^(?:http|https)://www\\.columbia\\.com/[a-z0-9A-Z-]+\\.html\\?cgid=':'columbia','^(?:http|https)://www\\.columbiasports\\.cn/product-\\d+\\.html':'columbiasports','^(?:http|https)://www\\.ehaoyao\\.com/product-\\d+\\.html':'ehaoyao','^(?:http|https)://www\\.bhphotovideo\\.com/c/product/\\d+':'bhphotovideo','^(?:http|https)://www\\.shoes\\.com/[a-z0-9-]+/\\d+/\\d+':'shoes','^(?:http|https)://www\\.jomashop\\.com/[a-z0-9-]+\\.html':'jomashop','^(?:http|https)://cn\\.pharmacydirect\\.co\\.nz/\\d+\\.html':'pharmacydirect','^(?:http|https)://cn\\.pharmacydirect\\.co\\.nz/product/\\d+\\.html':'pharmacydirect','^(?:http|https)://www\\.holland-at-home\\.com/cn/(\\w+/){1,5}\\w+\\.html':'holland-at-home','^(?:http|https)://cn\\.holland-at-home\\.com/product/\\d+.html':'holland-at-home','^(?:http|https)://www\\.rei\\.com/product/\\d+':'rei','^(?:http|https)://item\\.aomygod\\.com/\\d+\\.html':'aomygod','^(?:http|https)://www\\.huatuoyf\\.com/product/\\d+\\.htm':'huatuoyf','^(?:http|https)://www\\.forever21\\.com/uk/shop/catalog/product':'forever21','^(?:http|https)://zh\\.ashford\\.com/([a-z0-9-]+/){1,6}[a-zA-Z0-9]+\\.pid':'ashford-zh','^(?:http|https)://www\\.bestbuy\\.com/[a-z]+/[a-z0-9-]+/\\d+\\.p\\?skuId=\\d+':'bestbuy','^(?:http|https)://www\\.target\\.com/p/[a-z0-0-]+':'target','^(?:http|https)://cn\\.chemistdirect\\.com\\.au/\\d+\\.html':'chemistdirect','^(?:http|https)://cn\\.chemistdirect\\.com\\.au/product/\\d+\\.html':'chemistdirect','^(?:http|https)://www\\.ba\\.de/product/\\d+\\.html':'ba','^(?:http|https)://m\\.wandougongzhu\\.cn/product/\\d+\\.html':'wandougongzhu','^(?:http|https)://cn\\.feelunique\\.com/\\d+\\.html':'feelunique','^(?:http|https)://cn\\.feelunique\\.com/product/\\d+\\.html':'feelunique','^(?:http|https)://shop\\.dixintong\\.com/products-[0-9-]+\\.html':'dixintong','^(?:http|https)://cn\\.pharmacyonline\\.com\\.au/\\d+\\.html':'pharmacyonline','^(?:http|https)://cn\\.pharmacyonline\\.com\\.au/product/\\d+\\.html':'pharmacyonline','^(?:http|https)://cn\\.discount-apotheke\\.de/\\d+\\.html':'discount-apotheke','^(?:http|https)://cn\\.discount-apotheke\\.de/product/\\d+\\.html':'discount-apotheke','^(?:http|https)://www\\.carters\\.com/[a-z0-9-]+/[A-Z]_\\d+\\.html\\?':'carters','^(?:http|https)://www\\.katespade\\.co\\.uk/[a-z-]+/([a-z0-9-]+/){1,3}[A-Za-z0-9]+\\.html':'katespade','^(?:http|https)://www\\.katespade\\.cn/[\\W\\w]+':'katespade','^(?:http|https)://www\\.beautybay\\.com/p/\\w+':'beautybay','^(?:http|https)://cn\\.pharmacy4less\\.com\\.au/\\d+\\.html':'pharmacy4less','^(?:http|https)://www\\.newegg\\.com/Product/Product\\.aspx':'newegg-us','^(?:http|https)://www\\.newbalance\\.com/pd/\\w+':'newbalance','^(?:http|https)://www\\.bodybuilding\\.com/store/[a-z0-9-]+/[a-z0-9-]+\\.html\\?skuId=':'bodybuilding','^(?:http|https)://www\\.ssnewyork\\.com/good/detail/\\d+':'ssnewyork','^(?:http|https)://www\\.wine9\\.com/\\d+\\.html':'wine9','^(?:http|https)://www\\.kohls\\.com/product/prd-\\d+':'kohls','^(?:http|https)://www\\.gnc\\.com/[a-z0-9-]+/\\d+\\.html\\?cgid=':'gnc','^(?:http|https)://www\\.qw\\.cc/goods-\\d+\\.html':'qw','^(?:http|https)://www\\.haiershui\\.com/product/\\d+\\.html':'haiershui','^(?:http|https)://www\\.ugg\\.com/[a-z0-9-]+/[a-z0-9-]+/\\d+\\.html':'ugg','^(?:http|https)://www\\.ugg\\.cn/product-\\d+\\.html':'ugg','^(?:http|https)://www\\.yoger\\.com\\.cn/product/\\d+\\.html':'yoger','^(?:http|https)://www\\.flyco\\.com/goods-[a-zA-Z0-9-_]+\\.html':'flyco','^(?:http|https)://www\\.yfdyf\\.com/product-\\d+\\.html':'yfdyf','^(?:http|https)://www\\.joesnewbalanceoutlet\\.com/product/':'joesnewbalanceoutlet','^(?:http|https)://www\\.jomoo\\.com\\.cn/item/[a-z0-9-]+\\.htm':'jomooshop','^(?:http|https)://www\\.dapu\\.com/product-\\d+\\.html':'dapu','^(?:http|https)://china\\.coach\\.com/product/\\d+':'coach','^(?:http|https)://china\\.coach\\.com/[a-z\\-]+/\\d+_\\w+':'coach','^(?:http|https)://www\\.shanmai\\.cn/product-\\d+\\.html':'shanmai','^(?:http|https)://www\\.fengbuy\\.com/[a-z0-9-]+\\.html':'fengbuy','^(?:http|https)://www\\.t10\\.com/\\w+-\\d+/':'t10','^(?:http|https)://cn\\.amcal\\.com\\.au/\\d+\\.html':'amcal','^(?:http|https)://cn\\.amcal\\.com\\.au/product/\\d+\\.html':'amcal','^(?:http|https)://cn\\.babyhaven\\.com/product/\\d+\\.html':'babyhaven','^(?:http|https)://www\\.51taouk\\.com/[A-Z0-9]+$':'51taouk',"^(?:http|https)://(?:www|shop)\\.usashopcn\\.com/goods\\.php\\?id=\\d+":"usashopcn","^(?:http|https)://www\\.petit-bateau\\.us/[a-z0-9-]+/d/[0-9A-Z]+\\?CategoryId":"petit-bateau","^(?:http|https)://www\\.tlcpharmacy\\.cn\\.com/\\d+\\.html":"bienmanger","^(?:http|https)://www\\.km1818\\.com/products/\\d+\\.html":"km1818","^(?:http|https)://www\\.bienmanger\\.cn/\\d+\\.html":"bienmanger","^(?:http|https)://www\\.syshop\\.com/goods/gooddetail/\\d+\\.html":"syshop","^(?:http|https)://www\\.qipaimall\\.com/goods/\\?goods_sn=":"qipaimall","^(?:http|https)://mall\\.goumin\\.com/mall/view/\\d+":"goumin","^(?:http|https)://www\\.taohwu\\.com/goods-\\d+\\.html":"taohwu","^(?:http|https)://www\\.xmeise\\.com/goods-\\d+\\.html":"xmeise","^(?:http|https)://www\\.septwolves\\.cn/ishop/web/theme/default/Ishop_pc/dist/#/goods_details\\?goods_id=\\d+":"septwolves","^(?:http|https)://www\\.kiehls\\.com/[a-z]+/[a-z0-9-]+/[a-z0-9-]+/\\d+\\.html":"kiehls","^(?:http|https)://www\\.puzeyf\\.com/detail/\\d+\\.html":"puzeyf","^(?:http|https)://www\\.aizhigu\\.com\\.cn/product\\.\\d+\\.html":"aizhigu","^(?:http|https)://www\\.hecha\\.cn/sgoods-\\d+\\.html":"hecha","^(?:http|https)://www\\.zgshoes\\.com/goods-\\d+\\.html":"zgshoes","^(?:http|https)://cn\\.takeya\\.co\\.jp/\\d+\\.html/":"takeya","^(?:http|https)://cn\\.takeya\\.co\\.jp/product/\\d+\\.html":"takeya","^(?:http|https)://www\\.shoprobam\\.com/Home/Products/detail/gid/\\d+":"shoprobam","^(?:http|https)://www\\.opplestore\\.com/item\\.html\\?itemId=\\d+":"opplestore","^(?:http|https)://www\\.maichawang\\.com/goods-\\d+\\.html":"maichawang","^(?:http|https)://www\\.bose\\.com/en_us/products/":"bose","^(?:http|https)://dewaren\\.com/cn/[a-zA-Z0-9]+/[a-zA-Z0-9-]+/\\w+/[0-9]+\\.html":"dewaren","^(?:http|https)://dewaren\\.com/cn/[a-zA-Z0-9-]+/\\w+[0-9\\-]+\\.html":"dewaren","^(?:http|https)://www\\.winona\\.cn/product/[0-9]+\\.html":"winona","^(?:http|https)://www\\.motorola\\.com\\.cn/store/[0-9_]+\\.html":"motorola","^(?:http|https)://www\\.motorola\\.com\\.cn/[a-z0-9]+/[a-z0-9]+/index\\.html":"motorola","^(?:http|https)://www\\.danielwellington\\.cn/[a-z0-9-]+[^\\/]$":"danielwellington-cn","^(?:http|https)://www\\.danielwellington\\.com/us/[a-z0-9-]+[^\\/]$":"danielwellington","^(?:http|https)://www\\.danielwellington\\.com/global/[a-z0-9-]+[^\\/]$":"danielwellington",'^(?:http|https)://youhui\\.pinduoduo\\.com/goods/goods-detail\\?goodsId=\\d+':'pinduoduo', // "^(?:http|https)://www.iherb.com/pr/[a-z0-9A-Z-]+/\\d+": "iherb", "^(?:http|https)://(?:mobile\\.|)yangkeduo.com/goods(?:2|1)?\\.html\\?":"yangkeduo","^(?:http|https)://www.finishline.com/store/product/":"finishline","^(?:http|https)://www.skinstore.com/[a-z0-9A-Z-]+/\\d+\\.html":"skinstore","^(?:http|https)://item.wjike.com/\\d+\\.html":"wjike","^(?:http|https)://youpin.mi.com/detail\\?gid=\\d+":"youpin-mi","^(?:http|https)://www\\.xiaomiyoupin\\.com/detail\\?gid=\\d+":"youpin-mi","^(?:http|https)://store\\.steampowered\\.com/app/\\d+":"steampowered","^(?:http|https)://store\\.steampowered\\.com/sub/\\d+":"steampowered","^(?:http|https)://www.forever21.com/UK/Product/Product\\.aspx":"forever21","^(?:http|https)://www.jialich.cn/goods\\.php\\?id=\\d+":"jialich","^(?:http|https)://www.tthigo.com/product/\\w+":"tthigo","^(?:http|https)://www\\.modernavenue\\.com/product-\\d+\\.html":"modernavenue","^(?:http|https)://www\\.tcl\\.com/\\w+/\\w+":"tcl","^(?:http|https)://www\\.bonjourhk\\.com/\\d+":"bonjourhk","^(?:http|https)://m\\.bonjourhk\\.com/[a-z]+/\\d+":"bonjourhk","(?:http:|https:)//www\\.trt\\.hk/page/products/\\d+\\.html":"trt","^(?:http|https)://www\\.forestfood\\.com/goods\\.php\\?id=\\d+":"forestfood","(?:http:|https:)//www\\.converse\\.com\\.cn/[a-z-_]+/\\d+/item":"converse","(?:http:|https:)//www\\.converse\\.com\\.cn/[a-z0-9-_]+/\\w+/item\\.htm":"converse","^(?:http|https)://www\\.fila\\.cn/item-index-[a-z0-9]+\\.html":"fila","^(?:http|https)://www\\.fila\\.cn/fila-[A-Za-z0-9]+\\.html":"fila","(?:http:|https:)//www\\.levi\\.com\\.cn/(?:men|women)/[a-z-]+/[0-9-]+/item":"levi","(?:http:|https:)//www\\.levi\\.com/[A-Z]+/[a-zA-Z_]+/[a-z]+/[a-z0-9-]+/p/\\d+":"levi","^(?:http|https)://www\\.hangowa\\.com/item-\\d+\\.html":"hangowa","^(?:http|https)://www\\.super-in\\.com/product/\\d+\\.html":"super-in","^(?:http|https)://www\\.ccxpet\\.com/Product/Detail":"ccxpet","^(?:http|https)://www\\.360lj\\.com/product/\\d+\\.html":"360lj","^(?:http|https)://www\\.hysjg\\.com/goods\\.php\\?id=\\d+":"hysjg","^(?:http|https)://www\\.0061\\.com\\.au/product/content/\\d+":"x0061","^(?:http|https)://mall\\.ecovacs\\.cn/product-\\d+\\.html":"ecovacs","^(?:http|https)://mall\\.littleswan\\.com/detail/index(?:/sale|)\\?itemid":"littleswan","^(?:http|https)://www\\.vitagou\\.hk/products/id/\\d+":"vitagou","^(?:http|https)://www\\.vitagou\\.hk/product-\\d+\\.html":"vitagou","^(?:http|https)://www\\.vitagou\\.hk/detail-\\d+\\.html":"vitagou","^(?:http|https)://www\\.hpstore\\.cn/accessary/\\w+":"hpstore","^(?:http|https)://www\\.hpstore\\.cn/(?:hp|omen)-":"hpstore","^(?:http|https)://www\\.kkguan\\.com/goods-\\d+\\.html":"kkguan","^(?:http|https)://www\\.mayn\\.com\\.cn/html/\\d+/\\d+":"mayn","^(?:http|https)://www\\.peikua\\.com/product-\\d+\\.html":"peikua","^(?:http|https)://item\\.kinhom\\.com/\\d+\\.html":"kinhom","^(?:http|https)://www.9drug.com/goods-\\d+\\.html":"9drug","^(?:http|https)://www.tea7.com/item/\\d+\\.html":"tea7","^(?:http|https)://www.01home.com/product/[a-z0-9-]+\\.html":"01home","^(?:http|https)://www.hpstore.cn/wasd-ii-[a-z0-9-]+\\.html":"hpstore","^(?:http|https)://www\\.hpstore.cn/(?:[a-z0-9-]+/|)[a-z0-9-]+\\.html":"hpstore","^(?:http|https)://www.aliexpress.com/store/product/":"aliexpress","^(?:http|https)://www.aliexpress.com/item/\\w+":"aliexpress","^(?:http|https)://www.easytoys.cn/\\d+\\.html":"easytoys","^(?:http|https)://www.kiwistarcare.com/goods-\\d+\\.html":"kiwistarcare","^(?:http|https)://www.carrefour.cn/product/\\d+":"carrefour","^(?:http|https)://china.lotte.com/goods/viewGoodsDetail\\.lotte":"lotte","^(?:http|https)://www.ewatches.com/detail\\.asp":"ewatches","^(?:http|https)://global.timex.com/node/\\d+":"timex","^(?:http|https)://comfortfirst.com/[a-z0-9-]+/[a-z0-9-]+/[a-z0-9-]+\\.html":"comfortfirst","^(?:http|https)://www.luolai.cn/product-\\d+\\.html":"luolai","^(?:http|https)://www.youyu.com/goods\\?sn=\\d+":"youyu","^(?:http|https)://www.yoox.cn/(?:cn/)[a-z0-9A-Z]+/item":"yoox","^(?:http|https)://store.yoox.cn/(?:cn/)[a-z0-9A-Z]+/item":"yoox", // "^(?:http|https)://www.walgreens.com/store/\\w+/[a-z0-9-]+/ID=prod\\d+-product": "walgreens", "^(?:http|https)://www.suanjuzi.com/product-\\d+\\.html":"suanjuzi","^(?:http|https)://www.yao123.com/product/\\w+":"yao123","^(?:http|https)://item.baobeigezi.com/product/\\d+\\.html":"baobeigezi","^(?:http|https)://www.baobeigezi.com/product/\\d+\\.html":"baobeigezi","^(?:http|https)://www.opposhop.cn/products/\\d+\\.html":"opposhop","^(?:http|https)://www.opposhop.cn/products/\\d+":"opposhop",'^(?:http|https)://store\\.oppo\\.com/(?:goods|products)/\\d+':'opposhop','^(?:http|https)://www\\.oppo\\.com/cn/product':'opposhop','^(?:http|https)://hd.oppo.com/act/\\d+/oppoR9s':'opposhop',"^(?:http|https)://mall.to8to.com/temai/\\d+.html":"to8to","^(?:http|https)://item\\.yunhou\\.com/\\d+\\.html":"yunhou","^(?:http|https)://item\\.yhd\\.com":"yihaodian","^(?:http|https)://www\\.haituncun\\.com/[a-z]+/[a-z0-9]+/\\d+/":"haituncun","^(?:http|https)://www\\.walmart\\.com/ip/[a-zA-Z0-9-]+/\\d+":"walmart","^(?:http|https)://www\\.vmei\\.com/product/[0-9]+":"vmei","^(?:http|https)://www\\.jgb\\.cn/p/[a-z0-9_]+\\.html":"jgb","^(?:http|https)://www\\.51din\\.com/product/[0-9]+/[0-9]+\\.html":"51din","^(?:http|https)://www.51din.com/product/(?!list)/[0-9]+.jhtml":"51din","^(?:http|https)://www\\.aidai\\.com/Product[0-9]+\\.html":"aidai","^(?:http|https)://shop\\.boqii\\.com/product-[0-9]+\\.html":"boqii","^(?:http|https)://www\\.spider\\.com.cn/[a-z]+/[0-9]+\\.html":"spider","^(?:http|https)://www\\.spider\\.com.cn/auction.html?auctionid=[0-9]+ ":"spider","^(?:http|https)://www\\.jiae\\.com/productdetail?productId=[0-9]+":"jiae","^(?:http|https)://(?:item|www)\\.zazhipu\\.com/[0-9]+\\.html":"zazhipu","^(?:http|https)://www\\.walmart\\.com/ip/\\d+":"walmart","^(?:http|https)://www\\.shop\\.philips\\.com\\.cn/item/[a-z0-9-]+":"philips",'^(?:http|https)://tuan.zhongjiu.cn/product/detail/\\d+.htm':'zhongjiu','^(?:http|https)://www.zhongjiu.cn/productdetail/\\d+.htm':'zhongjiu','^(?:http|https)://www.kaluli.com/product/\\d+.html':'kaluli','^(?:http|https)://shop.wstx.com/item/\\d+':'wstx','^(?:http|https)://www.purcotton.com/detail/\\d+/[0-9-]+\\.html':'purcotton','^(?:http|https)://shop.juanpi.com/[a-z]+/\\d+':'juanpi','^(?:http|https)://www.gnc.com/[A-Za-z0-9-]+/product.jsp':'gnc','^(?:http|https)://www.jinxiang.com/product/\\d+\\.html':'jinxiang','^(?:http|https)://1.163.com/detail/\\d+-\\d+\\.html':'1-163','^(?:http|https)://www.guojimami.com/goods-\\d+\\.html':'guojimami','^(?:http|https)://www.baiyangwang.com/product/\\d+\\.html':'baiyangwang','^(?:http|https)://www.baiyangwang.com/item-\\d+\\.html':'baiyangwang','^(?:http|https)://cn.royyoungchemist.com.au/\\d+\\.html':'royyoungchemist','^(?:http|https)://cn.medihealshop.com/\\d+':'medihealshop','^(?:http|https)://(?:www\\.|)medihealshop.com/shop/shopdetail\\.html\\?':'medihealshop','^(?:http|https)://cn.1001pharmacies.com/\\d+\\.html':'1001pharmacies','^(?:http|https)://www.lookfantastic.cn/[a-z0-9-.]+/\\d+':'lookfantastic-cn','^(?:http|https)://www.lookfantastic.cn/beauty-box/[a-z0-9-.]+/\\d+':'lookfantastic-cn','^(?:http|https)://www.lookfantastic.com/[a-z0-9-.]+/\\d+':'lookfantastic-com','^(?:http|https)://www.lookfantastic.com/beauty-box/[a-z0-9-.]+/\\d+':'lookfantastic-com','^(?:http|https)://you.163.com/item/detail':'you163','^(?:http|https)://product.bl.com/\\d+\\.html':'bl','^(?:http|https)://www.bestinfoods.com/(?:\\?|)product-[0-9]+\\.html':'bestinfoods','^(?:http|https)://www.muji.net/store/\\w+/detail/[0-9]+':'muji', // 'item2.gmarket.co.kr/Item/detailview/Item.aspx': 'gmarket', '^(?:http|https)://www\\.easeeyes\\.com/goods[0-9]+\\.html':'easeeyes','^(?:http|https)://www\\.lingshi\\.com/product/lingshi-\\d+\\.htm':'lingshi','^(?:http|https)://www\\.nubia\\.com/(?:nubian1|nubiamyprague|pragues|nubiaz9mark|nubiaz9|nubiaz9max|nubiaz9max|nubiaz9max|nubiaz11mini|nubiaZ11mini|nubiaz11max|nubiaz11max|nubiaz11max|nubiaz11|nubiaz11|nubiaz11)':'nubia','^(?:http|https)://shop\\.nubia\\.com/active/\\w+\\.html':'nubia','^(?:http|https)://shop\\.nubia\\.com/product\\.php\\?(?:s|)id=\\d+':'nubia','^(?:http|https)://(?:www|shop)\\.nubia\\.cn/product\\.php\\?sid=\\d+':"nubia",'^(?:http|https)://www.nubia.com/((?!.php).)*$':'nubia','^(?:http|https)://shop.nubia.com/buy/(?:nubian1|nubiamyprague|pragues|nubiaz9mark|nubiaz9|nubiaz9max|nubiaz9max|nubiaz9max|nubiaz11mini|nubiaZ11mini|nubiaz11max|nubiaz11max|nubiaz11max|nubiaz11|nubiaz11|nubiaz11|nubia\\w+)':'nubia','^(?:http|https)://www\\.kzj365\\.com/goods-\\d+\\.html':'kzj365','^(?:http|https)://(?:www|goods)\\.kaola\\.com/product/\\d+\\.html':'kaola','^(?:http|https)://www\\.kaola\\.com.hk/product/\\d+\\.html':'kaola','^(?:http|https)://(?:www|goods)\\.kaola\\.com.hk/product/\\d+\\.html':'kaola','^(?:http|https)://www\\.ymatou\\.(?:com|hk)/product/[a-zA-Z0-9-]+\\.html':'ymatou','^(?:http|https)://detail\\.metao\\.com/products/\\d+':'metao','^(?:http|https):tv\\.coocaa\\.com/goods/\\d+.htm':'coocaa','^(?:http|https)://www\\.coocaa\\.com/goods/get_[0-9]+\\.html':'coocaa','^(?:http|https)://www\\.lifevc\\.com/item/\\d+':'lifevc','^(?:http|https)://www\\.supuy\\.com/products/\\d+\\.html':'supuy','^(?:http|https)://www\\.supumall\\.com/Goods/goodsinfo/goodsCode/[0-9]+':'supuy','^(?:http|https)://www\\.mia\\.com/item-\\d+\\.html':'miyabaobei','^(?:http|https)://miyabaobei.hk/item-[0-9]+.html':'miyabaobei','^(?:http|https)://www.miyabaobei.hk/item-[0-9]+.html':'miyabaobei', //'item.gomehigo.hk/[0-9a-zA-Z]+-pop[0-9]+': 'gomehigo', '^(?:http|https)://item.gomehigo.hk/[0-9a-zA-Z]+-.*':'gomehigo','http://www\\.wangfujing\\.com/item/[0-9A-Z]+':'wangfujing','^(?:http|https)://global\\.gou\\.com/product_[0-9]+\\.html':'gou','^(?:http|https)://www\\.gou\\.com/[a-z0-9_]+\\.html':'gou','^(?:http|https)://(?:www\\.|)ikjtao\\.com/goods-[0-9]+\\.html':'ikjtao','^(?:http|https)://(?:www\\.|)ikjtao\\.com/goods.php':'ikjtao','^(?:http|https)://(?:www\\.|)bestkeep\\.cn/item/\\d+':'ikjtao','^(?:http|https)://(?:item|np)\\.ule\\.com/item/[0-9-]+\\.html':'ule','^(?:http|https)://shop\\.philips\\.com\\.cn/product/\\w+/detail\\.htm':'philips','^(?:http|https)://shop\\.tcl\\.com/ProductDetail/index/id/\\d+\\.html':'tcl','^(?:http|https)://mall\\.tcl\\.com/front/product/toProduct/[a-z0-9]+':'tcl','^(?:http|https)://www\\.e-changhong\\.com/webapp/wcs/stores/servlet/Product[\\w_-]+':'changhong','^(?:http|https)://shop\\.konka\\.com/goods\\.php\\?id=\\d+':'konka','^(?:http|https)://shop\\.konka\\.com/product-[0-9]+\\.html':'konka','^(?:http|https)://shop\\.hisense\\.com/Home/Products/detail/gid/\\d+':'hisense','^(?:http|https)://(?:www|shop)\\.hisense\\.com/(?:product|items)/[a-z0-9-]+':'hisense','^(?:http|https)://www\\.ineigo\\.com/Product/product.aspx\\?&?id=\\d+':'ineigo','^(?:http|https)://www\\.skg\\.com/\\d+\\.html':'skg','^(?:http|https)://www\\.skg\\.com/product/[0-9]+\\.htm':'skg','^(?:http|https)://www\\.oyeah\\.com/giveaway-[0-9a-z-]+':'oyeah','^(?:http|https)://www\\.morefood\\.com/products/info/[0-9]+\\.html':'morefood','^(?:http|https)://www\\.zhen\\.com/product-[0-9]+\\.html':'zhen','^(?:http|https)://shop\\.vivo\\.com\\.cn/index\\.php/product-\\d+\\.html':'vivo','^(?:http|https)://shop\\.vivo\\.com\\.cn/product-[0-9]+':'vivo','^(?:http|https)://shop\\.vivo\\.com\\.cn/product/[0-9]+':'vivo','^(?:http|https)://gfive\\.b2c\\.eqimingxing\\.com/product-\\d+\\.html':'gfive','^(?:http|https)://www\\.6pm\\.com/product/':'6pm','^(?:http|https)://www\\.6pm\\.com/p/[a-z0-9-]+/product/':'6pm', // '^(?:http|https)://www\\.sierratradingpost\\.com/[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-[a-z0-9]+-': 'sierratradingpost', '^(?:http|https)://shop\\.gionee\\.com/goods/\\d+':'gionee','^(?:http|https)://z\\.gionee\\.com/details-pc/\\w+/index\\.html':'gionee','^(?:http|https)://store\\.lining\\.com/shop/goods-[0-9]+':'lining','^(?:http|https)://store\\.lining\\.com/goods/detail.*':'lining','^(?:http|https)://www\\.mf910\\.com/product-[0-9]+\\.html':'mf910','^(?:http|https)://www\\.k-touch\\.cn/product/detail/prod_id/\\d+\\.html':'k-touch','^(?:http|https)://www\\.k-touch\\.cn/Product/ProductDetail\\?productid':'k-touch','^(?:http|https)://item\\.grainger\\.cn/g/\\d+':'grainger','^(?:http|https)://piao\\.163\\.com/\\w+/movie/\\d+\\.html':'wy163','^(?:http|https)://mall\\.163\\.com/p/product/\\d+\\.html':'wy163', //'^(?:http|https)://[\\w]+\\.nuomi\\.com/deal/\\w+\\.html':'nuomi', '^(?:http|https)://detail\\.yao.\\95095\\.com/item\\.htm':'taobao-95095','^(?:http|https)://www\\.ebay\\.com/itm/[0-9a-zA-Z]+':'ebay','^(?:http|https)://(?:www\\.|)100yue\\.com/product-[0-9]+\\.html':'100yue','^(?:http|https)://www\\.feiniu\\.com/item/[-\\w]+':'feiniu','^(?:http|https)://www\\.lemall\\.com/product/':'lemall','^(?:http|https)://www\\.lemall\\.com/cn/(?:tv|sale|phone)/\\w+':'lemall','^(?:http|https)://www\\.lemall\\.com/(?:le_2|le_max|le_1pro|x55pro|x65|x55|x43s|x40s|umax120|chao4max70)':'lemall','^(?:http|https)://www\\.lemall\\.com/(?:chao4|le_max|le_max2|le_2pro|le_2|le_max2|x40sx40s)/(?:\\w+/|)\\w+\\.html':'lemall','^(?:http|https)://item\\.feiniu\\.com/[0-9]+':'feiniu','^(?:http|https)://www\\.xgbaby\\.com/product/[0-9]+':'bbready','^(?:http|https)://www\\.zuipin\\.cn/[0-9a-z-]+\\.html':'zuipin','^(?:http|https)://www\\.zuipin\\.cn/goods\\?id=\\d+':'zuipin','^(?:http|https)://item\\.feifei\\.(?:cn|com)/\\w+\\.html':'feifei','^(?:http|https)://www\\.feifei\\.com/order/-/product-info/productname/[0-9]+\\.html':'feifei','^(?:http|https)://guang\\.com/baobei/\\d+':'guang','^(?:http|https)://www\\.haitaocheng\\.com/Product/Detail-\\d+\\.html':'haitaocheng','^(?:http|https)://www\\.rrs(?:jk|)\\.com/product/[0-9]+\\.html':'rrs','^(?:http|https)://shop\\.ccb\\.com/products/pd_[0-9]+\\.jhtml':'ccb','^(?:http|https)://www\\.meilishuo\\.com/(?:prom|share)/item/\\d+':'meilishuo','^(?:http|https)://www\\.meilishuo\\.com/share/[\\d]+':'meilishuo','^(?:http|https)://item\\.meilishuo\\.com/detail/':'meilishuo','^(?:http|https)://www\\.mogujie\\.com/tuan/detail/\\w+':'mogujie','^(?:http|https)://shop\\.mogu(?:jie|)\\.com/detail/\\w+':'mogujie','^(?:http|https)://www\\.mogujie\\.com/note/.*?showtype=good':'mogujie','^(?:http|https)://www\\.supumall\\.com/products/[0-9]+\\.html':'supumall','^(?:http|https)://shop\\.coolpad\\.(?:com|cn)/goods/\\d+\\.htm':'coolpad','^(?:http|https)://(www\\.)?yiguo\\.com/product/\\d+\\.html':'yiguo','^(?:http|https)://(www\\.)?yiguo\\.com/CommodityDetail\\.aspx\\?CommodityId=':'yiguo','^(?:http|https)://item\\.wanggou\\.com/':'wanggou','^(?:http|https)://mall\\.jia\\.com/item/':'jia','^(?:http|https)://www\\.jiumei\\.com/product/[a-z0-9_-]+\\.shtml':'jiumei','^(?:http|https)://weigou\\.baidu\\.com/item':'baidu-weigou','^(?:http|https)://shop\\.letv\\.com/product/':'letv','^(?:http|https)://www\\.(xiao)?mi\\.com/(goods|item)/':'xiaomi','^(?:http|https)://item\\.mi\\.com/[0-9]+\\.html':'xiaomi','^(?:http|https)://item\\.mi\\.com/product/[0-9]+\\.html':'xiaomi','^(?:http|https)://www\\.mi\\.com/buy/detail':'xiaomi','^(?:http|https)://item\\.mi\\.com/buy(?:phone|mitv|mitv\\w+)/[a-z0-9]+':'xiaomi','^(?:http|https)://item\\.mi\\.com/static/[a-z0-9]+':'xiaomi','^(?:http|https)://item\\.mi\\.com/buy/[a-z0-9]+':'xiaomi','^(?:http|https)://www\\.mi\\.com/(?:mi5|mimax|redminote4|note3|hongmi3s|redmipro|hongmi3|hongmi3x|mibookair|mipad2|mitv3s|mitv3s|mitv3s|mitv3|mitv3|mitv3|tvzj|hezi3s|hezi3|hezimini|shb|mivr1c|miwifi3|scooter|mibicycle|kettle|dianfanbao|micamera|xiaoyi|air2|water|water2|ihealth2|ihealth|mjsmartlamp|desklamp|mitu|cute|wangguan|shouhuan2|shouhuan|scale|mituwatch|miwifimini|miwifilite|miwifi3c|miwifi|dianyuan10000|dianyuan10000|dianyuan5000|chaxianban2|powerstrip|recharger|chongdianqi4kou|headphone|quantie|capsuleearphone|pocketaudio|littleaudio|yinxiang|speaker|radio|mimosdge|gelpen|pillowZ1|pillowZ2|roomrobot|recharger7|charger|bluetooth-headset|suitcase|redmi\\w+|mi5splus|mi5s|mix|minote\\w+|mi5c|max\\w+|mi6|mipad3|mitv\\w+)/':'xiaomi','^(?:http|https)://www\\.handu\\.com/goods-':'handu','^(?:http|https)://www\\.yummy77\\.com/product/[0-9]+\\.html':'yummy77','^(?:http|https)://www\\.fruitday\\.com/web/pro/[0-9]+':'fruitday','^(?:http|https)://www\\.fruitday\\.com/prodetail/index/[0-9]+':'fruitday','^(?:http|https)://www\\.benlai\\.com/items?-\\d+':'benlai','^(?:http|https)://www\\.benlai\\.com/[a-z/]+/item-[0-9]+\\.html':'benlai','^(?:http|https)://taoshu\\.com/\\d+\\.html':'taoshu','^(?:http|https)://www\\.meilele\\.com/category-[a-z]+/goods-[0-9]+\\.html':'meilele','^(?:http|https)://www\\.meilele\\.com/tuangou/info-[0-9]+.html':'meilele-tuan','^(?:http|https)://www\\.meilele\\.com/miaosha/ms-[0-9]+.html':'meilele-ms','^(?:http|https)://www\\.gjw\\.com/product/item':'gjw','^(?:http|https)://www\\.gjw\\.com/Home/TuanItem/\\d+\\.htm':'gjw','^(?:http|https)://www\\.gjw\\.com/TryDrink/item-id-[0-9]+\\.htm':'gjw','^(?:http|https)://www\\.oneplus\\.com/cn/':'oneplus','^(?:http|https)://store\\.apple\\.com/cn/product/':'apple','^(?:http|https)://www\\.apple\\.com/cn/(?:macbook|ipad-pro|ipad|ipad-mini-4|iphone-7|iphone-\\w+|ipod-shuffle)/':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-iphone/iphone\\w+':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-mac/\\w+-\\w+\\?product=\\w+/\\w+':'apple','^(?:http|https)://www\\.apple\\.com\\.cn/shop/':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-ipad/ipad-\\w+-\\w+':'apple','^(?:http|https)://store\\.apple\\.com/cn/buy-ipod/ipod-\\w+-\\w+':'apple','^(?:http|https)://www\\.apple\\.com/cn/shop/(?:product|buy-[a-z]+)/[a-z0-9-]+':'apple','^(?:http|https)://www\\.j1\\.com/product/':'j1','^(?:http|https)://miao\\.j1\\.com/product/':'j1-miao','^(?:http|https)://(?:www\\.|)zzl365\\.com/product-\\d+':'zzl365','^(?:http|https)://mobile\\.139shop\\.com/.*?/\\d+/\\d+\\.htm':'139shop','^(?:http|https)://139shop\\.com/[a-z0-9-]+/[a-z0-9]+/[a-z0-9]+\\.htm':'139shop', // '^(?:http|https)://detail\\.1688\\.com/offer/\\d+': '1688', '^(?:http|https)://www\\.yiwugou\\.com/product/detail/[0-9]+\\.html':'yiwugou','^(?:http|https)://www\\.zhiwo\\.com/product/\\d+':'zhiwo','^(?:http|https)://www\\.zhiwo\\.com/group/\\d+':'zhiwo-tuan','^(?:http|https)://[^\\.]+\\.miqi\\.cn/[^/]+/p\\d+':'miqi','^(?:http|https)://www\\.miqi\\.cn/[a-z]+/[0-9]+\\.html':'miqi','^(?:http|https)://www\\.camel\\.com\\.cn/[a-zA-Z0-9]+(_[a-zA-Z0-9]+)+/[\\w]+\\.shtml':'camel','^(?:http|https)://www\\.camel\\.com\\.cn/[a-zA-Z0-9_]+/[A-Za-z0-9]+\\.shtml':'camel','^(?:http|https)://www\\.kuaishubao\\.com/\\d+/\\d+':'kuaishubao','^(?:http|https)://www.kuaishubao.com/g/':'kuaishubao','^(?:http|https)://www\\.juegg\\.com/templets/DefaultGreen/Product\\.jsp':'juegg','^(?:http|https)://mall\\.10010\\.com/goodsdetail/[\\d]+\\.html':'mall10010','^(?:http|https)://www\\.wowsai\\.com/goods/':'wowsai','^(?:http|https)://www\\.tianpin\\.com/item/':'tianpin','^(?:http|https)://www\\.tootoo\\.cn/product-':'tootoo','^(?:http|https)://www\\.tootoo\\.cn/[a-z]+/detail/[0-9]+':'tootoo','^(?:http|https)://item\\.minshengec\\.com/[a-z]-(?:|[a-zA-Z%0-9]+)/[a-z0-9-]+\\.jhtml':'minshengec','^(?:http|https)://www\\.sfbest\\.com/html/(sfv)?products/':'sfbest','^(?:http|https)://ht\\.sfbest\\.hk/[0-9a-z_]+\\.htm':'sfbest','^(?:http|https)://shop\\.lenovo\\.com\\.cn/product-':'lenovo','^(?:http|https)://(?:item|\\w+)\\.lenovo\\.com\\.cn/product/\\d+\\.html':'lenovo','^(?:http|https)://shop\\.lenovomobile\\.com/ShowPhone.aspx\\?GdsID=':'lenovo','^(?:http|https)://www\\.lenovomobile\\.com/store/\\d+\\.html':'lenovo','^(?:http|https)://www\\.lenovo\\.com\\.cn/product/[0-9]+\\.html':'lenovo','^(?:http|https)://www\\.lenovo\\.com\\.cn/abtest/[0-9_]+\\.shtml':'lenovo','^(?:http|https)://thinkpad\\.lenovo\\.com\\.cn/product/[0-9]+\\.html':'lenovo','^(?:http|https)://www\\.vmall\\.com/item/\\d+/(?:index|buy)':'vmall','^(?:http|https)://www\\.vmall\\.com/product/\\d+\\.html':'vmall','^(?:http|https)://www.hihonor.com/cn/shop/product/\\d+\\.html':'hihonor','^(?:http|https)://www\\.ihush\\.com/product':'ihush','^(?:http|https)://(?:www\\.)?fclub\\.cn/goods':'fclub','^(?:http|https)://item\\.yohobuy\\.com/product/\\w+/\\w+\\.html':'yohobuy','^(?:http|https)://item\\.yohobuy\\.com/\\w+\\.html':'yohobuy','^(?:http|https)://www\\.yohobuy\\.com/product/\\d+\\.html':'yohobuy','^(?:http|https)://www\\.fclub\\.cn/tuangouDetail\\.html':'fclub','^(?:http|https)://ju\\.taobao\\.com/tg/home\\.htm.*(item_)?id=[\\d]+':'taobao-ju','^(?:http|https)://detail\\.tmall\\.com/item\\.htm':'tmall','^(?:http|https)://detail\\.liangxinyao\\.com/item\\.htm':'tmall','^(?:http|https)://world\\.tmall\\.com/item/[0-9]+\.htm':'tmall','^(?:http|https)://detail\\.tmall\\.hk/hk/item\.htm':'tmall','^(?:http|https)://detail\\.tmall\\.hk/item\\.htm':'tmall','^(?:http|https)://item\\.taobao\\.com/item\.htm':'taobao','^(?:http|https)://2\\.taobao\\.com/item\\.htm':'taobao-xianyu','^(?:http|https)://ai\\.taobao\\.com/auction':'ai-taobao','^(?:http|https)://chaoshi\\.detail\\.tmall\\.com/item\\.htm':'tmall','^(?:http|https)://detail\\.ju\\.taobao\\.com/home\\.htm':'taobao-ju','^(?:http|https)://(?:archive-shop|shop|www|day|lux)\\.vip(shop)?\\.com/detail':'vipshop','(?:https|http):\\/\\/detail\\.vip\\.com\\/detail-\\d+':'vipshop','(?:https|http):\\/\\/www\\.vipglobal\\.hk\\/detail-\\d+':'vipshop','^(?:http|https)://tuan\\.lefeng\\.com/.*?/\\d+_\\d+\\.html':'lefeng','^(?:http|https)://(?:www|product)\\.lefeng\\.com/(product|pklist)/':'lefeng','^(?:http|https)://(?:www|1hour)\\.jxdyf\\.com/product[-/][\\d]+':'jxdyf','^(?:http|https)://www\\.jxdyf\\.com/ProductContent':'jxdyf','^(?:http|https)://www\\.tnice\\.com/product/':'tnice','^(?:http|https)://auction1\\.paipai\\.com/':'paipai','^(?:http|https)://item\\.xinbaigo\\.com/Goods/StyleDetail':'xinbaigo','^(?:http|https)://www\\.orbis\\.com\\.cn.*product\\-[\\d]+':'orbis','^(?:http|https)://www\\.sfht\\.com/detail/[0-9]+\\.html':'sfht','^(?:http|https)://(?:www|cosmetic)\\.d1\\.com\\.cn/product/':'d1','^(?:http|https)://www\\.chazuo\\.com/Product/p\\-[\\d]+':'chazuo','^(?:http|https)://www\\.u1baby\\.com/product\\-[\\d]+':'u1baby','^(?:http|https)://(www\\.)?homevv\\.com/vvshopProductView/pid\\-[\\d]+\\.jhtml':'homevv','^(?:http|https)://(www\\.)?homevv\\.com/vvshopProductView\\.jhtml':'homevv','^(?:http|https)://www\\.paixie\\.net/shoe\\-.+\\.html':'paixie','^(?:http|https)://tuan\\.paixie\\.net/[0-9]+\\.html':'paixie-tuan','^(?:http|https)://faxian\\.paixie\\.net/[0-9]+\\.html':'paixie-faxian','^(?:http|https)://www\\.tao3c\\.com/(outlets/)?product/[\\d]+\\.html':'tao3c','^(?:http|https)://www\\.zm7\\.cn/goods':'zm7','^(?:http|https)://s\\.etao\\.com/item/[\\d]+\\.html':'etao','^(?:http|https)://s\\.etao\\.com/search\\?epid=[\\d]+':'etao','^(?:http|https)://product\\.pchouse\\.com\\.cn/item/[\\d]+\\.html':'pchouse','^(?:http|https)://buy\\.daphne\\.cn/goods\\.php':'daphne','^(?:http|https)://www\\.lucemall\\.com\\.cn/.+/[\\d]+\\.html':'lucemall','^(?:http|https)://www\\.lifevc\\.com/detail/':'lifevc','^(?:http|https)://www\\.easy361\\.com/[^\\?]*goods-[\\d]+\\.html':'easy361','^(?:http|https)://item\\.360hqb\\.com/spu\\-[\\d]+\\.html':'360hqb','^(?:http|https)://item\\.360hqb\\.com/[\\d]+\\.html':'360hqb','^(?:http|https)://q\\.360hqb\\.com/detail/[\\d\\_]+\\.html':'360hqb','^(?:http|https)://www\\.goujiuwang\\.com/product/item\\-id\\-[\\d]+\\.htm':'goujiuwang','^(?:http|https)://www\\.huimai365\\.com/goods\\-[\\d]+\\.html':'huimai365','^(?:http|https)://(www|tuan|dingzhi)\\.jiuxian\\.com/(goods|tuan_detail)\\-.+\\.htm':'jiuxian','^(?:http|https)://www\\.winenice\\.com/p_[\\d]+\\.shtml':'winenice','^(?:http|https)://www\\.yesmywine\\.com/goods/[\\d]+\\.html':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/shop/junkang/item-[\\d]+':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/shop/[\\w]+/item-[\\d]+':'yesmywine','^(?:http|https)://mall\\.yesmywine\\.com/groupbuy/\\d+\\.html':'yesmywine','^(?:http|https)://www\\.banggo\\.com/Goods/[\\d]+\\.shtml':'banggo','^(?:http|https)://www\\.banggo\\.com/goods_[0-9]+\\.shtml':'banggo','^(?:http|https)://www\\.banggo\\.com/goods/[0-9A-Za-z]+\\.s?html':'banggo','^(?:http|https)://ploy\\.banggo\\.com/second/[0-9-_]+\\.shtml':'banggo','^(?:http|https)://www\\.yanyue\\.cn/smoke\\-product\\-[\\d]+\\.html':'yanyue','^(?:http|https)://www\\.bearbuy\\.com\\.cn/goods\\.php\\?id=[\\d]+':'bearbuy','^(?:http|https)://www\\.amazon\\.cn/.*?(?:dp/|gp/product/|detailApp)':'amazon','^(?:http|https)://www\\.amazon\\.(com|co\\.uk|de|co\\.jp|fr|ca|cn|it|es|com\\.au)/.*?(?:dp/|gp/product/|detailApp)(?!search)':'amazon','^(?:http|https)://(?:product\\.dangdang\\.com/[^\\?]*product.aspx|reco\\.dangdang\\.com/reco_pub\\.php)\\?product_id=\\d+':'dangdang','^(?:http|https)://(?:product|detail)\\.dangdang\\.com/[\\d]+':'dangdang','^(?:http|https)://(?:product|detail)\\.globaldangdang\\.hk/[\\d]+\\.html':'dangdang','^(?:http|https)://z\\.jd\\.com/project/details/\\d+\\.html':"360buy",'^(?:http|https)://item\\.jd\\.com/\\d+\\.html':'360buy','^(?:http|https)://pcitem\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://npcitem\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://i-item\\.jd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.paipai\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.yiyaojd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.jkcsjd\\.com/\\d+\\.html':'360buy','^(?:http|https)://item\\.jd\\.hk/\\d+\\.html':'360buy','^(?:http|https)://paimai\\.jd\\.com/\\d+':'360buy-paimai','^(?:http|https)://day\\.jd\\.com/item/.*\\.html':'360buy-day','^(?:http|https)://www\\.(?:360buy|jd)\\.com/product/\\d+\\.html':'360buy','^(?:http|https)://(?:book|e)\\.(?:360buy|jd)\\.com/\\d+\\.html':'360buy-book','^(?:http|https)://re\\.jd\\.com/cps/item/[0-9]+\\.html':'360buy-re','^(?:http|https)://auction\\.jd\\.com/[0-9]+':'360buy-auction','^(?:http|https)://mvd\\.(?:360buy|jd)\\.com/\\d+\\.html':'360buy-mvd','^(?:http|https)://tuan\\.(?:360buy|jd)\\.com/team\\-\\d+\\.html':'360buy-tuan','^(?:http|https)://www\\.(?:360buy|jd)\\.com/tuan/[\\d]+\\-[\\d]+\\.html':'360buy-tuan','^(?:http|https)://www\\.(?:360buy|jd)\\.com/bigimage\\.aspx\\?id=\\d+':'360buy-bigimage','^(?:http|https)://club\\.jd\\.com/bbsDetail/[a-z0-9_-]+\\.html':'360buy-club','^(?:http|https)://www\\.360top\\.com/product/\\d+\\.html':'360top','^(?:http|https)://detail\\.zol\\.com\\.cn/.*?(?:index).*?\\.shtml':'zol','^(?:http|https)://detail\\.zol\\.com\\.cn/[\\d]+/[\\d]+/[a-zA-Z]+\\.shtml':'zol','^(?:http|https)://dealer\\.zol\\.com\\.cn/detail/[\\d]+/[\\d]+_[\\d]+.html':'zol','^(?:http|https)://(?:www|mall)\\.zol\\.com/detail':'zol','^(?:http|https)://detail\\.zol\\.com\\.cn/series/[0-9]+/[0-9_]+\\.html':'zol','^(?:http|https)://www\\.fglady\\.cn/BMsgL':'fglady','^(?:http|https)://(www.|)ouku\\.com/(?:goods|product)':'ouku','^(?:http|https)://(www.|)ouku\\.com/cn/[0-9a-z-_]+\\.html':'ouku','^(?:http|https)://www\\.newegg(\\.com)?\\.cn/Product/.*?\\.htm':'newegg','^(?:http|https)://zhadan\\.newegg(\\.com)?\\.cn/Bomb-\\d+\\.htm':'newegg','^(?:http|https)://zhadan\\.newegg\\.cn':'newegg-zhadan','^(?:http|https)://tuan\\.newegg\\.cn/deal/[0-9]+\\.htm':'newegg-tuan','^(?:http|https)://product\\.kimiss\\.com/product/':'kimiss','^(?:http|https)://www\\.redbaby\\.com\\.cn/.*?/\\d{7}\\d+\\.html':'redbaby','^(?:http|https)://product\\.m18\\.com/':'m18','^(?:http|https)://list\\.m18\\.com/item/':'m18','^(?:http|https)://list\\.m18\\.com/g/':'m18','^(?:http|https)://list\\.m18\\.com/.*Goods.aspx':'m18','^(?:http|https)://www\\.m18\\.com/item/':'m18','^(?:http|https)://www\\.w1\\.cn/goods':'w1','^(?:http|https)://www\\.ashford\\.com/us/watches/[a-z0-9-]+/[a-z0-9-]+':'ashford','^(?:http|https)://www\\.sephora\\.cn/productDetailAction/':'sephoracps','^(?:http|https)://www\\.sephora\\.cn/product/\\d+\\.html':'sephoracps','^(?:http|https)://www\\.sephora\\.cn/tryout/\\d+\\.html':'sephoracps','^(?:http|https)://www\\.lafaso\\.com/(?:product/|goods/product_detail)':'lafaso','^(?:http|https)://www\\.s\\.cn/(?!page)\\w{2,}\\-[A-Za-z0-9]+?[0-9]+?[A-Za-z0-9]+?[\\-_*\\.].*?html':'s', // '^(?:http|https)://www\\.s\\.cn/\\w{2,}\\-[A-Z0-9]+?[0-9]+?[A-Z0-9]+?[\\-_*\\.].*?html': 's', '^(?:http|https)://w?item\\.(?:51buy|yixun)\\.com/':'51buy','^(?:http|https)://www\\.okbuy\\.com/.*?/detail-':'okbuy','^(?:http|https)://www\\.okbuy\\.com/.*?-[\\d]+.html':'okbuy','^(?:http|https)://(www\\.)?letao\\.com/[^\\?]*shoe\\-[^\\~]*$':'letao','^(?:http|https)://(www\\.)?letao\\.com/[a-z0-9]+/detail\\.do\\?id=':'letao','^(?:http|https)://www\\.buy007\\.com/.*?/.*?/[A-Za-z\\d\\_\\-]*?\\.html':'buy007','^(?:http|https)://www\\.taoxie\\.com/commodity':'taoxie','^(?:http|https)://ju\\.suning\\.com/product-[a-zA-Z0-9]+\\.htm':'suning-ju','^(?:http|https)://item\\.suning\\.com/[0-9]+\\.html':'suning','^(?:http|https)://item\\.suning\\.com/[0-9]+/[0-9]+\\.html':'suning','^(?:http|https)://www\\.suning\\.(?:com|cn)/webapp/wcs/stores/servlet/(Prod|prd)':'suning','^(?:http|https)://pai\\.suning\\.(?:com|cn)/shanpai/detail/':'suning-pai','^(?:http|https)://pai\\.suning\\.(?:com|cn)/shanpai/[0-9]/detail/d/[0-9]+\-[0-9]':'suning-pai','^(?:http|https)://[\\w]+\\.suning\\.(?:com|cn)/emall/dgf':'suning-dgf','^(?:http|https)://qiang\\.suning\\.com/rps-web/rp/showActivity_[\\d]+\\.htm':'suning-qiang','^(?:http|https)://product\\.suning\\.com/\\d+':'suning','^(?:http|https)://product\\.suning\\.com/detail[0-9_]+\\.html':'suning','^(?:http|https)://www\\.suning\\.com/detail/':'suning-book-new','^(?:http|https)://snbook\\.suning\\.(?:com|cn)/web/prd/':'suning-snbook','^(?:http|https)://www\\.coo8\\.com/product/':'coo8','^(?:http|https)://(www.|)lusen\\.com/product/productinfo':'lusen','^(?:http|https)://www\\.lusen\\.com/Tuan/ComityInfo\\.aspx\\?id=[0-9]+':'lusen','^(?:http|https)://item\\.gome\\.com\\.cn/[^\\?]':'gome','^(?:http|https)://tao\\.gome\\.com\\.cn/p\\-D[0-9]+':'gome-tao','^(?:http|https)://q\\.gome\\.com\\.cn/item/\\w[0-9]+\\.html':'gome-q','^(?:http|https)://tuan\\.gome\\.com\\.cn/deal/\\w+\\.html':'gome-tuan','^(?:http|https)://www\\.gomehome\\.com/product/productinfo\\?p=[0-9-]+':'gome-home','^(?:http|https)://www\\.gome\\.com\\.cn/ec/rushbuy/limitbuy/itemdetail':'gome-rushbuy','^(?:http|https)://(?:www|item|s)\\.(yhd|yihaodian|1mall)\\.com/(?:product|item)/\\d+':'yihaodian','^(?:http|https)://item\\.yhd\\.com/item/lp/[0-9_]+':'yihaodian','^(?:http|https)://try\\.yhd\\.com/(free|fee)/\\d{4,6}_\\d+/':'yihaodian','^(?:http|https)://t\\.(yhd|yihaodian|1mall)\\.com/detail/\\d+':'yihaodian-tuan','^(?:http|https)://[a-zA-Z]+\\.womai\\.com/(.*)Product(?:\\-|\\.do\\?m?id)':'womai','^(?:http|https)://(www|sh|gz|zs)\\.womai\\.com/related-':'womai-related','^(?:http|https)://(www\\.)?leyou\\.com\\.cn/product/single/':'leyou','^(?:http|https)://haitao\\.leyou\\.com\\.cn/item/single/sku/':'leyou','^(?:http|https)://leleshan\\.leyou\\.com\\.cn/product/single/[A-Z0-9]+':'leyou-leleshan','^(?:http|https)://www\\.shopin\\.net/product/':'shopin','^(?:http|https)://(?:item|www|ebay)\\.xiu\\.com/product/':'xiu','^(?:http|https)://outlets\\.xiu\\.com/[\\d]+\\.shtml':'xiu','^(?:http|https)://ferragamo\\.xiu\\.com/[\\d]{6,10}\\.shtml':'xiu','^(?:http|https)://tuan\\.xiu\\.com/team_[\\d]+':'xiu-tuan','^(?:http|https)://item\\.mbaobao\\.com/pshow':'mbaobao','^(?:http|https)://www\\.mbaobao\\.com/item/':'mbaobao','^(?:http|https)://item\\.vjia\\.com/[\\d]*?\\.html':'vjia','^(?:http|https)://www\\.7cv\\.com/product/':'7cv','^(?:http|https)://www\\.qinqinbaby\\.com/product/':'qinqinbaby','^(?:http|https)://www\\.qinqinbaby\\.com/goods/[0-9]+':'qinqinbaby','^(?:http|https)://www\\.chunshuitang\\.com/[a-z]+/[0-9]+\\.html':'chunshuitang','^(?:http|https)://www\\.x\\.com\\.cn/n_product/[\\w]+\\.shtml':'x','^(?:http|https)://www\\.x\\.com\\.cn/product':'x','^(?:http|https)://www\\.guopi\\.com/p\\.jsp':'guopi','^(?:http|https)://www\\.no5\\.com\\.cn/goods/':'no5','^(?:http|https)://www\\.no5\\.com\\.cn/product/[0-9]+\\.html':'no5','^(?:http|https)://web[\\d]+\\.sasa\\.com/SasaWeb/sch/product/viewProductDetail':'sasa','^(?:http|https)://www\\.sasa\\.com/[a-z]+/[a-zA-Z0-9_-]+':'sasa','^(?:http|https)://www\\.sasa\\.com/[a-z]+-\\d+\\.html':'sasa','^(?:http|https)://www\\.hksasa\\.cn/[a-z]+-\\d+\\.html':'sasa','^(?:http|https)://www\\.dhc\\.net\\.cn/gds/(?:detail|csearch\\.jsp\\?ccd=[\\d]+)':'dhc','^(?:http|https)://www\\.9dadao\\.com/product/':'9dadao','^(?:http|https)://www\\.360kxr\\.com/product/':'360kxr','^(?:http|https)://www\\.m6go\\.com/product':'m6go','^(?:http|https)://www\\.gou\\.com/product':'m6go','^(?:http|https)://www\\.m6go\\.com/qg/product':'m6go','^(?:http|https)://www\\.gou\\.com/qg/product':'m6go','^(?:http|https)://www\\.likeface\\.com/product':'likeface','^(?:http|https)://www\\.qxian\\.com/.*?[0-9]*?\\.html':'qxian','^(?:http|https)://www\\.didamall\\.com/(?:products|libao)/info/':'didamall','^(?:http|https)://www\\.yaodian100\\.com/ecmall/product':'yaodian100','^(?:http|https)://www\\.yaofang\\.cn/goods':'yaofang','^(?:http|https)://www\\.lijiababy\\.com\\.cn/(?:eshop/product|Clothing/.*?/Product_item\\.aspx)':'lijiababy','^(?:http|https)://99read\\.com/Product/[a-zA-Z]*\\d+[a-zA-Z]*\\.aspx':'99read','^(?:http|https)://product\\.china-pub\\.com/\\d+':'china-pub','^(?:http|https)://(www.|)bookschina\\.com/[\\d]+\\.htm':'bookschina','^(?:http|https)://(www.|)bookschina\\.com/GROUPBUY/groupbuy.aspx\\?groupid\\=[0-9]+':'bookschina-tuan','^(?:http|https)://(?:|www\\.)efeihu\\.com/(?:Product/|Pages/ProductShow/ProductDetails\\.aspx)':'efeihu','^(?:http|https)://tuan\\.efeihu\\.com/[0-9a-zA-Z]+/Detials.aspx\\?id=[0-9]+':'efeihu','^(?:http|https)://www\\.360mart\\.com/product[s]?/.*?\\.html':'360mart','^(?:http|https)://www\\.yintai\\.com/product/productdetail':'yintai','^(?:http|https)://item\\.yintai\\.com/':'yintai','^(?:http|https)://www\\.quwan\\.com/goods':'quwan','^(?:http|https)://www\\.urcosme\\.com/search/final':'urcosme','^(?:http|https)://cn\\d*\\.strawberrynet\\.com/.*?/[0-9]+/':'strawberrynet','^(?:http|https)://www\\.strawberrynet\\.com/.*?/[0-9]+/':'strawberrynet','^(?:http|https)://www\\.luce\\.com\\.cn/product/':'luce','^(?:http|https)://www\\.k121\\.com/item':'k121','^(?:http|https)://www\\.happigo\\.com/[\\w]+/[\\w]+/[\\w]+/[\\d]+\\.html':'happigo','^(?:http|https)://www.happigo.com/item-[0-9]+.html':'happigo','^(?:http|https)://mall\\.happigo\\.com/goods-[\\d]+\\.html':'happigo','^(?:http|https)://mall\\.happigo\\.com/groupbuy-[0-9-]+\\.html':'happigo','^(?:http|https)://www\\.gap\\.cn/[^\\?]*product/[\\d]+\\.html':'gap','^(?:http|https)://www\\.misslele\\.com/.+[\\d]+\\.html':'misslele','^(?:http|https)://www\\.5lux\\.com/goods':'5lux','^(?:http|https)://(?:www|hui)\\.5lux\.com/good/detail/[0-9]+':'5lux','^(?:http|https)://www\\.xiaozhuren\\.com/(Disney/)?goods\\.php':'xiaozhuren','^(?:http|https)://www\\.all3c\\.com/product/':'all3c','^(?:http|https)://www\\.idaphne\\.com/goods':'idaphne','^(?:http|https)://product\\.pcbaby\\.com\\.cn/a/':'pcbaby','^(?:http|https)://www\\.binggo\\.com/.*?/\\d{7}\\d+\\.html':'binggo','^(?:http|https)://www\\.tiantian\\.com/.+/[a-zA-Z]?[\\d]+\\.html':'tiantian','^(?:http|https)://tuan\\.tiantian\\.com/Sale/(?:Details|FlashDetails)/[a-zA-Z0-9]+':'tiantian-tuan','^(?:http|https)://www\\.xiji\\.com/product-[0-9]+\\.html':'xiji','^(?:http|https)://www\\.xijie\\.com/prod':'xijie','^(?:http|https)://mall\\.jumei\\.com[^\\?]*/product_':'jumei','^(?:http|https)://pop\\.jumei\\.com/i/deal/\\w+\\.html':'jumei','^(?:http|https)://(gz|bj|sh)\\.jumei\\.com/i/deal/\\w+\\.html':'jumei','^(?:http|https)://item\\.jumei\\.com/[0-9a-zA-Z]+\\.html':'jumei','^(?:http|https)://www\\.jumeiglobal\\.com/deal/\\w+\\.html':'jumeiglobal','^(?:http|https)://item\\.jumeiglobal\\.com/[0-9a-zA-Z]+\\.html':'jumeiglobal','^(?:http|https)://www\\.jumeiglobal\\.com/Deal/Combination\\?':'jumeiglobal','^(?:http|https)://buy\\.caomeipai\\.com/goods':'caomeipai','^(?:http|https)://www\\.dahuozhan\\.com/product/':'dahuozhan','^(?:http|https)://www\\.dazhe\\.cn/goodsdetail':'dazhe','^(?:http|https)://www\\.huolida\\.com/product/':'huolida','^(?:http|https)://www\\.12dian\\.com/product':'12dian','^(?:http|https)://www\\.yougou\\.com/c_':'yougou','^(?:http|https)://(?:outlets|www)\\.yougou\\.com/[^?]+sku-[\\w]+':'yougou','^(?:http|https)://(?:outlets|seoul|www)\\.yougou\\.com/[a-z-]+/sku-[a-z0-9-]+\\.shtml':'yougou','^(?:http|https)://www\\.111\\.com\\.cn/(?:product|item)/':'111','^(?:http|https)://www\\.daoyao\\.com/product':'daoyao','^(?:http|https)://www\\.jianke\\.com/product/':'jianke','^(?:http|https)://www\\.jianke\\.com/tuan/product/[0-9]+\\.html':'jianke','^(?:http|https)://www\\.360kad\\.com/product/[0-9a-z]+\\.shtml':'360kad','^(?:http|https)://www\\.lbxcn.com/(?:Product|item)/[0-9]+.html':'lbxcn','^(?:http|https)://www\\.lbxcn.com/hepstorefront/lbx/zh/LBX/.*/p/[0-9]+':'lbxcn','^(?:http|https)://book\\.douban\\.com/subject/[\\d]+':'douban','^(?:http|https)://dongxi\\.douban\\.com/show/[\\d]+':'douban-dongxi','^(?:http|https)://product\\.it168\\.com/detail/doc/[0-9]+/index\\.shtml':'it168','^(?:http|https)://product\\.pconline\\.com\\.cn/[^/]*?/[^/]*?/[0-9]+\\.html':'pconline','^(?:http|https)://product\\.pcpop\\.com/[0-9]+/Index\\.html':'pcpop','^(?:http|https)://cosme\\.pclady\\.com\\.cn/product/[0-9]+\\.html':'pclady','^(?:http|https)://brand\\.yoka\\.com/cosmetics/.*?/detail[0-9]+\\.htm':'yoka','^(?:http|https)://detail\\.55bbs\\.com/.*?/index[0-9]+\\.shtml':'55bbs','^(?:http|https)://hzp\\.onlylady.com/.*?/[0-9]+/':'onlylady','^(?:http|https)://www\\.24dq.com/product.*?html':'24dq','^(?:http|https)://www\\.muyingzhijia\\.com/Shopping/ProductDetail\\.aspx':'muyingzhijia','^(?:http|https)://www\\.muyingzhijia\\.com/product/\\d+\\.html':'muyingzhijia','^(?:http|https)://item\\.muyingzhijia\\.com/\\d+\\.html':'muyingzhijia','^(?:http|https)://www\\.houmart\\.com/p\\-[\\d]+\\.html':'houmart','^(?:http|https)://www\\.onlyts\\.cn/goods':'onlyts','^(?:http|https)://www\\.winxuan\\.com/product/.*?[0-9]*?':'winxuan','^(?:http|https)://item\\.winxuan\\.com/[0-9]+':'winxuan','^(?:http|https)://detail\\.bookuu\\.com/[0-9]*?\\.html':'bookuu','^(?:http|https)://www\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://e\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://wenju\\.bookuu\\.com/detail\\.php\\?id=\\d+':'bookuu','^(?:http|https)://book\\.beifabook\\.com/Product/BookDetail.aspx':'beifabook','^(?:http|https)://product\\.yesky\\.com/product/.*?[0-9]*?/':'yesky','^(?:http|https)://product\\.pchome\\.net/.*?[0-9]*?\\.html':'pchome','^(?:http|https)://product\\.enet\\.com\\.cn/[a-zA-Z\\-].*?[\\d].*?\\.html':'enet','^(?:http|https)://(www\\.)?(?:ruiyi|rayi)\\.(?:com|cn|com\\.cn)/\\?product-[\\d].*?\\.html':'ruiyi','^(?:http|https)://www\\.nop\\.cn/product-[\\d]*?\\.html':'nop','^(?:http|https)://product\\.imobile\\.com\\.cn/show/[\\d].*?\\.html':'imobile','^(?:http|https)://product\\.cnmo\\.com/cell_phone/index[\\d].*?\\.shtml':'cnmo','^(?:http|https)://phone\\.shouji\\.com\\.cn/[\\d]+/detail/[\\d]+':'shouji','^(?:http|https)://product\\.tompda\\.com/[a-zA-Z]/[a-zA-Z]/[\\d]+/[\\d]+':'tompda','^(?:http|https)://www\\.3533\\.com/phone/phone.+\\.htm':'phone3533','^(?:http|https)://product\\.intozgc\\.com/[a-zA-Z\\_]+\\_[\\d]+':'intozgc','^(?:http|https)://product\\.chinabyte\\.com/product/[\\d]+/[\\d]+':'chinabyte','^(?:http|https)://app\\.tech\\.ifeng\\.com/[a-zA-Z\\-\\_]+/[a-zA-Z\\-\\_]+/[a-zA-Z0-9\\-\\_]+':'ifeng','^(?:http|https)://app\\.tech\\.ifeng\\.com/[a-zA-Z\\-\\_]+/detail\\-index\\-[0-9]+\\.html':'ifeng','^(?:http|https)://www2\\.xitek\\.com/production/product.php':'xitek','^(?:http|https)://product\\.imp3\\.net/product\\.php':'imp3','^(?:http|https)://www\\.menglu\\.com/product/[\\d]+\\.html':'menglu','^(?:http|https)://(?:lady|lingerie|www|fashion|shipin|item)\\.moonbasa\\.com/[a-zA-Z]\\-[\\d]+\\.html':'moonbasa','^(?:http|https)://www\\.(?:ing2ing|qjherb|korirl|alaves|0-100s|cherriespie|clafield|baoyeah|suorang|monteamor|rutisher)\\.com/p\\-[\\d]+\\.html':'moonbasa','^(?:http|https)://www\\.keede\\.com(\\.cn)?/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://www\\.kede\\.com(\\.cn)?/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://k1\\.keede\\.cn/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://k1\\.kede\\.cn/[a-zA-Z]+[\\d]+\\.html':'keede','^(?:http|https)://item(\\.vt)?\\.vancl\\.com/[\\d]+\\.html':'vancl','^(?:http|https)://www\\.dazhongdianqi\\.com\\.cn/dazhong/product[\\-\\d]+\\.htm':'dazhongdianqi','^(?:http|https)://www\\.skinstorechina\\.com/.+/.+[\\d]+\\-p\\.html':'skinstorechina','^(?:http|https)://item\\.buy\\.qq\\.com/item/':'qq','^(?:http|https)://.*\\.zol\\.com\\.cn/\\d+/\\d+\\.html':'zol-article','^(?:http|https)://.*\\.pconline\\.com\\.cn/\\d+/\\d+\\.html':'pconline-article','^(?:http|https)://.*\\.yesky\\.com/\\d+/\\d+\\.shtml':'yesky-article','^(?:http|https)://.*\\.it168\\.com/[a-z]\\d+/\\d+/\\d+/\\d+\\.shtml':'it168-article','^(?:http|https)://.*\\.pcpop\\.com/doc/\\d+/\\d+/\\d+\\.shtml':'pcpop-article','^(?:http|https)://.*\\.pchome\\.net/content-\\d+\\.html':'pchome-article','^(?:http|https)://.*\\.139shop\\.com/.*?/\\d+/\\d+\\.htm':'139shop-article','^(?:http|https)://www\\.milier\\.com/product/':'milier','^(?:http|https)://www\\.sportica\\.cn/goods':'sportica','^(?:http|https)://www\\.zhenpin\\.com/product':'zhenpin','^(?:http|https)://www\\.gaojie\\.com/product/':'gaojie','^(?:http|https)://www\\.naruko\\.com\\.cn/shop/product/Goods\\.aspx':'naruko','^(?:http|https)://www\\.(?:vivian|masamaso|linkmasa)\\.(?:com|cn)/goods_':'masamaso','^(?:http|https)://item\\.secoo\\.com/':'secoo','^(?:http|https)://paimai\\.secoo\\.com/[0-9]+\\.shtml':'secoo','^(?:http|https)://sale\\.secoo\\.com/[0-9]+\\.shtml':'secoo','^(?:http|https)://(?:www|tuan)\\.ehaier\\.com/product/':'ehaier','^(?:http|https)://qiji\\.ehaier\\.com/new/newExploreManager/dateil/[0-9]+':'ehaier','^(?:http|https)://www\\.handuyishe\\.com/goods':'handuyishe','^(?:http|https)://www\\.wbiao\\.cn/[a-z0-9-]+\\.html':'wbiao', // '^(?:http|https)://www\\.wbiao\\.cn/[a-z]+/[a-z0-9-]+\\.html': 'wbiao', '^(?:http|https)://www\\.wbiao\\.cn/goods\\.php\\?goods_id=[0-9]+':'wbiao','^(?:http|https)://www\\.wbiao\\.cn/van-der-bauwede-\\w[0-9]+\\.html':'wbiao','^(?:http|https)://www\\.shangpin\\.com(\\.hk)*/.*?product/':'shangpin','^(?:http|https)://www\\.pba\\.cn/(?:product|sp)':'pba','^(?:http|https)://www\\.metromall\\.cn/Product/':'metromall','^(?:http|https)://www\\.lizi\\.com/product':'lizi','^(?:http|https)://www\\.kadang\\.com/[a-zA-Z0-9/]*detail\\d+':'kadang','^(?:http|https)://www\\.kadang\\.com/product/[0-9]+':'kadang','^(?:http|https)://www\\.aimer\\.com\\.cn/goods/':'aimer','^(?:http|https)://www\\.lamiu\\.com/goods_':'lamiu','^(?:http|https)://www\\.lamiu\\.com/(?:goods_|product-)':'lamiu','^(?:http|https)://www\\.esprit\\.cn/(?:product|item)/\\w+':'esprit','^(?:http|https)://www\\.liebo\\.com/product/':'liebo','^(?:http|https)://www\\.wangjiu\\.com/product/(?!flashPromotion)':'wangjiu','^(?:http|https)://www.wangjiu.com/mall/item-pid-[a-zA-Z0-9]+\\.html':'wangjiu','^(?:http|https)://www\\.xifuquan\\.com/product/':'xifuquan','^(?:http|https)://www\\.189\\.cn/products/':'189','^(?:http|https)://www\\.hicdma\\.com/product_detail_':'hicdma','^(?:http|https)://mall\\.10010\\.com/goodsdetail/':'10010','^(?:http|https)://www\\.e100\\.cn/ebiz/channel/(.*/)+\\d+\\.html':'e100','^(?:http|https)://store\\.samsung\\.com/cn/.*/p/.*':'samsung','^(?:http|https)://store\\.meizu\\.com/product/':'meizu','^(?:http|https)://detail\\.meizu\\.com/item/\\w+':'meizu','^(?:http|https)://b2c\\.958shop\\.com/.*/\\d+\\.html':'958shop','^(?:http|https)://www\\.okhqb\\.com/item/\\d+\\.html':'okhqb','^(?:http|https)://www\\.okhqb\\.com/qiang/\\d+/\\d+\\.html':'okhqb','^(?:http|https)://www\\.ztedevice\\.com\\.cn/product/':'ztedevice','^(?:http|https)://www\\.daling\\.com/detail-[0-9]+\\.html':'daling','^(?:http|https)://item\\.showjoy\\.com/sku/[0-9]+\\.html':'showjoy','^(?:http|https)://www\\.ocj\\.com\\.cn/detail/[0-9]+':'ocj','^(?:http|https)://www\\.ocj\\.kr/detail/[0-9]+':'ocj-kr','^(?:http|https)://www\\.ocj\\.com\\.cn/otuans/[a-z]+/[0-9]+':'ocj-tuan','^http://www\\.lvyoumall\\.com/(tuan/goods-|tmh/goods-|goods/)\\d+':'lvyoumall','http://www\\.kjt\\.com/product/detail/\\d+':'kjt','^(?:http|https)://store\\.logitech\\.com\\.cn/pro/proDetail/\\d+':'logitech','^(?:http|https)://store\\.logitech\\.com\\.cn/product/PointDetail/\\d+':'logitech','http://shop\\.boohee\\.com/store/goods/\\w+':'boohee','http://www\\.meici\\.com/product-[a-zA-Z0-9-]+\\.html':'meici','http://www\\.meici\\.com/product.*':'meici','http://(?:global|you|www)\\.beibei\\.com/detail/[0-9-]+\\.html':'beibei','http://store\\.nike\\.com/cn/zh_cn/pd/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','http://store\\.nike\\.com/cn/zh_cn/product/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','^(?:http|https)://www\\.nike\\.com/cn/t/[a-zA-Z0-9\\u4e00-\\u9fa5-]+':'nike','^(?:http|https)://www\\.fengqu\\.com\/detail\/':'fengqu','^(?:http|https)://www\\.mei\\.com/silo/.*-event-event/.*\\.html':'mei','^(?:http|https)://www\\.mei\\.com/item\\.html\\?':'mei','^(?:http|https)://www\\.vsigo\\.cn/.*\\.html':'vsigo','^(?:http|https)://www\\.sundan\\.com/product-[0-9]+':'sundan','^(?:http|https)://www\\.jiae\\.com/productdetail':'jiae','^(?:http|https)://hd\\.zazhipu\\.com/.*\\.asp\\?id=[0-9]+':'zazhipu','^(?:http|https)://www\\.microsoftstore\\.com\\.cn/%E7%B1%BB%E5%88%AB/.*/p/.*':'microsoftstore','^(?:http|https)://www\\.microsoftstore\\.com\\.cn/surface/[a-z0-9A-Z-]+':'microsoftstore','^(?:http|https)://www\\.xgdq\\.com/product-[0-9]+\\.html':'xgdq','^(?:http|https)://(?:www\\.|)xtep\\.com\\.cn/goods/do_index':'xtep','^(?:http|https)://www\\.xtep\\.com\\.cn/team-[0-9]+\\.html':'xtep','^(?:http|https)://www\\.xtep\\.com\\.cn/spike-[0-9]+\\.html':'xtep','^(?:http|https)://www\\.staples\\.cn/product/[0-9a-zA-Z]+':'staples', // '^(?:http|https)://(?:www\\.|)efotile\\.com/productdetail/[a-z0-9-_]+/[a-z0-9-_]+\\.html': 'efotile', '^(?:http|https)://mall\\.midea\\.com/detail/index':'midea','^(?:http|https)://www\\.midea\\.cn/detail/index':'midea','^(?:http|https)://www\\.midea\\.cn/[0-9]+/[0-9]+\\.html':'midea','^(?:http|https)://www1\\.macys\\.com/shop/product/\\w+':'macys','^(?:http|https)://cn.shopbop.com/[a-z0-9-]+/vp/\\w+':'shopbop', // 'www\\.bestcake\\.com/\\w+/item/[a-z0-9-]+': 'bestcake', '^(?:http|https)://www\\.hua\\.com/product/[0-9]+\\.html':'hua','^(?:http|https)://shop.zhe800.com/products/[0-9a-z]+':'zhe800','^(?:http|https)://www.cosme.com/products/detail.php\\?product_id':'cosme','^(?:http|https)://www.diapers.com/p/':'diapers','^(?:http|https)://www.windeln.de/zh/\\w+-':'windeln','^(?:http|https)://www.windeln.com\\.cn/product/\\d+':'windeln','^(?:http|https)://www.escentual.com/[a-z]+[0-9]+/':'escentual','^(?:http|https)://www.biccamera.com/bc/disp/\\w+':'biccamera','^(?:http|https)://www.esteelauder.com/product/\\d+/\\d+/\\w+':'esteelauder','^(?:http|https)://www.saksfifthavenue.com/main/ProductDetail.jsp':'saksfifthavenue','^(?:http|https)://www.thewatchery.com/detail.asp':'thewatchery','^(?:http|https)://item.tuhu.(cn|com)/Products/':'tuhu','^(?:http|https)://item\\.tuhu\\.cn/Products/[A-Z-]+/\\d+\\.html':'tuhu','^(?:http|https)://eshop.htc.com/mall/zh-CN/htc/[a-z0-9-]+':'htc','^(?:http|https)://roseonly.com.cn/item/[0-9]+.html':'roseonly','^(?:http|https)://www.taqu.cn/goods-\\d+.html':'taqu','^(?:http|https)://shop.jx.189.cn/web/productDetail.action\\?productInfoID':'189','^(?:http|https)://www.bftv.com/product/[0-9]+':'bftv','^(?:http|https)://www.axmall.com.au/p/\\d+\\.html':'axmall','^(?:http|https)://www\\.lovo\\.cn/pr-[0-9]+\\.htm':'lovo','^(?:http|https)://www\\.adidas\\.com\\.cn/item/':'adidas','^(?:http|https)://www\\.smzdm\\.com/p/[0-9]+':'smzdm','^(?:http|https)://www\\.uniqlo\\.cn/product-detail\\.html\\?productCode=[a-z0-9-]+':'uniqlo'};module.exports.init = function(){var pageInfo=getPageInfo();G.pageInfo = pageInfo;if(G.sjfix)return;if(G.site && (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1 || G.site == '1688')){G.aliSite = true;}}; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 25 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var money = { 'us': ['$', '美元', 'USD'], 'Europe': ['EUR', '欧元', 'EUR'], 'Japan': ['JP¥', '日元', 'JPY'], 'Europe2': ['€', '欧元', 'EUR'], 'UK': ['£', '英镑', 'GBP'], 'Australlia': ['AU$', '澳元', 'AUD'], 'HK': ['HK$', '港元', 'HKD'], 'New-Zealand': ['NZ$', '新元', 'NZD'], 'Canada': ['CDN$', '加元', 'CAD'] }; var countrys = { 'wemakeprice': 'us', 'dod': 'Europe', 'apo': 'Europe', 'ansgo': 'Australlia', 'perfumesclub': 'Europe', 'net-a-porter': 'us', 'kidsroom': 'Europe', 'getthelabel': 'UK', 'babyhaven': 'us', 'danielwellington': 'us', 'dewaren': 'Europe', 'bose': 'us', 'takeya': 'Japan', 'bienmanger': 'Europe2', 'tlcpharmacy': 'UK', 'petit-bateau': 'us', 'esteelauder': 'us', '51taouk': 'UK', 'amcal': 'Australlia', 'joesnewbalanceoutlet': 'us', 'gnc': 'us', 'royyoungchemist': 'Australlia', 'kohls': 'us', 'bodybuilding': 'us', 'newbalance': 'us', 'newegg-us': 'us', 'pharmacy4less': 'Australlia', 'beautybay': 'us', 'katespade': 'UK', 'carters': 'us', 'discount-apotheke': 'Europe2', 'pharmacyonline': 'Australlia', 'skinstore': 'us', 'feelunique': 'UK', 'x0061': 'Australlia', 'bonjourhk': 'HK', 'ba': 'Europe2', 'chemistdirect': 'Australlia', 'target': 'us', 'ashford-zh': 'us', 'forever21': 'UK', 'holland-at-home': 'Europe2', 'kiehls': 'us', 'pharmacydirect': 'New-Zealand', 'shoes': 'us', 'shopbop': 'us', 'windeln': 'Europe2', 'bhphotovideo': 'us', 'lookfantastic': 'UK', 'hqhair': 'UK', 'amazon-com': 'us', 'amazon-jp': 'Japan', 'amazon-fr': 'Europe', 'amazon-de': 'Europe', 'amazon-it': 'Europe', 'amazon-uk': 'UK', 'amazon-ca': 'Canada', 'amazon-es': 'Europe', 'amazon-au': 'Australlia', // 'iherb': 'us', '6pm': 'us', 'aliexpress': 'us', '821': 'Europe' }; module.exports.getMoneyInfo = function (site) { return countrys[site] && money[countrys[site]]; }; /***/ }), /* 26 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {/** * Created by cosimo on 2017/2/9. */ var nowPrice = undefined; function priceExtracor(selectors, radixPoint, split) { radixPoint = radixPoint || '.'; split = split || ','; function extractPrice() { for (var i = 0; i < selectors.length; i++) { var selector = selectors[i]; var price = document.querySelector(selector); if (price) { return formatPrice(price.textContent, radixPoint, split); } } return -1; } return extractPrice; } function formatPrice(price, radixPoint, split) { radixPoint = radixPoint || '.'; split = split || ','; if (price === -1) { return -1; } if (price) { price = price.toString().replace(split, ''); if (radixPoint && radixPoint !== '.') { price = price.replace(radixPoint, '.'); } price = price.match(/[0-9.]+/); if (price) { try { return parseFloat(price[0]); } catch (e) { return -1; } } } return -1; } var getPLUSPrice = function getPLUSPrice() { var PLUSDom = $('.plus-price .price'); if (PLUSDom.length === 0) { PLUSDom = $('.p-price-plus .price'); } if (PLUSDom) { return Number(PLUSDom.text().replace(/[¥¥\s]+/g, '')); } else { return 0; } }; function parserFactory(extractPrice) { function parser(callback) { function callbackWrapper(price) { if (price <= 0) { price = ''; } G.dp.price = price; G.dp.oldPrice = price; var tle = ''; if (G.dp.name && (G.dp.site == "360buy" || G.dp.site == "suning")) { tle = G.dp.name.trim(); } var priItem = [{ 'url': document.location.href, 'price': price, 'tle': tle, 'crc32': '' }]; if (G.dp.site == "360buy") { var PLUS = getPLUSPrice(); if (PLUS) { priItem[0].plus = PLUS; } } __webpack_require__(39).sendPriCheck(priItem); } var price = extractPrice(); if (price === -1 || price == 0 || document.readyState !== 'complete') { (function () { var tryTimes = 0; var interval = setInterval(function () { tryTimes++; var price = extractPrice(); if (document.readyState !== 'complete') { return; } if (price > 0 || tryTimes > 4) { clearInterval(interval); callbackWrapper(price); } }, 2500); })(); } else { nowPrice = price; callbackWrapper(price); } callback(price); } return parser; } function template(selectors) { //console.log('selector:', selectors) return parserFactory(priceExtracor(selectors)); } var priceParsers = {}; priceParsers[1] = ['#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#tmmSwatches .a-button-inner .a-button-text .a-color-price', '#tmmSwatches .a-button-inner .a-color-secondary span', '#soldByThirdParty .offer-price', '#olp_feature_div .a-color-price', '.a-color-price']; priceParsers[2] = ['#dd-price', '#d_price']; priceParsers[3] = ['#jd-price', '.p-price .price', '#price', '.price']; priceParsers[4] = ['.price-type']; priceParsers[10] = ['#dl_sell_price']; priceParsers[12] = ['div.promotion-container > p:nth-child(2)']; priceParsers[13] = ['.dity-price-c']; priceParsers[14] = ['.price1.salePrice_big']; priceParsers[17] = ['.leftPrice']; priceParsers[18] = ['.message_price', '.message_title_name_b']; priceParsers[19] = ['.tehuiMoney']; priceParsers[21] = ['#prodPriceAj']; priceParsers[22] = ['#product_price']; priceParsers[24] = ['.d-real-price']; priceParsers[25] = ['.mainprice', '.small-price']; priceParsers[28] = ['#prdPrice', '#salePrice']; priceParsers[31] = ['#pricenow', '#current_price', '#detail_prom_price', '']; priceParsers[32] = ['#buyPrice']; priceParsers[33] = ['#leyoujia', '.item_l .font_num']; priceParsers[34] = ['.selPrice']; priceParsers[35] = ['#prd_price_div']; priceParsers[39] = ['.price .value']; priceParsers[40] = ['.Gd_shop_Price b']; priceParsers[41] = ['.js.jsj b']; priceParsers[43] = ['.price']; priceParsers[45] = ['.price .action-price']; priceParsers[50] = ['pro_promotion_price', '#pro_mall_price']; priceParsers[51] = ['#SGoodsPrice']; priceParsers[54] = ['#mprice']; priceParsers[60] = ['#xxjg .pro_buy_sen', '#xxjg .pro_buy_dis option:last-child']; priceParsers[61] = ['.tehuijia i:last-child .thisprice', '.priceList:last-child span']; priceParsers[62] = ['.info-main .price-n b']; priceParsers[66] = ['.YTPrice']; priceParsers[72] = ['.price_now', '']; priceParsers[73] = ['#productShowPrice']; priceParsers[75] = ['.fsk_goods_price', '.gd_price']; priceParsers[83] = ['#J_PromoBox .tb-wrTuan-num', '.tm-promo-price .tm-price', '.tm-price']; priceParsers[84] = ['.buy_pri', '.dynamic-price']; priceParsers[86] = ['.price_num', '.deal_accout_two', '.jumei_price', '.price_now']; priceParsers[93] = ['#yitianPrice']; priceParsers[94] = ['.good_price']; priceParsers[97] = ['#price_big em', '.FFA em']; priceParsers[98] = ['.p-price']; priceParsers[99] = ['#shopprice']; priceParsers[100] = ['#salePriceText']; priceParsers[101] = ['.myPrice em']; priceParsers[102] = ['#jiage .numb']; priceParsers[103] = ['#nowPrice strong']; priceParsers[108] = ['#spPrice']; priceParsers[109] = ['.sku-price']; priceParsers[110] = ['#bk-d-price']; priceParsers[115] = ['.mprice', '.p_mp']; priceParsers[123] = ['#J_PromoPriceNum', '#J_StrPrice']; priceParsers[125] = ['.dPrice']; priceParsers[126] = ['#price-sf .price']; priceParsers[127] = ['#intro_price .price']; priceParsers[128] = ['#price']; priceParsers[129] = ['#J-sale-price', '.J-price']; priceParsers[134] = ['#pro-price']; priceParsers[135] = ['.de_info_price']; priceParsers[138] = ['#ECS_SHOPPRICE']; priceParsers[140] = ['.groupdetail_nowprice', '.dsingle_nowprice']; priceParsers[141] = ['#jianyiPrice']; priceParsers[142] = ['.spare02']; priceParsers[145] = ['#pdpPrice .discount', '#pdpPrice', '.discou']; priceParsers[146] = ['.action-price']; priceParsers[147] = ['#postPrice']; priceParsers[152] = ['.detail-item-gold']; priceParsers[153] = ['#g5_price']; priceParsers[154] = ['.promote_price']; priceParsers[155] = ['.cur-price']; priceParsers[156] = ['#secooPriceJs']; priceParsers[157] = ['#prod_price']; priceParsers[158] = ['.price24']; priceParsers[164] = ['.jg_cuhong', '#myjgcuhong']; priceParsers[167] = ['.J_mi_goodsPrice', '.money', '.J_currentPrice', 'J_proPrice', '.price']; priceParsers[168] = ['.letv_price', '#js_price']; priceParsers[174] = ['.pro-price']; priceParsers[180] = ['#J_product_value', '.info-price']; priceParsers[182] = ['.detail_price', '.coupon_price']; priceParsers[184] = ['.promotion-price .price', '.price']; priceParsers[188] = ['#goodsPrice']; priceParsers[194] = ['.action-price']; priceParsers[195] = ['#item_price']; priceParsers[196] = ['.price strong']; priceParsers[197] = ['.ms_price strong']; priceParsers[202] = ['#J_NowPrice']; priceParsers[203] = ['#J_NowPrice']; priceParsers[210] = ['#g_price']; priceParsers[213] = ['#offerPrice']; priceParsers[221] = ['.price']; priceParsers[222] = ['#rprice']; priceParsers[223] = ['.currentPrice']; priceParsers[226] = ['.mainPrice']; priceParsers[227] = ['.sale-price']; priceParsers[228] = priceParsers[1]; priceParsers[229] = priceParsers[1]; priceParsers[230] = ['#prcIsum']; priceParsers[231] = ['.p-current-price .p-price']; priceParsers[232] = ['.action-price']; priceParsers[233] = ['.js-pdpLocalPrice']; priceParsers[234] = ['#saleprice_value']; priceParsers[235] = ['.detail_tzh span']; priceParsers[236] = ['.pro_price span']; priceParsers[237] = ['.view-SkuPriceInfo .price', '.view-SkuPriceInfo i']; priceParsers[238] = ['#priceSlot .price', '._37Y6D ._3r_Ou']; priceParsers[239] = ['.product-price']; priceParsers[241] = ['.priceBlock .salePrice', '.priceBlock']; priceParsers[242] = ['.ng-binding.wag-bold']; priceParsers[243] = ['#displayPrice']; priceParsers[244] = ['.price-main-product .price-current', '.price-current']; priceParsers[245] = ['#final-price']; priceParsers[246] = function () { parserFactory(priceExtracor(['#priceblock_dealprice', '#priceblock_ourprice', '#tmmSwatches .a-button-inner .a-color-secondary span', '#soldByThirdParty .offer-price', '#olp_feature_div .a-color-price'], ',', '.')); }; priceParsers[247] = ['#pricing td.highlight']; priceParsers[248] = ['.product-price .price']; priceParsers[249] = ['#js-product-information-price .product-current-price', '.main-product-details .compare-price__display']; priceParsers[251] = ['.product-price-container .price-sales ']; priceParsers[252] = ['.detail-price', 's_discountpricenew', '.cutpriceposition']; priceParsers[256] = ['#price']; priceParsers[259] = ['#Price .productPrice']; priceParsers[260] = ['#productPrice .nowPrice', '#productPrice']; priceParsers[261] = ['#pdpMainPrice .pOurPriceM', '#pdpSubPrice .pRetailPrice:nth-child(2)', '.pRetailPrice', '#pdpMainPrice']; priceParsers[263] = ['.priceSale']; priceParsers[264] = ['.price-set']; priceParsers[266] = priceParsers[1]; priceParsers[267] = ['.goods-data .goods-price span']; priceParsers[268] = ['.goods-price-r1 strong']; priceParsers[269] = ['#productRMB']; priceParsers[270] = ['.j_PriceNum', '.price']; priceParsers[271] = ['.price', '.product_price_cont']; priceParsers[272] = ['.action-price']; priceParsers[273] = ['.product_top_r span.fs20']; priceParsers[274] = ['#jScarePrice', '.jFirstPrice']; priceParsers[275] = ['.rmb-price']; priceParsers[276] = ['.Price']; priceParsers[277] = ['#currPrice']; priceParsers[279] = ['.product_price', 'price_rmb']; priceParsers[280] = ['#goodsCurrentPrice', '.prdsale strong']; priceParsers[281] = ['#bqPrice', '.price span']; priceParsers[285] = ['.price .current']; priceParsers[286] = ['.j-item-now-price']; priceParsers[287] = ['.xprice_val[itemprop="lowPrice"]']; priceParsers[288] = ['.action-price']; priceParsers[289] = ['.current_price']; priceParsers[290] = ['.price']; priceParsers[291] = ['#priceDiv .nowPrice']; priceParsers[292] = ['.item-actPrice']; priceParsers[294] = ['#salePriceSpan']; priceParsers[295] = ['.price-sell .price-num']; priceParsers[299] = ['.pro_price .price']; priceParsers[300] = ['#priceDomId']; priceParsers[305] = ['.autoShipPrice', '.singlePrice']; priceParsers[306] = ['.product-price div']; priceParsers[311] = ['.product-full__price', '.spp-product__mini-bag-price-size']; priceParsers[313] = ['#details-price']; priceParsers[328] = ['.goodsprice']; priceParsers[330] = ['#you_pay.price', '.price']; priceParsers[337] = ['.price']; priceParsers[338] = ['.js-price']; priceParsers[340] = ['.singlePrice']; priceParsers[341] = ['.product-price .price']; priceParsers[343] = ['.bose-price__price']; priceParsers[344] = ['.item-price']; priceParsers[345] = ['.ypYouPay']; priceParsers[347] = ['#FlashPrice']; priceParsers[348] = ['.goods-price .price1']; priceParsers[349] = ['.j-retail-price']; priceParsers[351] = ['.tm_jg #ECS_SHOPPRICE', '#ECS_SHOPPRICE']; priceParsers[352] = ['.price-b .new']; priceParsers[354] = ['.detail-last-price']; priceParsers[355] = ['.price-item.current .value']; priceParsers[356] = ['.m-price']; priceParsers[357] = ['.product-price .price']; priceParsers[362] = ['.DetailPriceContain .PriceNow']; priceParsers[363] = ['.current-price']; priceParsers[364] = ['.price']; priceParsers[365] = priceParsers[246]; priceParsers[366] = priceParsers[1]; priceParsers[367] = ['.itemInfo .price']; priceParsers[368] = ['#salePriceId']; priceParsers[369] = ['#jd-price']; priceParsers[370] = ['.g-group-price', '#kaluliPrice']; priceParsers[371] = ['#show_goods_price [name="goods_real_price"]']; priceParsers[372] = ['.price']; priceParsers[373] = ['#bb_price']; priceParsers[374] = ['#opr']; priceParsers[376] = ['#JgoodsPrice']; priceParsers[377] = ['.action-pro_price', 'action-price', '.price']; priceParsers[378] = ['.jFirstPrice']; priceParsers[379] = ['.action-price']; priceParsers[380] = ['.now-price']; priceParsers[381] = ['.priceAndService .price']; priceParsers[382] = ['.sale-price']; priceParsers[385] = ['#salePrice']; priceParsers[386] = ['.price-box .price-product']; priceParsers[387] = ['.spare02_price']; priceParsers[388] = ['.current-price']; priceParsers[389] = ['.price-info .current-price']; priceParsers[390] = ['.shop-nature1 [price]']; priceParsers[391] = ['.m-price']; priceParsers[392] = ['.now-price']; priceParsers[393] = ['.current-price']; priceParsers[394] = ['.current-price .price-number']; priceParsers[395] = ['.rmb-price']; priceParsers[396] = ['.now .price']; priceParsers[397] = ['.DetailPrice .PriceNow']; priceParsers[398] = ['.last_prices .price']; priceParsers[399] = ['.price-number']; priceParsers[400] = ['.product-property .current-price']; priceParsers[401] = ['.product-shop .PriceNow']; priceParsers[402] = ['.price-number']; priceParsers[403] = function () { parserFactory(priceExtracor(['.price-productdesc'], ',', '.')); }; priceParsers[404] = ['.price-current']; priceParsers[405] = ['.price-info .price']; priceParsers[406] = ['.d-price']; priceParsers[407] = ['.goods-price']; priceParsers[408] = ['#product-summary .price']; priceParsers[409] = ['.price_sale']; priceParsers[410] = ['.salePrice', '.nowPrice']; priceParsers[411] = ['#skuPrice']; priceParsers[412] = ['#item-price .font-bold', '#item-price']; priceParsers[413] = ['#productPriceInfo .m_price']; priceParsers[414] = ['.wb-price span']; priceParsers[415] = ['.product-price .price']; priceParsers[416] = ['#price']; priceParsers[417] = ['.special-price .price', '.price']; priceParsers[418] = ['.final', '.here_price strong']; priceParsers[419] = ['.market-price']; priceParsers[420] = ['#salePrice']; priceParsers[423] = ['.price']; priceParsers[424] = ['.price-current', '.regular-price']; priceParsers[427] = ['.redSalePrice', '.product-price-big .price-wrapper']; priceParsers[428] = ['.monetary-price-value']; priceParsers[429] = priceParsers[427]; priceParsers[430] = ['.num_span']; priceParsers[431] = ['#mall_price']; priceParsers[432] = ['#price_current']; priceParsers[433] = ['.action-price']; priceParsers[434] = ['.price']; priceParsers[435] = ['.goodsprice']; // 没有匹配到id的时候 priceParsers[9999] = function () { return function (callback) { callback(); }; }; module.exports.init = function (siteId, callback) { if (location.host === 'www.amazon.de') { callback(G.dp.oldPrice); return; } if (nowPrice) { callback(nowPrice); return; } var s = priceParsers[siteId]; if (s instanceof Array) { template(s)(callback); } else if (s instanceof Object && s.prototype) { s()(callback); } else { callback(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 27 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var widthObj = undefined; var calB2cWidth = function calB2cWidth() { var winWidth = $(window).width(); var itemlistW = 268; var turnpW = 130; var storeList = 304; var allProductW = winWidth - turnpW * 2 - storeList; var showListNum = parseInt(allProductW / itemlistW); // 如果使用最小的翻页宽度能再增加一个商品list 就再增加, 宽度动态计算 if (allProductW - showListNum * itemlistW + 80 > 268) { showListNum++; turnpW = parseInt((winWidth - showListNum * itemlistW - storeList) / 2); allProductW = winWidth - turnpW * 2 - storeList; } return { productW: allProductW, turnpW: turnpW, showListNum: showListNum }; }; module.exports.init = function () { if (widthObj) return widthObj; var winWidth = $(window).width(); var itemlistW = 268; var turnpW = 147; var allProductW = winWidth - turnpW * 2; var showListNum = parseInt(allProductW / itemlistW); // 如果使用最小的翻页宽度能再增加一个商品list 就再增加, 宽度动态计算 if (allProductW - showListNum * itemlistW + 92 > 268) { showListNum++; turnpW = parseInt((winWidth - showListNum * itemlistW) / 2); allProductW = winWidth - turnpW * 2; } if (G.site === 'amazon') { turnpW--; } var B2cW = calB2cWidth(); widthObj = { 'allProductW': allProductW, 'turnpW': turnpW, 'showListNum': showListNum, 'b2cProductW': B2cW.productW, 'b2cTurnpW': B2cW.turnpW, 'b2cShowListNum': B2cW.showListNum }; return widthObj; }; module.exports.calBottomBar = function () { var logo = $('#bjd_logo').outerWidth(); var leftCom = $('.left-compare').outerWidth(); var adinfo = $('.nbt-adinfo').outerWidth(); var close = $('.nbt-close-btn').outerWidth(); var rightInfo = $('.right-info').outerWidth(); var winWidth = $(window).width(); if (rightInfo < 500) rightInfo = 502; // 110 价格走势宽度 var comBox = winWidth - (logo + leftCom + adinfo + close + rightInfo); return comBox; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 28 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__(13); var buildTaobaoUrl = __webpack_require__(20); var dataShare = __webpack_require__(61); var globalData = undefined, callbacks = undefined; var hasrun = false; var timeOUT = 4000; var trueClassId = false; var sitearr = ['vipshop', 'mogujie', 'meilishuo', 'amazon', 'yougou', 'yohobuy', '6pm', 'yintai', 'banggo', 'xiu', 'vancl', 'shopbop', 'shopin', 's', 'masamaso', 'secoo', 'mei', 'gap', 'paixie', 'moonbasa', 'meici', 'macys', 'myhabit', 'zhen', 'gilt', 'mbaobao', 'wangfujing', 'letao', 'camel', 'handu', 'mf910', '5lux', 'd1', 'taoxie', 'm18', "thewatchery", "escentual", 'biccamera', 'zhe800', 'yangkeduo']; if (location.host.indexOf('amazon') > -1 && location.host.indexOf('cn') == -1) timeOUT = 10000; var editData = function editData(data) { var taobaoarr = [], tmallarr = [], guessarr = []; try { var info = JSON.parse(data); var array = info.mods.itemlist.data.collections; if (array.length == 0) return; if (array.length == 2 && array[0].title == '外观相似宝贝') { var similar = array[0].auctions; var len = similar.length > 20 ? 20 : similar.length; for (var i = 0; i < len; i++) { var item = {}; var feeDesc = similar[i].view_fee == '0.00' ? '包邮' : ''; item.nick = similar[i].nick; item.num_iid = similar[i].nid; item.title = similar[i].title; item.price = similar[i].view_price; item.item_location = similar[i].item_loc; item.store_name = similar[i].nick + feeDesc; item.pic_url = 'http:' + similar[i].pic_url; item.volume = similar[i].view_sales.replace('人付款', ''); item.type = 'img_search'; item.price2 = Number(item.price); if (G.dp.price && item.price2 * 2 < G.dp.price) continue; if (!item.pic_url.match(/jpg_[0-9]+x[0-9]/)) item.pic_url = item.pic_url.replace(/(\.png|\.jpg)/, '$1' + '_100x100.jpg'); var obj = { 'source': 'img_search', 'img_url': 'http:' + similar[i].pic_url, 'title': similar[i].title, 'price': similar[i].view_price, 'shop_name': similar[i].nick + feeDesc, 'sales': similar[i].view_sales.replace('人付款', ''), 'id': similar[i].nid, 'url': 'https:' + similar[i].detail_url, 'discuss': similar[i].comment_count, 'istaobao': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1', 'dp_id': similar[i].nid + '-' + (similar[i].detail_url.indexOf('detail.tmall.com') > -1) ? '83' : '123', 'site_id': similar[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123' }; item.url = buildTaobaoUrl(obj); if (similar[i].detail_url.indexOf('detail.tmall.com') > -1) { tmallarr.push(item); } else { taobaoarr.push(item); } } } else if (array.length == 1 && array[0].title == '您可能会喜欢' || array.length == 2 && array[1].title == '您可能会喜欢') { var guess = array[array.length - 1].auctions; for (var i = 0; i < guess.length; i++) { var item = {}; item.url = 'https:' + guess[i].detail_url; item.pic_url = guess[i].pic_url; item.title = guess[i].title; item.num_iid = guess[i].nid; item.price = guess[i].view_price; item.volume = guess[i].view_sales; item.nick = guess[i].nick; item.price2 = Number(item.price); if (G.dp.price && item.price2 * 2 < G.dp.price) continue; guessarr.push(item); } } taobaoarr = sortData(taobaoarr); tmallarr = sortData(tmallarr); globalData = { 'taobao': taobaoarr, 'tmall': tmallarr, 'guessfavor': guessarr }; if (callbacks && !hasrun) { callbacks(globalData); hasrun = true; } } catch (e) {} }; var sortData = function sortData(data) { if (!data.sort) return; data = data.sort(function (value1, value2) { if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1; }); return data; }; var getImgSrc = function getImgSrc() { var imgsrc = { '360buy': '#preview .jqzoom img', 'gome': '.jqzoom img', 'suning': '#imgZoom #bigImage', 'yihaodian': '#J_prodImg', 'vancl': '#midimg', 'shopin': '#zoom1 img', 'secoo': '.jqzoom', 'mei': '#bigimg', 'meici': '.zoomPad img', 'macys': '#mainView_1', 'taoxie': '#t_PreviewImage img', 'd1': '.gs_right_spimg img', '5lux': '.cloudzoom', 'mf910': '#op_product_zoom img', 'handu': '#masterImage', 'camel': '#img_jqzoom', 'letao': '#simgouter img', 'wangfujing': '.zoomPad .lazy-pic', 'zhen': '#zoom1 .a_max_pic', 'shopbop': '#productImage', 'yohobuy': '#img-show', 'taobao': '#J_ImgBooth', 'thewatchery': '#detailimage', 'amazon': '#altImages ul li img', 'mogujie': '#J_BigImg', 'escentual': '#zoom1 img', 'biccamera': '#PROD-CURRENT-IMG', 'zhe800': '#detail .deteilpic ul li img', 'vipshop': '#J-mer-ImgReview .zoomPad>img', 'tmall': '#J_ImgBooth', '1688': '#mod-detail-bd .content .box-img img', 'vip': '#J-mer-ImgReview .zoomPad>img', 'meilishuo': '#picture .item-pic-origin>img', 'jumei': '#etalage li>img', '6pm': '#detailImage img', 'banggo': '.mainPicContent', 'vjia': '#FreshDiv_MainPhoto .sp-bigImg img', 'yougou': '#pD-bimg', 'yintai': '#J_Magnifier img', 'okbuy': '#zoom1 img', 'lovo': '#jqzoom .zoomPad img', 'moonbasa': '#largeimg', 'tonlion': '.good_left .jqzoom', 'xiu': '#imgPic', 'lamiu': '#op_product_zoom img', 'masamaso': '.goods_tp_box .zoomPad img', 's': '.goods-detail-pic a img', 'paixie': '#zoom1 img', 'mbaobao': '#goods-zoom img', 'm18': '#GoodsImage', 'gap': '#wrap.all-images-box a img', 'esprit': '#mainImages .m-pic img', 'yangkeduo': '#banner .islider-outer .islider-active img' }; if (imgsrc[G.site]) { var src = $(imgsrc[G.site]).eq(0).attr('src'); if (location.host == 'www.amazon.co.jp' && src && src.match(/SR[0-9]+,[0-9]+/)) { src = src.replace(/SR([0-9]+)\,([0-9]+)/, 'SR' + '$1' + '0' + ',' + '$2' + '0'); } else if (location.host.indexOf('amazon') > -1) { return false; } if (src && !src.match(/(?:http:|https:)/) && src.indexOf('//') > -1) src = 'http:' + src; if (G.site === 'zhe800') { src = src.replace('58x58.jpg', '220x220.jpg'); } if (!src || src.indexOf('base64') > -1) { return false; } return src; } return false; }; var readyImg = function readyImg(trueClassId) { var src = getImgSrc(); if (sitearr.indexOf(G.site) > -1 && location.host != 'www.amazon.cn' || location.host.indexOf('1688') > -1 || trueClassId) { trueClassId = true; //发了请求都可以等,为true init里面才不会return communicate.trigger({ type: 'getTaobaoImgInfo', src: src }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaoImgInfo') { var text = $('#gwd_img_info').text(); if (text != '') editData(text); } }); } }; module.exports.ready = function () { if (G.site == 'taobao' || G.site == 'tmall' || G.site.indexOf('taobao') > -1) { return; } var dpdata = dataShare.get('dp_data'); var classId = dpdata && dpdata['now']['class_id']; var code = dpdata && dpdata['code-server']['code']; if (G.site === 'amazon' && code) return; if (classId) classId = classId.slice(0, 2); if (G.site === '360buy') { var cate_id = G.dp.cat_id; if (cate_id) cate_id = cate_id.split('-')[0]; var cateidArr = ["1620", "1315", "1318", "1672", "1319", "5025", "6144", "15248", "11729"]; if (cateidArr.indexOf && cateidArr.indexOf(cate_id) > -1) { trueClassId = true; } } else { if (classId == "13" || classId == "24" || classId == "1A" || classId == '21') trueClassId = true; } readyImg(trueClassId); }; module.exports.uniqPidGetImg = function (callback) { readyImg(true); callbacks = callback; }; module.exports.init = function (callback) { if (!trueClassId && sitearr.indexOf(G.site) == -1) { callback(null); return; } if (globalData) { callback(globalData); hasrun = true; } else callbacks = callback; setTimeout(function () { if (callbacks && hasrun === false) { callbacks(null); hasrun = true; } }, timeOUT); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 29 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var _this = this; var userData = __webpack_require__(6); var template = __webpack_require__(5); var userCenter = __webpack_require__(19); var request = __webpack_require__(2); var log = __webpack_require__(9); var cnzz = __webpack_require__(4); var utils = __webpack_require__(11); var price_remind = __webpack_require__(21); var globalFavor = {}, reqCallbacks = [], hasReq = undefined; var getRemindStyle = function getRemindStyle(callback) { var dp_id; return regeneratorRuntime.async(function getRemindStyle$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!G.remindInfo) { context$1$0.next = 3; break; } callback(G.remindInfo); return context$1$0.abrupt('return'); case 3: if (!hasReq) { context$1$0.next = 6; break; } reqCallbacks.push(callback); return context$1$0.abrupt('return'); case 6: hasReq = true; // let dp_id = G.now_dp_id; // if (dp_id.indexOf('-') === -1) { // dp_id = dp_id + '-' + G.site_id; // } dp_id = G.dp.itemId; context$1$0.next = 10; return regeneratorRuntime.awrap(__webpack_require__(3).met('collectionDetailAllowed')); case 10: userCenter.detail(dp_id).then(function (res) { console.log(res); setTimeout(function () { if ($('#gwd_mini_remind').is(':hover')) { onHoverContent(); } }); if (!res.data) { callback({}); G.remindInfo = {}; if (reqCallbacks.length > 0) { for (var i = 0; i < reqCallbacks.length; i++) { reqCallbacks[i]({}); } } return; } else { var msg = { remind_price: res.data.notifier.threshold, is_collected: res.data.id, has_remind_type: res.data.notifier.type, remind_type: res.data.notifier.type, notify_site: res.data.notifier.site }; G.remindInfo = msg; console.log('remindInfo got'); callback(msg); if (reqCallbacks.length > 0) { for (var i = 0; i < reqCallbacks.length; i++) { reqCallbacks[i](msg); } } } }); // callback(G.productChecked) // let url = `${G.c_server}/api/remind_setting?action=get&email=${G.email}&dp_id=${dp_id}`; // request.get(url).done((msg) => { // G.remindInfo = msg; // if (msg.remind_price) { // msg.remind_price = msg.remind_price / 100 // } // callback(msg) // if (reqCallbacks.length > 0) { // for (let i = 0; i < reqCallbacks.length; i++) { // reqCallbacks[i](msg) // } // } // }) case 11: case 'end': return context$1$0.stop(); } }, null, _this); }; var check_favor = function check_favor(id) { return regeneratorRuntime.async(function check_favor$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(!G.userLogin || !id)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__(3).met('checked_data_got')); case 4: if (G.productChecked && G.productChecked.collected) { $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected'); $('#ht_favor').text('收藏成功').addClass('collected'); } // }) case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; var loginAfterRender = function loginAfterRender() { $('.bjd-login-box, .login-content').hide(); $('.gwd-common-login').hide(); $('.bjd-jiangjia-re').show(); check_favor(G.now_dp_id); __webpack_require__(21).renderAgain(); getRemindStyle(function (msg) { if (msg) { globalFavor.is_collected = msg.is_collected; if (msg.has_remind_type) { $('.select-item').removeClass('selected'); $('#bjd_minifavor_content').addClass('bjd_choosed'); $('#favor_box').addClass('favor_choosed'); $('.jj-style .select-item[data-type="' + msg.remind_type + '"]').addClass('selected'); $('.gwd-del-collection').css('display', 'block'); } else { $('.jj-style .select-item[data-type="1"]').addClass('selected'); } //msg.notify_site = msg.notify_site; $('.jj-remind .select-item[data-type="' + msg.notify_site + '"]').addClass('selected'); if (msg.remind_price) $('.jj-remind .select-item[data-type="' + msg.notify_site + '"]').parent().find('input').val(msg.remind_price); $('.jj-style .re-mail').val(G.email); } }); $('#gwd-topText').css('display', 'none'); $('.gwd-not-login').removeClass('gwd-not-login'); $('#plotArea_' + G.from_device).removeClass('gwd-blurLayer'); }; $('body').on('gwd-login-complete', function (c) { var e = c.originalEvent; console.log(e); // G.email = e.detail.uid; // G.userLogin = true; utils.setLocal('email', e.detail.uid); loginAfterRender(); }); var userLogin = function userLogin() {}; var hasLoginRender = undefined; var onHoverContent = function onHoverContent() { price_remind.getQRcode(); if (G.userLogin && !hasLoginRender) { loginAfterRender(); hasLoginRender = true; } $('#gwd_mini_remind').addClass('mshover'); $('#gwd_mini_remind em').addClass('collect_hover'); $('html').addClass('bjd-favor-show'); $('#bjd_minifavor_content').show(); }; var miniFavorEvent = function miniFavorEvent() { var forbidHide = undefined; var msStyle = 'click'; if (G.userLogin) msStyle = 'mouseenter'; $('.remindHint').hide(); $('#gwd_mini_remind').on(msStyle, function () { onHoverContent(); }).on('mouseleave', function (e) { if (forbidHide) return; setTimeout(function () { $('#gwd_mini_remind').removeClass('mshover'); $('#gwd_mini_remind em').removeClass('collect_hover'); $('html').removeClass('bjd-favor-show'); $('#bjd_minifavor_content').hide(); }, 200); }); // $('#bjd_minifavor_content').on('mouseenter', () => { // clearTimeout(mTime1); // clearTimeout(mTime2); // }) // $('#bjd_minifavor_content').on('mouseleave', (e) => { // if (forbidHide) return; // mTime2 = setTimeout(function() { // $(`#gwd_mini_remind`).removeClass('mshover') // $(`#gwd_mini_remind em`).removeClass('collect_hover') // $('html').removeClass('bjd-favor-show') // $('#bjd_minifavor_content').hide() // }, 200) // }) $('#bjd_minifavor_content input').on('focus', function () { forbidHide = true; setTimeout(function () { forbidHide = false; }, 300); }); $('.jiangjia-left .select-item').on('click', function () { $(this).parent().parent().find('.select-item').removeClass('selected'); $(this).addClass('selected'); }); $('#edit_re_style').on('click', function () { $('#bjd_minifavor_content').removeClass('bjd_choosed'); }); $('#loginClickBtn').on('click', function () { var userN = $('#bjd_minifavor_content .username').val(); var psd = $('#bjd_minifavor_content .password').val(); if (userN && psd) { price_remind.loginRenderTop(); userLogin(userN, psd); } else { $('#login_remind_tle').css('display', 'block').fadeOut(5000); return; } }); $('#subbtn').on('click', function () { var ischoosed = $('#bjd_minifavor_content').hasClass('bjd_choosed'); if (!ischoosed) { var remind_email = undefined; var remind_type = $('.jj-style .select-item.selected').attr('data-type'); if (remind_type === '1') { remind_email = $('.jj-style .re-mail').val(); if (!remind_email) { $('#error_remind_tle').text('请输入正确的邮箱地址').css('display', 'block').fadeOut(5000); return; } } } var dom = $('.jj-remind .select-item.selected'); var notify_site = dom.attr('data-type'); var price = dom.parent().find('input').val(); if (price === '') { $('#error_remind_tle').text('请输入商品期望价格').css('display', 'block').fadeOut(5000); return; } else if (Number(price) <= 0 || !price.match(/(?:^\d+$|^\d+\.\d{1,2}$)/)) { $('#error_remind_tle').text('请输入正确格式的价格').css('display', 'block').fadeOut(5000); return; } else if (globalFavor.nowprice && Number(price) > globalFavor.nowprice) { $('#error_remind_tle').text('价格不能高于当前商品价格').css('display', 'block').fadeOut(5000); return; } log('mini-favor-detail-btn-click'); cnzz.log('mini-favor-detail-btn-click'); /*notify_site => 0 全网 1 当前网站*/ add_favor(notify_site, price); // $('#bjd_minifavor_content').hide().addClass('bjd_choosed') }); $('.jj-remind-logo').on('click', function () { log('allsite-lowpri-click'); cnzz.log('allsite-lowpri-click'); }); $('.gwd-del-collection').on('click', function () { delFavor(); }); }; var setNotifyPrice = function setNotifyPrice(notify_site, notify_price) { var allAddClass = function allAddClass(selector, className) { $(selector).each(function () { $(this).addClass(className); }); }; var allVal = function allVal(selector, value) { $(selector).each(function () { $(this).val(value); }); }; G.collectionChanged = true; // $(`#${G.extBrand}_add_favor`).text('收藏成功').show().fadeout(2000); /*收起价格走势*/ // $(`#${G.extName}-trend-detail`).hide() $('.remindHint').show().fadeOut(2000); //设置嵌入页面的内容同步变化 $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); $('.remind-item.current-selected').removeClass('current-selected'); $('.remind-item .select-item').removeClass('selected'); var n = parseInt(notify_site); if (n) { allAddClass('.remind-item-snd', 'current-selected'); allAddClass('.remind-item-snd .select-item', 'selected'); allVal('.remind-item-snd input', notify_price); } else { allAddClass('.remind-item-fst', 'current-selected'); allAddClass('.remind-item-fst .select-item', 'selected'); allVal('.remind-item-fst input', notify_price); } }; var delFavor = function delFavor() { userCenter['delete']().then(function (res) { if (res.code !== 1) return; $('.remind-item.current-selected').removeClass('current-selected'); $('#gwd_mini_remind .minibar-btn-box em').removeClass('favored'); $('#gwd_mini_remind .minibar-btn-box span').text('降价提醒'); $('.gwd-del-collection').css('display', 'none'); G.remindInfo = {}; userCenter.clearCurrent(); }); }; var add_favor = function add_favor(notify_site, notify_price) { notify_site = notify_site || ''; notify_price = notify_price || ''; var dp_id = globalFavor['dp_query'].dp.dp_id; var site_id = globalFavor['dp_query'].dp.site_id; var dp = globalFavor['dp_query'].dp; var price = G.dp.oldPrice; var title = G.dp.name || $('title').html(); $('#' + G.extBrand + '_add_favor').text('正在收藏'); if (price == "" || price <= 0) { var nprice = G.price; price = nprice; } var is_collected = '0'; if (globalFavor.is_collected) { is_collected = '1'; } if (G.site_id == '83' || G.site_id === '123') dp.dp_id = dp.dp_id + '-' + G.site_id; __webpack_require__(19).add(notify_price, notify_site).then(function (msg) { $('#' + G.extBrand + '_add_favor').text('收藏该商品'); if (msg.code === 100 || msg.code <= 0) { $('#' + G.extBrand + '_add_favor').hide(); $('#' + G.extBrand + '_favor_item_list').empty().hide(); //$('#${G.extBrand}_favor_num').text(' N') $('#' + G.extBrand + '-favor-detail .' + G.extBrand + '-login-info').show(); } else if (msg.code === 1) { setNotifyPrice(notify_site, notify_price); if (!msg.data) { G.remindInfo.remind_price = notify_price; G.remindInfo.notify_site = notify_site; } else { var data = { remind_price: msg.data.notifier.threshold, is_collected: msg.data.id, has_remind_type: msg.data.notifier.type, remind_type: msg.data.notifier.type, notify_site: msg.data.notifier.site }; G.remindInfo = data; $('.gwd-del-collection').css('display', 'block'); } // 更新本地收藏存储 // utils.addFavorCheck() } else if (msg.code === 2) { $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); } })['catch'](function () { $('#' + G.extBrand + '_add_favor').text('收藏商品'); }); }; var updateTimes = 0; var updatePrice = function updatePrice() { var nowPrice; return regeneratorRuntime.async(function updatePrice$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!globalFavor.nowprice) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!(updateTimes > 5)) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: updateTimes++; context$1$0.next = 7; return regeneratorRuntime.awrap(__webpack_require__(3).met('NowPrice')); case 7: nowPrice = context$1$0.sent; if (nowPrice && nowPrice > 0 && Number($('.jj-remind .remind-item-snd input').val())) { globalFavor.nowprice = nowPrice; if (!globalFavor.allprice) { globalFavor.allprice = nowPrice; $('.jj-remind .remind-item input').val(nowPrice); } $('.jj-remind .remind-item-snd input').val(nowPrice); } case 9: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function callee$0$0() { var dp_query, other_info, minidom, choosed, remind_type, lowestUrl, emailvalue, url, nowprice, allprice, html; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__(3).met('dp_query_set')); case 2: dp_query = userData.get('dp_query'); other_info = userData.get('other_info'); globalFavor['other_info'] = other_info; globalFavor['dp_query'] = dp_query; minidom = '#gwd_mini_remind'; choosed = undefined, remind_type = undefined, lowestUrl = undefined; emailvalue = G.email; if (other_info.now.dp_id) { context$1$0.next = 11; break; } return context$1$0.abrupt('return'); case 11: url = encodeURIComponent(location.href); context$1$0.next = 14; return regeneratorRuntime.awrap(__webpack_require__(3).met('NowPrice')); case 14: nowprice = context$1$0.sent; if (G.aliSite && G.dp.price) nowprice = G.dp.price; allprice = dp_query.b2c.min_price || nowprice; nowprice = Number(nowprice.toString().replace(',', '')); allprice = Number(allprice.toString().replace(',', '')); if (dp_query.b2c.product && dp_query.b2c.product.length !== 0) { lowestUrl = dp_query.b2c.product[0].url; log('allsite-lowpri-show'); cnzz.log('allsite-lowpri-show'); } // else if (dp_query.b2c.store && dp_query.b2c.store.length !== 0) { // lowestUrl = dp_query.b2c.store[0].product[0].url; // log('allsite-lowpri-show'); // cnzz.log('allsite-lowpri-show') // } globalFavor.nowprice = nowprice; html = __webpack_require__(247); if (G.userLogin) { check_favor(other_info.now.dp_id); setTimeout(function () { $('#gwd_mini_remind').hover(function () { __webpack_require__(3).setMet('collectionDetailAllowed'); }); $('#gwdang-trend').hover(function () { __webpack_require__(3).setMet('collectionDetailAllowed'); }); }, 0); getRemindStyle(function (msg) { if (msg.has_remind_type) { choosed = true; } if (msg.is_collected) { globalFavor.is_collected = msg.is_collected; if (parseInt(msg.notify_site) === 1) nowprice = msg.remind_price;else allprice = msg.remind_price; } if (!allprice) allprice = nowprice; globalFavor.notify_site = msg.notify_site; globalFavor.allprice = allprice; remind_type = msg.remind_type || '0'; // if (G.email.indexOf(`${G.extName}.com`) > -1) // emailvalue = ''; if (G.userLogin) { G.email = 1; } var config = __webpack_require__(25).getMoneyInfo(G.logsite); var currency = '元'; if (config) { currency = config[1]; } var dom = template.compile(html)({ choosed: choosed, email: G.email, emailvalue: emailvalue, url: url, lowestUrl: lowestUrl, notify_site: globalFavor.notify_site, nowprice: nowprice, allprice: allprice, remind_type: remind_type, extName: G.extName, currency: currency }); if (globalFavor.notify_site === undefined) { setTimeout(function () { $('.remind-item-snd .select-item').addClass('selected'); }, 1000); } $(minidom).append(dom); check_favor(other_info.now.dp_id); miniFavorEvent(); }); } else { (function () { var dom = template.compile(html)({ choosed: choosed, email: G.userLogin, emailvalue: emailvalue, url: url, lowestUrl: lowestUrl, notify_site: globalFavor.notify_site, nowprice: nowprice, allprice: allprice, remind_type: remind_type, extName: G.extName }); $(minidom).append(dom); miniFavorEvent(); var CommonLogin = __webpack_require__(35)['default']; new Vue({ el: '#gwd-login-mini', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-mini', showAlterLogin: true, alterLoginPosition: 'row' } }); } }); })(); } // let dom = template.compile(html)({ // choosed: choosed, // email: '', // emailvalue: '', // url: url, // lowestUrl: lowestUrl, // notify_site: G.remindInfo.remind_type, // nowprice: nowprice, // allprice: allprice, // remind_type: remind_type, // extName: G.extName // }) // $(minidom).append(dom) // miniFavorEvent() updatePrice(); case 24: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.getRemindStyle = getRemindStyle; module.exports.add_favor = add_favor; module.exports.setNotifyPrice = setNotifyPrice; // debugger // let url = `${G.c_server}/brwext/check_collected?email=${G.email}&dp_id=${id}` // request.get(url).done((data) => { //let nowprice = other_info['code-server'] && other_info['code-server'].price || G.dp.price; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(0), __webpack_require__(1), __webpack_require__(15)["default"])) /***/ }), /* 30 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G) { var _this = this; var cnzz = __webpack_require__(4); var QRCode = __webpack_require__(367); /**获取二维码 * * @param obj * @param url * @param callback * @param useOriTitle 使用原始标题 * @param noReplace 直接生成二维码,不请求接口 */ module.exports = function callee$0$0(obj, url, callback) { var useOriTitle = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; var noReplace = arguments.length <= 4 || arguments[4] === undefined ? false : arguments[4]; var id; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: obj.couponUrl = url; if (obj.title.length === 0 && !useOriTitle) { obj.title = 'x'; } id = obj.id; obj = JSON.stringify(obj); // let xml = new XMLHttpRequest() // xml.open('POST', `${G.server}/extension/CouponQrCode?w=150`) // xml.addEventListener('load', function() { // try { // let data = JSON.parse(xml.response); // callback(data) // } catch (e) {} // }) // xml.send(obj); if (!noReplace) { context$1$0.next = 7; break; } QRCode.toDataURL(url, { errorCorrectionLevel: 'L' }, function (err, url) { if (err) { //console.error(err) return; } callback([{ imgSrc: url }]); }); return context$1$0.abrupt('return'); case 7: if (!(G.ss_name === 'priceDog' && G.aliSite)) { context$1$0.next = 10; break; } __webpack_require__(2).get(G.u_server + '/helper/promoQrcode?event=wx_coupon&dp_id=' + id).then(function (res) { if (res.code === 1 && res.data && res.data.qrImgStr) { callback([{ imgSrc: res.data.qrImgStr }]); } else { callback([{ etag: 0 }]); } }); return context$1$0.abrupt('return'); case 10: __webpack_require__(2).post(G.server + '/extension/CouponQrCode?w=150&from_device=' + G.from_device + '&rand=' + parseInt(Math.random() * 1000), obj, false, false).then(function (data) { try { data = JSON.parse(data); callback(data); } catch (e) { callback(data); //console.error(e) } }); cnzz.log("实时抓取发送请求"); case 12: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(0))) /***/ }), /* 31 */, /* 32 */, /* 33 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var getCoupon = __webpack_require__(42); var globalCondition = __webpack_require__(3); var globalData = { tmall: [], taobao: [] }; var minPriceObj = {}; var minPriceStatus = {}; var sizeObj = {}, totalObj = {}; var renderCoupon = function renderCoupon(data, type, isBottom) { sizeObj[type]++; if (data && data.data) globalData[type].push(data.data); if (sizeObj[type] === totalObj[type]) { if (isBottom) { renderProdutBt(type, isBottom); } else { renderProdut(type); } if (G.aliSite) { // 如果是淘宝天猫,当前商品没有优惠券,需要吧比价结果里面有优惠券的商品在中间展示 console.log('renderCoupon', data); // 元旦红包时暂停显示 // if (new Date() < new Date('2020-01-10T23:59:59')) { // return // } if (G.runminiCoup === '1') { __webpack_require__(92).init(globalData, '.gwd-minibar-bg'); } else if (!G.runminiCoup) { G.runminiCoupon2 = true; $(document).on('runminiCoupon2', function () { __webpack_require__(92).init(globalData, '.gwd-minibar-bg'); }); } } } }; var renderProdutBt = function renderProdutBt(type, bdata) { // 渲染底部优惠券 var arr = globalData[type]; for (var i = 0; i < bdata.length; i++) { for (var j = 0; j < arr.length; j++) { if (bdata[i] && arr[j] && bdata[i].num_iid == arr[j].reqid) { var lastP = (Number(bdata[i].price) - arr[j].coupon.coupon_money).toFixed(2); if (Number(lastP) < minPriceObj[type]) { minPriceObj[type] = lastP; minPriceStatus[type] = true; } var coupon_money = arr[j].coupon.coupon_money; bdata[i].url = arr[j].click_url2; bdata[i].tspan = '领' + coupon_money + '元券'; bdata[i].ta = '
\n \n 券后价:\n ¥' + lastP + '\n ¥' + bdata[i].price + '\n \n
'; break; } } } if (minPriceStatus[type]) { if (type === 'taobao') { $('.compare-list li[data-id="tbcompare"] .com-item-pri').text('¥' + minPriceObj[type]); } else { $('.compare-list li[data-id="tmcompare"] .com-item-pri').text('¥' + minPriceObj[type]); } } globalCondition.setMet('bottomCouponReady-' + (type === 'taobao' ? 'tbcompare' : 'tmcompare')); }; var renderProdut = function renderProdut(type) { // 渲染顶部优惠券 var ul = $('#' + type + '-item-list li'); var len = ul.length; var arr = globalData[type]; var _loop = function (i) { var id = ul.eq(i).attr('data-id'); for (var j = 0; j < arr.length; j++) { if (arr[j] && arr[j].reqid == id) { ul.eq(i).find('.small-img').append($('领' + arr[j].coupon.coupon_money + '元券')); var price = ul.eq(i).find('span.gwd-price').text(); var lastP = (Number(price.replace(/[¥¥]/g, '')) - arr[j].coupon.coupon_money).toFixed(2); if (Number(lastP) < minPriceObj[type]) { minPriceObj[type] = lastP; minPriceStatus[type] = true; } ul.eq(i).find('.gwd-price').after($('
\n 券后价:\n ¥' + lastP + '\n ' + price + '\n
')).remove(); ul.eq(i).find('a').attr('href', arr[j].click_url2); ul.eq(i).find('a').on('click', function (e) { e.preventDefault(); var adzone_id = '10003'; if (G.aliSite) adzone_id = '10004'; getCoupon.init(id, adzone_id, function (data) { window.open(data.data.click_url2); }); }); } } }; for (var i = 0; i < len; i++) { _loop(i); } if (minPriceStatus[type]) { if (type == 'taobao') { $('#tb_compare .tab-sp2').text('¥' + minPriceObj[type]); } else { $('#tm_compare .tab-sp2').text('¥' + minPriceObj[type]); } } }; // 比价结果部分的优惠券 module.exports.init = function callee$0$0(data, type, isBottom, minpri) { var f2, adzone_id, i; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!G.forbidCoupon) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (data) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: if (data.length) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: minPriceObj[type] = minpri; totalObj[type] = data.length; sizeObj[type] = 0; if (isBottom) isBottom = data; f2 = function f2(newData) { renderCoupon(newData, type, isBottom); }; adzone_id = '10003'; if (G.aliSite) adzone_id = '10004'; G.arrToCheck = data.map(function (x) { return x.num_iid; }); $('#tb_compare').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('#tm_compare').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-box').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-list li[data-id="tbcompare"]').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); $('.compare-list li[data-id="tmcompare"]').hover(function () { globalCondition.setMet('aliCouponAllowed'); }); context$1$0.next = 21; return regeneratorRuntime.awrap(globalCondition.met('aliCouponAllowed')); case 21: for (i = 0; i < data.length; i++) { getCoupon.init(data[i].num_iid, adzone_id, f2, false); } case 22: case 'end': return context$1$0.stop(); } }, null, _this); }; // forbidCoupon entry部分给的值 可能会针对特定地区屏蔽 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1), __webpack_require__(7))) /***/ }), /* 34 */, /* 35 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___ = __webpack_require__(248); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___ = __webpack_require__(99); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less___ = __webpack_require__(251); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor___ = __webpack_require__(253); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind___ = __webpack_require__(255); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini___ = __webpack_require__(257); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup___ = __webpack_require__(259); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_7__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___["b" /* staticRenderFns */], false, null, "5efee9c0", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('5efee9c0')) { api.createRecord('5efee9c0', component.options) } else { api.reload('5efee9c0', component.options) } module.hot.accept("./CommonLogin.vue?vue&type=template&id=5efee9c0&scoped=true&", function () { api.rerender('5efee9c0', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/CommonLogin.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 36 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports.checkimg = function (url, imgObj, size, callback) { var sz = typeof size == 'undefined' || size == "" || size == null ? 90 : size; var val = url; var img = new Image(); if (G.browser.msie && G.browser.version < 11) { img.onreadystatechange = function () { if (img.readyState == "complete" || img.readyState == "loaded") { if (img.width > 0 && img.height > 0) { var rate = sz / img.width < sz / img.height ? sz / img.width : sz / img.height; if (rate <= 1) { imgObj.css('width', img.width * rate); imgObj.css('height', img.height * rate); } else { imgObj.css('width', img.width); imgObj.css('height', img.height); } } imgObj.attr('src', url); } }; } else { img.onload = function () { if (img.complete == true) { if (img.width > 0 && img.height > 0) { var rate = sz / img.width < sz / img.height ? sz / img.width : sz / img.height; if (rate <= 1) { imgObj.css('width', img.width * rate); imgObj.css('height', img.height * rate); } else { imgObj.css('width', img.width); imgObj.css('height', img.height); } } imgObj.attr('src', url); if (callback) { callback(); } } }; } img.onerror = function () { imgObj.attr('src', G.s_server + "/images/extensions/default_load_image.png").css('width', 90); imgObj.attr('data-original', G.s_server + "/images/extensions/default_load_image.png"); }; img.src = val; }; module.exports.getParameterByName = function (name, url) { if (!url) { url = window.location.href; } name = name.replace(/[\[\]]/g, "\\$&"); var regex = new RegExp("[?#&]" + name + "(=([^&#]*)|&|#|$)"), results = regex.exec(url); if (!results) return null; if (!results[2]) return ''; return decodeURIComponent(results[2].replace(/\+/g, " ")); }; module.exports.sleep = function (time) { return new Promise(function (resolve) { setTimeout(function () { return resolve(); }, time); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 37 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var request = __webpack_require__(2); var template = __webpack_require__(5); module.exports = { init: function init(hasCoupon) { var config, onlyCenter, c, shopCoupon, giftMoney, t, s, e, html, html2; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!window.gwdActivity) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: window.gwdActivity = true; config = undefined; if (!G.allowBackgroundRequest) { context$1$0.next = 10; break; } context$1$0.next = 7; return regeneratorRuntime.awrap(request.get('https://cdn.bijiago.com/js/configs/activity-online.json')); case 7: config = context$1$0.sent; context$1$0.next = 13; break; case 10: context$1$0.next = 12; return regeneratorRuntime.awrap(request.requestXHR('https://cdn.bijiago.com/js/configs/activity-online.json', false)); case 12: config = context$1$0.sent; case 13: onlyCenter = false; if (!(config.aliActivity && G.aliSite)) { context$1$0.next = 32; break; } c = config.aliActivity; if (c.disableWhenHasCoupon && hasCoupon) { onlyCenter = true; } context$1$0.next = 19; return regeneratorRuntime.awrap(__webpack_require__(3).met('shopCouponGot')); case 19: shopCoupon = context$1$0.sent; if (shopCoupon) { onlyCenter = true; } // if (!hasCoupon && !shopCoupon) { // let memberCoupon = await require('standard/module/memberCoupon').init() // console.log(memberCoupon) // if (memberCoupon) { // return // } // } if (!(!hasCoupon && !shopCoupon)) { context$1$0.next = 28; break; } context$1$0.next = 24; return regeneratorRuntime.awrap(__webpack_require__(401).init()); case 24: giftMoney = context$1$0.sent; console.log('giftmoney', giftMoney); if (!giftMoney) { context$1$0.next = 28; break; } return context$1$0.abrupt('return'); case 28: t = new Date(); s = new Date(c.start); e = new Date(c.end); if (t < e && t > s) { if (!onlyCenter) { if ($('#gwd-space').outerWidth() >= 230) { html = template.compile(__webpack_require__(418))({ img: c.top.img, qr: c.top.qr }); $('.gwd-topbar-left').append(html); setTimeout(function () { var topLogged = false; var topTmall = $('.gwd-top-tmall'); if (topTmall.length) { __webpack_require__(4).log('顶部活动二维码', '曝光'); } topTmall.hover(function () { if (!topLogged) { topLogged = true; __webpack_require__(4).log('顶部活动二维码', '悬浮'); } }); }, 0); } if (!hasCoupon && c.middle.text) { html2 = template.compile(__webpack_require__(419))({ qr: c.top.qr, text: c.middle.text }); //$('#gwd_minibar').after(html2) $('#gwd-coupon-placeholder').replaceWith(html2); } if (window.innerWidth - $('#bjd_bottom_detail').outerWidth() > 160) { (function () { // 购物党底部 var html = template.compile(__webpack_require__(420))({ img: c.bottom.img, qr: c.bottom.qr, extClass: 'rinfo-btn' }); $('#bjd_bottom_detail .right-info .search-mod').after(html); var bottomLogged = false; setTimeout(function () { var bottomTmall = $('.gwd-bottom-tmall'); if (bottomTmall.length) { __webpack_require__(4).log('底部活动二维码', '曝光'); } bottomTmall.hover(function () { if (!bottomLogged) { bottomLogged = true; __webpack_require__(4).log('底部活动二维码', '悬浮'); } }); }, 0); })(); } } if ($('#mini-price-history') && c.center.text) { (function () { // 购物党中间 var html = template.compile(__webpack_require__(421))({ img: c.top.img, qr: c.top.qr, text: c.center.text, extClass: 'minibar-tab', qrText: c.qrText }); $('#mini_price_history').after(html); $('.minibar-tab').css('width', '128px'); $('.gwd-middle-tmall').css('width', '159px;'); var centerLogged = false; __webpack_require__(4).log('中间活动二维码', '曝光'); setTimeout(function () { $('.gwd-middle-tmall').hover(function () { if (!centerLogged) { centerLogged = true; __webpack_require__(4).log('中间活动二维码', '悬浮'); } }); $('.gwd-take').hover(function () { if (!centerLogged) { centerLogged = true; __webpack_require__(4).log('中间活动二维码', '悬浮'); } }); }, 0); })(); } } case 32: if (config.jdActivity && G.site === '360buy') { c = config.jdActivity; t = new Date(); if (t < new Date(c.end) && t > new Date(c.start)) { //$('#gwdang-banner-ad').remove() if (!hasCoupon) { // if ($('#gwd-space').outerWidth() >= 230) { // // 购物党顶部 // let html = `` // $('.gwd-topbar-left').append(html) // } if (c.center.textlong) { html = template.compile(__webpack_require__(422))({ link: c.center.link, text: c.center.textlong }); $('#gwd_minibar').after(html); // $('.minibar-tab').css('width', '128px') // $('.gwd-middle-tmall').css('width', '159px;') } } if (window.innerWidth - $('#bjd_bottom_detail').outerWidth() > 160) { html = ''; $('#bjd_bottom_detail .right-info .search-mod').after(html); } } } case 33: case 'end': return context$1$0.stop(); } }, null, this); } }; // 购物党顶部 // 购物党中间 // 购物党底部 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 38 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, Vue) { var _this = this; module.exports.init = function callee$0$0(mode) { var className, allowedList, subClass, text; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: className = $('.crumb .item.first').text(); allowedList = '家用电器、食品饮料、电脑/办公、母婴、手机通讯、家庭清洁/纸品、数码、个人护理、美妆护肤、医疗、营养保健、厨具、酒类、家装建材、汽车用品、运动户外、生鲜、家纺、服饰内衣、玩具乐器、家居日用、箱包皮具、家具、钟表、鞋靴、宠物生活、礼品、图书、珠宝首饰、文娱、工业品'.split('、').map(function (x) { return x.replace('电脑/办公', '电脑、办公'); }); if (!(allowedList.indexOf(className) > -1)) { context$1$0.next = 15; break; } subClass = $('.crumb .item').text(); if (!(className === '手机通讯' && subClass.indexOf('办号卡') > -1)) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: if (!(className === '珠宝首饰' && subClass.indexOf('黄金') > -1)) { context$1$0.next = 8; break; } return context$1$0.abrupt('return'); case 8: text = $('.u-jd').text().trim(); if (!text) { text = $('.shopHeader .tag').text().trim(); } if (!(text !== '自营')) { context$1$0.next = 12; break; } return context$1$0.abrupt('return'); case 12: context$1$0.next = 14; return regeneratorRuntime.awrap(__webpack_require__(3).met('GwdPriceTrendLoaded')); case 14: render(mode); case 15: case 'end': return context$1$0.stop(); } }, null, _this); }; var render = function render(mode) { __webpack_require__(4).log('jdPriceProtect:show'); var GwdPriceProtectMiddle = __webpack_require__(424)['default']; new Vue({ el: '.gwd-price-protect', render: function render(h) { return h(GwdPriceProtectMiddle, { props: { mode: mode } }); } }); // $('.gwd-price-protect').replaceWith(` // // `) setTimeout(function () { $('#gwd-price-protect').click(function (e) { __webpack_require__(4).log('jdPriceProtect:click'); }); }, 0); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(1), __webpack_require__(15)["default"])) /***/ }), /* 39 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var dpList = __webpack_require__(220); var priceCheck = __webpack_require__(40); var cnzz = __webpack_require__(4); var log = __webpack_require__(9); var communicate = __webpack_require__(13); var Timer, nowSiteId; var maxTimes = 0; var globalObj = { 'crcarr': [] }; // 第一个是url 第二个是价格 var siteDicts = { 'yihaodian': [['.proImg a.img', '.proPrice>em.num']], 'tmall': [['.product-title a', '.ui-price strong'], ['.productTitle a', '.productPrice em']] }; var siteIdDicts = { "yihaodian": 31, "tmall": 83 }; var listenerDicts = { "yihaodian": ".clearfix>#plist" // "suning": ".search-main" }; var getItemInfo = function getItemInfo(a, b, c) { var info = []; var len = $(a).length; for (var i = 0; i < len; i++) { var urldom = $(a).eq(i).find(b).eq(0); var pricedom = $(a).eq(i).find(c).eq(0); if (urldom && pricedom) { var url = urldom.attr('href') || ''; var price = pricedom.text().replace('¥', '').replace('约', ''); var crc32 = getCrc(urldom); if (urlFilter(url)) continue; url = process(url); if (url && price && crc32) { if (globalObj.crcarr.indexOf && globalObj.crcarr.indexOf(crc32) === -1 && crc32 !== 'x') globalObj.crcarr.push(crc32);else if (crc32 === 'x') crc32 = '';else continue; info.push({ 'url': url, 'price': price, 'crc32': crc32 }); } } } return info; }; var urlFilter = function urlFilter(url) { // 一号店做一些广告商品过滤 if (url.indexOf('' + G.extName) > -1) return true; if (G.site == 'yihaodian') { if (url.indexOf('tracker.yhd.com') > -1 || url.indexOf('item.yhd.com') == -1) return true; } if (G.site == "360buy") { if (url.indexOf('item.jd.com') == -1) return true; } return false; }; var process = function process(url) { if (!url) return; var hash = url.indexOf('#') > -1; if (hash) url = url.slice(0, hash); if (url.indexOf('//') === 0) return 'http:' + url; if (url.indexOf('/') === 0) return '' + location.host + url; return url; }; var getCrc = function getCrc(a) { var crc = ''; switch (G.site) { case "yihaodian": var crc32 = $(a).attr('id').match(/pdlink1_(\d+)/); if (crc32) crc = crc32[1]; break; case "suning": crc = $(a).parents('.wrap').find('input.hidenInfo').attr('datapro').split('||')[1]; break; default: crc = "x"; break; } return crc; }; var getInfo = function getInfo(selectors) { var siteP = siteDicts[G.site]; var len = selectors.length; for (var i = 0; i < len; i++) { var selector = selectors[i]; for (var j = 0; j < siteP.length; j++) { var itemP = siteP[j]; var res1 = $(selector + ' ' + itemP[0]); var res2 = $(selector + ' ' + itemP[1]); if (res1.length && res2.length) { return getItemInfo(selector, itemP[0], itemP[1]); } } } }; var sended = []; var sendInfo = function sendInfo(info) { //console.log('info:', info) if (sended.indexOf(JSON.stringify(info)) > -1) { return; } sended.push(JSON.stringify(info)); if (!info || info.length === 0) return; var province_id = priceCheck.getSubStationId(G.site); var data = { 'province_id': province_id, 'info': info }; if (!log) { log = console.log; } if (typeof log === 'function') { log('getListInfo_is_send' + G.union + '_site' + G.logsite); } cnzz.log('getListInfo_is_into'); // 发送的数据需要加密处理 data = __webpack_require__(82).gZip(data); var siteid = siteIdDicts[G.site] || siteIdDicts['nowSite'] || nowSiteId; if (window.XMLHttpRequest) { try { communicate.trigger({ type: 'sendListInfo', data: btoa(data), url: G.server + '/extension?ac=sendListInfo&site_id=' + siteid + '&u=' + G.union }); // let xml = new XMLHttpRequest() // xml.open('POST', `${G.server}/extension?ac=sendListInfo&site_id=${siteid}&u=${G.union}`) // xml.send(data); cnzz.log("实时抓取发送请求"); } catch (e) {} } }; var addDomListener = function addDomListener() { var scrollTop = 0; var time2 = undefined; if (G.site === 'suning') { $(window).on('scroll', function (e) { var sctop = $(window).scrollTop(); if (sctop - scrollTop > 500) { scrollTop = sctop; clearTimeout(time2); if (maxTimes > 8) return; time2 = setTimeout(function () { maxTimes++; __webpack_require__(17).init(editInfo); }, 1500); } }); } else { var dom = $('' + listenerDicts[G.site])[0]; if (!dom) return; // 监听节点变化 发现新内容加载再继续获取价格等信息 if (dom.addEventListener) { dom.addEventListener('DOMSubtreeModified', function () { clearTimeout(Timer); if (maxTimes > 15) return; Timer = setTimeout(function () { maxTimes++; var info = getInfo(globalObj.selectors); if (!info || info.length === 0) return; //console.log('send info a') sendInfo(info); }, 1000); }, false); } } }; var editInfo = function editInfo(id, info) { siteIdDicts['nowSite'] = id; sendInfo(info); }; module.exports.init = function () { var ua = navigator.userAgent; if (G.from_device === 'firefox' || ua.match(/Firefox/i)) { return; } if (location.host.match(/^m\./)) return; if (G.site === 'yangkeduo') { try { var listInfo = window.__NEXT_DATA__ && window.__NEXT_DATA__.props.pageProps.data.initList; if (listInfo && listInfo.length > 0) { var newList = listInfo.map(function (v) { return { 'url': location.protocol + '//' + location.host + '/' + v.linkURL, 'price': Number(v.price), 'tle': v.goodsName || '', 'crc32': '' }; }); if (newList && newList.length > 0 && newList[0].price) { sendInfo(newList); } } } catch (e) {} } else if (!siteDicts[G.site]) { try { __webpack_require__(17).init(editInfo); } catch (e) { log('listInfoError:' + JSON.stringify(e)); } if (location.host.indexOf('suning') > -1) { addDomListener(); } } else { var _ret = (function () { var selectors = dpList.check(); globalObj.selectors = selectors; if (!selectors || selectors && !selectors.length) return { v: undefined }; setTimeout(function () { var info = getInfo(selectors); if (!info || info.length === 0) return; sendInfo(info); addDomListener(); }, 1000); })(); if (typeof _ret === 'object') return _ret.v; } }; module.exports.sendPriCheck = function (info) { nowSiteId = __webpack_require__(17).getSiteId(G.site); sendInfo(info); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 40 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { 'use strict'; var $ = __webpack_require__(1); var parseprice = __webpack_require__(16); var cacheprovince; function getProductInfoPrice() { var price = G.dp.price; if (price) price = Number(price); return price; } return { /** * 价格实时反馈模块 * 监控当前网站价格情况,并提取价格数据 * @author:mllong(mllong0925@gmail.com) * @since:2013-05-20 */ //提取当前页面的价格 getOnlinePrice: function getOnlinePrice(siteName) { siteName = siteName || G.pageInfo.siteName; var price = 0; try { if (typeof this.pricePattern[siteName] != 'undefined') { var len = this.pricePattern[siteName].length, patterns = this.pricePattern[siteName]; for (var i = 0; i < len; i++) { try { var pattern = patterns[i]; price = $(pattern + ':visible').length && $(pattern).eq(0).text(); if (!price) continue; price = parseprice(price); if (price) break; } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } /*新蛋中国价格为图片显示,没法获取到,只能从其他地方拿到*/ if (price == 0 || price == '') price = getProductInfoPrice(); return price; }, //部分主流站点的价格模板 pricePattern: { 'coocaa': ['#ECS_SHOPPRICE span:eq(1)', '#ECS_SHOPPRICE'], 'nubia': ['.pdtby-price'], 'coolpad': ['.produce_scall_right_textb ul li span.produce_scall_right_textx'], 'lenovo': ['.lenovo-member-price font', '#gprice'], 'gjw': ['#spPrice', '.goujiu_price'], 'homevv': ['.ht_money'], 'xiaomi': ['.goods-info-head .J_mi_goodsPrice', '.J_mi_goodsPrice', '.price .num'], 'xiu': ['#prd_price_div .style3'], 'moonbasa': ['#p_saleprice', '.detailprice', '.leftPrice b'], 'j1': ['#jianyiPrice'], 's': ['.salePrice_big'], 'letao': ['#special+.ltprice', '.ltprice'], 'muyingzhijia': ['.p-price'], 'paixie': ['#js_current_price'], 'zhiwo': ['.mumer', '.dsingle_nowprice'], 'bookschina': ['span.thisprice', '.thisprice'], 'leyou': ['#leyoujia'], 'taobao': ['.tm-promo-price .tm-price', '.tb-wrTuan-num', '#J_StrPriceModBox .tm-price', '#J_PromoPrice .tb-rmb-num', '#J_PromoBox .J_CurPrice', '#J_StrPrice', '.tbid-detail-price'], 'taobao-ju': ['.currentPrice'], 'tmall': ['#J_Price', '#J_StrPrice', '.tm-promo-price .tm-price', '#J_StrPriceModBox .tm-price', '.tm-price'], 'amazon': [ /*'#olpDivId .price',*/ '#priceblock_ourprice', '.priceLarge'], 'gome-q': ['.price'], 'dangdang': ['#promo_price', '.priceLarge', '#salePriceTag', '#d_price'], 'm18': ['.detailsArea strong[data-price]'], 'sephora': ['.proDetInfo .proPrice span'], 'taoxie': ['#divtxprice .d-real-price'], 'lusen': ['#ProductPrice'], 'mbaobao': ['.price-num'], 'chunshuitang': ['.tuan-buy-text', '.Gd_shop_Price dt'], 'oyeah': ['.pricesty'], 'x': ['.pro_big_right .list .jsj[style^=text]', '.jsj b'], 'no5': ['.prodRedTxt.price'], '360kxr': ['#pro_mall_price'], 'm6go': ['#SGoodsPrice'], 'likeface': ['.tPrc1.tPrcOn>div>b', '#jrtj'], 'morefood': ['.pro-info .text2'], 'yaofang': ['.s_xianjia_140519'], '99read': ['#panel-right .pro-InfoList li span.f-Price'], 'china-pub': ['#xxjg .pro_buy_sen', '.pro_buy_sen'], 'winxuan': ['.price-n dd b'], 'efeihu': ['.ui_price strong em'], 'happigo': ['#real_price'], 'gap': ['#productShowPrice'], 'tiantian': ['.xx_price'], 'xijie': ['.detail_pro_d_1'], 'lingshi': ['#shopprice'], 'banggo': ['#salePriceText'], 'yesmywine': ['.explain .myPrice'], 'jxdyf': ['#zc_jiage .jxPrice'], 'tootoo': ['#price'], 'zm7': ['#ECS_SHOPPRICE'], 'miqi': ['.left_topTable_btn'], 'jiumei': ['#jiage .cuxiao .numb strong'], 'okhqb': ['.cz-num'], 'bookuu': ['#bk-d-price'], 'tao3c': ['.detail_info_rm1 cite'], 'd1': ['.p_mp'], 'ruiyi': ['.goods-price .price1'], 'lamiu': ['.action-price'], 'wbiao': ['#g5_price'], 'ehaier': ['.cur-price'], 'secoo': ['#secooPriceJs'], 'xifuquan': ['.jg_cuhong'], 'yiguo': ['.pro-price>div strong'], 'yummy77': ['.cprice .price'], 'fruitday': ['.prod_price', '#jq-price'], 'zuipin': ['.detail_price'], 'yohobuy': ['.price-sale'], 'ikjtao': ['#ECS_GOODS_AMOUNT'], 'miyabaobei': ['#item_price'], 'ule': ['.productPrice .price strong'], 'minshengec': ['.ms_price .dd strong'], 'wangfujing': ['#pro-price .cost'], 'meilele': ['#JS_effect_price'], 'supuy': ['#ShowPrice', '.good_d_pricenew', '#g_price'], 'lining': ['#offerPrice .v'], 'rrs': ['.cur-price'], 'lifevc': ['#shoppingPanelUpper .shoppingInfo .salePrice'], 'ymatou': ['#proDetail .promotion .count'], 'kjt': ['.mainPrice'], 'logitech': ['.sale-price'], 'xiji': ['.action-price'], 'nike': ['.exp-pdp-product-price-container .exp-pdp-local-price'], '360kad': ['#pricenumber'], 'meici': ['.price', '.pro_price .c_purple'], 'beibei': ['#detail-meta .price-info .price'], '100yue': ['.action-price', '#price'], 'daling': ['.goods-price .bold'], 'sfht': ['.goods-price-r1 strong'], '360buy': ['#jd-price', '#priceinfo', '#teamStatus .p-price', '#summary-price', '.summary-price .p-price .price'], '51buy': [".xprice_val[itemprop='lowPrice']", ".xprice_val[itemprop='price']", ".price_font"], 'suning': ['#promotionPrice', '#promotionPrice em', '#isquickBuyBoxPrice em', '#bookprdprice', '#netPrice em', '#mainPrice em', '#rpPrice', '#promoPrice', '#ePrice em'], 'yihaodian': ['#detail_prom_price', '#current_price', '#productFacadePrice', '#nonMemberPrice strong', '.pricebox'], 'vancl': ['.cuxiaoPrice strong'], 'gome': ['#prdPrice', '.detail .price'], 'okbuy': ['#prodPriceAj'], 'vjia': ['#SpecialPrice'], 'jumei': ['.newdeal_deal_price', '.price_now', '#mall_price', '.deal_ori_price .deal_accout_two'], 'jumeiglobal': ['.jumei_price'], 'yougou': ['.xsbuy_itm strong.price', '#yitianPrice i', '#yitianPrice'], 'shopin': ['.selPrice span:eq(1)', '.shopinjg1'], 'vmall': ['#pro-price'], 'sfbest': ['.priceBox .price', '.price', '#price font'], 'ouku': ['#pdAllPrice .prc', '.sale-price'], 'womai': ['#buyPrice'], /* 'coo8': [ 'li:contains("促") .c8-cxprice em', '.c8-money' ], */ 'baidu-weigou': ['#new-price', '.old-price'], 'yintai': ['span.yt-num', '.yt-num'], 'feiniu': ['#priceFn', '#J_product_value .fn-rmb-num'], 'jiuxian': ['#actPricePrice', '#_nowPriceStr'], 'zol': ['.price-type'], 'feifei': ['.price-box .price-detail', '.price-info-value', '.price-box'], 'kzj365': ['#rprice'], 'kaola': ['#js_currentPrice'], 'metao': ['.pi_price_box_row .pbox_price', '.price_sendplace .price'], 'philips': ['.pdc-blue-c span'], 'tcl': ['#priceBuy'], 'changhong': ['.ti_scc strong'], 'konka': ['.action-price'], 'hisense': ['.inlist .flva'], 'ineigo': ['#ULPrice font'], 'skg': ['.productSale .salePrice'], 'k-touch': ['.procie'], 'gionee': ['#JgoodsPrice'], 'oppo': ['.buying-price .price'], 'vivo': ['.action-price'], 'grainger': ['#summary-price .p-price'], 'ebay': ['#prcIsum'], 'taobao-95095': ['#J_PromoPrice .tm-price'], 'meilishuo': ['#price-now'], 'mogujie': ['#J_NowPrice'], 'sephoracps': ['.proDetInfo .proPrice span'], 'strawberrynet': ['#divShopPrice .mt-10'], 'jia': ['.sale-price span'], 'lemall': ['#addbits'], 'handu': ['.promote_price'], 'taoshu': ['#price-txt'], 'camel': ['#prod_price'], 'quwan': ['#price_goods_div strong'], 'lefeng': ['.dity-price-c span'], '139shop': ['#bdj'], 'wangjiu': ['#finalPriceValue'], 'liebo': ['#8_CurPrice'], 'aimer': ['#postPrice em'], 'kadang': ['#J_Price'], 'lizi': ['#s_price'], 'metromall': ['.proDprice'], 'pba': ['.price'], 'shangpin': ['.spDetail_spPriceBigRed i'], 'masamaso': ['.price24'], 'zhen': ['#sale-price'], 'zhenpin': ['#sale-price'], 'sportica': ['.special-price-tittle+.price'], 'milier': ['.big_price'], 'nop': ['.action-price'], 'bbready': ['.action-flashbuy_price'], 'qinqinbaby': ['.content-main-zk-1'], 'sasa': ['.price .action-price'], '5lux': ['.fsk_goods_price'], 'aliexpress': ['#sku-discount-price'], 'shopbop': ['.priceBlock'], 'fengqu': ['.goods-price-r1 strong'], 'keede': ['.message_price'], 'showjoy': ['.j_PriceNum'], 'easeeyes': ['.fontArial'], 'yunhou': ['.jFirstPrice'], '51din': ['.product_price b'], 'aidai': ['#_thisfp'], 'spider': ['.hmcptwo_sjjg'], 'zzl365': ['.goods-price .price1'] }, //分站信息配置 subStationPattern: { '51buy': 'prid', 'yihaodian': 'provinceId', 'womai': 'siteinfotemp', 'suning': 'cityId' }, //获取分站信息 getSubStationId: function getSubStationId(siteName) { if (cacheprovince) return cacheprovince; siteName = siteName || G.pageInfo.siteName; if (typeof this.subStationPattern[siteName] != 'undefined') { var name = this.subStationPattern[siteName] + "="; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; c = $.trim(c); if (c.indexOf(name) == 0) { var province_id = c.substring(name.length, c.length); if (siteName == '51buy') { try { var sp = province_id.indexOf('_'); if (sp >= 0) { province_id = province_id.substr(sp + 1); } } catch (e) {} } cacheprovince = province_id; return province_id; } } } return ''; }, //尝试获取js延迟加载的价格 tryGetLazyLoadPrice: function tryGetLazyLoadPrice(site, callback, dp_ids, dp_id, style) { var selector = ""; //计时器默认循环次数,如果循环了5秒还是没有结果,那就不要监控价格,先请求price_trend var loopNumber = 0; var siteSelector = { "tmall.com": ".tm-price,.tb-wrTuan-num", "taobao.com": ".tb-detail-price strong:not(.del)" }; try { selector = siteSelector[site]; } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ selector = ""; } var priceTimer = setInterval(function () { ++loopNumber; if ($(selector).length || loopNumber > 5) { var price = ""; if ($(selector).length) { price = $(selector).text().split('-')[0]; price = parseFloat(price.replace(/[^0-9.]/g, "")); //不要直接使用fixed,这里不是四舍五入,因为tmall淘宝可能有两个价格,一个真实价格12.10,一个原售价20.10,有时候会扣到 12.102010这样的情形,直接干掉小数点后两位的数字 price = parseInt(price * 100) / 100.0; price = price.toFixed(2); } dp_ids += "&price=" + price + "&site=" + site.split('.')[0]; clearInterval(priceTimer); callback(dp_ids, dp_id, style); } }, 1000); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 41 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 库存实时反馈模块 * 监控当前网站库存情况,并提取单品页商品库存数据 * @version:0.0.1 * @author:OuyJun(oyjh2011@gmail.com) * @since:2014-02-17 * */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { 'use strict'; var $ = __webpack_require__(1); return { //部分主流站点的库存(普通单品页)模板 //lefeng jiuxian 暂时没有处理 inventoryPatterns: { '360buy': { '#stocktext strong': '无货', '#store-prompt strong': '无货', //无货 '#store-prompt': '无货', '#stock-state': '无货', '#product-intro .itemover-title h3 strong': '商品已下柜' //商品已下柜 }, '51buy': { '#sea_buy_wrap': '到货通知', //到货通知 '#buyQty .godds_info_data span[style]': '无货' //'a.xbtn_notsale' : '\u6682\u4E0D\u9500\u552E'//暂不销售 }, 'amazon': { '.a-color-price': '缺货登记', '.ddm-sbr-avail-title': '缺货登记', //缺货登记 '#dynamicDeliveryMessage,#ddmAvailabilityMessage': '目前无货', '#dynamicDeliveryMessage span': '缺货登记' }, 'yihaodian': { '#arrivalNotice span': '到货通知', //到货通知 '#notSaleBtn .cartbox a span': '已售完', //已售完 '#detail_addToCart span.steal_btn': '抢光了', //抢光了 '.buy_btn3:visible': '已售完', '#detailStockInfo': '无货', '#addCart': '已售完' //如果不加入这个,总是返回-2 }, 'suning': { '#c_kucun span': '无货', //无货 '#recomTitle': '商品已下架', '#c_kucun': '无货' }, 'dangdang': { '#stock_writing_status': '缺货', //缺货 '.show_info_right strong.qh': '暂时缺货|罄', //暂时缺货 '#geo-info': '无货' }, 'gome': { '#stockTxt': '无货|下架|无货|暂不可送' //无货|下架|暂不可送 }, 'yougou': { '.buy': '已售罄', '.soldoutsty .fb': '此颜色商品已售罄' }, 'vmall': { '.button-notice-arrival span': '到货通知' //到货通知 }, 'vancl': { '.danpin_SouqingTitle h3': '该商品暂不能购买', '.NowHasGoods': '无货' }, 'jumei': { '.soldout_text': '已抢光', '.add_cart a.subscribe': '订阅到货通知' //订阅到货通知 }, 'newegg': { '#inventory .inventoryText': '暂无|接受预定', //暂无|接受预定 '#getQueueNumber': '立即预订', '.godds_info_data span:contains("库存")': '接受预定' }, 'moonbasa': { '#spanCountk': '无货' }, 'winxuan': { '.status': '无货' }, 'happigo': { '#goodskucun .f_red': '无货' }, 'xijie': { '.detail_pro_c_con': '很抱歉,该商品已售空' }, 'lingshi': { '#currentLocation': '无货' }, 'yesmywine': { '#delivery-tip': '无货' }, 'bookuu': { '.stock span': '无货' }, 'homevv': { '#stock+.hom': '缺货' }, 'lenovo': { '#idstockstatus': '暂无库存' }, 'secoo': { '#location-t+i': '无货' }, 'yummy77': { '#stockdesc': '无货' }, 'fruitday': { '.have': '无货' }, 'kaola': { '#js_dometxt': '无货' }, 'kjt': { '.black': '无货' }, 'jiumei': { '#kucuninfo .font14': '无货' }, 'womai': { '.nobuy_top_tit': '商品已售完,暂时无货', //商品已售完,暂时无货 '.unsellable_recommend_description': '商品已售完' //商品已售完 }, /* 'vjia':{}, 'okbuy':{}, 'yintai':{}, */ 'sfbest': { '#arrival_notice': '到货通知', '#stock font': '缺货', //缺货 '#cart-add-btn-sf': '到货|缺货' }, 'lefeng': { '.disexp span.stime': '无货' //无货 }, 'leyou': { '#stockStatus': '无货' }, 'jiuxian': { '#respNubs': '无货' } }, init: function init(siteName) { siteName = siteName || G.pageInfo.siteName; return this.getCheckInventory(siteName); }, //获取当前页面商品库存 //1是正常,0是无货,-2是下架 getOnlineInventory: function getOnlineInventory(siteName) { var inventoryText = { 'online': null, 'pattern': null }; var stringToUnicode = function stringToUnicode(str) { return str.replace(/[^\u0000-\u00FF]/g, function ($0) { return escape($0).replace(/(%u)(\w{4})/gi, '\\u$2'); }); }; try { if (typeof this.inventoryPatterns[siteName] != 'undefined') { var patterns = this.inventoryPatterns[siteName]; for (var selection in patterns) { try { if ($(selection).is(':visible')) { inventoryText['online'] = $(selection).html(); if (inventoryText['online'] !== null) { inventoryText['online'] = stringToUnicode(inventoryText['online']); inventoryText['pattern'] = stringToUnicode(patterns[selection]); return inventoryText; } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } return inventoryText; }, //校验库存 getCheckInventory: function getCheckInventory(siteName) { var inventory = 1; var inventoryTextArray = this.getOnlineInventory(siteName); var onlineUnicodeText = inventoryTextArray['online'], patternUnicodeText = inventoryTextArray['pattern']; try { if (onlineUnicodeText !== null && onlineUnicodeText != '' && patternUnicodeText !== null) { if (patternUnicodeText.indexOf('|') >= 0) { var patternUnicodeTextArray = patternUnicodeText.split('|'); for (var i in patternUnicodeTextArray) { if (onlineUnicodeText.indexOf(patternUnicodeTextArray[i]) >= 0) { inventory = 0; } } } else if (onlineUnicodeText.indexOf(patternUnicodeText) >= 0) { inventory = 0; } } else { inventory = -2; } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ } return inventory; } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 42 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var requestInfo = function requestInfo(url, callback) { var cbrun = false; if (G.allowBackgroundRequest) { __webpack_require__(2).getCouponFromUrl(url).then(function (res) { cbrun = true; callback(res); }); setTimeout(function () { if (!cbrun) { callback(); } }, 3000); } else { __webpack_require__(2).getCouponFromUrl(url).then(function (res) { callback(res); }); } // var xmlhttp = new XMLHttpRequest(); // xmlhttp.addEventListener('load', function() { // try { // callback(JSON.parse(xmlhttp.responseText)) // } catch (e) { // callback({}) // } // // }) // xmlhttp.open("GET", url, true); // xmlhttp.send(); // require('common/request').get(`${G.server}/extension/CouponHandler?op=get&rawApi=${encodeURIComponent(url)}`).then(data => { // // }) }; module.exports.init = function (id, adzone_id, callback) { var direct = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3]; var cbrun = false; if (G.forbidCoupon) { return; } if (!id) { callback && callback(); cbrun = true; return; } id = ('' + id).replace('-83', ''); id = ('' + id).replace('-8', ''); var hosts = "open.lesiclub.cn"; // if ((G.from_device === 'bijiago' && navigator.userAgent.toLocaleLowerCase().indexOf('firefox') > -1)) // hosts = "browser.gwdang.com/adbats" var url = location.protocol + "//" + hosts + "/coupon/get_ext/10005/" + adzone_id + "/" + id; if (!direct) { __webpack_require__(2).rawGet(url).then(function (data) { if (data && data.data) { data.data.reqid = id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url); data.data.cpid = adzone_id; if (callback) callback(data); } else { callback(null); } cbrun = true; }); return; } requestInfo(url, function (data) { if (data && data.data) { data.data.reqid = id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url); if (G.ss_name === 'priceDog') { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id; if (G.aliSite) { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id + '&page=1'; } } data.data.cpid = adzone_id; if (callback) callback(data); } else { callback(null); } cbrun = true; }); }; module.exports.byIdAndAdzone = function (id, adzone_id) { if (!id) { return new Promise(function (resolve) { return resolve(null); }); } id = ('' + id).replace('-83', ''); id = ('' + id).replace('-8', ''); var hosts = "open.lesiclub.cn"; if (G.from_device === 'bijiago' && navigator.userAgent.toLocaleLowerCase().indexOf('firefox') > -1) hosts = "browser.gwdang.com/adbats"; var url = location.protocol + "//" + hosts + "/coupon/get_ext/10005/" + adzone_id + "/" + id; return new Promise(function (resolve) { requestInfo(url, function (data) { if (data && data.data) { data.data.reqid = id; data.data.click_url2 = G.u_server + '/?url=' + encodeURIComponent(data.data.click_url); if (G.ss_name === 'priceDog') { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id; if (G.aliSite) { data.data.click_url2 = G.u_server + '/redirect/tao?id=' + id + '&page=1'; } } resolve(data); } else { resolve(null); } }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 43 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this = this; var template = __webpack_require__(5); var calWidth = __webpack_require__(27); // const replaceHref = require('common/replaceHref') var cnzz = __webpack_require__(4); var log = __webpack_require__(9); var pInfo = {}, proInfo = {}; var widthInfo = undefined, allink_tb = undefined, allink_tm = undefined; var addEvent = function addEvent() { $('.compare-list').off(); $('.main-compare .tright, .main-compare .tleft').off(); $('.compare-box').off(); $('.main-compare .tright').on('click', function () { if (pInfo.nowpage + 1 === pInfo.pages) { return; } pInfo.nowpage++; $('.compare-list>li').hide(); for (var i = pInfo.pageNum * pInfo.nowpage; i < pInfo.pageNum * (pInfo.nowpage + 1); i++) { $('.compare-list>li').eq(i).show(); } }); $('.main-compare .tleft').on('click', function () { if (pInfo.nowpage === 0) { return; } pInfo.nowpage--; $('.compare-list>li').hide(); for (var i = pInfo.pageNum * pInfo.nowpage; i < pInfo.pageNum * (pInfo.nowpage + 1); i++) { $('.compare-list>li').eq(i).show(); } }); $('.compare-list').on('mouseenter', 'li', function (e) { $('.compare-list>li').removeClass('bar-item-hover'); var id = $(this).attr('data-id'); if ($(this).find('.btcom-detail').length > 0) { $(this).find('.btcom-detail').show(); } else { if (id) { renderDetail(id, $(this)); } } $(this).addClass('bar-item-hover'); }); if (G.site === 'suning') { $('.compare-list').on('click', 'a', function (e) { if ($(this).attr('href')) { window.open($(this).attr('href')); e.preventDefault(); } }); } $('.compare-list').on('mouseleave', 'li', function (e) { var that = this; $(that).removeClass('bar-item-hover'); $(that).find('.btcom-detail').hide(); }); $('.compare-box').on('click', function (e) { if ($(e.target).hasClass('turnleft')) { runTurnPage($(e.target), -1); } else if ($(e.target).hasClass('turnright')) { runTurnPage($(e.target), 1); } else { var url = ''; if (e.target.nodeName === 'A') { url = e.target.href; } else if (e.target.parentNode.nodeName === 'A') { url = e.target.parentNode.href; } else if (e.target.parentNode.parentNode.nodeName === 'A') { url = e.target.parentNode.parentNode.href; } if (url.indexOf('uland.taobao.com/coupon') > -1) { cnzz.log('click:dpcoupon'); log('click:dpcoupon'); } } }); }; var runTurnPage = function runTurnPage(dom, type) { var parentDom = $(dom).parent().parent(); var lists = parentDom.find('.all-products .btcom-list li'); var size = lists.length; var curpg = Number(parentDom.find('.bjd-pages .current-page').text()); var totalp = Number(parentDom.find('.bjd-pages .page-num').text()); parentDom.find('.all-products .btcom-list li').hide(); if (type === 1) curpg++;else if (type === -1) curpg--; if (curpg === 0) curpg = totalp; if (curpg === totalp + 1) curpg = 1; var end = curpg * widthInfo.showListNum > size ? size : curpg * widthInfo.showListNum; for (var i = (curpg - 1) * widthInfo.showListNum; i < end; i++) { lists.eq(i).show(); var img = lists.eq(i).find('.com-item-img img'); replaceSrc(img); } parentDom.find('.bjd-pages .current-page').text(curpg); }; var replaceSrc = function replaceSrc(img) { var src = img.attr('data-src'); if (!src) return; var imgObj = new Image(); imgObj.onload = function () { if (imgObj.complete == true) { $(img).attr('src', src).attr('data-src', null); } }; imgObj.onerror = function (e) { var obj = $(img)[0]; if (!$(img)[0]) return; obj.src = G.s_server + '/images/extensions/newbar/no_img.png'; obj.setAttribute("data-src", G.s_server + '/images/extensions/newbar/no_img.png'); }; imgObj.src = src; }; var editData = function editData(data, tb, tbsite) { for (var i = 0; i < data.length; i++) { if (data[i].price) { data[i].price = Number(data[i].price.toString().replace(',', '')).toFixed(2); } if (!data[i].img_url) data[i].img_url = data[i].pic_url; if (tbsite) { data[i].nick2 = data[i].item_location; } if (!data[i].site_name) data[i].site_name = data[i].nick2 || data[i].nick; if (tb && data[i].img_url.match(/_\d+x\d+/)) { var match = data[i].img_url.match(/_(\d+)x\d+/); if (match) { match = Number(match[1]); if (match > 200) { data[i].img_url = data[i].img_url + '_100x100'; } } } else if (tb) { data[i].img_url = data[i].img_url + '_100x100'; } } return data; }; var renderDetail = function renderDetail(id, container) { var len, showpages, detailW, sale_tle, allink, pages, html, dom, i, img; return regeneratorRuntime.async(function renderDetail$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: len = proInfo[id].length; showpages = undefined; detailW = undefined; if (len > widthInfo.showListNum) { showpages = true; detailW = $(window).width(); } else { detailW = len * 268; } sale_tle = undefined, allink = undefined; if (id === 'tmcompare' || id === 'tbcompare') { sale_tle = "最近销量"; if (proInfo[id].from_self === true) sale_tle = "总销量"; } if (id === 'tmcompare') allink = allink_tm;else if (id === 'tbcompare') allink = allink_tb; pages = Math.ceil(len / widthInfo.showListNum); console.log('coupon ready got', proInfo); if (!(id === 'tmcompare' || id === 'tbcompare')) { context$1$0.next = 12; break; } context$1$0.next = 12; return regeneratorRuntime.awrap(__webpack_require__(3).met('bottomCouponReady-' + id)); case 12: html = __webpack_require__(233); dom = template.compile(html)({ data: proInfo[id], sale_tle: sale_tle, showpages: showpages, prowidth: widthInfo.allProductW, turnpW: widthInfo.turnpW, detailW: detailW, link: allink, id: id, pages: pages }); $(container).append(dom); for (i = 0; i < Math.min(widthInfo.showListNum, len); i++) { img = $(container).find('.btcom-detail li .com-item-img img').eq(i); replaceSrc(img); } if (!showpages) { setSimplePagePos(len, container); } case 17: case 'end': return context$1$0.stop(); } }, null, _this); }; var renderCompareBar = function renderCompareBar(data) { if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { return; } if (!data.store || !data.store[0] || data.store[0].product.length === 0) return; var turnpage = (13 + 18 + 18) * 2; var comArr = []; var totalSize = data.store.length; var freeW = calWidth.calBottomBar(); pInfo.pageNum = parseInt((freeW - turnpage) / 104); pInfo.mbarItemShowNum = totalSize > pInfo.pageNum ? pInfo.pageNum : totalSize; if (pInfo.pageNum <= 0) pInfo.pageNum = 1; for (var i = 0; i < data.store.length; i++) { comArr.push(data.store[i].product[0]); proInfo[data.store[i].product[0].dp_id] = editData(data.store[i].product); } var lens = $('.compare-list li').length; pInfo.pages = Math.ceil((totalSize + lens) / pInfo.pageNum); var html = __webpack_require__(91); var views = template.compile(html)({ data: comArr, pageNum: pInfo.pageNum }); $('.compare-list').prepend(views); pInfo.nowpage = 0; pInfo.totalSize = totalSize; $('.compare-box').css('width', pInfo.mbarItemShowNum * 102 + 'px'); if (pInfo.pages === 1) { $('.mbar-turnpage').hide(); } else { $('.mbar-turnpage').show(); } addEvent(); }; var setSimplePagePos = function setSimplePagePos(size, dom) { var mainW = $(window).width(); var left = dom.offset().left; var domw = dom.outerWidth(); var detail = dom.find('.btcom-detail'); var width = 268 * size + 2; var dleft = left + domw / 2 - width / 2; if (dleft < 0) dleft = 0; if (dleft + width > mainW) dleft = mainW - width - 2; detail.css('left', dleft + 'px'); }; var exchangeData = function exchangeData(data) { if (!data.product || data.product && data.product.length === 0) return data; var b2c = [], obj = {}; for (var i = 0; i < data.product.length; i++) { if (!data.product[i].site_name2) { data.product[i].site_name2 = data.product[i].site_name; } if (!obj[data.product[i].site_name2]) { obj[data.product[i].site_name2] = { product: [data.product[i]] }; } else { obj[data.product[i].site_name2]['product'].push(data.product[i]); } } for (var pattern in obj) { if (pattern) { b2c.push(obj[pattern]); } } return { store: b2c }; }; var renderTbCompare = function renderTbCompare(data) { var html = __webpack_require__(91); var insNum = 0; if (data.tmall && data.tmall.product) { var obj = { dp_id: 'tmcompare', site_name: '天猫商城', price: data.tmall.min_price }; // if (!G.aliSite && G.from_device !== '360') // replaceHref.init('tmall', data.tmall.product, '&column=b2c') proInfo['tmcompare'] = editData(data.tmall.product, true); var dom = $('.compare-list>li').eq(5); if (dom.length === 0) dom = $('.compare-list>li:last-child'); if (dom.length === 0) { $('.compare-list').append(template.compile(html)({ data: [obj] })); } else { dom.after(template.compile(html)({ data: [obj] })); } insNum++; } if (data.taobao && data.taobao.product) { var obj = { dp_id: 'tbcompare', site_name: '淘宝', price: data.taobao.min_price }; // if (!G.aliSite && G.from_device !== '360') // replaceHref.init('taobao', data.taobao.product, '&column=b2c') proInfo['tbcompare'] = editData(data.taobao.product, true, true); $('.compare-list').append(template.compile(html)({ data: [obj] })); insNum++; } pInfo.totalSize = pInfo.totalSize + insNum; var pages = Math.ceil(pInfo.totalSize / pInfo.pageNum); if (pInfo.pages === 1 || !pInfo.pages) { if (pages > 1) { $('.mbar-turnpage.tright').show(); pInfo.pages = pages; } pInfo.mbarItemShowNum = pInfo.totalSize > pInfo.pageNum ? pInfo.pageNum : pInfo.totalSize; $('.compare-box').css('width', pInfo.mbarItemShowNum * 102 + 'px'); $('.mbar-turnpage').hide(); } else { pInfo.pages = pages; } addEvent(); }; module.exports.renderBt = function (data) { if (!(data.taobao instanceof Array) && data.taobao.more_link) allink_tb = data.taobao.more_link; if (!(data.tmall instanceof Array) && data.tmall.more_link) allink_tm = data.tmall.more_link; if (!widthInfo) widthInfo = calWidth.init(); renderTbCompare(data); if (G.from_device !== '360') { __webpack_require__(33).init(data.tmall.product, 'tmall', true, data.tmall.min_price); __webpack_require__(33).init(data.taobao.product, 'taobao', true, data.taobao.min_price); } }; module.exports.init = function (data) { if (data.b2c && data.b2c.store) { renderCompareBar(data.b2c); } else if (data.b2c_fuzzy) { data.b2c2 = exchangeData(data.b2c_fuzzy); renderCompareBar(data.b2c2); } widthInfo = calWidth.init(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0), __webpack_require__(7))) /***/ }), /* 44 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (txt) { var m = ''; for (var i = 0; i < txt.length; i++) m = m + "_" + txt.charCodeAt(i).toString(8); return m; }; // let decode = function(txt) { // var m = ''; // var s = txt.split("_"); // for (var i = 1; i < s.length; i++) // m += String.fromCharCode(parseInt(s[i], 8)); // return m; // } /***/ }), /* 45 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__(2); var communicate = __webpack_require__(13); var buildTaobaoUrl = __webpack_require__(20); var globalData = undefined, callbacks = undefined; var hasrun = false; var timeOUT = 2500; var getuniqPid = function getuniqPid(id) { if (id == '') return; var url = G.server + '/extension?ac=getuniqpid&nid=' + id; request.get(url).done(function (data) { if (data && data.uniqid) { sendPid(id, data.uniqid); } else { requestTaobaoImgSearch(); } }); }; var sendPid = function sendPid(id, pid) { var info = { 'nid': id, 'uniqid': pid }; communicate.trigger({ 'type': 'getTaobaouniq', 'info': JSON.stringify(info) }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaouniq') { var text = $('#gwd_uniq_info').text(); if (text != '') editData(text); } }); }; var sortData = function sortData(data) { if (!data.sort) return; data = data.sort(function (value1, value2) { if (Number(value1.price) > Number(value2.price)) return 1;else if (Number(value1.price) == Number(value2.price)) return 0;else return -1; }); return data; }; var editData = function editData(txt) { try { var data = JSON.parse(txt); data = data.mods.recitem.data.items; var taobaoarr = [], tmallarr = []; if (!data) return; for (var i = 0, len = data.length; i < len; i++) { var item = {}; var feeDesc = data[i].view_fee == '0.00' ? '包邮' : ''; item.nick = data[i].nick; item.num_iid = data[i].nid; item.title = data[i].title; item.price = data[i].view_price; item.item_location = data[i].item_loc; item.store_name = data[i].nick + feeDesc; item.pic_url = 'http:' + data[i].pic_url; item.volume = data[i].view_sales.replace('人付款', ''); item.same_style = true; var obj = { 'source': 'same_style', 'img_url': 'http:' + data[i].pic_url, 'title': data[i].title, 'price': data[i].view_price, 'shop_name': data[i].nick + feeDesc, 'sales': data[i].view_sales.replace('人付款', ''), 'id': data[i].nid, 'url': 'https:' + data[i].detail_url, 'discuss': data[i].comment_count, 'istaobao': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '0' : '1', 'dp_id': data[i].nid + '-' + (data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123'), 'site_id': data[i].detail_url.indexOf('detail.tmall.com') > -1 ? '83' : '123' }; item.url = buildTaobaoUrl(obj); if (data[i].detail_url.indexOf('detail.tmall.com') > -1) { tmallarr.push(item); } else { taobaoarr.push(item); } } taobaoarr = sortData(taobaoarr); tmallarr = sortData(tmallarr); globalData = { 'taobao': taobaoarr, 'tmall': tmallarr }; if (callbacks && !hasrun) { callbacks(globalData); hasrun = true; } } catch (e) {} }; var requestTaobaoImgSearch = function requestTaobaoImgSearch() { /*taobao root_id 筛选需要做图片检索的分类*/ var rootIdArr = ["50510002", "50012029", "50013864", "50011397", "50010404", "1625", "50006842", "50006843", "16", "50011740", "50011699", "50008165", "50008163", "30", "50020857", "50020808", "50013886", "50022517", "122852001", "21", "50468001", "122950001", "50007216"]; var root_id = G.dp.root_id; if (root_id && rootIdArr.indexOf(root_id) > -1) { __webpack_require__(28).uniqPidGetImg(function (data) { if (callbacks) { callbacks(data); hasrun = true; } else { globalData = data; } }); timeOUT = 6000; } else { timeOUT = 1; } }; var getNid = function getNid() { if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) { var id = location.href.match(/[?&]id=([0-9]+)/); if (id && id.length) { id = id[1]; getuniqPid(id); } } }; module.exports.init = function () { /*淘宝价格走势*/ if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { communicate.trigger({ type: 'get_etao_info' }); } if (G.site == 'taobao' || G.site == 'tmall') getNid(); }; module.exports.getTaobaouniqData = function (callback) { callback(null); // if (globalData) { // callback(globalData) // hasrun = true; // } else callbacks = callback; // setTimeout(() => { // if (callbacks && hasrun === false) { // callbacks(null) // hasrun = true; // } // }, timeOUT) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 46 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__(5); var request = __webpack_require__(2); var userData = __webpack_require__(6); var renderBtn = function renderBtn() { var t = '
\n \n \n 口碑\n \n
'; $('.gwd-topbar-left').append(template.compile(t)({})); $('#review_btn').css('display', 'block'); }; var addEvent = function addEvent() { var choosed = undefined, time = undefined; $('#review_btn').on('mouseenter', function () { if (!choosed) { var cls = $('.review-good').attr('data-d'); $('.' + cls).show(); } var left = $(this).offset().left; $('#review_detail').css('left', left + 'px'); $('#review_detail').show(); $(this).addClass('msenter'); if ($(window).width() - ($('#review_detail').offset().left + $('#review_detail').outerWidth() + 2) < 0) { $('#review_detail').css('right', '0px').css('left', 'auto'); } }); $('#review_btn').on('mouseleave', function () { var that = this; time = setTimeout(function () { $('#review_detail').hide(); $(that).removeClass('msenter'); }, 200); }); $('#review_detail').on('mouseenter', function () { clearTimeout(time); }); $('#review_detail').on('mouseleave', function () { $('#review_detail').hide(); $('#review_btn').removeClass('msenter'); }); $('#review_detail .review-tab').on('click', function () { choosed = true; var cls = $(this).attr('data-d'); $('#review_detail .review-tab').removeClass('selected'); $(this).addClass('selected'); $('.review-right>div').hide(); $('.' + cls).show(); }); }; var addUrls = function addUrls(data) { var other_info = userData.get('other_info'); var dpid = other_info && other_info.now.dp_id; if (!dpid) return data; if (data.bad && data.bad.length > 0) { for (var i = 0; i < data.bad.length; i++) { var href = G.c_server + '/crc64/dp' + dpid + '/reviews/?rword=' + encodeURIComponent(data.bad[i].label) + '&ext=1&rtype=2'; data.bad[i].url = href; } } if (data.good && data.good.length > 0) { for (var i = 0; i < data.good.length; i++) { var href = G.c_server + '/crc64/dp' + dpid + '/reviews/?rword=' + encodeURIComponent(data.good[i].label) + '&ext=1&rtype=1'; data.good[i].url = href; } } return data; }; var getInfo = function getInfo(callback) { var href = encodeURIComponent(location.href); var url = G.server + '/extension/review?url=' + href; request.get(url).done(function (data) { if (data && !(data instanceof Array)) { callback(data); // if (callback2) // callback2(data) // else // globalData = data; } }); }; var renderReview = function renderReview(data) { data.goodbox = 'review-r-good'; data.badbox = 'review-r-bad'; if (!data.good) data.goodbox = 'review-r-noinfo'; if (!data.bad) data.badbox = 'review-r-noinfo'; var html = __webpack_require__(283); data = addUrls(data); var dom = template.compile(html)({ data: data, s_server: G.s_server }); $('.gwd-topbar-left').append(dom); addEvent(); }; // module.exports.getReviewTrend = (callback) => { // if (globalData) callback(globalData) // else callback2 = callback // } module.exports.init = function (data) { getInfo(function (data) { if (data.reviews.length === 0) { __webpack_require__(3).setMet('no_reviews'); return; } renderBtn(); renderReview(data.reviews); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 47 */, /* 48 */, /* 49 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {// const getCoupon = require('common/getCoupon') var template = __webpack_require__(5); var detect = __webpack_require__(17); var priceParser = __webpack_require__(26); var html = __webpack_require__(441); var request = __webpack_require__(2); var cnzz = __webpack_require__(4); var log = __webpack_require__(9); var userData = __webpack_require__(6); var getCoupon = __webpack_require__(42); var QRReloader = __webpack_require__(174); var randomNum = undefined; var renderTop = function renderTop(data) { if (!data || data.code !== 200) { // require('tbHbQrcode').init() $('#gwdang-banner-ad2').show(); setTimeout(function () { __webpack_require__(37).init(false); }, 3000); return; } data = data.data; if (data) { setTimeout(function () { __webpack_require__(37).init(true); }, 3000); } else { setTimeout(function () { __webpack_require__(37).init(false); }, 3000); } data.pid = '30002'; if (navigator.userAgent.indexOf('Firefox') > -1) { data.pid = 'firefox-top'; } data.rendering = 'renderTop'; getPageInfo(data, function (newData, url) { var html = __webpack_require__(75); var isShowPic = randomNum > -1 ? true : false; var tle = "点击领券"; if (isShowPic) { tle = ""; } var views = template.compile(html)({ price: data.coupon.coupon_money, url: data.click_url2, tle: tle, isShowPic: isShowPic, picUrl: 'xx', useTaobao: false }); $('.gwd-topbar-left').append(views); cnzz.log('淘宝优惠券顶部二维码', '曝光'); var hasQr = false; $('.gwd-topbar-left .coupon_detail img').css('visibility', 'hidden'); $('#top_coupon_btn').hover(function () { if (!hasQr) { QRReloader.init(newData, url, '.gwd-topbar-left .coupon_detail > img', function (newData2) { hasQr = true; cnzz.log('淘宝优惠券顶部二维码', '悬浮'); cnzz.log('track:topcoupon:' + G.from_device); log('track:topcoupon:' + G.from_device); addEvent('click:topcoupon:' + G.from_device); }); } }); }); }; var renderTop2 = function renderTop2(data) { if (data instanceof Array) { return; } var html = __webpack_require__(75); $('.gwd-topbar-left').append(template.compile(html)({ price: data.discount, url: data.click_url2 })); cnzz.log('track:topcoupon_2:' + G.from_device); log('track:topcoupon_2:' + G.from_device); addEvent('click:topcoupon_2:' + G.from_device); }; var addEvent = function addEvent(str) { var showQRcode = undefined; $('#top_coupon_btn').on('click', function () { cnzz.log(str); log(str); }); $('.coupon-close-btn').on('click', function (e) { $('#top_coupon_btn').remove(); return false; }); $('#top_coupon_btn').on('mouseenter', function () { if (!showQRcode) { cnzz.log("track:coupon:qrcode:top"); log("track:coupon:qrcode:top"); showQRcode = true; } }); }; var getPageInfo = __webpack_require__(76); var renderMini = function renderMini(data) { // if (true) { if (!data || data && data.code !== 200) { if (G.runminiCoupon2) { $(document).trigger('runminiCoupon2'); } else { G.runminiCoup = '1'; } __webpack_require__(443).init(); //renderRedPack() return; } __webpack_require__(3).setMet('shopCouponGot', false); G.runminiCoup = '2'; data = data.data; if (!data) { //renderRedPack(); } data.pid = '30001'; if (navigator.userAgent.indexOf('Firefox') > -1) { data.pid = 'firefox-middle'; } getPageInfo(data, function (newData, url) { data.coupon.lastPrice = Number(G.dp.price - data.coupon.coupon_money).toFixed(2); var isShowPic = randomNum > -1 ? true : false; var tle = "点击领券"; if (isShowPic) { tle = ""; } var views = template.compile(html)({ data: data, tle: tle, isShowPic: isShowPic, picUrl: 'xx', useTaobao: false }); // if ($('#miniCouponCom').length > 0) { // $(`#miniCouponCom`).before(views) // } else { // $(`.gwd-minibar-bg`).append(views) // } $('#gwd-coupon-placeholder').replaceWith(views); cnzz.log('track:minicoupon:' + G.from_device); log('track:minicoupon:' + G.from_device); $('#coupon_box').on('click', function () { cnzz.log('click:minicoupon:' + G.from_device); log('click:minicoupon:' + G.from_device); }); setTimeout(function () { __webpack_require__(14).autoFixWidth(false); }, 0); var showQRcode = undefined; $('#coupon_box .minicoupon_detail img').css('visibility', 'hidden'); cnzz.log('淘宝优惠券中间二维码', '曝光'); $('#coupon_box').on('mouseenter', function () { if (!showQRcode) { QRReloader.init(newData, url, '#coupon_box .minicoupon_detail > img', function (newData2) { showQRcode = true; cnzz.log('淘宝优惠券中间二维码', '悬浮'); }, false, false); cnzz.log("track:coupon:qrcode:mini"); log("track:coupon:qrcode:mini"); } }); }); }; var renderMini2 = function renderMini2(data) { if (data instanceof Array) { return; } data = { 'click_url': data.click_url2, 'coupon': { 'coupon_money': data.discount, 'lastPrice': data.couponPricePC } }; var views = template.compile(html)({ data: data }); $('.' + G.wishdom).append(views); cnzz.log('track:topcoupon_2:' + G.from_device); log('track:topcoupon_2:' + G.from_device); $('#coupon_box').on('click', function () { cnzz.log('click:minicoupon_2:' + G.from_device); log('click:minicoupon_2:' + G.from_device); }); }; var getCouponInfo = function getCouponInfo(callback) { var dp_query = userData.get('dp_query'); var dp_id = dp_query && dp_query.dp && dp_query.dp.dp_id; var url = 'https://browser.gwdang.com/app/quanbtc?dpid=' + dp_id; request.get(url).done(function (data) { callback(data); }); }; var render2 = function render2(data) { if (data.length === 0 || !data.lt_short_link && !data.click_url) { return; } if (data.lt_short_link) data.click_url = data.lt_short_link; if (!data.couponPricePC) { data.couponPricePC = (Number(data.pcPrice) - Number(data.discount)).toFixed(2); } renderMini2(data); renderTop2(data); }; var renderIndex = function renderIndex() { randomNum = parseInt(Math.random() * 100); // // duoshoubang 接口 var dp_id = G.dp.itemId; var adzone_id = '30001'; var adzone_id2 = '30002'; // if (navigator.userAgent.indexOf('Firefox') > -1) { // require('./getCouponNew').init("pid-firefox", "mini", renderMini) // } else { getCoupon.init(dp_id, adzone_id, renderMini); // } // 微淘客接口 // require('./getCouponNew').init("pid-1", "mini", renderMini) // if (navigator.userAgent.indexOf('Firefox') > -1) { // require('./getCouponNew').init("pid-firefox", "top", renderTop) // } else { //require('./getCouponNew').init("pid-1", "top", renderTop) getCoupon.init(dp_id, adzone_id2, renderTop); // } }; module.exports.init = function (dom) { if (G.forbidCoupon) return; if (G.from_device === '360') return; var siteName = G.site; var siteId = detect.getSiteId(siteName); priceParser.init(siteId, function (price) { if (price && price > 0) { G.dp.oldPrice = price; G.dp.price = price; } renderIndex(); }); }; module.exports.init2 = function () { getCouponInfo(render2); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 50 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//添加基本的参数配置和函数 __webpack_require__(77); G.extend({ crc64: true, union: "union_gwdang", show_tip: 1, show_wishlist: 1, show_guess: 1, show_mainbar: 1, show_promo: 1, set_force: false, default_style: 'top', ut: '&trans=1', from_device: 'default', extBrand: 'gwd', extName: 'gwdang', go_union: 'http://u.gwdang.com/union/go', p_id: '', is_open: 0, position: 0, style: '', notice: 0, first: 0, fold: 0, p_fold: 0, pop_share: 1, email: '', subsite_id: '', force: [], on_building: true, built_counter: 0, collectionChanged: true, gwd_browser_type: 1, gwd_cnzz: location.protocol + '//s11.cnzz.com/z_stat.php?id=1256793290&web_id=1256793290', is_site_page: null, href: window.location ? window.location.href : '', collectInfo: { dp_id: "", title: "", site_id: 0, url: "", img: "", price: "", comment: "" }, now_dp_id: '', where_buy_dps: '', width: document.documentElement.clientWidth > 0 ? document.documentElement.clientWidth : document.body.clientWidth, timer: null, timer2: null, timer3: null, timer4: null, timer5: null, //fix suning timer5_mutex: true, //mutex height: 0, scrollTop: 0, page_size: 6, page_size_mini: 4, page_now: { b2c: 1, taobao: 1, tmall: 1, also_buy: 1, promotion: 1, b2c_fuzzy: 1 }, page_total: { b2c: 1, taobao: 1, tmall: 1, also_buy: 1, promotion: 1, b2c_fuzzy: 1 }, total_num: { b2c: 6, taobao: 6, tmall: 6, also_buy: 6, promotion: 6, b2c_fuzzy: 6 }, module_name: ["b2c", "taobao", "tmall", "also_buy", "promotion", "b2c_fuzzy"], dpIsBook: false, hiddenFavorButton: false, save_tbres_data: null, save_promo_len: 0, save_price_trend_data: null, save_promo_data: null, topResizeTimer: null, bottomResizeTimer: null }); var ua = navigator.userAgent; if (ua.indexOf('Firefox') > -1) { G.gwd_cnzz = ''; } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 51 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var cnzz = __webpack_require__(4); var log = __webpack_require__(9); module.exports.init = function () { cnzz.log('fine3q:track'); log('fine3q:track'); $('#overview .ov-act').on('click', function (e) { var txt = $(e.target).text(); var url = location.href; if (txt.indexOf('立即购买') > -1 && url.indexOf('gouwudang') > -1) { cnzz.log('fine3q:click'); log('fine3q:click'); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) /***/ }), /* 52 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__(13); var globalObj = undefined, callbacks = []; var hascallback = undefined; var init = function init() { var nowurl = location.href; var itemId = nowurl.match(/[?&]id=([0-9]+)/) && nowurl.match(/[?&]id=([0-9]+)/)[1]; if (!itemId) return; var website = G.dp && G.dp.site || G.site; if (website.indexOf('95095') > -1) { globalObj = { 'nodata': true }; return; } if (website == 'ai-taobao') website = 'taobao'; // let price = Number(G.dp.price)*100; // let url = 'https://browserre.taotaosou.com/priceHistory.do?itemId='+ itemId + '&website=' + website + '&price=' + price.toString(); var url = __webpack_require__(216).init(); communicate.trigger({ 'type': 'getTaobaoTrend', 'info': url }); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type == 'getTaobaoTrend') { if (data.value) try { globalObj = JSON.parse(data.value).priceHistoryData; if (!globalObj) globalObj = { 'nodata': true }; if (callbacks.length > 0 && !hascallback) { //hascallback = true; // debug for (var i = 0; i < callbacks.length; i++) { callbacks[i](globalObj); } hascallback = true; } } catch (e) {} } }); }; module.exports._init = function () { G.on('pageType=2', function () { init(); }); }; module.exports.init2 = function () { init(); }; module.exports.getTrend = function (callback) { if (globalObj) { if (globalObj['nodata']) globalObj = null; hascallback = true; callback(globalObj); return; } else { callbacks.push(callback); } setTimeout(function () { if (!hascallback) { hascallback = true; callback(null); } }, 3000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 53 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { module.exports = function (callback) { var cc = "?from_device=" + G.from_device + "&callback=?"; if (G.from_device === 'sogou' || G.from_device === "chrome") cc = '?from_device=' + G.from_device; $.getJSON(G.server + '/ip.php' + cc).done(function (data) { if (data && data.result instanceof Array) { G.forbidWishlit = true; G.forbidYFQ = true; } if (data && data.result && data.result.address && data.result.address.indexOf('北京') > -1) { G.forbidWishlit = true; // 屏蔽 yifenqian G.forbidYFQ = true; } callback(); }).fail(function () { callback(); }); }; module.exports.common = function (callback) { // let cc = "?from_device=" + G.from_device + "&callback=?" // if (G.from_device === 'sogou' || (G.from_device === 'bijiago' && G.chrome_extension)) // cc = '?from_device=' + G.from_device; // if (G.from_device === 'xdjf') // cc = "?callback=?&district=1" callback(null); // $.getJSON(G.server + '/ip.php' + cc).then((data) => { // debugger // if (data && data.result && data.result.address) { // callback(data); // } else { // callback(null) // } // // }).catch(() => { // callback(null) // }) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 54 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {/* * 商品信息提取模块, * 用来提取商品标题/ISBN等基本信息 * @version:1.0 * @author:mllong(mllong0925@gmail.com) * @since:2013-06-17 */ var siteInfo = __webpack_require__(24); var priceParser = __webpack_require__(26); var detect = __webpack_require__(17); var isbnTran = __webpack_require__(231); var parseprice = __webpack_require__(16); //返回单品页的标题信息 var getProductInfo = function getProductInfo() { return { name: $('title').html(), price: 0, isbn: '', url: window.location.href }; }; //提取第三方评测导购网站中的商品信息 var getArticleInfo = function getArticleInfo(className, childPos, newSiteName) { var dp = getProductInfo(); G.site = newSiteName; try { var a = $(className).eq(childPos); dp.name = a.text(); G.href = G.makeUrl(G.href, a.attr('href')); dp.url = G.href; if (typeof G.href == 'undefined' || G.href == "") { dp.useless = true; } else { var check = siteInfo.isProductPage(); if (!check) { dp.useless = true; } } } catch (e) { dp.useless = true; } return dp; }; var getArticleInfoNew = function getArticleInfoNew(className, childPos, attr, newSiteName) { var dp = getProductInfo(); G.site = newSiteName; if (G.crc64) return dp; try { var a = $(className).eq(childPos); G.href = a.attr(attr); dp.url = a.attr(attr); if (a.attr(attr)) dp.url = a.attr(attr); if (typeof G.href == 'undefined' || G.href == "") { G.href = window.location.href; } } catch (e) {} return dp; }; //商品信息提取模板 var productPattern = { 'oneplus': function oneplus() { var dp = getProductInfo(); dp.price = $('.price .num').text(); console.log('dp', dp); return dp; }, 'wjike': function wjike() { return { name: $('.pb_tl').eq(0).text(), price: $('.pr2 .pc i').eq(0).text() }; }, 'kinhom': function kinhom() { return { name: $('.item-title').text(), price: $('#J_itemActivePrice').text() }; }, 'hpstore': function hpstore() { return { price: $('.price-box .price').eq(0).text() }; }, 'tthigo': function tthigo() { return { name: $('.item-title').text(), price: $('.item-price-current').text() }; }, 'yoox': function yoox() { return { name: $('#yoox').text(), price: $('#item-price .font-bold').text() }; }, 'feiniu': function feiniu() { return { name: $('#main_info_guidance_title').text(), price: $('.info-price>.JS-control-price').text() }; }, 'suanjuzi': function suanjuzi() { return { name: $('.product-titles h2').text(), price: $('.action-pro_price').text() }; }, 'ikjtao': function ikjtao() { return { name: $('#sidebar .title').text(), price: $('#goodsPrice').text() }; }, 'meizu': function meizu() { return { name: $('#property .property-hd h1').text(), price: $('#J_price').text() }; }, 'kaluli': function kaluli() { return { name: $('.pro-detail > h1').text(), price: $('#kaluliPrice').text() }; }, 'opposhop': function opposhop() { return { name: 'oppo ' + $('.product-title').text(), price: $('.buying-price .price').text() }; }, 'yao123': function yao123() { return { name: $('.inner>h1').text(), price: $('#opr').text() }; }, 'baobeigezi': function baobeigezi() { return { name: $('#itemInfo>.name>h1').text(), price: $('#bb_price').text() }; }, 'to8to': function to8to() { return { name: $('#p_name').text(), price: $('span[name=goods_real_price]').eq(0).text() }; }, 'yangkeduo': function yangkeduo() { return { name: $('.enable-select').text(), price: $('._15NyfC_w').text() }; }, 'shangpin': function shangpin() { var brandName = $('.spDetail_price_box > h2 > a').text(); if (!brandName) { brandName = $('.spDetail_price_box > h3 > a').text(); } var result = { name: brandName + ' ' + $('.commodity_title').text(), price: $('.spDetail_spPriceBigRed > i').text(), img: $('#spDetail_bigImg > img').attr('src') }; if (!result.price) { result.price = $('.spDetail_spPriceBig > i').text(); } if (!result.price) { result.price = $('em.font_18').text(); } return result; }, 'zhongjiu': function zhongjiu() { var name = $('.info > h1').text(); var price = $('.pri > b').text(); if (!name) { name = $('.c_t_list > li > span').text(); price = $('.buy_pri').text(); } var result = { name: name, price: price }; return result; }, 'lemall': function lemall() { var name = $('.pro_name').eq(0).text(); var price = $('#all_price').text(); if (price == '') price = $('.section_text .red .font48').eq(0).text(); if (name == '') name = $('.product_info_attribute .title').text(); return { name: "乐视" + name, price: price }; }, 'juanpi': function juanpi() { return { name: $('.deal-wrap h1').text(), price: $('.price .current').text() }; }, 'hisense': function hisense() { return { name: $('.detail_info h3').text(), price: $('#salePriceId').text() }; }, 'purcotton': function purcotton() { return { name: $('.goods-tite h5').eq(0).text(), price: $('.price').eq(0).text() }; }, 'wstx': function wstx() { return { name: $('.itemInfo .title').text(), price: $('.itemInfo .price b').text() }; }, 'royyoungchemist': function royyoungchemist() { return { name: $('.product-name').eq(0).text() }; }, 'medihealshop': function medihealshop() { return { name: $('.product-name').eq(0).text(), price: $('.rmb-price').eq(0).text() }; }, '1-163': function _() { return { name: $('.m-detail-main-title h1').text() }; }, '1001pharmacies': function pharmacies() { return { name: $('.product-name h1').eq(0).text(), price: $('.rmb-price').eq(0).text() }; }, 'lookfantastic-cn': function lookfantasticCn() { return { name: $('.product-title').eq(0).text(), price: $('.product-price .price').eq(0).text() }; }, 'guojimami': function guojimami() { return { name: $('#ECS_FORMBUY .name').text(), price: $('#ECS_SHOPPRICE').text(), img: $('#demo li img').eq(0).attr('src') }; }, 'jinxiang': function jinxiang() { return { name: $('.name').eq(0).text(), price: $('.jxPrice').eq(0).text() }; }, 'you163': function you163() { return { name: $('.info .name').eq(0).text(), price: $('.j-retail-price').eq(0).text() }; }, 'bl': function bl() { return { name: $('.goods-name h1').eq(0).text().replace('百联自营', '').trim(), price: $('#FlashPrice').text() }; }, 'bestinfoods': function bestinfoods() { return { name: $('.goodsname').eq(0).text(), price: $('.price1').eq(0).text() }; }, 'axmall': function axmall() { return { name: $('.goods-intro .name').text(), price: $('#sku_vip_price').text() }; }, 'bftv': function bftv() { return { name: $('.title h2').text(), price: $('.price').text() }; }, 'wangjiu': function wangjiu() { return { name: $('.part_line01').text(), price: $('.part_line04 .spare02 span').text() }; }, '189': function _() { var title = $('#articleshorttitle').text(); var price = $('#mall_price').text(); var brand_string = ''; if (title == '') title = $('.ph-title h1').eq(0).text().replace('仅限江西省用户', ''); if (title.toLowerCase().indexOf('iphone') > -1) brand_string = "苹果"; if (price == '') price = $('#assprice').text(); return { name: brand_string + title, price: price, brand_string: brand_string }; }, 'taqu': function taqu() { return { name: $('.details-name').eq(0).text(), price: $('#details-price').text() }; }, 'bestcake': function bestcake() { return { name: $('.info-right-li p').eq(0).text(), price: $('.info-right-li .s4').eq(0).text() }; }, 'gomehigo': function gomehigo() { return { name: $('#gm-prd-main li.prdtit').text(), price: $('#prdPrice').text() }; }, 'lovo': function lovo() { return { name: $('#goodsNameStrong').text(), price: $('#actMsgS big').text() }; }, 'zhe800': function zhe800() { return { name: $('#detail .detailmeta .clear h1').text(), price: $('.price .js_price_st').text() }; }, 'hua': function hua() { return { name: $('.product-r .title h3.product-title').text(), price: $('#fjr .price-sell .price-num').text() }; }, 'mei': function mei() { return { name: $('.Product_title').text() + ' ' + $('.product_name h1').text(), price: $('#productRMB').text() }; }, 'benlai': function benlai() { var price = $('#intro_price .price')[0].firstChild.nodeValue; if (price == '' || !price) price = $('#intro_price .price').text(); return { 'price': price, 'name': $('#Product_ProductDetailsName').text() }; }, 'vsigo': function vsigo() { return { name: $('h1').text(), price: $('.detail-price').text() }; }, 'fengqu': function fengqu() { return { name: $('h1').text(), price: $('.goods-price .goods-price-r1 strong').text() }; }, 'vmei': function vmei() { var price = $('#currPrice').text(); if (price.indexOf('-') > -1) price = price.split('-')[0]; return { name: $('.product_detail_title h1').text(), price: price }; }, 'easeeyes': function easeeyes() { return { name: $('.main div.goods_name_tr span').text(), price: $('.main p.color9 span.fs20.fontArial').text() }; }, 'staples': function staples() { return { 'name': $('.productInfo h3 span').text(), 'price': $('.nowPrice').text() }; }, 'efotile': function efotile() { return { 'name': $('.item-title').text(), 'price': $('.item-actPrice b').text() }; }, 'jgb': function jgb() { return { name: $('.h_des_title').text(), price: $('.h_des_price .J_rmb_price').text() }; }, '51din': function din() { return { name: $('.product_title > div').eq(0).text(), price: $('.price_rmb').text() }; }, 'aidai': function aidai() { return { name: $('.pro-det h3').text(), price: $('#_thisfp').text() }; }, 'boqii': function boqii() { return { name: $('.shop_name').text(), price: $('#bqPrice').text() }; }, 'spider': function spider() { return { name: $('.gdName h1').text(), price: $('#m12priceSpan').text() }; }, 'taobao-xianyu': function taobaoXianyu() { return { name: $('h1.title').text(), price: $('.price-block .price em').text() }; }, 'ai-taobao': function aiTaobao() { var price = undefined; if (!G.chrome_extension) { price = window.pageconfig.promoPrice; if (!price) { price = window.ENV_DATA && window.ENV_DATA.compList && window.ENV_DATA.compList.item_detail && window.ENV_DATA.compList.item_detail.data && window.ENV_DATA.compList.item_detail.data.data1[0].price; } return { name: $('h3.item-title a').text(), price: price, url: window.pageconfig.itemId ? 'http://item.taobao.com/item.htm?id=' + window.pageconfig.itemId : null }; } var pageconfig = $('.aitaobao-edetail-header script').text(); var itemId = /itemId":"(\d+)"/.exec(pageconfig); if (itemId) itemId = itemId[1]; price = /promoPrice":"([\d\.]+)"/.exec(pageconfig); if (price) price = price[1]; return { name: $('h3.item-title a').text(), price: price, url: itemId ? 'http://item.taobao.com/item.htm?id=' + itemId : null }; }, 'm6go': function m6go() { return { name: $('.goodsName h1').text(), price: $('#SGoodsPrice').text().replace(/[\s]+/g, '') }; }, 'logitech': function logitech() { return { name: $('h1.product-title').text() }; }, 'kjt': function kjt() { return { name: $('.prodetailtitle h1').text(), price: $('li.priceinfop span:first').text() }; }, 'test': function test() { return { url: $('#url').text() }; }, 'philips': function philips() { return { name: $('h1.sku-name').text() }; }, 'tcl': function tcl() { return { name: $('.p_name').text() }; }, 'changhong': function changhong() { return { name: $('.pc_name').text() }; }, 'konka': function konka() { return { name: $('.g_title h1').text() }; }, 'ineigo': function ineigo() { return { name: $('h5.ProName').text() }; }, 'skg': function skg() { return { name: $('.product-titles').text() }; }, 'k-touch': function kTouch() { return { name: $('.pro_title').text() }; }, 'gionee': function gionee() { return { name: $('#goodName').text() }; }, '51buy': function buy() { var dp = getProductInfo(); dp.price = $('.mod_price[itemprop="lowPrice"]').text().replace(/[¥¥\s]+/g, ''); if (dp.price == '') dp.price = window.itemInfo && window.itemInfo.price / 100; if (dp.price == '') dp.price = $('.xbase_item .mod_price ').text(); dp.name = window.itemInfo && window.itemInfo.name; dp.brand_string = window.itemInfo && window.itemInfo.brand_name; return dp; }, 'vivo': function vivo() { return { name: document.title, price: $('.now-price').text() }; }, 'taobao-95095': function taobao95095() { var dp = getProductInfo(); dp.price = $('#J_PromoPrice .tm-price').text(); dp.name = $('#J_DetailMeta .tb-detail-hd h1').text(); if (!dp.price) dp.price = $('#J_StrPriceModBox .tm-price').text(); return dp; }, 'walmart': function walmart() { var dp = getProductInfo(); dp.name = $('.js-product-heading span').text(); dp.price = $('.js-price-display').text(); dp.img = $('.js-product-media .slick-track li a img').eq(0) && $('.js-product-media .slick-track li a img').eq(0).attr('src'); return dp; }, 'kongfz': function kongfz() { console.log('here'); var dp = getProductInfo(); var isbn = $('.item:contains("ISBN") .text-value').text(); if (!isbn) { isbn = $('li:contains("ISBN") > span:eq(1)').text().trim(); } dp.isbn = isbn; dp.name = isbn; return dp; }, 'haituncun': function haituncun() { var dp = getProductInfo(); dp.name = $('.product-name h1').text(); dp.price = $('.rmb-price').text(); dp.img = $('.product-img-box li img').eq(0) && $('.product-img-box li img').eq(0).attr('src'); return dp; }, 'ebay': function ebay() { return { name: $('#itemTitle').text().replace(/^Details about/ig, ''), price: $('#prcIsum').attr('content'), img: $('#vi_main_img_fs ul li img').eq(0).attr('src') }; }, 'wy163': function wy163() { return { name: $('.PInfo dt').eq(0).text() || $('.mv_name').text() }; }, 'dianping': function dianping() { return { name: $('.deal-title h1,h1.title').text().replace(/\[.*\]/ig, '') }; }, 'nuomi': function nuomi() { var pdetails = $('.details p.dp') && $('.details p.dp').text() || ''; var name = ''; try { name = $('.details h1').text().replace(/^\u3010.+\u3011/i, ''); } catch (e) {} name = name + pdetails; return { 'name': name }; }, 'meituan': function meituan() { return { name: $('.deal-component-title').text(), isbn: '' }; }, 'meilishuo': function meilishuo() { var name = $('.goods-title').eq(0).text(); var price = $('#J_NowPrice').text(); if (name == '') name = $('h3.s_tle').text(); return { name: name, price: price }; }, 'sfht': function sfht() { var dp = getProductInfo(); dp.name = $('#titleInfo h1').text(); dp.price = $('#itemPrice .goods-price-r1 strong').text(); return dp; }, 'meici': function meici() { var dp = getProductInfo(); dp.name = $('#subpro .relative span').text(); var isprice = $('.pro_price .price').text().match(/[0-9.]+/); if (isprice) dp.price = isprice[0]; return dp; }, 'jianke': function jianke() { var dp = getProductInfo(); dp.name = $('.det_title h1').text(); var pri = $('.Price_info .bigPrice dd em').text().match(/[0-9.]+/); if (pri) dp.price = pri[0]; return dp; }, 'gome-home': function gomeHome() { var dp = getProductInfo(); dp.name = $('.prdmain .prdtit').text(); var price = $('#prdPrice').text().replace(/\s/g, '').match(/[0-9.]+/); if (price) dp.price = price[0]; return dp; }, 'nike': function nike() { var dp = getProductInfo(); dp.name = $('.product-title-text').text(); dp.price = $('.product-price').text(); return dp; }, '360kad': function kad() { var dp = getProductInfo(); dp.name = $('.YIrd_l li').eq(0).text().replace("商品名称:", ""); dp.price = $('#pricenumber').text(); var arr = dp.url.split('/'); var url = arr[0] + '//'; var html = arr[arr.length - 1].split('.'); for (var i = 2; i < arr.length - 1; i++) { url = url + arr[i] + '/'; } var productId = $("div.Ydrug_info dl:first dd").text(); if (productId) { dp.url = url + $("div.Ydrug_info dl:first dd").text() + '.' + html[1]; } else { dp.url = location.href; } return dp; }, 'lbxcn': function lbxcn() { var dp = getProductInfo(); dp.name = $('.detailPas').text().replace(/\s/g, ""); dp.price = $('#lblPrice').text(); return dp; }, 'mogujie': function mogujie() { var dp = getProductInfo(); dp.name = ""; dp.name = $('.goods-title').text(); if (dp.name == "") { dp.name = $('div.shoptitle').text(); } if (dp.name == "") { dp.name = $('.goodstitle').text(); } return dp; }, 'coolpad': function coolpad() { return { name: $('.good_name h1').text() }; }, 'ztedevice': function ztedevice() { return { name: $('.znproducts h3').text() }; }, 'lenovo': function lenovo() { var dp = getProductInfo(); dp.price = $('#gprice').text(); if (dp.price == '') dp.price = window.price; dp.name = $('.goodsname').text(); if (dp.name == '') dp.name = $('.de_proname').text(); if (!dp.price) { dp.price = $('.price-show').text(); } return dp; }, 'showjoy': function showjoy() { var dp = getProductInfo(); dp.name = $('.choose-hd').text().replace(/\s/g, ''); dp.price = $('#J_MainPrice .sj-price-text').text(); return dp; }, 'ocj': function ocj() { var dp = getProductInfo(); dp.name = $('.pv_shop_detail_title h1').text(); dp.price = $('.info_box .val .price').text(); return dp; }, 'ocj-tuan': function ocjTuan() { var dp = getProductInfo(); dp.name = $('.product-info > h1').text().replace(/\s/g, ''); var price = $('.product_price_cont .p1').html().match(/\/span\>([0-9.]+)\]*[\s\S]*[^<]*>/ig, ''); name = $.trim(name); } catch (e) {} return { 'name': name }; }, 'homevv': function homevv() { var dp = getProductInfo(); dp.name = $('.shop_name p[class="hdr_1"]').text(); dp.name = dp.name.replace(/]*[\s\S]*[^<]*\/div>/ig, ''); dp.name = dp.name.replace(/]*[\s\S]*[^<]*\/span>/ig, ''); dp.name = dp.name.replace(/ /ig, ''); dp.name = $.trim(dp.name); return dp; }, 'paixie-faxian': function paixieFaxian() { var dp = getProductInfo(); dp.name = $('.find-info-product a p').eq(0).text(); dp.price = $('.find-info-product a span').eq(0).text().match(/[0-9.]+/)[0]; return dp; }, 'xiaomi': function xiaomi() { var dp = getProductInfo(); dp.price = $('#J_goodsInfoBlock .J_mi_goodsPrice').text(); dp.name = $('.name').eq(0).text(); if (!dp.name) { dp.name = $('.product-con h2').text(); } if (dp.price == '') { try { dp.price = $('.J_proPrice')[0].childNodes[0].nodeValue; } catch (e) { var price = $('.J_proPrice').text().match(/[0-9.]+/); if (price) dp.price = price[0]; } } return dp; }, "youpin-mi": function youpinMi() { return { 'name': $('.sku-container .good-name').text(), 'price': $('.price .value').text() }; }, 'ihush': function ihush() { return { 'name': $('h1.title').text() }; }, '1688': function _() { G.site = "taobao"; var sattrs = new Array(); var brand = $('.de-feature:contains(\"品牌\")').text(); if (brand) { sattrs.push(brand); } var no = $('.de-feature:contains(\"系列\")').length > 0 ? $('.de-feature:contains(\"系列\")').text() : null; no = !no ? $('.de-feature:contains(\"货号\")').length > 0 ? $('.de-feature:contains(\"货号\")').text() : null : no; no = !no ? $('.de-feature:contains(\"型号\")').length > 0 ? $('.de-feature:contains(\"型号\")').text() : null : no; if (no) { sattrs.push(no); } var isbn = $('.de-feature:contains(\"书号\")').length > 0 ? $('.de-feature:contains(\"书号\")').text() : null; isbn = isbn ? isbn.substr(isbn.indexOf(':') + 1) : null; if (isbn) { sattrs.push('ISBN:' + isbn); } sattrs = sattrs.join("|"); return { 'name': $('#mod-detail-hd h1').text(), 'isbn': '', 'skeyword': sattrs }; }, 'womai-related': function womaiRelated() { // return getArticleInfo(".detail_goods_cont a", 0, "womai"); return { name: $('.pro_tit_top_forcombi').text(), price: $('#combiProductMarketPrice').text() }; }, '139shop-article': function shopArticle() { return getArticleInfo(".rginfo dt a", 0, "139shop"); }, 'zol-article': function zolArticle() { return getArticleInfo(".nav-header>a ", 1, "zol"); }, 'pconline-article': function pconlineArticle() { return getArticleInfo(".navProWrap h3 a", 0, "pconline"); }, 'yesky-article': function yeskyArticle() { return getArticleInfo(".artitle h3 a", 0, "yesky"); }, 'it168-article': function it168Article() { return getArticleInfo(".bj980 .bj1 div>a", 0, "it168"); }, 'pcpop-article': function pcpopArticle() { return getArticleInfo(".bj980 .bj1 a", 0, "pcpop"); }, 'pchome-article': function pchomeArticle() { return getArticleInfo(".navProWrap h3 a", 0, "pchome"); }, 'newegg': function newegg() { var dp = getProductInfo(); dp.name = $('#proCtner .proHeader h1').text(); dp.price = $('#omHiddenPrice').val(); dp.url = $(".proHeader h1 a").attr('href'); dp.brand_string = $('.goods_info .goods_info_name:contains("牌")+.godds_info_data').text().replace(/\s/g, ''); return dp; }, 'newegg-zhadan': function neweggZhadan() { var dp = getProductInfo(); dp.name = $('.proHeader h1 a').text(); dp.url = $('.proHeader h1 a').attr('href'); return dp; }, 'yiwugou': function yiwugou() { var dp = getProductInfo(); dp.name = $('li.fontbold.tit').text(); dp.price = parseFloat($('#punitprice').text().replace(/\s/g, '')); return dp; }, 'zhiwo': function zhiwo() { var dp = getProductInfo(); dp.name = $('.mall_detail_prd_info .title').text(); return dp; }, 'zhiwo-tuan': function zhiwoTuan() { var dp = getProductInfo(); dp.name = $(".carousel li p").eq(0).text(); return dp; }, 'zol': function zol() { var dp = getProductInfo(); var merchant_price = []; var prices = $('.product-merchant-price em').text(); if (prices != '' && prices.match(/[0-9]+/) && prices.indexOf('至') > -1) merchant_price = prices.replace(/[ ]/g, "").split('至'); dp.name = $('.product-name h3').text(); if (dp.name == "") { dp.name = $('.ptitle').text(); } if (dp.name == "") { dp.name = $('.page-title.clearfix h1').text(); } if (merchant_price.length > 0) { dp.min_price = merchant_price[0].substr(1); dp.max_price = merchant_price[1].substr(1); } dp.price = $('.price-type').text(); if (dp.price.indexOf('万') > -1) { var p = dp.price.match(/[0-9.]+/); if (p) dp.price = p[0] * 10000; } dp.cat_name = $('.breadcrumb a').eq(1).text(); dp.brand_string = $('.breadcrumb a').eq(2).text(); return dp; }, 'vmall': function vmall() { var dp = getProductInfo(); dp.name = $('#pro-name').text(); return dp; }, 'daling': function daling() { var dp = getProductInfo(); dp.name = $('.goods-data h1.clearfix').text().replace(/\s/g, ''); dp.price = $('.goods-price .clearfix .fl .bold').text(); return dp; }, 'fclub': function fclub() { var dp = getProductInfo(); dp.name = $('.goods_introduce').text(); dp.name = dp.name.replace(/(?:\t|\n)/ig, ''); dp.name = dp.name.replace(/(?:\ \ | )/ig, ' '); if (dp.name == '') { dp.name = $('.tdleft:contains("商品名称")+.tdright').text().replace(/(\s)/g, ''); dp.price = $('#priceFont').text(); } return dp; }, 'taoshu': function taoshu() { var dp = getProductInfo(); dp.isbn = $('.book_detailed span:contains("ISBN")').length > 0 ? $('.book_detailed span:contains("ISBN")').text().substr(5) : ""; return dp; }, 'amazon': function amazon() { var dp = getProductInfo(); var isbn_str = ''; var isbn_str1 = $('li:contains("ISBN")').text(); var isbn_str2 = $('li:contains("条形码")').text(); //var isbn_str3 = $('li:contains("ASIN")').text(); var isbn_str3 = $('li b:contains("ASIN")').parent('li').text(); isbn_str1 = isbn_str1 ? isbn_str1.substr(5) : ''; isbn_str2 = isbn_str2 ? isbn_str2.substr(4) : ''; isbn_str3 = isbn_str3 ? isbn_str3.substr(5) : ''; if (isbn_str1 == '') { isbn_str = isbn_str2; } else if (isbn_str2 == '') { isbn_str = isbn_str1; } else { if (isbn_str1.length > isbn_str2.length) { isbn_str = isbn_str2; } else { isbn_str = isbn_str1; } } isbn_str = isbn_str || isbn_str3; isbn_str = isbn_str.replace(/(\s)/g, ""); dp.name = $('#btAsinTitle span').eq(0).text().replace(/(.*) -1) { dp.price = dp.price.replace(',', '.'); } var url = location.href; var host = location.host; dp.itemId = (function () { var match = location.href.match(/\/dp\/([0-9A-Za-z]+)/); if (match) { return match[1]; } match = location.href.match(/\/gp\/([0-9A-Za-z]+)/); if (match) { return match[1]; } return ''; })(); try { dp.cat_id = (function () { var e, t, a = ""; return document.querySelector(".a-breadcrumb li:nth-child(7) a") ? t = document.querySelector(".a-breadcrumb li:nth-child(7) a").getAttribute("href") : document.querySelector(".a-breadcrumb li:nth-child(5) a") ? t = document.querySelector(".a-breadcrumb li:nth-child(5) a").getAttribute("href") : document.querySelector(".a-breadcrumb li:nth-child(3) a") && (t = document.querySelector(".a-breadcrumb li:nth-child(3) a").getAttribute("href")), e = t.split("?")[1], e && e.split("&").forEach(function (e) { e.match(/node=.*/) && (a = e.match(/node=(.*)/)[1]); }), a; })(); } catch (e) { dp.cat_id = ""; } dp.url2 = url.replace(host, 'www.amazon.cn'); var catdom = $('#wayfinding-breadcrumbs_feature_div .a-unordered-list li a'); var catlen = catdom.length; var cat_name = []; for (var i = 0; i < catlen; i++) { cat_name.push(catdom.eq(i).text().trim()); } dp.cat_name = cat_name.join('#'); dp.website = 'amazon'; dp.pic = $('#altImages li img').eq(0).attr('src'); if (!dp.pic) { dp.pic = $('#landingImage').eq(0).attr('src'); } dp.img = dp.pic; dp.sku = $('#addToCart #ASIN').val(); dp.category = $('#wayfinding-breadcrumbs_feature_div a').text(); var brandhref = $('#brand').attr('href'); var brand = brandhref && brandhref.match(/field-lbr_brands_browse-bin=(.*)$/) && brandhref.match(/field-lbr_brands_browse-bin=(.*)$/)[1]; dp.brand = dp.brand_string ? dp.brand_string : brand; return dp; }, 'muyingzhijia': function muyingzhijia() { var dp = getProductInfo(); dp.name = $('#name h1').text(); dp.price = $('#summary-price .p-price').text(); return dp; }, 'dangdang': function dangdang() { var prodSpuInfo = window.prodSpuInfo; var dp = getProductInfo(); var isbn = $('.book_detailed span:contains("I S B N")').text().substr(8); if (isbn == '') { isbn = $('.intro span:contains("I S B N")').text().substr(8); } if (isbn == '') { isbn = $('.book_messbox .show_info_left:contains("ISBN")').next('.show_info_right').text(); } if (isbn == '') { isbn = $('.book_messbox .show_info_left:contains("I S R C")').next('.show_info_right').text(); } if (isbn == '') { var dom = $('.book_messbox span:contains("I S R C")'); isbn = dom && dom.parent().text().substr(7); } if (isbn == '') { var isbn = $('#detail_describe li:contains("ISBN")').text().match(/[0-9]+/); if (isbn) isbn = isbn[0]; } dp.price = $('#dd-price').text(); dp.isbn = isbn; dp.pic = $('#main-img-slider li img').eq(0).attr('src'); dp.website = "dangdang"; dp.itemId = location.href.match(/dangdang\.com\/(\d+)/)[1]; dp.brand_string = $('.mall_goods_foursort_style_frame:contains("品牌")').text().replace('品牌:', ''); if (dp.brand_string == '') dp.brand_string = window.google_tag_params && window.google_tag_params.ecomm_pbrand; if (!dp.price) dp.price = $('#salePriceTag').text(); dp.name = $('.name_info h1').text().trim(); dp.cat_id = prodSpuInfo && prodSpuInfo.categoryId; return dp; }, '360buy-paimai': function buyPaimai() { var dp = getProductInfo(); dp.price = $('#priceDiv').text().match(/[0-9.]+/)[0]; dp.name = $('.intro_detail .name').attr('title'); return dp; }, '360buy-book': function buyBook() { var name = $('title').text(), isbn = ""; isbn = $('#summary-isbn .dd').text(); name = $('#name h1').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } isbn = isbn || $('li div:contains("ISBN")').text().substr(5); name = name || $('#name h2').html().replace(/(.*) dp.name.length) { dp.name = tuan_dp_name; } //新增 var jdTuanA = $('.e-extra .p-img a'); if (jdTuanA.length > 0 && !/^javascript:/.test(jdTuanA.attr('href'))) { dp.href = jdTuanA.attr('href'); } else { if (typeof $('#PshowSkuid').val() != "undefined") { dp.href = 'http://item.jd.com/' + $('#PshowSkuid').val() + '.html'; } } dp.url = $(".e-extra a").eq(0).attr("href"); if (dp.url.indexOf("javascript") > -1) { dp.url = $(".img-info a").eq(0).attr("href"); } return dp; }, '360buy-bigimage': function buyBigimage() { var url = ""; if (url == "") { url = $('.o-m-1 h1 a').attr("href"); } var name = $('.o-m-1 h1 a').eq(0).text(); return { 'url': url, 'name': name, 'isbn': '' }; }, '360buy-club': function buyClub() { var url = ""; if (url == "") { url = $('.p-name a').attr("href"); } var name = $('.p-name a').eq(0).text(); return { 'url': url, 'name': name, 'isbn': '' }; }, '360buy': function buy() { var dp = getProductInfo(); var name = $('#name h1').text(), isbn = ""; if (!name) name = $('.itemInfo-wrap .sku-name').eq(0).text(); if (name && name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } isbn = $('#summary-isbn .dd').text(); if (!isbn) { isbn = $("td:contains('ISBN号:')").text().match(/\d+/); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $("#product-detail li:contains('ISBN:')").text().match(/\d+/); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $("td:contains('ISBN号:')").text().substr(7); } if (!isbn) { var isbntxt = $('.parameter2 li:contains("ISBN")').text(); isbn = isbntxt.replace(/(?:ISBN|isbn)(?:\:|:)/, ''); } if (!isbn) { var isbntxt = $('#parameter2 li:contains("ISBN")').text(); isbn = isbntxt.replace(/(?:ISBN|isbn)(?:\:|:)/, ''); } dp.name = $.trim(name); dp.isbn = isbn; var ab = window.pageConfig && window.pageConfig.product && window.pageConfig.product.brand; if (ab != 0) { dp.brand_string = $('#root-nav a[href*="' + ab + '"]').text(); if (!dp.brand_string) dp.brand_string = $('#crumb-wrap .crumb .item a[href*="' + ab + '"]').eq(0).text(); } dp.price = $('#jd-price').text().replace(/[¥¥]+/, ''); var new_cat_array = []; var cat_array = $("body").attr("class").match(/cat\-\d\-([0-9]+)/g) || []; for (var i = 0; i < cat_array.length; i++) { new_cat_array.push(cat_array[i].match(/\d\-([0-9]+)/)[1]); } if (new_cat_array.legnth === 0) { new_cat_array = window.pageConfig && window.pageConfig.product && window.pageConfig.product.cat; } if (window.pageConfig && window.pageConfig.product) { var pageConfig_pd = window.pageConfig.product; dp.shopId = pageConfig_pd.shopId; dp.venderId = pageConfig_pd.venderId; } dp.cat_id = new_cat_array.join("-"); if (!dp.price) { dp.price = $('.p-price:eq(0)').text(); } dp.plus_price = $('.p-price-plus .price').text().replace(/[¥¥]+/, ''); dp.fans_price = $('.fans-price .p-price-fans span').text().replace(/[¥¥]+/, ''); if (!dp.price) dp.price = $('.summary-price .p-price .price').eq(0).text(); dp.pic = $('#spec-img').eq(0).attr('src').replace('/n5/', '/n1/'); if (!dp.pic) { dp.pic = $('.spec-items ul li img').eq(0).attr('src'); } if (dp.pic && dp.pic.indexOf('http') === -1) dp.pic = 'http:' + dp.pic.replace(/\d+x\d+/, '160x160'); dp.img = dp.pic; dp.itemId = location.href.match(/(\d+)\.html/)[1]; dp.name = dp.name && dp.name.replace('【京东超市】', ''); dp.website = 'jd.com'; dp.cat_name = Array.prototype.map.call(document.querySelectorAll('#crumb-wrap .crumb a'), function (d) { return d.textContent; }).slice(0, 3).join('#'); return dp; }, '360buy-re': function buyRe() { var dp = getProductInfo(); dp.name = $('.shop_intro>h2>a').text(); dp.price = $('.shop_intro_a .price a').text(); return dp; }, '360buy-auction': function buyAuction() { var dp = getProductInfo(); dp.name = $('#product-intro .p-info h1').text(); dp.price = $('#cur_price').text().match(/[0-9.]+/)[0]; return dp; }, 'fglady': function fglady() { return { 'name': $('.pd-content-left table tbody').children('tr').eq(1).children('td').eq(0).children('div').eq(0).text(), 'isbn': '' }; }, 'ouku': function ouku() { var dp = getProductInfo(); dp.name = $('.prod-info-title h1').text(); dp.brand_string = $('.specTitle .strong-title:contains("品牌")+.inline span').text(); dp.price = $('.sale-price').text().replace(/[¥¥\s]+/g, ''); return dp; }, '6pm': function pm() { var dp = getProductInfo(); dp.name = $('#productStage .title').text(); dp.brand_string = $('#productStage .title .brand').text(); dp.price = $('#priceSlot .price').text().replace('$', ''); dp.img = $('#productImages ul li img').eq(0).attr('src'); dp.sku = $('input[name="productId"]').val(); dp.category = $('#breadcrumbs a').text(); dp.source = $('#thumbnailImages').next().next().next().text(); dp.brand = $('a[itemprop="brand"]').text(); if (!dp.price) dp.price = $('._3r_Ou').eq(0).text().replace('$', ''); return dp; }, 'kimiss': function kimiss() { var name = ""; name = $('.preview_title h1 a').text(); var price = $('.preview_brief em').text(); if (price.indexOf('-') > -1) { price = price.split('-')[0]; } var pinfo = $('.preview_brief').text().match(/产品规格:(.*)/); if (pinfo) pinfo = pinfo[1]; if (pinfo.indexOf('-') > -1) pinfo = pinfo.split('-')[0]; name = name + pinfo; if (name == "") { name = $('.title h1').text(); } return { 'name': name, 'price': price, 'isbn': '' }; }, 'redbaby': function redbaby() { return { 'name': $('#pName').text(), 'isbn': '' }; }, 'm18': function m18() { return { 'name': $('.goods_detail .name').text(), 'isbn': '' }; }, 'babyhaven': function babyhaven() { var d = getProductInfo(); d.name = $('.product-name').text(); return d; }, 'w1': function w1() { return { 'name': $('.title h1').text(), 'isbn': '' }; }, 'sephoracps': function sephoracps() { var price = $('.proPrice>span:eq(1)').text(); return { 'name': $('.sdTitleL h1').text(), 'isbn': '', 'price': price }; }, 'bookuu': function bookuu() { var dp = getProductInfo(); dp.name = $('.shop-text-info h2').text(); dp.price = $('.wj-meta span:contains("博库价")~strong').text(); var meta = $("meta[name=keywords]")[0].getAttribute("content"); dp.isbn = /ISBN:(\d+)/.exec(meta) && /ISBN:(\d+)/.exec(meta)[1]; return dp; }, 'secoo': function secoo() { var dp = getProductInfo(); dp.price = $('.Dprice').text().replace(/(¥|,)/g, ''); dp.name = $('.proName h2').text(); return dp; }, 'lafaso': function lafaso() { var name = $('#pname').text(); if (typeof name == 'undefined' || name == '') { name = $('title').html(); } return { 'name': name, 'isbn': '' }; }, 's': function s() { return { 'name': $('.goodsname').text(), 'isbn': '' }; }, 'letao': function letao() { return { 'name': $('#buyinfo h1').text(), 'isbn': '' }; }, 'buy007': function buy007() { return { 'name': $('#info_right table tbody').children('tr').eq(0).children('td').eq(0).children('h1').eq(0).text(), 'isbn': '' }; }, 'taoxie': function taoxie() { return { 'name': $('.detail').children('div').eq(0).children('h2').eq(0).text(), 'isbn': '' }; }, 'suning': function suning() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('#itemDisplayName').text().trim(); var isbn; if (!isbn) { isbn = $('#total dt:contains("I")').next().eq(0).text(); isbn = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $('.book-info span:contains("I")').next().eq(0).text(); isbn = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (isbn) isbn = isbn[0]; } if (!isbn) { isbn = $('#bookParameterField dl:contains("ISBN")').text().match(/[0-9]+/); if (isbn) isbn = isbn[0]; } dp.url = location.href; var labelList = $('.w3').toArray(); labelList = labelList.map(function (i) { return i.innerHTML; }); var tgPrice = undefined; if (labelList.indexOf('团购价') > -1 || labelList.indexOf('预售价') > -1) { tgPrice = $('span.small-price').text(); } var promotionPrice = $('#promotionPrice.mainprice').text(); var mainPrice = $('.mainprice').text(); dp.name = name; dp.isbn = isbn; dp.brand_string = window.sn && window.sn.brandName || ''; dp.price = window.sn && window.sn.promotionPrice || 0; if (mainPrice) { dp.price = mainPrice; } if (promotionPrice) { dp.price = promotionPrice; } if (tgPrice) { dp.price = tgPrice; } dp.itemId = location.href.match(/(\d+\/\d+)\.html/)[1]; var catdom = $(".breadcrumb .dropdown:nth-last-of-type(3) a"); var cathref = catdom && catdom.attr('href'); dp.cat_id = cathref.match(/(\d-\d{0,}-\d)\.html/) ? cathref.match(/(\d-\d{0,}-\d)\.html/)[1] : ""; dp.website = "suning"; dp.pic = $('#bigImage img').attr('src'); if (dp.pic) dp.pic = $('#bigImg img').attr('src'); if (!dp.name) dp.name = window.sn && window.sn.itemDisplayName; dp.name = dp.name && dp.name.replace('【苏宁易购超市】', ''); if ($('#mainPrice').text().indexOf('定金') > -1) { G.noRealPrice = true; } return dp; }, 'suning-ju': function suningJu() { var dp = {}; dp.url = 'http://www.suning.com/emall/prd_10052_10051_-7_' + $("#itemId").attr("value") + '_.html'; if (G.crc64) dp.url = undefined; dp.name = $("h1 a").text(); return dp; }, 'suning-book-new': function suningBookNew() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('title').html(); var isbn = ""; isbn = $('#total dt:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } if (isbn == '') { isbn = $('.book-info span:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } } dp.name = name; dp.isbn = isbn; return dp; }, 'suning-snbook': function suningSnbook() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); dp.name = $('.brief-info h1 strong').text(); dp.isbn = $('.parm-isbn span.attr-v').text(); return dp; }, 'suning-dgf': function suningDgf() { var that = this; var dp = that.getProductInfo(); var a = $('.detail-first h1.title a').eq(0); dp.name = $('.detail-first h1.title a span strong').text(); G.href = a.attr('href'); G.site = "suning"; if (typeof G.href == 'undefined' || G.href == "") { dp.useless = true; } else { var check = siteInfo.isProductPage(); if (!check) { dp.useless = true; } } return dp; }, 'suning-qiang': function suningQiang() { var dp = getArticleInfo(".product-main-title h1 a", 0, "suning"); var suningQiangProId = $('#catentry').val(); if (suningQiangProId) { G.href = 'http://www.suning.com/emall/prd_10052_10051_-7_' + suningQiangProId + '_.html'; } return dp; }, 'suning-pai': function suningPai() { var dp = getArticleInfoNew('input[name=returnURL]', 0, "value", "suning"); var name = $('.fb-main-title a').text(); var isbn = ""; var url = ""; url = $('.fb-main-title a').attr('href'); isbn = $('#total dt:contains("I")').next().eq(0).text(); var matches = isbn.match(/(?:\d{13}|\d{10}|\d{8})/ig); if (matches != null) { isbn = matches[0]; } else { isbn = ""; } dp.name = name; dp.isbn = isbn; dp.url = url; return dp; }, 'coo8': function coo8() { return { 'name': $('#productname h1').children('strong').eq(0).text(), 'isbn': '' }; }, 'lusen': function lusen() { return { 'url': 'http://www.lusen.com/Product/ProductInfo.aspx?id=' + $("#ProductId").val(), 'name': $('h1.goodsname').text(), 'isbn': '' }; }, 'gome-rushbuy': function gomeRushbuy() { var url = ""; url = $(".pic a").eq(0).attr("href"); return { 'name': $('.product-info .name').text(), 'isbn': '', 'url': url }; }, 'gomehone': function gomehone() { var dp = getProductInfo(); dp.price = $('#prdPrice').text().match(/[0-9.]+/)[0]; dp.name = $('.prdmain .prdtit').text(); return dp; }, 'gome': function gome() { var prdInfo = window.prdInfo; var dp = getProductInfo(); var isbn = ""; var name = $('title').html(); name = $('.prdtit h1').text(); dp.name = name; dp.isbn = isbn; dp.price = $('#prdPrice').text(); if (name == '') dp.name = prdInfo && prdInfo.prdName; if (dp.price == '') dp.price = prdInfo && prdInfo.price; dp.brand_string = prdInfo && prdInfo.breadName; dp.itemId = location.href.match(/gome\.com\.cn\/([A-Z0-9]+)-/)[1]; dp.cat_id = prdInfo && prdInfo.catId; dp.website = 'gome'; dp.pic = $('.pic-small ul li img').eq(0).attr('src'); if (!dp.cat_id) { var dom = $('.local a').eq(3).attr('href'); dp.cat_id = dom.match(/cat\d+/) && dom.match(/cat\d+/)[0]; } return dp; }, 'gome-q': function gomeQ() { var dp = getProductInfo(); dp.name = $('h1.title').text(); dp.url = $('.pro_link')[0].href; return dp; }, 'gome-tao': function gomeTao() { var dp = getProductInfo(); dp.name = $('.prdtit').text(); dp.price = parseInt($('#prdPrice').text().match(/[0-9]+/)[0]); return dp; }, 'gome-tuan': function gomeTuan() { var dp = getProductInfo(); dp.url = $(".compare-link").attr("href"); dp.name = $('title').html(); dp.price = $('#salePrice').text(); return dp; }, 'yihaodian': function yihaodian() { var dp = getProductInfo(); var id = ""; if ($('#productId').length) { id = $('#productId').val(); } else if ($('#productCode').length) { id = parseInt($('#productCode').text().slice(0, -1)); } else if ($('#mainProductId').length) { id = $('#mainProductId').val(); } // 名品特卖 else if ($('.specific_detail p span').length) { id = parseInt($('.specific_detail p span').text().match(/\d+$/)[0].slice(0, -1)); } var name = $('#productMainName').text(); var sp = name.indexOf('<'); if (sp > 0) { name = name.substr(0, sp); } if (name == '') { name = $('.main_info_con p.price').prev().eq(0).text(); }; if (name == '') { name = $('.pro_tit').text(); } var isbn = $('#prodDetailCotentDiv dd:contains("ISBN")').text().substr(5); isbn = $.trim(isbn); var itemId = location.href.match(/item\/([0-9]{5,9})/); dp.itemId = itemId && itemId[1]; dp.img = $('#jsproCrumb .mBox b img').eq(0).attr('src'); dp.brand_string = $('#brandName').val(); dp.price = $('#current_price').text().replace(/[¥¥]+/, ''); dp.cat_id = $('#categoryId').val(); dp.isbn = isbn; dp.name = name; dp.id = id; dp.pic = dp.img; dp.website = 'yhd'; return dp; }, 'yihaodian-tuan': function yihaodianTuan() { var name = ''; var id = ''; var url = ""; name = $('#detailDiv h2').eq(0).text(); id = $('#productId').val(); if (id == '') { id = $('#mainProductId').val(); } if (name == '') { name = $("title").text().replace(/.{2}团购_1号团_1号店官网/, ""); } var price = $('#pricenow').text(); url = 'http://item.yhd.com/item/' + $('#productMercantId').val(); return { 'name': name, 'isbn': '', 'id': id, 'url': url, 'price': price }; }, 'womai': function womai() { var dp = getProductInfo(); dp.name = ""; var matches = $(".main_detail").eq(0).html().match(/var _title = "([^"]+)"/); dp.name = matches[1]; dp.price = $('.buyPrice').text(); if (dp.name == "") { dp.name = $('.WrapTit').text(); } dp.name = window.rtTag.data.ecom_view.prod[0].p_name; dp.price = window.rtTag.data.ecom_view.prod[0].p_price; dp.brand_string = window.rtTag.data.ecom_view.prod[0].p_brand; return dp; }, 'coocaa': function coocaa() { return { 'name': "酷开 " + $(".proHeader h1").text() }; }, 'leyou': function leyou() { var dp = getProductInfo(); dp.name = $('#baseInfoDiv h3').text(); dp.price = $('.item_rmb .font_num').text(); return dp; }, 'shopin': function shopin() { var crumbs = $.trim($('.crumbs').text()); var title = $.trim($('.product-list h2').text()); crumbs = crumbs.replace(/(?:\u5f53\u524d\u4f4d\u7f6e|\u9996\u9875|-)/, "", crumbs); return { 'name': crumbs + " " + title, 'isbn': '' }; }, 'xiu': function xiu() { var name = ""; name = $('.p_title span h1').text(); return { 'name': name, 'isbn': '' }; }, 'xiu-tuan': function xiuTuan() { return { 'name': $('.xit_xqzgong h2').text(), 'isbn': '' }; }, 'vjia': function vjia() { return { 'name': $('.sp-singleName .title').text(), 'isbn': '' }; }, '7cv': function cv() { return { 'name': $('.main_right_top').text(), 'isbn': '' }; }, 'x': function x() { return { 'name': $('p.top_name').text(), 'isbn': '' }; }, 'guopi': function guopi() { return { 'name': $('#p_name').text(), 'isbn': '' }; }, 'no5': function no5() { var name = $('.part01 .p01_r h2').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } return { 'name': name, 'isbn': '' }; }, 'sasa': function sasa() { var name = $('.product-titles').text(); var price = $('#product_information .action-pric').text(); return { 'name': name, 'price': price, 'isbn': '' }; }, 'dhc': function dhc() { return { 'name': $('head title').text(), 'isbn': '' }; }, '9dadao': function dadao() { return { 'name': $('.pra h2').text(), 'isbn': '' }; }, 'metao': function metao() { return { name: $(".pib_title_detail").text() }; }, 'kzj365': function kzj365() { var content = $("title").text(); var i = content.indexOf("_"); return { name: content.slice(0, i) }; }, 'nubia': function nubia() { var title = ''; if (title == '') { title = $('#subNav .sub-logo').eq(0).text(); } var price = $('.price').text(); return { name: title, price: price }; }, 'gnc': function gnc() { return { name: $('#product-title').text(), price: $('.price-regular').text().match(/[0-9.]+/) && $('.price-regular').text().match(/[0-9.]+/)[0] }; }, 'ymatou': function ymatou() { var content = $("meta[name=description]").attr("content"); var i = content.indexOf('”'); return { name: content.slice(1, i) }; }, 'kaola': function kaola() { return { name: $(".product-title").text(), price: $('.currentPrice').text() }; }, '360kxr': function kxr() { var name = $('.right-intro h2').html(); name = name.indexOf('<') > 0 ? name.substr(0, name.indexOf('<')) : name; return { 'name': name, 'isbn': '' }; }, 'likeface': function likeface() { return { 'name': $('.tCtn h1').text(), 'isbn': '' }; }, 'qxian': function qxian() { return { 'name': $('.product_body1_right_title h1').text(), 'isbn': '' }; }, 'didamall': function didamall() { return { 'name': $('.product-name').text(), 'isbn': '' }; }, 'yaodian100': function yaodian100() { return { 'name': $('.infoboxheader h1').text(), 'isbn': '' }; }, 'lijiababy': function lijiababy() { var name = $('#txtproname').text(); if (typeof name == 'undefined' || name == '') { name = $('#lbl_proname').text(); } return { 'name': name, 'isbn': '' }; }, '99read': function read() { var dp = getProductInfo(); dp.isbn = $('li:contains("产品条码")').html(); if (dp.isbn == null || typeof dp.isbn == 'undefined' || dp.isbn == '') { dp.isbn = ''; } else { dp.isbn = dp.isbn.substr(7); } return dp; }, 'china-pub': function chinaPub() { return { 'name': $('h1.black15c').text(), 'isbn': $('li:contains("ISBN")').children('strong').eq(0).html() }; }, 'bookschina': function bookschina() { var dp = getProductInfo(); dp.name = $('.this-pic').prev().text(); dp.name = $.trim(dp.name); dp.isbn = $('tr:contains(\"出版时间:\")').children().eq(1).text(); dp.isbn = $.trim(dp.isbn); return dp; }, 'bookschina-tuan': function bookschinaTuan() { var dp = getProductInfo(); dp.name = $('.titword').text().match(/《([^》]+)/)[1]; dp.price = $('.pricetime .pright .Mbig').text(); dp.isbn = $('.comments:contains("ISBN")').text().match(/ISBN:([0-9]+)/)[1]; if (dp.isbn == '') { dp.isbn = $('.comments').text().match(/[0-9]{13}/) && $('.comments').text().match(/[0-9]{13}/)[0]; } return dp; }, 'efeihu': function efeihu() { var dp = getProductInfo(); dp.name = $('.share_title em').text(); var p = $('.box_wrap .price .a p').text().match(/[0-9]+/); if (p) dp.price = p[0]; return dp; }, 'yintai': function yintai() { return { 'name': $('.p-tit').text(), 'isbn': '', 'price': $('.qd-num').text() }; }, 'urcosme': function urcosme() { return { 'name': $('.productInformationText h1').text(), 'isbn': '' }; }, 'strawberrynet': function strawberrynet() { return { 'name': $('.product-frame h1').text() + $('.product-frame h2').text(), 'isbn': '' }; }, 'luce': function luce() { return { 'name': $('.Product_Detail ul').children('li').eq(0).children('p').eq(0).text(), 'isbn': '' }; }, 'k121': function k121() { return { 'name': $('.newproductname0').text(), 'isbn': '' }; }, 'happigo': function happigo() { return { 'name': $('.detail_top .detail_tit ').text(), 'price': $('.price_now').text() }; }, 'gap': function gap() { return { 'name': $('.product-name h1').text(), 'isbn': '' }; }, 'misslele': function misslele() { return { 'name': $('#goods_name').text(), 'isbn': '' }; }, 'all3c': function all3c() { return { 'name': $('.buyinfo h1').text(), 'isbn': '' }; }, 'idaphne': function idaphne() { return { 'name': $('.title').text(), 'isbn': '' }; }, 'binggo': function binggo() { var name = $('#pName h1').html(); var len = name.length; var i = 0; for (; i < len; i++) { if (name[i] == '<') { break; } } return { 'name': name.substr(0, i), 'isbn': '' }; }, 'taobao-ju': function taobaoJu() { var info = getProductInfo(); var id = /item_id=(\d+)/ig.exec(location.href); info.id = id && id.length == 2 && id[1]; info.name = $.trim($('.main-box h2').text()); info.url = 'https://detail.tmall.com/item.htm?id=' + info.id; info.itemId = location.href.match(/item_id=(\d+)/)[1]; info.price = $('.currentPrice .J_actPrice').eq(0).text(); return info; }, 'tmall': function tmall() { var info = getProductInfo(); var attrs = $(".attributes-list ul").html(); var sattrs = ''; var userid = ""; if (attrs == null) { attrs = $(".attributes-list").html(); } if (attrs) { attrs = attrs.replace(/(?:<\!\-\-[^\-]*\-\->|]*>|\ \ )/ig, ''); attrs = attrs.replace(/ /ig, ' '); attrs = attrs.replace(/<\/li[^>]*>/ig, '|'); attrs = attrs.replace(/\n/ig, ''); var brand = attrs.match(new RegExp(/\|(\u54c1\u724c(?:\:|\uff1a)[^\|]+)/ig)); if (brand) { for (var i = 0; i < brand.length; i++) { sattrs += brand[i] + '|'; } } var no = attrs.match(new RegExp(/((?:\u7cfb\u5217|\u8d27\u53f7|\u578b\u53f7|\u6b3e\u53f7)(?:\:|\uff1a)[^\|]+)/ig)); if (no) { for (var i = 0; i < no.length; i++) { sattrs += no[i] + '|'; } } var isbn = attrs.match(new RegExp(/(ISBN[^\:\uff1a]*(?:\:|\uff1a)[^\|]+)/ig)); if (isbn) { for (var i = 0; i < isbn.length; i++) { sattrs += isbn[i] + '|'; } } info.skeyword = sattrs; } //提取分类信息 info.cat_id = ""; var cat_id = $('#tb-beacon-aplus').attr('exparams'); cat_id = cat_id && cat_id.match(/category=item%5f(\d+)&/); cat_id = cat_id && cat_id[1]; info.cat_id = cat_id; if (info.cat_id == "") { var cat_id = $('#detail-recommend-viewed').attr('data-catid'); info.cat_id = cat_id; } info.root_id = $('#J_FrmBid input[name="rootCatId"]').val(); //提取图片信息 info.pic = $('#J_ImgBooth').attr('src'); if (info.pic.indexOf('https:') === -1) info.pic = 'https:' + info.pic; var itemid = location.href.match(/[?&]id=(\d+)/); itemid = itemid && itemid[1]; //获取用户的id var doms = $("meta[name='microscope-data']").attr('content'); var matches = doms && doms.match(/userid=(\d+)/); if (matches) { userid = matches[1]; } var price = $('#J_PromoBox .tb-wrTuan-num').text(); if (!price) price = $('#J_Price').text(); if (!price) price = $('#J_StrPrice').text(); if (!price) price = $('.tm-promo-price .tm-price').text(); if (!price) price = $('#J_StrPriceModBox .tm-price').text(); if (!price) price = $('.tm-price').text(); info.shop_name = $('.shopkeeper .right a').text(); info.shop_addres = $('.locus .right').text().replace(/(?:\t|\n|\s)/ig, ''); info.price = price; info.userid = userid; info.img = info.pic; info.name = $('#J_DetailMeta .tb-detail-hd h1').text().replace(/\n/g, '').trim(); info.itemId = itemid; var url = location.href; // if (url.indexOf('detail.tmall.com') > -1 && url.indexOf('skuId') > -1) { // let skuId = require('common/commonUtil').getParameterByName('skuId', location.href) // let dp = require('common/commonUtil').getParameterByName('id', location.href) // url = `https://sku-taobao.com/item.htm?id=${dp}-${skuId}` // } info.url = url; return info; }, 'mi': function mi() { var info = getProductInfo(); info.name = $('.product-con h1').text(); return info; }, 'taobao': function taobao() { var info = getProductInfo(); var attrs = $(".attributes-list ul").html(); var sattrs = ''; var userid = ""; if (attrs == null) { attrs = $(".attributes-list").html(); } attrs = attrs.replace(/(?:<\!\-\-[^\-]*\-\->|]*>|\ \ )/ig, ''); attrs = attrs.replace(/ /ig, ' '); attrs = attrs.replace(/<\/li[^>]*>/ig, '|'); attrs = attrs.replace(/\n/ig, ''); var brand = attrs.match(new RegExp(/\|(\u54c1\u724c(?:\:|\uff1a)[^\|]+)/ig)); if (brand) { for (var i = 0; i < brand.length; i++) { sattrs += brand[i] + '|'; } } var no = attrs.match(new RegExp(/((?:\u7cfb\u5217|\u8d27\u53f7|\u578b\u53f7|\u6b3e\u53f7)(?:\:|\uff1a)[^\|]+)/ig)); if (no) { for (var i = 0; i < no.length; i++) { sattrs += no[i] + '|'; } } var isbn = attrs.match(new RegExp(/(ISBN[^\:\uff1a]*(?:\:|\uff1a)[^\|]+)/ig)); if (isbn) { for (var i = 0; i < isbn.length; i++) { sattrs += isbn[i] + '|'; } } info.skeyword = sattrs; //提取分类信息 info.cat_id = $('#J_Pine').attr('data-catid'); info.root_id = $('#J_Pine').attr('data-rootid'); //提取图片信息 info.pic = $('#J_ImgBooth').attr('src'); info.img = info.pic; //获取用户的id var doms = $("meta[name='microscope-data']").attr('content'); var matches = doms && doms.match(/userid=(\d+)/); userid = matches && matches[1]; var price = $('#J_Price').text(); info.shop_name = $('.shopkeeper .right a').text(); info.shop_addres = $('.locus .right').text().replace(/(?:\t|\n|\s)/ig, ''); info.nnid = location.href.match(/[?&]id=([0-9]+)/) && location.href.match(/[?&]id=([0-9]+)/)[1]; info.price = price; info.newtitle = $('#J_Title .tb-main-title').text().trim(); info.itemId = info.nnid; info.userid = userid; if (info.img.indexOf('//') === 0) { info.img = 'https:' + info.img; } return info; }, 'taobao-spu': function taobaoSpu() { return { 'name': $('#detail .detail-hd h3').text(), 'isbn': '' }; }, 'xijie': function xijie() { return { 'name': $('.detail_sh_right h1').text(), 'isbn': '' }; }, 'caomeipai': function caomeipai() { return { 'name': $('#pro_name h2').text(), 'isbn': '' }; }, 'dahuozhan': function dahuozhan() { return { 'name': $('.property h2').text(), 'isbn': '' }; }, 'huolida': function huolida() { return { 'name': $('.h1_title h1').text(), 'isbn': '' }; }, '12dian': function dian() { return { 'name': $('.goodstitle').text(), 'isbn': '' }; }, '111': function _() { var dp = getProductInfo(); dp.name = $('.detailnav span').last().text(); dp.price = window._BFD.BFD_INFO.price; return dp; }, 'daoyao': function daoyao() { return { 'name': $('.product_1_4 .d_table_3 .font_01').text(), 'isbn': '' }; }, 'douban': function douban() { var tmp_isbn = $('#info').html(); var isbn = ''; var start = tmp_isbn.indexOf('ISBN:'); var length = tmp_isbn.length; start += 12; for (; start < length; start++) { if (tmp_isbn[start] >= '0' && tmp_isbn[start] <= '9') { isbn += tmp_isbn[start]; } } if (isbn === '') { var t = $('#content .indent').eq(1).text().match(/isbn: (\d+)/); if (t) { isbn = t[1]; isbn = isbnTran(isbn); } } var href = window.location.href.toString(); var matches = href.match(/gwd_isbn=(\d+)/); if (isbn == "" && matches) { isbn = matches[1]; } var info = getProductInfo(); info.isbn = isbn; return info; }, 'douban-dongxi': function doubanDongxi() { var info = getProductInfo(); info.title = $('.commodity-name a').text(); return info; }, 'it168': function it168() { return { 'name': $('.title100 h1').text(), 'isbn': '' }; }, 'pconline': function pconline() { return { 'name': $('.pro-tit .name').text(), 'isbn': '' }; }, 'pcpop': function pcpop() { return { 'name': $('.tit1 h1').text(), 'isbn': '' }; }, 'yoka': function yoka() { return { 'name': $('.pInfo_c2_lu h2').text(), 'isbn': '' }; }, '55bbs': function bbs() { return { 'name': $('.cpjsright_name h1').text(), 'isbn': '' }; }, 'onlylady': function onlylady() { return { 'name': $('.bnnaer_text').text(), 'isbn': '' }; }, '24dq': function dq() { return { 'name': $('.goodsname').text(), 'isbn': '' }; }, 'lingshi': function lingshi() { return { 'name': $('#detail_bb h3').text(), 'isbn': '' }; }, 'onlyts': function onlyts() { return { 'name': $('#bread .last').eq(1).text(), 'isbn': '' }; }, 'winxuan': function winxuan() { var isbn = ''; isbn = $('li:contains("I S B N:")').text().substr(8); var title = ''; title = $("meta[name='keywords']").attr("content"); return { 'name': title, 'isbn': isbn }; }, /*'new7' : function(){ return { 'name': $('.mainR h1 strong').text(), 'isbn': '' } },*/ 'beifabook': function beifabook() { var isbn = $('#LabelISBN').text(); isbn = isbn.replace(/-/g, ""); return { 'name': $('#LabelTitle').text(), 'isbn': isbn }; }, 'sina-tech': function sinaTech() { var name = $('.zcblk02 h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.PartATitle h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.Info h2').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.product-name h1').html(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('title').html().substr(0, $('title').html().indexOf('_')); } } } } if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } name = name.replace(" ", ""); return { 'name': name, 'isbn': '' }; }, 'sina-baby': function sinaBaby() { return { 'name': $('.dp_info_title').text(), 'isbn': '' }; }, 'sina-eladies': function sinaEladies() { return { 'name': $('.blk01 h1').text(), 'isbn': '' }; }, 'sohu-it': function sohuIt() { return { 'name': $('.til h2').text(), 'isbn': '' }; }, 'sohu-women': function sohuWomen() { return { 'name': $('.r h2 span').text(), 'isbn': '' }; }, '163-digi': function digi() { var name = $('.colA h3').text(); if (typeof name == 'undefined' || name == null || name == '') { name = $('.colA h1').text(); } return { 'name': name, 'isbn': '' }; }, '163-lady': function lady() { return { 'name': $('.detailbox-main h1').text(), 'isbn': '' }; }, 'qq-digi': function qqDigi() { var name = $('.top_hd h2').text(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('.font0751 span').text(); } return { 'name': name, 'isbn': '' }; }, 'qq-hea': function qqHea() { var name = $('#pdShow h1').text(); if (typeof name == 'undefined' || name == '' || name == null) { name = $('#pdShow .longName').text(); } return { 'name': name, 'isbn': '' }; }, 'qq-lady': function qqLady() { var name = $('.pro_info .title').text(); return { 'name': name, 'isbn': '' }; }, 'vipshop': function vipshop() { var getCatgory = function getCatgory() { var result; if (window.O_viewed) { return { cat_id: window.O_viewed.category_id, cat_name: window.O_viewed.category_name }; } else { // for chrome var s = $('#J-bottom-adCode').next().text(); if (!s) s = $('#J_topbar_pop_template').next().text(); s = /var O_viewed = {([\s\S]*?)}/.exec(s); if (s) s = s[1]; var cat_id = /'category_id' : '(\d+)'/.exec(s); if (cat_id) cat_id = cat_id[1]; var cat_name = /'category_name' : '(.*?)'/.exec(s); if (cat_name) cat_name = cat_name[1]; return { cat_name: cat_name, cat_id: cat_id }; } }; var cat = getCatgory(); var name = ""; name = $(".bt_layout li:contains('商品名称') .bt_lt_par_p").text(); if (name == "") { name = $.trim($('.pro_info .goods_protit').text()); } if (name == "") { name = $('.bt_title').text().replace(/(?:\n|\t|\s)/ig, ''); } if (name == "") { name = $.trim($('.pib-title-detail').text()); } return { 'price': $('.pbox-price em').text(), 'name': name, 'isbn': '', 'cat_id': cat.cat_id, 'cat_name': cat.cat_name, 'brand_string': $('.pib-title-class a').text() }; }, 'j1': function j1() { return { 'name': $('.productarea-right-1 H1').text(), 'isbn': '' }; }, 'yougou': function yougou() { var dp = getProductInfo(); dp.name = $('.goodsCon .f16').text(); if (dp.name == '') dp.name = $('.goodsCon h1').text().replace(/\s/g, ''); if ($('#yitianPrice')) { dp.price = $('#yitianPrice').text(); } return dp; }, 'jxdyf': function jxdyf() { return { 'name': $('.product .pro_name').text(), 'isbn': '' }; }, 'yaofang': function yaofang() { var name = $('.pro_title').html(); if (name.indexOf('<') > 0) { name = name.substr(0, name.indexOf('<')); } return { 'name': name, 'isbn': '' }; }, 'tiantian': function tiantian() { return { 'name': $('.detail_mbx .c_ed').text(), 'isbn': '' }; }, 'tiantian-tuan': function tiantianTuan() { var dp = getProductInfo(); dp.name = $('td:contains("商品名称")+td span').text(); dp.price = $('.buy_pri').text(); return dp; }, 'yiguo': function yiguo() { return { 'name': $.trim($('.main .cpname h1').text()), 'isbn': '' }; }, 'jiuxian': function jiuxian() { var dp = getProductInfo(); dp.name = $('.dmainBox .detail-depict .depict-name h1').text(); if (dp.name == '') dp.name = $('.detailName h2').text().replace('(私人定制)', ''); dp.price = $('#_nowPriceStr').text(); return dp; }, 'meilele-tuan': function meileleTuan() { var dp = getProductInfo(); dp.name = $('#JS_tg_goods_name').text(); var p = $('#JS_bnr_state').text().match(/[0-9]+/); if (p) dp.price = p[0]; return dp; }, 'ehaier': function ehaier() { var dp = getProductInfo(); dp.name = $('.a-product-title').text(); dp.price = $('.pricetag .cur-price').text().match(/[0-9]+/)[0]; return dp; }, 'ule': function ule() { var dp = getProductInfo(); dp.name = $('.productInfo h1').text(); dp.price = $('.productPrice .price strong').text(); return dp; }, 'esprit': function esprit() { var dp = getProductInfo(); dp.name = $('#itemName').text().replace(/\s/g, ''); dp.price = $('#pdpPrice').text().replace(/[¥¥]+/, ''); return dp; }, 'lining': function lining() { var dp = getProductInfo(); dp.name = $('#product_name').text().replace(/\s/g, ''); dp.price = $('#offerPrice .v').text().replace(/[\s¥¥]/g, ''); return dp; }, 'oyeah': function oyeah() { var name = ""; name = $("meta[name='Keywords']").attr("content"); return { 'name': name, 'isbn': '' }; }, 'lvyoumall': function lvyoumall() { return { 'name': $("meta[name='keywords']").attr("content"), 'isbn': '' }; }, 'lefeng': function lefeng() { var name = ""; var url = ""; name = $.trim($(".path").text().split('/').pop()); url = "http://product.lefeng.com/product/" + $("#productId").val() + ".html"; var result = { 'url': url, 'name': name, 'isbn': '' }; if (!G.dp.price) { result['price'] = $('.dity-price-c').text(); } return result; }, 'wbiao': function wbiao() { var dp = getProductInfo(); dp.name = $('#info_on_sale h1').text(); dp.price = $('#price').text(); return dp; }, 'banggo': function banggo() { var dp = getProductInfo(); dp.name = $('.mbshop_detail_pdbrand a').text() + $('.mbshop_detail_pdname').text().replace(/\s/g, ''); dp.price = $('#salePriceText').text(); return dp; }, 'yohobuy': function yohobuy() { var dp = getProductInfo(); dp.price = $('.promotion-price .price').text(); if (!dp.price) dp.price = $('.product-detail-page .main .price').text(); dp.name = $('.product-detail-page .main .name').text(); return dp; }, 'sundan': function sundan() { return { name: $('#buy_form div.box>div.ng-info>h2').text(), price: $('#buy_form div.box>div.ng-size span.price').text() }; }, 'adidas-us': function adidasUs() { return { name: $('.pdp-title h3').text(), price: $('.pdp-title .goods-price').text() }; }, 'jiae': function jiae() { return { name: $('#content div.item-intro>div.property>h1').text(), price: $('#content div.item-intro>div.property .itemDetail-itemPrice span.j-item-now-price').text() }; }, 'zazhipu': function zazhipu() { return { name: $('.ic_content div.grid_m div.xbase_row1>h1').text(), price: $('.ic_content div.grid_m div.xbase_row2 span.mod_price').text().split('¥')[2].split('.')[0] }; }, 'microsoftstore': function microsoftstore() { var name = $('#inner div.pdpContent>div.pdpInfo>.pdp_module_info>div.title>h1').text() || $('#inner div.content-block .right h2.title').text(); var price = $('#inner div.pdpContent>div.pdpInfo>.pdp_module_info>.priceAndRank>div.price>span.current').text() || $('#selectVariantProduct span.price').text(); return { name: name, price: price }; }, 'xgdq': function xgdq() { return { name: $('.product-main .product-titles>h2').text(), price: $('.product-main .product-concerns li:first .action-price').text() }; }, 'xtep': function xtep() { var name = $('.goodsDetailsBox .goodsPrice>dt').text(); var price = $('.goodsDetailsBox .goodsPrice dd>ul>li>div:first>span').text(); if (!name || !price) { name = $('.wrapper .groupTittle').text(); price = $('.wrapper .groupPriceBox>a>span').text(); } return { name: name, price: price }; }, 'midea': function midea() { return { name: $('.product_wrap>.product_right>h1').text(), price: $('.product_wrap>.product_right .price').text() }; } }; var reTry = undefined; //获取商品信息的统一入口 var get = function get(callback) { if (G.pageInfo.type === 1) { callback(); return; } var dp = undefined; siteName = G.pageInfo.siteName; var href = window.location.href; try { if (siteName && siteName.indexOf('amazon') > -1) siteName = 'amazon'; dp = productPattern[siteName](); dp.oldPrice = dp.price; if (dp.price && dp.price.match(/(?:\?|\?)/)) dp.activePrice = true; dp.price = parseprice(dp.price); dp.oldPrice = parseprice.getPriceBeforeExchangeRate(dp.oldPrice); dp.site = siteName; if (dp.url == null) { if (dp.href != null) { dp.url = dp.href; } else { dp.url = href; } } } catch (e) { /*eslint-disable */ if (G.debug) { console.log(e); } /*eslint-enable */ dp = getProductInfo(); dp.site = siteName; dp.url = href; } if (typeof dp.useless != 'undefined' && dp.useless) { return null; } dp.icon = dp.url.replace(/^http[s]?\:\/\//g, ""); dp.icon = dp.icon.replace(/\/.*?$/g, ""); dp.icon += '/favicon.ico'; if (typeof dp.id == 'undefined' || dp.id == null) { dp.id = ""; } if (typeof dp.keyword == 'undefined' || dp.keyword == null) { dp.keyword = ''; } if (typeof dp.skeyword == 'undefined' || dp.skeyword == null) { dp.skeyword = ''; } if (typeof dp.isbn == 'undefined' || dp.isbn == null) { dp.isbn = ''; } var delayLoadList = ['youpin-mi', 'oneplus', 'lenovo', 'vipshop']; if (delayLoadList.indexOf(G.site) > -1 && !dp.price && !dp.name && !reTry) { reTry = true; setTimeout(function () { get(callback); }, 2000); return; } G.dp = dp; if (!dp.price) { var siteName = G.site; var siteId = detect.getSiteId(siteName); if (!siteId) siteId = 9999; priceParser.init(siteId, function (price) { if (price && price > 0) { dp.oldPrice = price; dp.price = price; } if (callback) callback(); }); } else { if (typeof dp.name == 'undefined' || dp.name == '') { dp.name = $('title').text(); } if (callback) callback(); } return dp; }; module.exports.get = get; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 55 */, /* 56 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var sitearr = ['360buy', 'suning', 'gome', 'yihaodian', 'dangdang', 'kaola', 'tmall']; var inventoryCheck = __webpack_require__(41); var log = __webpack_require__(9); var userData = __webpack_require__(6); // const request = require('common/request') var promosPattern = { 'tmall': function tmall() { return { promo: $('.tm-shopPromo-panel').text().trim() }; }, '360buy': function buy() { var tle1 = $('.J-more-prom-ins').text(); var tle2 = $('.J-prom em.hl_red_bg').text(); var price = $('.J-summary-price .p-price').text().replace(/[¥¥\s]+/g, ''); var arr = []; if (tle1.indexOf('满减') > -1 || tle2.indexOf('满减') > -1) { arr.push('满减:' + $('.J-prom em.hl_red_bg:contains("满减") + em.hl_red').text()); } if (tle1.indexOf('多买优惠') > -1 || tle2.indexOf('多买优惠') > -1) { arr.push('多买优惠:' + $('.J-prom em.hl_red_bg:contains("多买优惠") + em.hl_red').text()); } if (tle1.indexOf('满折') > -1 || tle2.indexOf('折') > -1) { arr.push('满折:' + $('.J-prom em.hl_red_bg:contains("满折") + em.hl_red').text()); } if ($('#summary-quan .quan-item').text().length > 0) { var text = Array.prototype.map.call($('#summary-quan .quan-item'), function (v) { return $(v).text().replace(/\s/g, ''); }).join(','); arr.push('领券:' + text); } return { price: price, promo: arr.join(';') }; }, 'suning': function suning() { var dom = $('#voucherTitle'); var labels = dom.find('label').text().replace(/\s/g, ''); var text = ''; var arr = []; if (labels.indexOf('满减') > -1 && dom.is(':visible')) { text = $('#voucherBox').text(); var smtxt = $('#voucherBox a').text(); text = '满减:' + text.replace(smtxt, ''); arr.push(text); } if ($('#getCoupon').length > 0 && $('#getCoupon').is(':visible')) { var text2 = Array.prototype.map.call(document.querySelectorAll('#freeCouponBox .p-quan2 .p-quan-white'), function (e) { return $(e).text(); }).join(","); if (text2) { text2 = "领券:" + text2; arr.push(text2); } } return { promo: arr.join(";") }; }, 'gome': function gome() { var dom = $('.prd-promotions-red'); var labels = dom.find('label').text(); var texts = []; if (dom.is(':visible') && labels.indexOf('满减') > -1) { texts.push('满减:' + $('.prd-promotions-red label:contains("满减")+span').text().replace(/\s/g, '')); } if (dom.is(':visible') && labels.indexOf('领劵') > -1) { texts.push('领券:' + $('.prd-promotions-red label:contains("领劵")+b').text().replace(/(?:左边|右边)/g, '').replace(/劵/g, '券')); } if ($('.prd-price-left').is(':visible') && $('.prd-price-left').text().indexOf('劵') > -1) { var arr = $('#lanjuan b').text().match(/满\d+减\d+/g); if (arr.length > 0) { texts.push('领券:' + arr.join(',')); } } return { promo: texts.join(';') }; }, 'yihaodian': function yihaodian() { var dom = $('#promotion_title'); var arr = []; var labels = dom.find('.list .fl span.sub').text(); if (labels.indexOf('满减') > -1 && dom.find('.list .fl span.sub').is(':visible')) { var text = "满减" + $('#promotion_title .list .fl span.sub:contains("满减")+ span.tit').text(); arr.push(text); } if (labels.indexOf('折扣') > -1 && dom.find('.list .fl span.sub').is(':visible')) { var text = "折扣" + $('#promotion_title .list .fl span.sub:contains("折扣")+ span.tit').text(); arr.push(text); } return { promo: arr.join(';') }; }, 'dangdang': function dangdang() { var dom = $('#promo-list'); var arr = []; if (dom.find('div.clearfix b:contains("满额减")').is(':visible')) { var txt = '满额减:' + $('#promo-list div.clearfix b:contains("满额减")+div.rule span').text(); arr.push(txt); } if (dom.find('div.clearfix b:contains("店铺促销")').is(':visible')) { var txt = '店铺促销:' + $('#promo-list div.clearfix b:contains("店铺促销")+div.rule span').text(); arr.push(txt); } return { promo: arr.join(';') }; }, 'kaola': function kaola() { var arr = []; if ($('.promotionwrap .m-zd-prt .m-dp-prt-title:contains("满额减")').is(':visible')) { var text = '满额减:' + $('.promotionwrap .m-zd-prt .m-dp-prt-title:contains("满额减")+span a').text(); arr.push(text); } if ($('.couponwrap').is(':visible')) { var text2 = '领券:' + Array.prototype.map.call(document.querySelectorAll('.couponwrap .li.ellipsis'), function (e) { return $(e).text(); }).join(","); arr.push(text2); } return { promo: arr.join(';') }; } }; var getJdPromoInfo = function getJdPromoInfo() { var promos = []; var dom = $('#prom-one .J-prom .prom-item'); var dom2 = $('#prom-quan .J-prom-quan'); if (dom.length > 0) { for (var i = 0; i < dom.length; i++) { if (dom.eq(i).find('a').text().indexOf('详情') > -1) { var tle = dom.eq(i).find('.hl_red').text(); var url = dom.eq(i).find('a').attr('href'); promos.push(encodeURIComponent(tle) + ',' + encodeURIComponent(url)); } } } if (dom2.length > 0) { for (var i = 0; i < dom2.length; i++) { if (dom2.eq(i).find('a').text().indexOf('详情') > -1) { var tle = dom2.eq(i).find('.hl_red').text(); var url = dom2.eq(i).find('a').attr('href'); promos.push(encodeURIComponent(tle) + ',' + encodeURIComponent(url)); } } } return promos.join(';'); }; var getPromoInfo = function getPromoInfo(inventory) { var dp = G.dp; var other_info = userData.get('other_info'); var promoinfo = promosPattern[G.site](); var price = other_info['code-server'].price || dp.price; if (!price) price = promoinfo.price; var info = { dp_id: other_info.now.dp_id, name: dp.name, price: price, promo: promoinfo.promo, stock: inventory }; return info; }; var getJdPromo = function getJdPromo(inventory, callback) { var dp = G.dp; var other_info = userData.get('other_info'); var price = other_info['code-server'].price || dp.price; var promoinfo = promosPattern[G.site](); if (!price) price = $('.J-summary-price .p-price').text().replace(/[¥¥\s]+/g, ''); var promo_info = getJdPromoInfo(); var zytxt = $('.name.goodshop.EDropdown').text(); var isZy = '0'; if (zytxt.indexOf('自营') > -1) { isZy = '1'; } if (!dp.fans_price) dp.fans_price = $('.fans-price .p-price-fans span').text().replace(/[¥¥]+/, ''); var info = { dp_id: other_info.now.dp_id, name: dp.name.trim(), price: price, promo: promoinfo.promo, promo_info: promo_info, plus_price: dp.plus_price, fans_price: dp.fans_price, isZy: isZy, stock: inventory // cat: cat, // venderId: vendorId, // noquan: noquan }; info = JSON.stringify(info); callback(info); }; var specialFilter = function specialFilter() { if (G.site === 'suning') { if ($('#timePanel span').text().indexOf('定金团') > -1 && $('#mainPrice .price-promo span').text().indexOf('定金') > -1) { return true; } } if (G.site === '360buy') { if ($('#pingou .summary-price').text().indexOf('定金') > -1) { return true; } } return false; }; var sendPromo = function sendPromo(info) { if (window.XMLHttpRequest) { try { var xml = new XMLHttpRequest(); xml.open('POST', G.server + '/extension?ac=sendPromos&site_id=' + G.site_id + '&jfrom=int'); xml.send(info); log('sendPromo_success'); } catch (e) {} } }; module.exports.init = function () { if (G.new_extension || G.btype == 'luyou') return; if (G.dp.activePrice) return; if (specialFilter()) return; try { var inventory = inventoryCheck.init(G.site); if (sitearr.indexOf(G.site) > -1) { if (G.site == '360buy') { getJdPromo(inventory, sendPromo); } else { var info = getPromoInfo(inventory); info = JSON.stringify(info); sendPromo(info); } } } catch (e) {} }; module.exports.specialFilter = specialFilter; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 57 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__(5); var userData = __webpack_require__(6); var request = __webpack_require__(2); var calWidth = __webpack_require__(27); // const replaceHref = require('common/replaceHref') var golbal2 = __webpack_require__(14); var htmlObj = { 'taobao': __webpack_require__(94), 'tmall': __webpack_require__(95) }; var tmData = {}; var renderBtnTop = function renderBtnTop(data) { var html = __webpack_require__(59); data.ss = 0; if (data.tmall.length !== 0 && data.tmall.product) { $('#tm_compare').append(template.compile(html)({ store_tle: '天猫', min_price: data.tmall.min_price })).css("display", "block"); tmData['tmall'] = data.tmall; data.ss++; data.tmm = true; renderTopDetail('tmall'); } if (data.taobao.length !== 0 && data.taobao.product) { $('#tb_compare').append(template.compile(html)({ store_tle: '淘宝', min_price: data.taobao.min_price })).css("display", "block"); tmData['taobao'] = data.taobao; data.ss++; data.tbb = true; renderTopDetail('taobao'); } __webpack_require__(14).autoFixWidth(); userData.set('tbData', data); if (G.site === 'suning') { $('#tb_compare, #tm_compare').on('click', 'a', function (e) { if ($(this).find('.coupon_span')) return; var url = $(this).attr('href'); if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); } }; var render = function render(data) { var permanent = userData.get('permanent'); if (permanent.style === 'top') { renderTop(data); } else { __webpack_require__(43).renderBt(data); } }; var renderTopDetail = function renderTopDetail(id) { var data = tmData[id]; // if (!G.aliSite && G.from_device !== '360') // replaceHref.init(id, data.product, '&column=b2c') var len = data.product.length; var str = 'tb'; if (id === 'tmall') str = 'tm'; var widthObj = calWidth.init(); var sale_tle = "最近销量"; if (data.from_self === true) sale_tle = "总销量"; var html = htmlObj[id]; var pages = Math.ceil(len / widthObj.showListNum); $('#' + str + '_compare').append(template.compile(html)({ data: data.product, s_server: G.s_server, width: widthObj.turnpW, link: data.more_link, pages: pages, imgLoad: G.imgLoad, sale_tle: sale_tle, allProductW: widthObj.allProductW })); if (G.from_device !== '360') __webpack_require__(33).init(data.product, id, false, data.min_price); // $(`#gwdang-${id}-dp-detail`).show() }; var renderTop = function renderTop(data) { renderBtnTop(data); }; var getTmInfo = function getTmInfo(callback) { var code_server = '1'; var other_info = userData.get('other_info'); var msg = other_info.exact_arr; var code = other_info['code-server']; var coreword = encodeURIComponent(other_info.now.coreword); if (!code) { code = {}; code_server = '0'; } var price = G.dp.price * 100; var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + code.code + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server + '&coreword=' + coreword + '&catid=' + G.dp.cat_id; request.get(url).done(function (data) { if (data) { if (G.site == 'taobao' || G.site == 'tmall') { getUniqPid(data, function (mm) { callback(mm); }); } else { getImgSearch(data, function (mm) { callback(mm); }); } } }); }; var getImgSearch = function getImgSearch(msg, callback) { var buildTaobaoUrl = __webpack_require__(20); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } var dataShare = __webpack_require__(61); var brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id']; if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) { // 在京东有brand 有比价结果的情况下, 不走图片检索 callback(msg); return; } __webpack_require__(28).init(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (msg.taobao.sort) msg.taobao = {}; if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; var getUniqPid = function getUniqPid(msg, callback) { var buildTaobaoUrl = __webpack_require__(20); msg = buildTaobaoUrl.buildCommon(msg); __webpack_require__(45).getTaobaouniqData(function (data) { if (data) { if (msg.tmall.sort) { msg.tmall = {}; } if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (msg.taobao.sort) { msg.taobao = {}; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; module.exports.init = function () { getTmInfo(render); }; module.exports.renderTopDetail2 = function (id) { var widthObj = calWidth.init(); golbal2.loadImg(0, widthObj.showListNum, $('#' + id + '-item-list li .small-img img')); $('#gwdang-' + id + '-dp-detail').show(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 58 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, regeneratorRuntime, G) { var _this = this; var template = __webpack_require__(5); var userData = __webpack_require__(6); var golbal2 = __webpack_require__(14); var calWidth = __webpack_require__(27); var fuzzyPage; // let rateSite = { // '228': 'USD', // '229': 'JPY', // '238': 'USD', // '246': 'EUR' // } // let priceSite = { // '228': '$', // '238': '$', // '229': '日元', // '246': 'EUR' // } var globalInfo = {}; // const fixedPrice = (price) => { // if (!price) return price; // try { // let priarr = price.split('.'); // price = priarr[0].replace(',', ''); // if (Number(price) > 99999) { // price = priarr[0]; // } else { // price = priarr[0] + '.' + priarr[1]; // } // } catch (e) { // require('common/log')('b2cCompare:fixedPrice:error') // return price; // } // return price; // } // const transRate = (dp) => { // if (dp.price_rmb) return dp; // let parseprice = require('parseprice'); // if (!dp.dp_id) return dp; // let site_id = dp.dp_id.split('-')[1]; // let type = site_id && rateSite[site_id]; // if (!type) return dp; // let price2 = parseprice(dp.price, type) // let price3 = fixedPrice(dp.price); // if (site_id == '229') { // dp.price_rmb = price2 + `(${price3}${priceSite[site_id]})`; // } else { // dp.price_rmb = price2 + `(${priceSite[site_id]}${price3})`; // } // dp.price = price2; // return dp; // } // const editData = (data) => { // var len = data.store && data.store.length; // if (len && len > 0) { // for (let i = 0; i < len; i++) { // data.store[i].price = (Number(data.store[i].price) / 100).toFixed(2) // } // } // let len2 = data.product.length; // if (len) // data.store2 = data.store.slice(0, 6); // else // len = len2; // return len; // } var renderBtnTop = function renderBtnTop(price, isFuzzy) { var t = '商城'; if (isFuzzy) { t = '商城相似款'; } var html = __webpack_require__(59); $('#b2c_compare').append(template.compile(html)({ store_tle: t, min_price: price })).css("display", "block"); }; var renderTopDetail = function renderTopDetail() { var widthObj, showListNum, turnpW, productW, dp_query, html, len, storeLen, pages; return regeneratorRuntime.async(function renderTopDetail$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: widthObj = calWidth.init(); showListNum = widthObj.b2cShowListNum; turnpW = widthObj.b2cTurnpW; productW = widthObj.b2cProductW; dp_query = userData.get('dp_query'); html = __webpack_require__(89); if (fuzzyPage) { html = __webpack_require__(90); showListNum = widthObj.showListNum; turnpW = widthObj.turnpW; productW = widthObj.allProductW; } if (G.site && G.site.indexOf('amazon') > -1) turnpW = turnpW - 1; len = globalInfo['b2c_compare'].product.length; storeLen = globalInfo['b2c_compare'].store && globalInfo['b2c_compare'].store.length; pages = Math.ceil(len / showListNum); if (!len) { context$1$0.next = 14; break; } context$1$0.next = 14; return regeneratorRuntime.awrap(Promise.all(globalInfo['b2c_compare'].product.map(function (x) { return new Promise(function (resolve) { if (['8', '83', '123'].indexOf(x.site_id) > -1) { __webpack_require__(42).init(x.url_crc, '30001', function (data) { console.log('coupon data', data); if (data && data.data) { var couponVal = data.data.coupon.coupon_money; x.promotions = [{ type: 'coupon', text: couponVal + '元券' }]; x.coupon2 = [couponVal + '元券']; } resolve(); }); } else { resolve(); } }); }))); case 14: globalInfo['b2c_compare'].product = globalInfo['b2c_compare'].product.map(function (item) { var s = __webpack_require__(25).getMoneyInfo(item.site_id); if (s) { item.unit = s[0]; } return item; }); $('#b2c_compare').append(template.compile(html)({ data: globalInfo['b2c_compare'], storeLen: storeLen, pages: pages, now_dp_id: dp_query.dp.dp_id, width: turnpW, imgLoad: G.imgLoad, productW: productW })); golbal2.loadImg(0, showListNum, $('#b2c-item-list li .small-img img')); //$('#b2c_compare').find('.top-bar-detail').show() if (G.site === 'suning') { $('#b2c_compare').on('click', 'a', function (e) { var url = $(this).attr('href'); if ($(this).find('.coupon_span')) return; if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); } case 18: case 'end': return context$1$0.stop(); } }, null, _this); }; var renderTop = function renderTop(data) { if (data && data.b2c && !(data.b2c instanceof Array)) { globalInfo['b2c_compare'] = data.b2c; if (Number(data.b2c.min_price) && data.b2c.store.length > 0 && data.b2c.product.length > 0) renderBtnTop(data.b2c.min_price); } else if (data && data.b2c_fuzzy && !(data.b2c_fuzzy instanceof Array) && data.b2c_fuzzy.product.length > 0) { globalInfo['b2c_compare'] = data.b2c_fuzzy; fuzzyPage = true; if (Number(data.b2c_fuzzy.min_price)) renderBtnTop(data.b2c_fuzzy.min_price, true); } }; var renderBottom = function renderBottom(data) { __webpack_require__(43).init(data); }; module.exports.init = function (style, data) { if (G.aliSite) return; // 根据style决定加载顶部还是底部 if (style === 'top') { renderTop(data); } else { renderBottom(data); } }; module.exports.renderTopDetail = renderTopDetail; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(7), __webpack_require__(0))) /***/ }), /* 59 */ /***/ (function(module, exports) { module.exports = "\n \n {{store_tle}}\n ¥{{min_price}}\n" /***/ }), /* 60 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__(2); var parseprice = __webpack_require__(16); var template = __webpack_require__(5); var userData = __webpack_require__(6); var log = __webpack_require__(9); var golbal2 = __webpack_require__(14); var go_union = __webpack_require__(93); var runed = undefined; var amazonName = { '1': '中国', '228': '美国', '229': '日本', '246': '德国', '266': '英国', '365': '法国', '366': '加拿大' }; var amazonCurrency = { '228': 'USD', '229': 'JPY', '246': 'EUR', '266': 'GBP', '365': 'EUR', '366': 'CAD' }; var amazonMoney = { '1': '¥', '228': '$', '229': '円', '246': 'EUR', '266': '£', '365': 'EUR', '366': 'CDN$' }; var amazonTab = '#' + G.extName + '-amazon-dp'; var amazonDetail = '#' + G.extName + '-amazon-dp-detail'; var reqInfo = function reqInfo(dp_id, callback) { var url = G.server + '/extension?ac=amazonGlobal&dp_id=' + dp_id; request.get(url).done(function (data) { if (data && data.length > 0) { callback(data); } }); }; var editData = function editData(data) { for (var i = 0, len = data.length; i < len; i++) { var site_id = data[i].dp_id.split('-')[1]; if (data[i].nowpage === '1') data[i].siteName = amazonName[site_id] + '亚马逊(当前商城)';else data[i].siteName = amazonName[site_id] + '亚马逊'; var price = (Number(data[i].pri) / 100).toFixed(2); var purePrice = ''; if (site_id !== "1") { var price2 = ''; if (site_id === '229') price2 = price + amazonMoney[site_id];else price2 = amazonMoney[site_id] + price; purePrice = parseprice(price, amazonCurrency[site_id]); price = '¥' + purePrice + ('(' + price2 + ')'); } else { purePrice = price; price = '¥' + price; } data[i].title = data[i].tle; data[i].img_url = data[i].img; data[i].site_name = '中国亚马逊'; data[i].fee = '不同卖家运费不同'; var obj = { 'site_id': site_id, 'url': data[i].url, 'mod': 'amazon_global', 'union': G.union.split('_')[1], 'dp_id': data[i].dp_id }; data[i].url = go_union.init(obj); data[i].price = price; data[i].purePrice = purePrice; } data.sort(function (value1, value2) { return Number(value1.purePrice) - Number(value2.purePrice); }); return data; }; var render = function render(data) { data = editData(data); var permanent = userData.get('permanent'); if (permanent.style === 'top') { renderBtnTop(data[0].pri); renderTopDetail(data); } renderInner(data); addEvent(); }; var renderBtnTop = function renderBtnTop(pri) { var price = Number(pri) / 100; var html = __webpack_require__(59); $('#amazon_compare').append(template.compile(html)({ store_tle: "亚马逊海外购:", min_price: price })).show(); }; var addEvent = function addEvent() { var Time1 = undefined; $(amazonTab).on('mouseenter', function () { $(amazonDetail).addClass('_mshover'); $(amazonTab).addClass('_mshover'); log('track:amazon_global:mshover'); }); $(amazonTab).on('mouseleave', function () { Time1 = setTimeout(function () { $(amazonDetail).removeClass('_mshover'); $(amazonTab).removeClass('_mshover'); }, 200); }); $(amazonDetail).on('mouseenter', function () { clearTimeout(Time1); $(amazonDetail).addClass('_mshover'); $(amazonTab).addClass('_mshover'); }); $(amazonDetail).on('mouseleave', function () { $(amazonDetail).removeClass('_mshover'); $(amazonTab).removeClass('_mshover'); }); $('#amazon_dp-item-list li').on('click', function () { log('track:amazon_global:click'); }); }; var renderTopDetail = function renderTopDetail(data) { if (runed) { $('#amazon_compare').find('.top-compare-detail').show(); return; } runed = true; var html = __webpack_require__(235); var dom = template.compile(html)({ data: { product: data, imgLoad: G.imgLoad }, pages: 1 }); $('#amazon_compare').append(dom); golbal2.loadImg(0, data.length, $('#amazon-item-list li .small-img img')); log('track:amazon_global:track'); }; var times = 0; var renderInner = function renderInner(data) { var product = data[0]; if (!product) return; var html = __webpack_require__(236); var dom = $('#gwd_ht_main .ht_head'); if (dom.length === 0 && times < 15) { times++; setTimeout(function () { renderInner(data); }, 800); return; } var view = template.compile(html)({ data: product }); dom.append(view); $('#amazon_global_box').append(view).show(); log('track:amazon_global_inner:track'); $('#amazon_global').on('click', function () { log('track:amazon_global_inner:click'); }); renderInnerDetail(data); }; var renderInnerDetail = function renderInnerDetail(data) { var html = __webpack_require__(237); var dom = template.compile(html)({ data: data[0] }); // $('#gwd_ht_main .ht_content').append(dom); $('#amazon_global_box').append(dom); $('#amazon_global').on('mouseenter', function () { var dom = $('#globalInnerDetail'); if (!dom.is(':visible')) { $('.content_default').hide(); dom.show(); } }); $('#gwd_minibar').addClass('hasglobal'); $('#globalInnerDetail .content_default_left a').on('click', function () { log('track:amazon_global_inner_detail:click'); }); }; module.exports.renderTopDetail = renderTopDetail; module.exports.init = function (dp_id) { if (location.host.indexOf('amazon') === -1) return; // 暂时屏蔽中国亚马逊 以为只展示中国亚马逊的商品 if (location.host.indexOf('.cn') > -1) return; reqInfo(dp_id, render); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 61 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var data = {}; module.exports.get = function (k) { return data[k]; }; module.exports.set = function (k, v) { data[k] = v; }; /***/ }), /* 62 */, /* 63 */, /* 64 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, Vue, regeneratorRuntime) { var _this = this; var template = __webpack_require__(5); var request = __webpack_require__(2); var globalCondition = __webpack_require__(3); var userData = __webpack_require__(6); var golbal2 = __webpack_require__(14); var util = __webpack_require__(11); var miniFavor = __webpack_require__(29); var userCenter = __webpack_require__(19); var permanent = undefined, oinfo = undefined; var siteidArr = ['228', '266', '246', '229', '365', '366', '1', '238', '230']; var sitePatterns = { '228': '$', '230': '$', '238': '$', '266': '£', '246': 'EUR', '229': '¥', '365': 'EUR', '366': 'CDN$', '1': '¥' }; var showListPrice = function showListPrice(price, dp_id) { var pattern = dp_id.split('-'); var siteId = pattern[pattern.length - 1]; if (price < 0) return '暂时缺货';else { if (siteidArr.indexOf(siteId) > -1) { var ends = siteId == '229' ? '(日元)' : ''; return sitePatterns[siteId] + price.toString().replace(',', '') + ends; } else { return '¥' + price.toString().replace(',', ''); } } }; var addEvent = function addEvent() { $('#topfavor_detail').on('click', '.item_close_btn', function () { var id = $(this).attr('data-id'); delFavor(id); }); $('.favor-list a').on('click', function () { console.log($(this)); if ($(this).attr('data-id')) { delFavor($(this).attr('data-id')); return false; } if (!$(this).attr('href')) { return false; } window.open($(this).attr('href')); return false; }); }; var delFavor = function delFavor(id) { id = id.trim(); oinfo = userData.get('other_info'); // let url = `${G.c_server}/collect/aj_del?dp_id=${id}`; // request.get(url).done((data) => { userCenter['delete'](id).then(function (data) { // -1 失败 1 处理成功 100 未登录 if (data.code === 1) { if (id == oinfo.now.dp_id) { $('#topfavor_detail .topf-head .sp-col').text('收藏商品').removeClass('collected'); } $('#topfavor_detail .sp-del').show().fadeOut(3000); getFavor(renderList); } }); }; var addFavor = function addFavor(callback) { var pagedp = G.dp; var dp = oinfo.now; // dp.price = pagedp.oldPrice || oinfo['code-server'] && oinfo['code-server'].price; // dp.title = pagedp.name || $('title').html() || ''; // dp.title = dp.title.trim() // dp.url = dp.url || location.href; // dp.img = dp.img || pagedp.img; // let url = `${G.c_server}/collect/aj_add?dp_id=${dp.dp_id}&url=${encodeURIComponent(dp.url)}&img=${dp.img}&title=${encodeURIComponent(dp.title)}&price=${dp.price}&site_id=${dp.site_id}&cat_id=${pagedp.cat_id}` // request.get(url).done(data => { userCenter.add('', '').then(function (data) { if (Number(data.code) === 1 || data.error_code === '1') { getFavor(renderList); $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected'); $('#ht_favor').text('收藏成功').addClass('collected'); $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); if (data.data) { G.remindInfo = { remind_price: data.data.notifier.threshold, is_collected: data.data.id, has_remind_type: data.data.notifier.type, remind_type: data.data.notifier.type, notify_site: data.data.notifier.site }; miniFavor.setNotifyPrice(data.data.notifier.site, data.data.notifier.threshold); } // 更新本地收藏存储 // util.addFavorCheck() } else if (data.code === '2') { $('#topfavor_detail .topf-head .sp-col').text('收藏过了').addClass('collected'); $('#ht_favor').text('收藏过了').addClass('collected'); $('#gwd_mini_remind .minibar-btn-box span').text('已添加提醒'); $('#gwd_mini_remind .minibar-btn-box em').addClass('favored'); } else if (data.code === 100) { if (callback) callback(); } else {} }); }; var renderList = function renderList(data) { console.log('render list called'); if (typeof data === 'string') { data = JSON.parse(data); } var datasize = data.products.length; for (var i = 0; i < datasize; i++) { var siteId = data.products[i].dp_id.split('-')[1]; data.products[i].site_id = siteId; data.products[i].newPrice = showListPrice(data.products[i].now_price, data.products[i].dp_id); } var html = __webpack_require__(275); $('#topfavor_detail .favor-list').empty().append(template.compile(html)({ data: data.products, imgLoad: G.imgLoad, s_server: G.s_server })); $('.see-all-favor em').text(data.cnt); $('.see-all-favor').attr('href', 'https://www.gwdang.com/mine/collection'); addEvent(); golbal2.loadImg(0, datasize, $('#topfavor_detail li .item_img img')); if (!$('#topfavor_detail').hasClass('islogin')) $('#topfavor_detail').addClass('islogin'); }; var getFavor = function getFavor(callback) { userCenter.getList('default', 1, 3).then(function (res) { var data = res; if (!data.data.list) { callback({ products: [], cnt: 0 }); return; } callback({ products: data.data.list.map(function (item) { item.now_price = item.price.last; return item; }), cnt: data.data.cnt }); }); }; var userLogin = function userLogin(u, p, callback) { $.ajax({ type: "post", url: 'https://www.' + G.extName + '.com/user/aj_login', xhrFields: { withCredentials: true }, crossDomain: true, data: { email: u, password: p, t: "check", host: location.protocol + '//' + location.host }, success: function success(data) { callback(data); __webpack_require__(21).renderAgain(); } }); }; var addDetailEvent = function addDetailEvent() { var stime = undefined, isRender = undefined, setLeft = undefined; $('#topfavor_detail .topf-head span').on('click', function () { addFavor(); }); $('#topfavor_detail .login_click').on('click', function () { var username = $('#topfavor_detail .username').val(); var psd = $('#topfavor_detail .password').val(); if (!username || !psd) { $('#topfavor_detail .login_remind').show().fadeOut(5000); return; } userLogin(username, psd, function (data) { if (data === '1') { G.email = username; getFavor(renderList); } else { $('#topfavor_detail .login_remind').show().fadeOut(5000); } }); }); $('body').on('gwd-login-complete', function (e) { console.log('fired'); getFavor(renderList); }); $('#gwdang-favor').on('mouseenter', function () { if (G.userLogin && !isRender) { isRender = true; $('#topfavor_detail').addClass('islogin'); getFavor(renderList); } if (permanent.style === 'bottom') { setLeft = true; util.setSimplePagePos($('#gwdang-favor'), $('#topfavor_detail'), 279); } $('#topfavor_detail').show(); $(this).addClass('msHover'); }); $('#gwdang-favor').on('mouseleave', function () { var that = this; stime = setTimeout(function () { $('#topfavor_detail').hide(); $(that).removeClass('msHover'); }, 100); }); $('#topfavor_detail').on('mouseenter', function () { clearTimeout(stime); }); $('#topfavor_detail').on('mouseleave', function () { $('#topfavor_detail').hide(); $('#gwdang-favor').removeClass('msHover'); }); }; var renderDetail = function renderDetail(dp_id) { var hidebtn = undefined; var dom = '#gwdang_main'; var style = 'top:37px;'; if (permanent.style === 'bottom') { dom = '#bjd_bottom_detail'; style = 'bottom: 60px;right: 40px;'; } // 改商品没有抓取数据的时候 不能收藏商品 if (!dp_id || dp_id.match(/^0-\d+$/)) { hidebtn = true; } var imgHost = G.imgHost; if (G.from_device === 'firefox') { imgHost = G.localImg; } var homeU = 'https://www.gwdang.com/user/wechat_oauth/?pl=9&op=login&from_url=' + encodeURIComponent(location.href); homeU = encodeURIComponent(homeU); var wxUrl = 'https://open.weixin.qq.com/connect/qrconnect?appid=wx34006c141f9daa3a&response_type=code&scope=snsapi_login&state=2ced970d5b97680e95670a48d1102611&redirect_uri=' + homeU; var html = __webpack_require__(276); $(dom).append(template.compile(html)({ email: G.email, userLogin: G.userLogin, hidebtn: hidebtn, imgHost: imgHost, wxUrl: wxUrl, pageurl: encodeURIComponent(location.href), style: style })); var CommonLogin = __webpack_require__(35)['default']; new Vue({ el: '#gwd-login-favor', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-favor', showAlterLogin: true, alterLoginPosition: 'column' } }); } }); addDetailEvent(permanent); }; module.exports.init = function callee$0$0() { return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: permanent = userData.get('permanent'); oinfo = userData.get('other_info'); renderDetail(oinfo.now.dp_id); // if (G.email) // getFavor(renderList) // if (G.userLogin) { // await globalCondition.met('favorListAllowed') // getFavor(renderList) // } case 3: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.addFavor = addFavor; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0), __webpack_require__(15)["default"], __webpack_require__(7))) /***/ }), /* 65 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var parseprice = __webpack_require__(16); module.exports = function (data) { var newdata = []; var dp_price = G.dp.price || 0; if (G.site === '189') { for (var i = 0; i < data.length; i++) { if (parseprice(data[i].price) >= dp_price) newdata.push(data[i]); } return newdata; } else { return data; } }; module.exports.tb = function (data) { if (data instanceof Array) return data; var newdata = []; var product = data.product; var dp_price = G.dp.price || 0; for (var i = 0; i < product.length; i++) { if (product[i].img_url && !product[i].img_url.match(/_\d+x\d+/)) { product[i].img_url = product[i].img_url + '_100x100'; } if (product[i].pic_url && !product[i].pic_url.match(/_\d+x\d+/)) { product[i].pic_url = product[i].pic_url + '_100x100'; } } if (G.site === '189') { for (var i = 0; i < product.length; i++) { if (parseprice(product[i].price) >= dp_price) newdata.push(product[i]); } data.min_price = newdata[0] && newdata[0].price; data.product = newdata; } return data; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 66 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this2 = this; var detect = __webpack_require__(17); var priceParser = __webpack_require__(26); var request = __webpack_require__(2); var quanobj = { 'manjian': {}, 'zhe': {}, 'quanmanjian': {}, 'quanmeimanjian': {}, 'manzhe': {} }, promoobj = { 'manjian': {}, 'meimanjian': {}, 'manzhe': {}, 'manzhe2': {}, 'zhe': {} }; var disPrice = undefined, callbacks = undefined, disPrice2 = {}; var coudanObj = {}, xdljObj = {}, vipPromo = ""; var dingjinzhekou = { "suning": function suning() { var dj = Number($('#mainPrice dt:contains("定金") +dd .small-price').text().replace('¥', '')); var djdk = $('.deposit-info-small').text().match(/[0-9.]+/); if (djdk) djdk = Number(djdk[0]); if (dj && djdk) { return djdk - dj; } else { return 0; } }, "360buy": function buy() { var dj = $('#pingou .summary-price div.dt:contains("定")+.dd .price').text(); var djdk = $('#pingou .summary-price div.dt:contains("定")+.dd .yy-category').text().match(/[0-9.]+/); if (djdk) djdk = Number(djdk[0]); if (dj && djdk) { return djdk - dj; } else { return 0; } }, 'tmall': function tmall() { return false; } }; var sitePattern = { "360buy": function buy() { var quan = undefined, promo = undefined; if ($('#pingou .summary-price>.dt').text().replace(/\s/g, '').indexOf("定金") > -1) { return { quan: quan, promo: promo }; } var quandom = $('#summary-quan:visible'); var promodom = $('#prom-one .J-prom:visible'); if (!promodom.length) { promodom = $('#summary-promotion .J-prom:visible'); } if (quandom.length > 0) { var arrs = quandom.find('span.' + 'quan-item span.text'); quan = Array.prototype.map.call(arrs, function (e) { return { text: $(e).text(), title: $(e).parents('.quan-item').attr('title') }; }).filter(function (x) { if (x.title) { var re = new RegExp('有效期([\\d\\-: ]*)至([\\d\\-: ]*)').exec(x.title); console.log(x.title); console.log(re); if (re && re[1]) { console.log(re[1]); if (new Date(re[1]) > new Date()) { console.warn('filter early coupon', x); return false; } } } return true; }).map(function (x) { return x.text; }); console.log(quan); } if (promodom.length > 0) { var arrs = promodom.find('em.hl_red'); var arrs2 = promodom.find('em.hl_red_bg+em'); promo = Array.prototype.map.call(arrs, function (e) { var strt = $(e).prev().text(); if (strt.indexOf('跨自营/店铺满减进行中') > -1 || strt.indexOf('活动预告') > -1) return "";else { var url = $(e).parent().find('a').attr('href'); if (url) { return url + ':' + $(e).text(); } else { return $(e).text(); } } }); var promo2 = Array.prototype.map.call(arrs2, function (e) { var strt = $(e).prev().text(); if (strt.indexOf('跨自营/店铺满减进行中') > -1 || strt.indexOf('活动预告') > -1) return "";else { var url = $(e).parent().find('a').attr('href'); if (url) { return url + ':' + $(e).text(); } else { return $(e).text(); } } }); promo = promo.concat(promo2); } return { quan: quan, promo: promo }; }, "suning": function suning() { var quan = undefined, promo = undefined; var quandom = $('#freeCouponTitle .more-juan .p-quan2'); var promodom = $('.promo-list li>label:contains("满 减")+i+p'); if (quandom.length > 0) { var arrs = quandom.find('span.p-quan-white'); quan = Array.prototype.map.call(arrs, function (e) { var txt = $(e).text(); if (txt.match(/每\d+用\d+/)) { txt = txt + '最多可减' + $(e).prev().prev().text(); } return txt; }); } if (promodom.length > 0) { var arrs = promodom; promo = Array.prototype.map.call(arrs, function (e) { var txt = $(e).text(); if ($(e).children().text()) { var txt2 = $(e)[0].childNodes[0].nodeValue; if (txt2) { txt = txt2; } } return txt; }); } return { quan: quan, promo: promo }; }, 'tmall': function tmall() { var list = []; $('.tm-shopPromotion-title dd').each(function (idx, item) { list.push(item.innerText); }); return { promo: list }; }, 'dangdang': function dangdang() { var coupons = $('#coupon-list li a').toArray().map(function (item) { return item.innerText.trim(); }); return { quan: coupons, promo: $('.rule .text').toArray().map(function (item) { return item.innerText.trim(); }) }; } }; var pingxingcelue = function pingxingcelue() { var arr = ["360buy"]; if (arr.indexOf(G.site) > -1) { return true; } return false; }; var getPromoInfoNum = function getPromoInfoNum(pagePrice, arr, type) { var infoObj = promoobj; var dishead = "促: "; if (type === 'quan') { infoObj = quanobj; dishead = "券: "; } if (!disPrice) disPrice = {}; for (var j = 0; j < arr.length; j++) { var item = arr[j]; var _reg0 = /且满[¥¥]?([.\d]{2,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+)/; if (_reg0.test(item)) { continue; } var reg00 = /每(\d+)用(\d+)最多可减.?([1-9]\d+)/; if (reg00.test(item) && type === 'quan') { var qmmjobj = infoObj['quanmeimanjian']; var match = item.match(reg00); if (match[3]) { qmmjobj[match[1] + '-' + match[2] + '-' + match[3]] = dishead + item; } else { qmmjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg0 = /每满([.\d]{2,})元?.{0,3}?可?减([.\d]+)元现金(?:(?:,|,)(?:最多可减|)([.\d]+))?/; if (reg0.test(item)) { var mmjobj = infoObj['meimanjian']; var match = item.match(reg0); if (match[3]) { mmjobj[match[1] + '-' + match[2] + '-' + match[3]] = dishead + item; } else { mmjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg = /(?:[^每]|^)满[¥¥]?([.\d]{1,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+%?)元?/; var _reg = /(?:[^每]|^)满[¥¥]?([.\d]{1,})元?(?:售价)?[^件]{0,3}?可?立?减[¥¥]?([.\d]+%?)元?/g; var mjobj = infoObj['manjian']; if (reg.test(item)) { var _match = item.match(_reg); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg); mjobj[m[1] + '-' + m[2]] = dishead + _match[i].trim().replace(/^[,,;;]/, ''); } } else { var match = item.match(reg); mjobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg1 = /满([.\d]{2,})享([.\d]+)折/; var mzobj = infoObj['manzhe']; if (reg1.test(item)) { var match = item.match(reg1); mzobj[match[1] + '-' + match[2]] = dishead + item; continue; } var reg2 = /金额达到([.\d]{2,}).*?享受([.\d]+)/; if (reg2.test(item)) { var match = item.match(reg2); mjobj[match[1] + '-' + match[2]] = dishead + item; continue; } var reg3 = /([.\d]{2,})\-([.\d]+)/; if (reg3.test(item)) { var match = item.match(reg3); mjobj[match[1] + '-' + match[2]] = dishead + item; continue; } var zkobj = infoObj['zhe']; var reg4 = /满(\d+)件.{0,4}打([.\d]+)折/; var _reg4 = /满(\d+)件.{0,4}打([.\d]+)折/g; if (reg4.test(item)) { var _match = item.match(_reg4); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg4); zkobj[m[1] + '-' + m[2]] = dishead + _match[i]; } } else { var match = item.match(reg4); zkobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var reg4_1 = /满(\d+)件([.\d]+)折/; var _reg4_1 = /满(\d+)件([.\d]+)折/g; if (reg4_1.test(item)) { var _match = item.match(_reg4_1); if (_match.length > 1) { for (var i = 0; i < _match.length; i++) { var m = _match[i].match(reg4_1); zkobj[m[1] + '-' + m[2]] = dishead + _match[i]; } } else { var match = item.match(reg4_1); zkobj[match[1] + '-' + match[2]] = dishead + item; } continue; } var quanmj = infoObj['quanmanjian']; var reg5 = /满?(\d+)(?:减|用|可用|可减)(\d+)/; if (reg5.test(item)) { var match = item.match(reg5); quanmj[match[1] + '-' + match[2]] = dishead + item; continue; } var mz2Obj = infoObj['manzhe2']; var reg6 = /满(\d)件.{1,4}减最低1件商品价格/; if (reg6.test(item)) { var match = item.match(reg6); mz2Obj[match[1]] = dishead + item; continue; } } for (var pattern in infoObj) { switch (pattern) { case "manjian": for (var mjitem in infoObj[pattern]) { var mjarr = mjitem.split('-'); // 如果计算的是优惠券且到手价里有促销活动的价格数据 会在到手价的基础上进行计算 if (type === "quan" && Object.keys(disPrice).length > 0) { for (var dis in disPrice) { // 京东使用平行式门槛 // jd 不凑单条件 var jdtj = pingxingcelue() && xdljObj[dis] && Number(mjarr[0]) <= pagePrice; // jd 凑单条件 var jdcdtj = pingxingcelue() && coudanObj[dis] && coudanObj[dis]["tt1"] > Number(mjarr[0]); // 到手价满足起减点 if (jdtj || Number(mjarr[0]) <= Number(dis) && xdljObj[dis]) { var pPrice = Number(dis) - Number(mjarr[1]); if (xdljObj[dis]) xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); // 促销活动需要凑单 凑单计算优惠之后的价格大于起减点 或者平行策略 促销活动凑单之后大于优惠券起减点 } else if (coudanObj[dis] && coudanObj[dis]["tt1"] - coudanObj[dis]["tt2"] > Number(mjarr[0]) || jdcdtj) { var pPrice = undefined; if (coudanObj[dis]["type"] === "manzhe2") { // manzhe2 满多少件减一件商品价格 if (pingxingcelue()) { if (coudanObj[dis]["tt1"] >= Number(mjarr[0])) { pPrice = (coudanObj[dis]["tt1"] - Number(mjarr[1]) - pagePrice) / coudanObj[dis]["t2"]; } else { var p1 = coudanObj[dis]["tt1"] * (Number(mjarr[1]) / Number(mjarr[0])); pPrice = (coudanObj[dis]["tt1"] - pagePrice - p1) / coudanObj[dis]["t2"]; } } else { var price1 = coudanObj[dis]["t1"] > Number(mjarr[0]) ? coudanObj[dis]["t1"] : Number(mjarr[0]); pPrice = (price1 - Number(mjarr[1])) / coudanObj[dis]["t2"]; } } else if (coudanObj[dis]["type"] === "zhe") { // 满多少件打多少折 if (pingxingcelue()) { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1])) / coudanObj[dis]["t3"]; } else { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1])) / coudanObj[dis]["t3"]; } } else if (coudanObj[dis]["type"] === "manzhe") { // 满多少元打多少折 var price1 = coudanObj[dis]["t1"] - coudanObj[dis]["t2"]; pPrice = (price1 - Number(mjarr[1])) / (coudanObj[dis]["t1"] / pagePrice); } else { pPrice = (coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1])) / (coudanObj[dis]["t1"] / pagePrice); } pPrice = pPrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); // 折扣力度大于20% 或者 到手价不低于起减点90% 不管促销活动是否凑单 到优惠券计算的时候都不满足条件 都需要凑单 } else if (Number(mjarr[1]) / Number(mjarr[0]) > 0.2 || dis / Number(mjarr[0]) > 0.9 || coudanObj[dis] && (coudanObj[dis]["tt1"] - coudanObj[dis]["tt2"]) / Number(mjarr[0]) > 0.9 || pingxingcelue() && coudanObj[dis] && coudanObj[dis]["tt1"] / Number(mjarr[0]) > 0.9 || pingxingcelue() && pagePrice / Number(mjarr[0]) > 0.9) { var pPrice = undefined; if (xdljObj[dis] && xdljObj[dis]["type"] === "meimanjian") { //每满减 if (pingxingcelue()) { pPrice = xdljObj[dis]["lastp"] - Number(mjarr[1]) * (pagePrice / Number(mjarr[0])); } else { pPrice = xdljObj[dis]["lastp"] - Number(mjarr[1]) * (xdljObj[dis]["lastp"] / Number(mjarr[0])); } } else if (xdljObj) { if (pingxingcelue()) { pPrice = dis - Number(mjarr[1]) * (pagePrice / Number(mjarr[0])); } else { pPrice = dis - Number(mjarr[1]) * (dis / Number(mjarr[0])); } } else if (coudanObj[dis]["type"] === "zhe") { if (pingxingcelue()) { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[1]))) / coudanObj[dis]["t3"]; } else { pPrice = (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] * coudanObj[dis]["t4"] / Number(mjarr[1]))) / coudanObj[dis]["t3"]; } } else if (coudanObj[dis]["type"] === "manzhe") { // 满多少元打多少折 if (pingxingcelue()) { pPrice = coudanObj[dis]["t1"] * coudanObj[dis]["t3"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[0])); } else { pPrice = coudanObj[dis]["t1"] * coudanObj[dis]["t3"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] * coudanObj[dis]["t3"] / Number(mjarr[0])); } } else { if (pingxingcelue()) { pPrice = coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] / Number(mjarr[0])); } else { pPrice = coudanObj[dis]["t1"] - coudanObj[dis]["t2"] - Number(mjarr[1]) * (coudanObj[dis]["t1"] - coudanObj[dis]["t2"] / Number(mjarr[0])); } } pPrice = pPrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mjitem]]); } } // 没有促销活动只针对优惠券计算 } else if (type === "quan") { if (Number(mjarr[0]) <= pagePrice) { var pPrice = pagePrice - Number(mjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mjitem]]; } else if (Number(mjarr[1]) / Number(mjarr[0]) > 0.2 || pagePrice / Number(mjarr[0]) > 0.9) { var salePrice = pagePrice - pagePrice * Number(mjarr[1]) / Number(mjarr[0]); var pPrice = salePrice.toFixed(4); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mjitem]]; } // 促销活动计算 } else { if (Number(mjarr[0]) <= pagePrice) { if (mjarr[1].indexOf('%') > -1) { mjarr[1] = pagePrice * Number(mjarr[1].replace('%', '')) / 100; } var pPrice = pagePrice - Number(mjarr[1]); xdljObj[pPrice] = true; disPrice[pPrice] = [infoObj[pattern][mjitem]]; } else { var salePrice = pagePrice - pagePrice * Number(mjarr[1]) / Number(mjarr[0]); var pPrice = salePrice.toFixed(4); if (mjarr[1].indexOf('%') > -1) { pPrice = pagePrice - pagePrice * Number(mjarr[1].replace('%', '')) / 100; } if (coudanObj[pPrice] && typeof coudanObj[pPrice] === 'object' && coudanObj[pPrice].type === 'manjian') { if (Number(mjarr[0]) >= coudanObj[pPrice]["t1"]) { continue; } } coudanObj[pPrice] = { "type": "manjian", "tt1": Number(mjarr[0]), "tt2": Number(mjarr[1]), "t1": Number(mjarr[0]), "t2": Number(mjarr[1]) }; disPrice[pPrice] = [infoObj[pattern][mjitem]]; } } } break; case "meimanjian": for (var mmjitem in infoObj[pattern]) { var mmjarr = mmjitem.split('-'); if (Number(mmjarr[0]) <= pagePrice) { var num = parseInt(pagePrice / Number(mmjarr[0])); var disp = num * Number(mmjarr[1]); if (Number(mmjarr[2]) && Number(mmjarr[2]) < disp) disp = Number(mmjarr[2]); var pPrice = pagePrice - disp; xdljObj[pPrice] = { "type": "meimanjian", "tt1": pagePrice, "tt2": disp, "t1": Number(mmjarr[0]), "t2": Number(mmjarr[1]), "disp": disp, "lastp": pPrice }; disPrice[pPrice] = [infoObj[pattern][mmjitem]]; } else { var salePrice = pagePrice - pagePrice * Number(mmjarr[1]) / Number(mmjarr[0]); var pPrice = salePrice.toFixed(4); coudanObj[pPrice] = { "type": "meimanjian", "tt1": Number(mmjarr[0]), "tt2": Number(mmjarr[1]), "t1": Number(mmjarr[0]), "t2": Number(mmjarr[1]) }; disPrice[pPrice] = [infoObj[pattern][mmjitem]]; } } break; case "quanmeimanjian": for (var qmmjitem in infoObj[pattern]) { var qmmjarr = qmmjitem.split('-'); if (Object.keys(disPrice).length > 0) { for (var dis in disPrice) { if (coudanObj[dis]['type'] == 'zhe') { if (coudanObj[dis]['t1'] * coudanObj[dis]['t4'] >= Number(qmmjarr[0]) || pingxingcelue() && coudanObj[dis]['t1'] >= Number(qmmjarr[0])) { var nums = coudanObj[dis]['t3']; var pPrice = (coudanObj[dis]['t1'] * coudanObj[dis]['t4'] - Number(qmmjarr[0])) / nums; coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][qmmjitem]]); } } } } else { var pPrice = undefined; if (Number(qmmjarr[0]) > pagePrice) { if (Number(qmmjarr[1]) / Number(qmmjarr[0]) > 0.2) { pPrice = (Number(qmmjarr[0]) - Number(qmmjarr[1])) / (Number(qmmjarr[0]) / pagePrice); coudanObj[pPrice] = true; } } else { var nums1 = parseInt(pagePrice / Number(qmmjarr[0])); var nums2 = 99999; if (Number(qmmjarr[2])) { nums2 = parseInt(Number(qmmjarr[2]) / Number(qmmjarr[1])); } if (nums1 < nums2) { pPrice = pagePrice - nums1 * Number(qmmjarr[1]); } else { pPrice = pagePrice - nums2 * Number(qmmjarr[1]); } } if (pPrice) disPrice2[pPrice] = [infoObj[pattern][qmmjitem]]; } } break; case "zhe": for (var zheitem in infoObj[pattern]) { var zhearr = zheitem.split('-'); var point = Number(zhearr[1]) / 10; var pPrice = (pagePrice * point).toFixed(4); if (Number(zhearr[0]) > 1) { coudanObj[pPrice] = { "type": "zhe", "tt1": Number(zhearr[0]) * pagePrice, "tt2": Number(zhearr[0]), "t1": Number(zhearr[0]) * pagePrice, "t3": Number(zhearr[0]), "t4": Number(zhearr[1]) / 10, "t2": Number(zhearr[0]) * pagePrice * (1 - Number(zhearr[1]) / 10) }; } else { xdljObj[pPrice] = true; } disPrice[pPrice] = [infoObj[pattern][zheitem]]; } break; case "manzhe": for (var mzitem in infoObj[pattern]) { var mzarr = mzitem.split('-'); if (type === "quan" && Object.keys(disPrice).length > 0) { for (var dis in disPrice) { var jd1 = coudanObj[dis] && Number(mzarr[0]) <= coudanObj[dis]['tt1']; var jd2 = xdljObj[dis]; if (Number(mzarr[0]) <= Number(dis) || pingxingcelue() && (jd1 || jd2)) { var pPrice = undefined; if (pingxingcelue() && coudanObj[dis]) { var p2 = coudanObj[dis]['tt1'] - coudanObj[dis]['tt2'] - coudanObj[dis]['tt1'] * (1 - Number(mzarr[1]) / 10); pPrice = p2 / (coudanObj[dis]['tt1'] / pagePrice); } else if (pingxingcelue() && xdljObj[dis]) { pPrice = dis - pagePrice * (1 - Number(mzarr[1]) / 10); } else { pPrice = Number(dis) * (Number(mzarr[1]) / 10); } if (coudanObj[dis]) coudanObj[pPrice] = true; if (xdljObj[dis]) xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); } else if (Number(mzarr[1]) <= 8 || dis / Number(mzarr[0]) > 0.9) { var pPrice = Number(dis) * (Number(mzarr[1]) / 10); disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); coudanObj[pPrice] = true; } else if (coudanObj[dis] && Number(mzarr[0]) <= coudanObj[dis]) { var pPrice = Number(dis) * (Number(mzarr[1]) / 10); coudanObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][mzitem]]); } } } else if (type === "quan") { if (Number(mzarr[0]) <= pagePrice) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mzitem]]; } else if (Number(mzarr[1]) < 9 || pagePrice / Number(mzarr[0]) > 0.9) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][mzitem]]; } } else { if (Number(mzarr[0]) <= pagePrice) { var pPrice = pagePrice * (Number(mzarr[1]) / 10); xdljObj[pPrice] = true; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } else { var pPrice = pagePrice * (Number(mzarr[1]) / 10); coudanObj[pPrice] = { "type": "manzhe", "tt1": Number(mzarr[0]), "tt2": Number(mzarr[0]) - pPrice, "t1": Number(mzarr[0]), "t2": Number(mzarr[0]) - pPrice, "t3": Number(mzarr[1]) / 10 }; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } } } break; case "manzhe2": for (var mzitem in infoObj[pattern]) { var pPrice = pagePrice * (Number(mzitem) - 1) / Number(mzitem); coudanObj[pPrice] = { "type": "manzhe2", "tt1": pagePrice * Number(mzitem), "tt2": pagePrice, "t1": pagePrice * (Number(mzitem) - 1), "t2": Number(mzitem) }; disPrice[pPrice] = [infoObj[pattern][mzitem]]; } break; case "quanmanjian": for (var quanmjitem in infoObj[pattern]) { var quanmjarr = quanmjitem.split('-'); if (Object.keys(disPrice).length > 0) { for (var dis in disPrice) { if (Number(dis) >= Number(quanmjarr[0]) || pingxingcelue() && pagePrice >= Number(quanmjarr[0])) { var pPrice = Number(dis) - Number(quanmjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = disPrice[dis].concat([infoObj[pattern][quanmjitem]]); } } } else { if (Number(quanmjarr[0]) <= pagePrice) { var pPrice = pagePrice - Number(quanmjarr[1]); xdljObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][quanmjitem]]; } else if (Number(quanmjarr[1]) / Number(quanmjarr[0]) > 0.2) { var pPrice = (Number(quanmjarr[0]) - Number(quanmjarr[1])) / (Number(quanmjarr[0]) / pagePrice); coudanObj[pPrice] = true; disPrice2[pPrice] = [infoObj[pattern][quanmjitem]]; } } } } } }; var vipPrice = function vipPrice(price) { var PLUSDom = $('.plus-price .price'); if (PLUSDom.length === 0) { PLUSDom = $('.p-price-plus .price'); } if (G.site === '360buy' && PLUSDom.length > 0) { var price1 = PLUSDom.text().replace(/[¥¥\s]+/g, ''); price1 = price1 && Number(price1); if (price1) { price = price1; vipPromo = "PLUS会员专享价" + price1; } } return price; }; module.exports.getPrice = function (callback) { if (disPrice) callback(disPrice, coudanObj, xdljObj);else callbacks = callback; }; module.exports.reload = function (cb) { disPrice = null; module.exports.init(); cb(); }; var domRequired = { '360buy': function buy() { return $('#summary-quan').length || $('#J-summary-topcjmj').length; } }; var init2 = function init2() { var info, pagePrice, plusPrice, toSend, loginCoupon, coupon, k, promoText, globalCondition, dp_id; return regeneratorRuntime.async(function init2$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!domRequired[G.site]) { context$1$0.next = 3; break; } context$1$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__(11).waitForConditionFn(domRequired[G.site])); case 3: info = sitePattern[G.site](); pagePrice = G.dp.price; plusPrice = vipPrice(pagePrice); toSend = []; if (plusPrice !== pagePrice) { toSend.push('plus:' + plusPrice); } if (!info.promo) info.promo = []; if (!info.quan) info.quan = []; if (!(G.site === '360buy')) { context$1$0.next = 19; break; } context$1$0.next = 13; return regeneratorRuntime.awrap(__webpack_require__(291).init()); case 13: loginCoupon = context$1$0.sent; if (loginCoupon && loginCoupon.length) { info.quan = loginCoupon; } context$1$0.next = 17; return regeneratorRuntime.awrap(__webpack_require__(3).met('coupon')); case 17: coupon = context$1$0.sent; if (coupon) { info.quan.push(coupon + '元内部券'); } case 19: info.promo = __webpack_require__(11).arrayUnique(info.promo); context$1$0.prev = 20; context$1$0.next = 23; return regeneratorRuntime.awrap((function callee$1$0() { var linkData, promoLinkData, couponLinkData; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: context$2$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__(2).get('https://item-soa.jd.com/getWareBusiness?skuId=' + pageConfig.product.skuid + '&cat=' + encodeURIComponent(pageConfig.product.cat.join(',')) + '&shopId=' + pageConfig.product.shopId + '&venderId=' + pageConfig.product.venderId + '¶mJson=' + encodeURIComponent(pageConfig.product.paramJson) + '&num=1')); case 2: linkData = context$2$0.sent; promoLinkData = linkData.promotion.activity; couponLinkData = linkData.couponInfo; info.promo = info.promo.map(function (item) { promoLinkData.forEach(function (promo) { if (item.indexOf(promo.value) > -1 && (item.indexOf('.jd.com') === -1 || item.indexOf('item.jd.com/') > -1)) { if (item.indexOf(':') > -1) { item = item.split(':')[1]; } if (promo.promoId) { item = 'https://search.jd.com/Search?activity_id=' + promo.promoId + '&sku=' + pageConfig.product.skuid + ':' + item; } } }); return item; }); info.quan = info.quan.map(function (item) { couponLinkData.forEach(function (coupon) { if (item.indexOf(coupon.couponValue) > -1 && item.indexOf('.jd.com') === -1) { item = 'https://search.jd.com/Search?coupon_batch=' + coupon.couponId + '&sku=' + pageConfig.product.skuid + ':' + item; } if ((item.indexOf(coupon.quota + '元减') > -1 || item.indexOf(coupon.quota + '减') > -1) && item.indexOf('.jd.com') === -1) { item = 'https://search.jd.com/Search?coupon_batch=' + coupon.couponId + '&sku=' + pageConfig.product.skuid + ':' + item; } }); return item; }); case 7: case 'end': return context$2$0.stop(); } }, null, _this); })()); case 23: context$1$0.next = 28; break; case 25: context$1$0.prev = 25; context$1$0.t0 = context$1$0['catch'](20); console.error(context$1$0.t0); case 28: toSend = toSend.concat(info.promo.map(function (x) { return '促: ' + x.replace('http://', '//').replace('https://', '//'); })).concat(info.quan.map(function (x) { return '券: ' + x.replace('http://', '//').replace('https://', '//'); })); //if (true) { k = $('.J-prom > .prom-item > img').attr('src'); if (k && k.indexOf('6223615cd83592b5') > -1) { toSend.push('会员特权:9.5折'); } promoText = encodeURIComponent(toSend.join(';')); globalCondition = __webpack_require__(3); context$1$0.next = 35; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 35: dp_id = context$1$0.sent; request.get(G.server + '/extension/InTimePromotion?dp_id=' + dp_id + '&price=' + pagePrice + '&promo_text=' + promoText).then(function (res) { __webpack_require__(3).setMet('promoGot', res.data); __webpack_require__(3).setMet('localPromoGot', info); __webpack_require__(3).setMet('remoteUrlMap', res._map); if (callbacks) { callbacks(res.data); } }); //此处需要优先计算促销活动 再计算优惠券 // pagePrice = vipPrice(pagePrice) // if (info.promo) // getPromoInfoNum(pagePrice, info.promo, "promo") // if (info.quan) // getPromoInfoNum(pagePrice, info.quan, "quan") // for (let dis2 in disPrice2) { // disPrice[dis2] = disPrice2[dis2] // } // let dk = dingjinzhekou[G.site](); // if (dk || vipPromo) { // for (let disp in disPrice) { // let newdisp = disp - dk; // if (vipPromo) { // disPrice[disp].push(vipPromo) // } // if (Number(newdisp) !== Number(disp)) { // disPrice[newdisp] = disPrice[disp]; // } // } // } // if (callbacks) // callbacks(disPrice, coudanObj, xdljObj) case 37: case 'end': return context$1$0.stop(); } }, null, _this2, [[20, 25]]); }; module.exports.init = function () { if (['360buy', 'suning', 'tmall', 'dangdang'].indexOf(G.site) === -1) return; var instanceId = G.instanceId; var perform = function perform() { var siteName = G.site; var siteId = detect.getSiteId(siteName); priceParser.init(siteId, function (price) { if (G.instanceId && instanceId !== G.instanceId) return; if (price && price > 0) { G.dp.oldPrice = price; G.dp.price = price; } init2(); }); }; if (G.site === '360buy') { var observer; var _ret2 = (function () { if ($('.prom-item').length || $('.quan-item').length) { setTimeout(perform, 2000); return { v: undefined }; } MutationObserver = window.MutationObserver || window.WebKitMutationObserver; var runned = false; observer = new MutationObserver(function (mutations, observer) { if ($('.prom-item').length || $('.quan-item').length) { if (runned) return; runned = true; setTimeout(perform, 1000); } }); try { observer.observe(document.querySelector('.p-promotions'), { subtree: true, attributes: true }); } catch (e) { setTimeout(perform, 6000); } })(); if (typeof _ret2 === 'object') return _ret2.v; } else { setTimeout(perform, 4000); } }; // 京东plus价格参加实际计算 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0), __webpack_require__(7))) /***/ }), /* 67 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) { var _this = this; var request = __webpack_require__(2); var sendData = function sendData(data) { var toSend = __webpack_require__(82).gZip(data); toSend = String.fromCharCode.apply(null, toSend); request.post(G.server + '/extension?ac=sendSkuInfo', btoa(toSend)); }; var getMdskip = function getMdskip() { return new Promise(function (resolve) { window.TShop.onProduct(function (e) { return resolve(e.get('mdskip')); }); }); }; var getValItemInfo = function getValItemInfo() { return new Promise(function (resolve) { setTimeout(function () { window.TShop.onProduct(function (e) { return resolve(e.get('config').valItemInfo); }); }, 2000); }); }; function extract_tmall_sku_map() { var attrs_list = []; var props = document.querySelectorAll(".tb-sku > .tm-sale-prop"); var _iteratorNormalCompletion = true; var _didIteratorError = false; var _iteratorError = undefined; try { for (var _iterator = props[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) { var i = _step.value; var levelName = i.querySelector("dt").textContent; var level = { "name": levelName, "attrs": [] }; var attrs = i.querySelectorAll("ul > li"); var _iteratorNormalCompletion2 = true; var _didIteratorError2 = false; var _iteratorError2 = undefined; try { for (var _iterator2 = attrs[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) { var attr = _step2.value; var value = attr.getAttribute("data-value"); var _name = attr.querySelector("a > span").textContent; level.attrs.push({ name: _name, value: value }); } } catch (err) { _didIteratorError2 = true; _iteratorError2 = err; } finally { try { if (!_iteratorNormalCompletion2 && _iterator2['return']) { _iterator2['return'](); } } finally { if (_didIteratorError2) { throw _iteratorError2; } } } attrs_list.push(level); } } catch (err) { _didIteratorError = true; _iteratorError = err; } finally { try { if (!_iteratorNormalCompletion && _iterator['return']) { _iterator['return'](); } } finally { if (_didIteratorError) { throw _iteratorError; } } } return attrs_list; } function extract_taobao_sku_map() { var attrs_list = []; var props = document.querySelectorAll(".tb-skin > .J_Prop"); var _iteratorNormalCompletion3 = true; var _didIteratorError3 = false; var _iteratorError3 = undefined; try { for (var _iterator3 = props[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) { var i = _step3.value; var levelName = i.querySelector("dt").textContent; var level = { "name": levelName, "attrs": [] }; var attrs = i.querySelectorAll("ul > li"); var _iteratorNormalCompletion4 = true; var _didIteratorError4 = false; var _iteratorError4 = undefined; try { for (var _iterator4 = attrs[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) { var attr = _step4.value; var value = attr.getAttribute("data-value"); var _name2 = attr.querySelector("a > span").textContent; level.attrs.push({ name: _name2, value: value }); } } catch (err) { _didIteratorError4 = true; _iteratorError4 = err; } finally { try { if (!_iteratorNormalCompletion4 && _iterator4['return']) { _iterator4['return'](); } } finally { if (_didIteratorError4) { throw _iteratorError4; } } } attrs_list.push(level); } } catch (err) { _didIteratorError3 = true; _iteratorError3 = err; } finally { try { if (!_iteratorNormalCompletion3 && _iterator3['return']) { _iterator3['return'](); } } finally { if (_didIteratorError3) { throw _iteratorError3; } } } return attrs_list; } var init = function init() { var res, data; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(request.get(G.s_server + '/js/configs/common.json')); case 2: res = context$1$0.sent; if (res.sku) { context$1$0.next = 5; break; } return context$1$0.abrupt('return'); case 5: if (G.site === 'taobao') { data = { url: location.href, fp: localStorage.getItem('gwdang-fp'), dfp: localStorage.getItem('gwdang-dfp'), data: { dynStock: window.g_config.dynStock, originalPrice: window.g_config.originalPrice, promoData: window.g_config.promotion.promoData, sku: window.Hub.config.get('sku'), attrs_list: extract_taobao_sku_map() } }; sendData(data); } if (!(G.site === 'tmall')) { context$1$0.next = 20; break; } context$1$0.t0 = location.href; context$1$0.t1 = localStorage.getItem('gwdang-fp'); context$1$0.t2 = localStorage.getItem('gwdang-dfp'); context$1$0.next = 12; return regeneratorRuntime.awrap(getMdskip()); case 12: context$1$0.t3 = context$1$0.sent; context$1$0.next = 15; return regeneratorRuntime.awrap(getValItemInfo()); case 15: context$1$0.t4 = context$1$0.sent; context$1$0.t5 = extract_tmall_sku_map(); context$1$0.t6 = { mdskip: context$1$0.t3, valItemInfo: context$1$0.t4, attrs_list: context$1$0.t5 }; data = { url: context$1$0.t0, fp: context$1$0.t1, dfp: context$1$0.t2, data: context$1$0.t6 }; sendData(data); case 20: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports = { init: init, getValItemInfo: getValItemInfo }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(7))) /***/ }), /* 68 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var communicate = __webpack_require__(13); var globalData = undefined, callbacks = undefined; var buildInfo = function buildInfo() { var obj = { type: 'json', browser: 'chrome', ver: '6.1', style_show_type: null, style_ADID: null, currency: null, language: 'english', r: 0.7196959139817531, url: location.href }; var str = 'type=' + obj.type + '&browser=' + obj.browser + '&ver=' + obj.ver + '&style_show_type=undefined&style_ADID=undefined¤cy=undefined&language=' + obj.language + '&r=' + obj.r + '&url=' + encodeURIComponent(location.href); return str; }; var getPriceStatusNew = function getPriceStatusNew(data) { var price_status = 0; var price_num = data.length; var lowest = Math.min.apply(undefined, data); var price_last = data[price_num - 1]; var islowest = false; var change_range = 180; var time_length = 0; for (var i = data.length - 1; i >= 0; i--) { var now_price = data[i]; if (i > 0) { time_length += 1; } if (now_price == 0) { continue; } if (price_last == now_price) { if (time_length > 180) { break; } continue; } else if (parseFloat(price_last) > parseFloat(now_price) && i >= price_num - change_range - 1) { price_status = 1; break; } else if (parseFloat(price_last) < parseFloat(now_price)) { price_status = -1; if (price_last === lowest) islowest = true; break; } } return { price_status: price_status, islowest: islowest, price_last: price_last }; }; var renderData = function renderData(data) { var getDataFromTime = function getDataFromTime(time) { for (var i = 0; i < data.length - 1; i++) { if (time >= Number(data[i]['time_update']) * 1000 && time < Number(data[i + 1]['time_update']) * 1000) { return data[i].price; } } return data[data.length - 1].price; }; var oneHour = 3600000; var oneDay = 24 * oneHour; var lowestPrice = Number(globalData.lowest_pice.price); var highestPrice = lowestPrice; var startTime = Number(data[0].time_update) * 1000; var startD = new Date(startTime).getDate(); var startM = new Date(startTime).getMonth(); var startY = new Date(startTime).getFullYear(); var allLine = []; var now_day = new Date(); var current_price = data[data.length - 1].price; for (var i = 0; i < data.length; i++) { if (Number(data[i].price) > highestPrice) highestPrice = Number(data[i].price); } var price_range = lowestPrice + '-' + highestPrice; var start = startTime; while (start <= now_day.getTime()) { var s = getDataFromTime(start); allLine.push(parseFloat(s)); start += oneDay; } var result = getPriceStatusNew(allLine); var price_status = result.price_status; var year_line = null; if (allLine.length >= 365) { year_line = allLine.slice(allLine.length - 365); } var month_line = null; if (allLine.length >= 31) { month_line = allLine.slice(allLine.length - 31); } var short_day_line = null; if (allLine.length >= 6) { var dayline = allLine.slice(allLine.length - 6); short_day_line = []; for (var i = 0; i < dayline.length - 1; i++) { var newArr = []; for (var n = 0; n < 24; n++) { newArr.push(dayline[i]); } short_day_line = short_day_line.concat(newArr); } short_day_line.push(dayline[dayline.length - 1]); } var price_trend = { "price_status": price_status, "startD": startD, "startM": startM, "startY": startY, "now_day": now_day.getTime(), "extra": 'start from another', "store": [{ "current_price": current_price, "all_line": allLine, "all_line_begin_time": startTime + 8 * oneHour, "year_line": year_line, "year_line_time": now_day.getTime() - 365 * oneDay, "month_line": month_line, "month_line_time": now_day.getTime() - 30 * oneDay, "short_day_line": short_day_line, "short_day_line_begin_time": now_day.getTime() + 8 * oneHour - 5 * oneDay, "min_stamp": "0", "islowest": 0, "name": 'aliexpress', "price_range": price_range, "promo": [], "all_equal_short": false }] }; return price_trend; }; module.exports.init = function () { var str = buildInfo(); communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'aliexpress') { globalData = JSON.parse(data.value); if (globalData.price_tracking) { globalData.price_tracking = renderData(globalData.price_tracking); if (callbacks) callbacks(globalData.price_tracking); } } }); communicate.trigger({ type: 'aliexpress', url: 'https://plugin.aliprice.com/plugin/chrome_v07.php?' + str }); }; module.exports.getTrendData = function (callback) { if (globalData) callback(globalData);else callbacks = callback; }; /***/ }), /* 69 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var template = __webpack_require__(5); var util = __webpack_require__(11); var lowestIndex = undefined, showFold = undefined; module.exports.init = function (data, nop_data, store, img) { render(data, nop_data, store, img); }; var editData = function editData(originData, nop_data, store) { if (!originData) return undefined; var data = JSON.parse(JSON.stringify(originData)); var lowestp = store[0].lowest; var storesize = store[0].all_line.length; if (storesize > 180) { var all_line2 = store[0].all_line.slice(storesize - 180); lowestp = Math.min.apply(null, all_line2); } nop_data = nop_data || []; var datal = data.length; if (!datal) return undefined; var lowest = data[datal - 1].price, lowIndex = datal - 1; for (var i = datal - 1; i >= 0; i--) { for (var j = 0; j < nop_data.length; j++) { if (data[i].time === nop_data[j].time) { if (data[i].price === nop_data[j].price) { data[i] = JSON.parse(JSON.stringify(nop_data[j])); data[i].isDSJ = true; } else { data.splice(i + 1, 0, JSON.parse(JSON.stringify(nop_data[j]))); data[i + 1].isDSJ = true; } } } } for (var i = 0; i < data.length; i++) { if (data[i].price <= lowest) { lowest = data[i].price; lowIndex = i; } if (data[i].msg.coupon) { var str = data[i].msg.coupon; if (str.match(/\d+-\d+/)) { var arr = str.split('-'); data[i].coupon = '券: ' + '满' + arr[0] + '减' + arr[1]; } else { data[i].coupon = '券: ' + data[i].msg.coupon; } } if (data[i].msg.promotion) { data[i].promotion = '促: ' + data[i].msg.promotion; } var time = data[i].time * 1000; var month = new Date(time).getMonth() + 1; var day = new Date(time).getDate(); if (month < 10) { month = '0' + month.toString(); } if (day < 10) day = '0' + day.toString(); data[i].time2 = month + '-' + day; // data[i].price = (data[i].price / 100).toFixed(2) // data[i].ori_price = (data[i].ori_price / 100).toFixed(2) } if (lowest / 100 < lowestp) { data[lowIndex].isLowest = true; } data.sort(function (v1, v2) { return v2.time - v1.time; }); var lowIndex2 = undefined; for (var i = 0; i < data.length; i++) { if (data[i].isLowest) { lowIndex2 = i; data[i].mark = "lowest_now"; } if (!lowIndex2 && lowIndex2 !== 0) { data[i].mark = "lowest_before"; } else if (i > lowIndex2) { data[i].mark = "lowest_after"; } } lowestIndex = lowIndex2; var timestr = util.getTimeNumber(new Date().getTime(), '2'); if (timestr === data[0].time2) { data[0].isnowDay = true; } return data; }; module.exports.editData = editData; var addEvent = function addEvent() { $('.show_fold .fold-bar').on('click', function () { $('.history-content').removeClass('show_fold'); showFold = false; calLineHeight(); }); }; var render = function render(originData, nop_data, store, img) { var data = editData(originData, nop_data, store); if (data.length > 3 && lowestIndex > 1) { showFold = true; } var html = __webpack_require__(344); $('#mini_price_history_detail').append(template.compile(html)({ data: data, showFold: showFold, img: img })); addEvent(); }; var calLineHeight = function calLineHeight() { setTimeout(function () { var mH = 0; var doms = $('.history-content>ul li'); for (var i = 0; i < doms.length - 1; i++) { var h = doms.eq(i).height(); if (h > 0 && doms.eq(i).is(':visible')) { mH = mH + h + 22; } } if (showFold) { mH += 32; } $('.history-line').css('height', mH + 'px'); var firstH = $('.history-content>ul li').eq(0).outerHeight() + 26; $('.show_fold .fold-bar').css('top', firstH + 'px'); }, 10); }; module.exports.calLineHeight = calLineHeight; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) /***/ }), /* 70 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var template = __webpack_require__(5); var userData = __webpack_require__(6); var log = __webpack_require__(9); //嵌入位置设置 var sitePattern = { 'ymatou': ['.price-panel'], 'hihonor': ['.product-price'], 'amazon': ['#price_feature_div', '#unifiedPrice_feature_div'], 'vmall': ['.product-info .product-info-list', '.pro-right .pro-meta-area', '.pro-price'], 'yougou': ['#ygprice_area'], 'gome': ['.prdprice', '#bargain', '.prd-price-1'], 'vipshop': ['.pi-price-box'], '360buy': ['#summary-price', '.summary-price', '#surplus-time', '#product-intro #price'], '360buy-book': ['#summary-price'], '360buy-re': ['.shop_intro .shop_intro_a'], 'taobao': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox'], 'taobao-ju': ['.J_BuySubForm'], 'taobao-95095': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox'], 'tmall': ['.tm-fcs-panel', '#J_PromoPrice', '#J_StrPriceModBox'], '51buy': ['.xbase_item:contains("促销价")', '.xbase_item:contains("易迅价")', '#goods_detail_mate .item_icson', '.xbase_row2', '#promotePrice', '#shopprice', '#promotePriceArea'], 'suning': ['#noPrice', '#_main_price', '#existPrice', '#netPriceBox', '#hasPrice', '#mainPrice', '#priceDom'], 'dangdang': ['.price_time', '.d15_price_info', '.price_qiang', '.price_info', '.show_info .sale>p', '.sale_box:first'], 'yihaodian': ['#point_productPrice', '.price_array', '#currentPriceArea'], 'vancl': ['#pricearea .cuxiaoPrice'], 'newegg': ['.neweggPrice', '.goods_price_now'], 'kaola': ['.m-price-wrap .m-price'], 'lenovo': ['#div_product_dec', '#span_product_name'], 'microsoftstore': ['.priceAndRank'], 'bookuu': ['.bc-e5.pd-15'], 'xiaomi': ['.J_saleWrap.sale-wrap', '.pro-time.J_proSeckill', '.goods-info-head-price', '.pro-time.J_proOrder', '.price-info'], "youpin-mi": [".sku-container .price-line"], 'okbuy': ['.prodPriceLiJ .prodPrice'], 'banggo': ['.mbshop_detail_baseinfo'], 'you163': ['.price>.f-clearfix'] }; var getContainer = function getContainer() { var site = G.site; var patterns = sitePattern[site]; if (!patterns || patterns && patterns.length === 0) return; for (var i = 0; i < patterns.length; i++) { if ($(patterns[i]).length > 0) { return patterns[i]; } } return false; }; var renderMiniBar = function renderMiniBar(container) { var newTime = __webpack_require__(71).getNewTime(); if (newTime - new Date().getTime() < 300000) { newTime = false; } var href = encodeURIComponent(document.location.href); var html = __webpack_require__(360); var setUrl = G.server + '/brwext/setting?from=' + G.from_device; var feedbackUrl = 'https://www.' + G.extName + '.com/brwext/suggest?refer=' + href + '&from_device=' + G.from_device; var priceContainer = template.compile(html)({ 'setUrl': setUrl, 'aliSite': G.aliSite, 'feedbackUrl': feedbackUrl, newTime: false, minidom: G.wishdom2, wishdom: G.wishdom }); if (location.host === 'goods.kaola.com.hk') { var dom = ''; $('body').append($(dom)); var newContainer = container; container = '#kaolaHkRepair>span'; kaolaHkRepair(newContainer); } if (renderDom) { $(container).append(priceContainer); } else { $(container).eq(0).after(priceContainer); } }; var times = 0; var kaolaHkRepair = function kaolaHkRepair(dom) { if (times >= 10) { return; } times++; if ($('.m-price-wrap .m-price .currentPrice').text().match(/\d/)) { $(dom).eq(0).after($('#kaolaHkRepair>span').next()); $('#kaolaHkRepair').remove(); return; } setTimeout(function () { kaolaHkRepair(dom); }, 1000); }; var parsePrice = function parsePrice(price) { if (parseInt(price) > 999999) { return parseInt(price); } else { return price; } }; var addEvent = function addEvent() { $('.gwd-minibar-bg').on('mouseenter', '.minibar-tab', function () { $('#gwd_minibar').addClass('ms_enter'); $(this).addClass('ms-tab-enter'); var id = $(this).attr('id'); $('#' + id + '_detail').show(); if (id === "mini_price_history") { log("minitrend-show"); __webpack_require__(69).calLineHeight(); } }); $('.gwd-minibar-bg').on('mouseleave', '.minibar-tab', function () { $('#gwd_minibar').removeClass('ms_enter'); $(this).removeClass('ms-tab-enter'); $(this).removeClass('ms-tab-enter'); var id = $(this).attr('id'); $('#' + id + '_detail').hide(); }); }; module.exports.renderMiniCom = function (data) { var nowprice = undefined; try { nowprice = userData.get('other_info')['code-server'].price; } catch (e) { nowprice = G.dp.price; } if (!nowprice) nowprice = G.dp.price; if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { return; } var store = undefined; if (!data.b2c || data.b2c.length === 0) { store = []; } else { store = data.b2c.store; } var newData = []; var storeSize = store.length; //这几个网站做了新的图标 var new_icon_site_ids = [1, 103, 108, 123, 124, 126, 129, 134, 136, 14, 141, 15, 167, 168, 19, 2, 21, 25, 26, 28, 3, 31, 34, 35, 41, 6, 66, 7, 86, 93, 9]; for (var i = 0; i < store.length && i < 6; i++) { var product = store[i].product && store[i].product[0] || store[i]; var dp_id = product.dp_id || ''; var site_id = product.site_id; if (parseInt(site_id) === 3003) { site_id = 3; } var icon_format = new_icon_site_ids.indexOf(Number(site_id)) > -1 ? '.png' : '.ico'; if (!site_id) continue; product.price = parsePrice(product.price.replace(/,/g, "")); product.icourl = G.s_server + '/images/favicon/' + site_id + icon_format; newData.push(product); } var tle = '其他' + storeSize + '家报价'; var bclass = ''; if (newData.length === 0) { tle = '暂无商城比价'; bclass = 'no-com-info'; } else if (newData[0].price < Number(nowprice)) { tle = '更低价:' + newData[0].price + ''; } var t = '
\n \n ' + tle + '\n
'; $('#gwd_mini_compare').append($(t)).css("display", "block").addClass(bclass); if (newData.length > 0) { var html = __webpack_require__(361); var allLink = G.c_server + '/dp' + data.dp.dp_id; var obj = { data: newData, allLink: allLink, storeSize: storeSize }; $('#gwd_mini_compare').append(template.compile(html)(obj)); userData.set('minicom', obj); // if ($('#mini_price_history_detail').length > 0) { // renderTrendCompare(newData, storeSize, allLink) // } else { // setTimeout(function() { // renderTrendCompare(newData, storeSize, allLink) // }, 400) // } } else { $('#gwd_mini_compare').off(); } }; var renderTrendCompare = function renderTrendCompare(data, storeSize, allLink) { if (G.promoTrendRendered) { return; } var html = __webpack_require__(362); $('.app-tuiguang').remove(); $('#mini_price_history').removeClass('showapp'); $('#mini_price_history_detail').append(template.compile(html)({ data: data, allLink: allLink, storeSize: storeSize })); }; module.exports.init = function () { if (G.site == 'amazon' || G.site == '6pm') { __webpack_require__(147).init(); return; } // 获取配置信息, 看是否需要展示中间部分 var permanent = userData.get('permanent'); // if (G.forbidMinibar) return; if (permanent.setWishlist === '0' || permanent.setWishlist === 0) return; renderCon(); }; var repeatTimes = 0; var renderDom = undefined; var delaySite = []; var renderCon = function renderCon() { var container; return regeneratorRuntime.async(function renderCon$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(delaySite.indexOf(G.site) > -1)) { context$1$0.next = 3; break; } context$1$0.next = 3; return regeneratorRuntime.awrap(__webpack_require__(36).sleep(5000)); case 3: container = getContainer(); console.log('container:', container); if (container) { context$1$0.next = 14; break; } if (!renderDom) { renderDom = true; $("body").append($('" /***/ }), /* 235 */ /***/ (function(module, exports) { module.exports = "
\n \n \n
" /***/ }), /* 236 */ /***/ (function(module, exports) { module.exports = "\n 中亚海外购:\n \n {{data.price}}\n \n" /***/ }), /* 237 */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n
\n \n 自营\n
\n
\n \n 直邮\n
\n
\n \n 同款\n
\n
\n \n 会员免运费\n
\n
\n \n
\n
\n 在亚马逊中国购买,由亚马逊美国从境外发货\n 链接直达\n
\n \n
" /***/ }), /* 238 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) {var __WEBPACK_AMD_DEFINE_RESULT__;/* 新版界面的设置功能 author:CaoYuaYe(caoyuanye@139.com) time:2014-07-23 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__(1); var deviceEncode = __webpack_require__(44); var template = __webpack_require__(5); var userData = __webpack_require__(6); var util = __webpack_require__(11); // apple.com会改变字体 $('body').append('\n\n '); return { hiddenTimer: null, insertnormalView: function insertnormalView() { if (G.aliSite) return; var permanent = userData.get('permanent'); var html = __webpack_require__(239); var pageurl = encodeURIComponent(document.location.href); var settingUrl = undefined; if (!permanent.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } $('.gwd-topbar-logo').append(template.compile(html)({ settingUrl: settingUrl, fdbkUrl: G.c_server + '/brwext/suggest?refer=' + pageurl + '&from_device=' + G.from_device + '&btype=' + (G.btype ? G.btype : ''), helpUrl: G.c_server + '/app/extension?page=question', homeUrl: G.c_server + '/' })); }, insertSettingView: function insertSettingView(data) { this.insertnormalView(); this.bindEvent(); }, bindEvent: function bindEvent() { var $this = this; $("#gwd_setting_div").delegate(".gwd_setting_item", "mouseenter", function () { $(this).addClass('gwd_setting_item_hover'); }); $("#gwd_setting_div").delegate(".gwd_setting_item", "mouseleave", function () { $(this).removeClass('gwd_setting_item_hover'); }); $("#gwd_setting_div").delegate("a", "click", function () { $this.hiddenSettingDiv(); }); $("#" + G.logoName + ",.gwd_logo,.gwd-logo,.gwd-re-change-logo").bind("mouseenter", function () { if (!G.show_closeMainBar) { $('#gwd_closeMainbar').hide(); $('#gwd_setting_div').addClass('close_mainbar'); } $("#gwd_setting_div").show(); }).bind("mouseleave", function () { $this.hiddenSettingDiv(); }); $("#gwd_setting_div").bind("mouseenter", function () { clearTimeout($this.hiddenTimer); }).bind("mouseleave", function () { $this.hiddenSettingDiv(); }); $('.gwd_setting_item').on('click', function () { util.openTab(); }); }, hiddenSettingDiv: function hiddenSettingDiv() { this.hiddenTimer = setTimeout(function () { $("#gwd_setting_div").hide(); }, 300); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 239 */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n 功能设置\n
\n
\n
\n 意见反馈\n
\n
\n
\n 使用帮助\n
\n \n
" /***/ }), /* 240 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-row {\n display: flex;\n flex-direction: row;\n}\n.gwd-column {\n display: flex;\n flex-direction: column;\n}\n.gwd-align {\n align-content: center;\n align-items: center;\n}\n.gwd-jcc {\n justify-content: center;\n}\n.gwd-jic {\n justify-items: center;\n}\n.gwd-button {\n outline: none;\n border: none;\n}\n.bjg-bar-button {\n font-size: 0;\n}\n.bjg-bar-button:hover {\n background: #fffbef;\n cursor: pointer;\n}\n.bjg-bar-button:hover .bjg-window {\n display: block;\n}\n.mainbar-fold .bjg-bar-button,\n.mainbar-fold #top_coupon_btn,\n.mainbar-fold .rinfo-btn,\n.mainbar-fold .gwd-bottom-tmall {\n display: none!important;\n}\n.gwd-font12 {\n font-size: 12px;\n}\n.gwd-font14 {\n font-size: 14px;\n}\n.gwd-red {\n color: #ff3532;\n}\n.gwd-red-bg {\n background: #ff3532;\n}\n.gwd-hui333 {\n color: #333333;\n}\n.gwd-hui999 {\n color: #999999;\n}\n.gwd-font10 {\n font-size: 12px;\n transform: scale(0.8333);\n transform-origin: bottom center;\n}\n.gwd-font9 {\n font-size: 12px;\n transform: scale(0.75);\n transform-origin: bottom center;\n}\n.gwd-hoverable:hover {\n background: #edf1f2;\n}\n.right-info > * {\n border-left: 1px solid #edf1f2;\n}\n", ""]); // exports /***/ }), /* 241 */, /* 242 */, /* 243 */, /* 244 */, /* 245 */, /* 246 */ /***/ (function(module, exports) { module.exports = "
\n
\n
\n
\n
\n
\n
\n 当前价格:\n {{money}}{{lastprice}}\n
\n
\n 历史价格:\n {{money}}{{price_range}}\n
\n
\n
\n

降价提醒

\n
\n \n 全网商家低于{{money}}\n \n {{riyuan}}时提醒\n
\n
\n \n 当前商家低于{{money}}\n \n {{riyuan}}时提醒\n
\n {{if allprice && !aliSite && lowestUrl}}\n\n {{else if !aliSite && !allprice}}\n\n {{/if}}\n
\n\n\n\n\n\n\n\n\n\n\n\n\n\n {{if islogin}}提交成功{{/if}}\n {{ if islogin }}提交{{/if}}\n
\n \n

登录账户,及时获取商品降价信息提醒

\n
\n 请输入正确格式商品价格\n\n {{if islogin}}\n
\n 为了更好接收降价提醒,请您及时扫码绑定微信\n
\n \"二维码\"\n

购物党比价

\n
\n
\n {{/if}}\n
\n\n \n
" /***/ }), /* 247 */ /***/ (function(module, exports) { module.exports = "
\n
\n \n
\n
\n
\n
\n

降价提醒

\n \n
\n \n 全网商家低于\n \n {{ currency }}时提醒\n
\n
\n \n 当前商家低于\n \n {{ currency }}时提醒\n
\n {{if lowestUrl}}\n\n {{/if}}\n
\n 请输入正确的邮箱地址\n 提交\n
\n
\n 提交成功\n
\n\n
\n
\n 微信查询\n
\n \n
\n

扫码关注微信号

\n

商品降价实时提醒

\n
\n
\n \n
" /***/ }), /* 248 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___ = __webpack_require__(249); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_template_id_5efee9c0_scoped_true___["b"]; }); /***/ }), /* 249 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { class: "gwd-common-login " + _vm.position, style: "flex-direction: column" }, [ _c("div", { staticClass: "gwd-main-login" }, [ _c("img", { directives: [ { name: "show", rawName: "v-show", value: _vm.position === "gwd-favor", expression: "position === 'gwd-favor'" } ], staticStyle: { "margin-top": "49px", "margin-bottom": "50px", width: "42px", height: "42px" }, attrs: { src: __webpack_require__(250), alt: "" } }), _vm._v(" "), _c( "button", { on: { click: function($event) { return _vm.goLogin() } } }, [_vm._v("购物党账号登录")] ), _vm._v(" "), _c( "a", { attrs: { href: "https://www.gwdang.com/user/register", target: _vm.position === "gwd-popup" ? "_blank" : "" } }, [_vm._v("免费注册")] ) ]), _vm._v(" "), _c("div", { staticClass: "gwd-alter-login" }, [ _vm._m(0), _vm._v(" "), _c("div", { staticClass: "third-login" }, [ _c("span", { staticClass: "weixinlogin gwd_bg loginBox", attrs: { target: _vm.position === "gwd-popup" ? "_blank" : "" }, on: { click: function($event) { return _vm.goLink("wechat") } } }), _vm._v(" "), _c("span", { staticClass: "qqlogin gwd_bg loginBox", attrs: { target: _vm.position === "gwd-popup" ? "_blank" : "" }, on: { click: function($event) { return _vm.goLink("qq") } } }), _vm._v(" "), _c("span", { staticClass: "sinalogin gwd_bg loginBox", attrs: { target: _vm.position === "gwd-popup" ? "_blank" : "" }, on: { click: function($event) { return _vm.goLink("weibo") } } }) ]) ]) ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-vline" }, [ _c("div", { staticClass: "gwd-line-a" }), _vm._v(" "), _c("span", [_vm._v("其他登录方式")]), _vm._v(" "), _c("div", { staticClass: "gwd-line-b" }) ]) } ] render._withStripped = true /***/ }), /* 250 */, /* 251 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less___ = __webpack_require__(101); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_0_id_5efee9c0_scoped_true_lang_less____default.a); /***/ }), /* 252 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, "button[data-v-5efee9c0] {\n background: none;\n border: none;\n outline: none;\n box-sizing: border-box;\n}\nbutton[data-v-5efee9c0]:active {\n border: none;\n}\n.gwd-light-btn[data-v-5efee9c0] {\n height: 34px;\n line-height: 34px;\n min-width: 80px;\n border: 1px solid #cfd7dc;\n background: #f4f9fc;\n color: #5d93bd;\n font-size: 12px;\n border-radius: 4px;\n}\n.gwd-common-login[data-v-5efee9c0] {\n display: flex;\n line-height: initial;\n box-sizing: border-box;\n}\n.gwd-common-login .gwd-main-login[data-v-5efee9c0] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n.gwd-common-login .gwd-main-login button[data-v-5efee9c0] {\n background: #48bef3;\n color: white;\n height: 34px;\n font-size: 14px;\n font-weight: bold;\n border-radius: 4px;\n width: 100%;\n cursor: pointer;\n letter-spacing: 1px;\n box-sizing: border-box !important;\n font-family: 'Microsoft Yahei' !important;\n}\n.gwd-common-login .gwd-main-login a[data-v-5efee9c0] {\n color: #5d93b0;\n margin-top: 12px;\n font-size: 12px;\n}\n.gwd-alter-login[data-v-5efee9c0] {\n margin-top: 29px;\n display: flex;\n flex-direction: column;\n}\n.gwd-alter-login span[data-v-5efee9c0] {\n cursor: pointer;\n}\n.gwd-alter-login .gwd-vline[data-v-5efee9c0] {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n height: 12px;\n}\n.gwd-alter-login .gwd-vline div[data-v-5efee9c0] {\n flex: 1;\n height: 2px;\n background: linear-gradient(to right, #ffffff 0%, #cfd7dc 100%);\n}\n.gwd-alter-login .gwd-vline span[data-v-5efee9c0] {\n font-size: 12px;\n color: #999999;\n margin-left: 10px;\n margin-right: 10px;\n letter-spacing: 2px;\n}\n.gwd-alter-login .gwd-vline .gwd-line-b[data-v-5efee9c0] {\n transform: rotate(180deg);\n}\n.gwd-alter-login .third-login[data-v-5efee9c0] {\n margin-top: 18px;\n flex-direction: row;\n margin-left: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.gwd-alter-login .third-login span[data-v-5efee9c0] {\n margin-left: 20px;\n margin-right: 20px;\n margin-top: 0;\n}\n.third-login[data-v-5efee9c0] {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n margin-left: 34px;\n}\n.third-login span[data-v-5efee9c0] {\n width: 32px;\n height: 32px;\n display: inline-block;\n margin-top: 10px;\n margin-bottom: 10px;\n}\n.qqlogin[data-v-5efee9c0] {\n background-position: -10px -117px !important;\n}\n.sinalogin[data-v-5efee9c0] {\n background-position: -43px -117px !important;\n}\n.weixinlogin[data-v-5efee9c0] {\n background-position: -77px -117px !important;\n}\n.loginBox[data-v-5efee9c0] {\n background-image: url(https://cdn.gwdang.com/images/extensions/xbt/newbar-top3.png) !important;\n}\n", ""]); // exports /***/ }), /* 253 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor___ = __webpack_require__(102); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_1_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_favor____default.a); /***/ }), /* 254 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-common-login.gwd-favor[data-v-5efee9c0] {\n box-sizing: border-box !important;\n align-items: center;\n}\n.gwd-common-login.gwd-favor .gwd-main-login[data-v-5efee9c0] {\n box-sizing: border-box;\n width: 240px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods[data-v-5efee9c0] {\n padding-left: 8px;\n padding-right: 8px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods button[data-v-5efee9c0] {\n font-size: 14px;\n color: #333333;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-methods .gwd-login-active[data-v-5efee9c0] {\n font-weight: bold;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main[data-v-5efee9c0] {\n width: 240px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main input[data-v-5efee9c0] {\n box-sizing: border-box !important;\n height: 32px;\n line-height: 32px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main button[data-v-5efee9c0] {\n box-sizing: border-box !important;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main .gwd-light-btn[data-v-5efee9c0] {\n height: 32px;\n line-height: 30px;\n}\n.gwd-common-login.gwd-favor .gwd-main-login .gwd-login-main .bottom-line[data-v-5efee9c0] {\n width: 240px;\n align-items: center;\n justify-content: center;\n}\n.gwd-common-login.gwd-favor .gwd-main-login button[data-v-5efee9c0] {\n width: 220px;\n}\n.gwd-common-login.gwd-favor .gwd-alter-login[data-v-5efee9c0] {\n margin-top: 54px;\n}\n", ""]); // exports /***/ }), /* 255 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind___ = __webpack_require__(103); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_2_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_remind____default.a); /***/ }), /* 256 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-common-login.gwd-remind[data-v-5efee9c0] {\n box-sizing: border-box !important;\n align-items: center;\n}\n.gwd-common-login.gwd-remind .gwd-main-login[data-v-5efee9c0] {\n /*padding-left: 18px;*/\n box-sizing: border-box;\n width: 200px;\n}\n", ""]); // exports /***/ }), /* 257 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini___ = __webpack_require__(104); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_3_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_mini____default.a); /***/ }), /* 258 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-common-login.gwd-mini .gwd-main-login[data-v-5efee9c0] {\n box-sizing: border-box;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods[data-v-5efee9c0] {\n padding-left: 21px;\n padding-right: 21px;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods button[data-v-5efee9c0] {\n font-size: 12px;\n color: #666666;\n}\n.gwd-common-login.gwd-mini .gwd-main-login .gwd-login-methods .gwd-login-active[data-v-5efee9c0] {\n color: #333333;\n}\n.gwd-common-login.gwd-mini .gwd-main-login button[data-v-5efee9c0] {\n width: 340px;\n}\n", ""]); // exports /***/ }), /* 259 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup___ = __webpack_require__(105); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_style_index_4_id_5efee9c0_scoped_true_lang_less_data_class_type_gwd_popup____default.a); /***/ }), /* 260 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-common-login.gwd-popup[data-v-5efee9c0] {\n box-sizing: border-box !important;\n align-items: center;\n}\n.gwd-common-login.gwd-popup .gwd-main-login[data-v-5efee9c0] {\n /*padding-left: 18px;*/\n box-sizing: border-box;\n width: 280px;\n}\n", ""]); // exports /***/ }), /* 261 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___ = __webpack_require__(262); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___ = __webpack_require__(107); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___ = __webpack_require__(264); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["b" /* staticRenderFns */], false, null, "4148f062", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4148f062')) { api.createRecord('4148f062', component.options) } else { api.reload('4148f062', component.options) } module.hot.accept("./QRLinkContactTmall.vue?vue&type=template&id=4148f062&scoped=true&", function () { api.rerender('4148f062', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkContactTmall.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 262 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___ = __webpack_require__(263); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_template_id_4148f062_scoped_true___["b"]; }); /***/ }), /* 263 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-contact-link", on: { mouseover: _vm.over } }, [ _vm._v("\n 扫码联系客服\n "), _vm.qr ? _c( "div", { staticClass: "gwd-app-qr-content gwd-column gwd-align" }, [ _c( "div", { staticClass: "gwd-qr-img", style: "margin-top: 7px; margin-left: 7px; margin-right: 7px; height: 111.04px; position: relative; width: 111.04px;" }, [ _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__(63), alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align gwd-qr-bottom-line", style: "margin-top: 6px;" }, [ _c( "span", { staticClass: "bold", style: "font-size: 20px;" }, [_vm._v("淘宝APP")] ), _vm._v(" "), _c( "span", { staticClass: "normal", style: "font-size: 18px" }, [_vm._v("扫码")] ), _vm._v(" "), _c( "span", { staticClass: "normal", staticStyle: { "margin-left": "10px" } }, [_vm._v("联系客服")] ) ] ) ] ) : _vm._e() ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /* 264 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___ = __webpack_require__(110); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContactTmall_vue_vue_type_style_index_0_id_4148f062_scoped_true_lang_less____default.a); /***/ }), /* 265 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-qr-bottom-line[data-v-4148f062] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n height: 20px;\n line-height: 20px;\n}\n.gwd-qr-bottom-line span.bold[data-v-4148f062] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-4148f062] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-4148f062] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-contact-link[data-v-4148f062] {\n margin-left: 7px;\n top: -3px;\n display: inline-block;\n font-size: 12px;\n color: #333333;\n text-decoration: underline;\n cursor: pointer;\n position: relative;\n z-index: 999999;\n}\n.gwd-contact-link .gwd-app-qr-content[data-v-4148f062] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -38px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-contact-link:hover .gwd-app-qr-content[data-v-4148f062] {\n visibility: visible;\n}\n", ""]); // exports /***/ }), /* 266 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___ = __webpack_require__(267); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["b"]; }); /***/ }), /* 267 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-qrlink", staticStyle: { "font-family": "'microsoft yahei'" } }, [ _c("div", { staticStyle: { clear: "both" } }), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align", class: "site-" + _vm.site }, [ _c( "div", { staticClass: "gwd-app-button gwd-row gwd-align", class: _vm.mode, on: { mouseover: _vm.over } }, [ _vm.site !== "360buy" ? _c("img", { staticStyle: { width: "17px", height: "17px" }, attrs: { src: __webpack_require__(268), alt: "" } }) : _vm._e(), _vm._v(" "), _vm.site === "360buy" ? _c("img", { staticStyle: { width: "17px", height: "17px" }, attrs: { src: __webpack_require__(269), alt: "" } }) : _vm._e(), _vm._v(" "), _c("span", { style: _vm.mode ? "font-size: 18px;" : "" }, [ _vm._v( "用" + _vm._s(_vm.site === "360buy" ? "京东" : "淘宝") + "APP浏览" ) ]), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "gwd-app-qr-content gwd-column gwd-align" }, [ _c( "div", { staticClass: "gwd-qr-img", style: "margin-top: 7px; margin-left: 7px; margin-right: 7px; height: " + (_vm.mode ? 168 : 111.04) + "px; position: relative; " + (_vm.mode ? "width: 168px;" : "") }, [ !_vm.mode && _vm.site !== "360buy" ? _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__(63), alt: "" } }) : _vm._e(), _vm._v(" "), !_vm.mode && _vm.site === "360buy" ? _c("img", { staticClass: "gwd-qr-logo", attrs: { src: __webpack_require__(270), alt: "" } }) : _vm._e(), _vm._v(" "), _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }) ] ), _vm._v(" "), _c( "div", { staticClass: "gwd-row gwd-align gwd-qr-bottom-line", style: _vm.mode ? "margin-top: 8px;" : "" }, [ _c( "span", { staticClass: "bold", style: _vm.mode ? "font-size: 32px;" : "" }, [ _vm._v( _vm._s( _vm.site === "360buy" ? "京东" : "淘宝" ) + "APP" ) ] ), _vm._v(" "), _c( "span", { staticClass: "normal", style: _vm.mode ? "font-size: 30px" : "font-size: 22px" }, [ _vm._v( _vm._s(_vm.mode ? " " : "") + "扫码" + _vm._s(_vm.mode ? "直接领券" : "") ) ] ), _vm._v(" "), !_vm.mode ? _c("span", { staticClass: "normal" }, [ _vm._v(" 查看商品") ]) : _vm._e() ] ) ] ) : _vm._e() ] ), _vm._v(" "), !_vm.mode ? _c("span", { staticClass: "gwd-qr-hint" }, [ _vm._v( "在" + _vm._s(_vm.site === "360buy" ? "京东APP" : "手淘") + "内" + _vm._s(_vm.site === "360buy" ? "浏览该商品" : "联系客服") ) ]) : _vm._e() ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /* 268 */, /* 269 */, /* 270 */, /* 271 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css___ = __webpack_require__(114); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_0_lang_css____default.a); /***/ }), /* 272 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, "\n#page #content #bd {\n z-index: 0!important;\n}\n", ""]); // exports /***/ }), /* 273 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___ = __webpack_require__(115); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less____default.a); /***/ }), /* 274 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-qr-bottom-line[data-v-673c66fa] {\n transform: scale(0.5);\n transform-origin: top center;\n white-space: nowrap;\n}\n.gwd-qr-bottom-line span.bold[data-v-673c66fa] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-673c66fa] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-673c66fa] {\n position: absolute;\n left: 50%;\n top: 50%;\n width: 20px;\n height: 20px;\n margin-left: -10px;\n margin-top: -10px;\n}\n.gwd-app-button[data-v-673c66fa] {\n width: 123px;\n height: 26px;\n background: #FFF3ED;\n border-radius: 2px;\n border: 1px solid #FF9851;\n line-height: 26px;\n text-align: center;\n font-size: 0;\n justify-content: center;\n position: relative;\n cursor: pointer;\n}\n.gwd-app-button span[data-v-673c66fa] {\n font-size: 12px;\n color: #ee6701;\n margin-left: 4px;\n}\n.gwd-app-button .gwd-app-qr-content[data-v-673c66fa] {\n position: absolute;\n width: 123px;\n height: 137px;\n background: #FFF3ED;\n border-radius: 0px 0px 2px 2px;\n border: 1px solid #FF9851;\n top: 24px;\n left: -1px;\n visibility: hidden;\n z-index: 999;\n}\n.gwd-app-button:hover .gwd-app-qr-content[data-v-673c66fa] {\n visibility: visible;\n}\n.gwd-app-button.gwd-mode-login[data-v-673c66fa] {\n position: absolute;\n left: 50%;\n margin-left: -93px;\n bottom: 306px;\n background: none!important;\n border: none!important;\n width: 186px;\n}\n.gwd-app-button.gwd-mode-login .gwd-app-qr-content[data-v-673c66fa] {\n width: 186px;\n height: 212px;\n background: none!important;\n border: none!important;\n top: 35px;\n visibility: visible;\n}\n.gwd-app-button.gwd-mode-login .gwd-app-qr-content .gwd-qr-img[data-v-673c66fa] {\n margin: 0;\n padding: 7px;\n border: 1px solid #d4d4d4;\n}\n.site-tmall .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-tmall .gwd-app-button[data-v-673c66fa] {\n margin-left: 40px;\n}\n.site-taobao .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-360buy[data-v-673c66fa] {\n margin-top: 15px;\n}\n.site-360buy .gwd-qr-img[data-v-673c66fa] {\n margin-bottom: 4px;\n}\n.site-360buy .gwd-app-button[data-v-673c66fa] {\n background: #FFEDED;\n border: 1px solid #FF3220;\n}\n.site-360buy .gwd-app-button span[data-v-673c66fa] {\n color: #ff3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content[data-v-673c66fa] {\n background: #FFEDED;\n border: 1px solid #FF3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content .gwd-qr-bottom-line .bold[data-v-673c66fa] {\n color: #ff3220;\n}\n.site-360buy .gwd-app-button .gwd-app-qr-content .gwd-qr-bottom-line .normal[data-v-673c66fa] {\n color: #070707;\n}\n.gwd-qr-hint[data-v-673c66fa] {\n font-size: 12px;\n color: #7d7e80;\n margin-left: 11px;\n font-family: 'microsoft yahei';\n}\n", ""]); // exports /***/ }), /* 275 */ /***/ (function(module, exports) { module.exports = "{{each data}}\n
  • \n \n \n \n
    \n {{$value.title}}\n \n \n {{$value.newPrice}}\n 删除\n \n
    \n
  • \n{{/each}}\n" /***/ }), /* 276 */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    收藏并降价提醒
    \n 删除成功\n {{if !hidebtn}}\n 收藏商品\n {{/if}}\n
    \n
    \n
    \n
    \n
    \n
    \n
      \n \n
    \n 查看全部()\n
    \n
    \n\n \n
    " /***/ }), /* 277 */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n {{promo_site}}促销活动\n {{if !new_extension}}\n 查看全部>\n {{/if}}\n
    \n
    \n {{each promos}}\n \n \n {{#$value.title}}\n \n {{/each}}\n
    \n
    \n {{if !new_extension}}\n
    \n
    \n {{quan_site}}优惠券\n {{if !new_extension}}\n 查看全部>\n {{/if}}\n
    \n
    \n {{each quans}}\n \n \n {{#$value.title}}\n \n {{/each}}\n
    \n
    \n {{/if }}\n
    \n
    \n \n
    " /***/ }), /* 278 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var request = __webpack_require__(2); var hasRequest = undefined, globalRes = undefined, hasResponse = undefined, callbacks = []; var getAd = function getAd(obj, callback) { obj = obj || {}; var keyword = obj.keyword || ''; var class_id = obj.class_id || ''; var url = location.protocol + '//a.' + G.extName + '.com/cgi/get?category=' + class_id + '&keyword=' + encodeURIComponent(keyword) + '&locate=' + encodeURIComponent(location.href); request.get(url).done(function (data) { if (data && (data.ad.length > 0 || data.promo.length > 0)) { data = editdata(data); callback(data); globalRes = data; if (callbacks.length > 0) { for (var i = 0; i < callbacks.length; i++) { callbacks[i](data); } } hasResponse = true; } }); hasRequest = true; }; var editdata = function editdata(data) { if (data.ad.length > 0) { for (var i = 0; i < data.ad.length; i++) { if (data.ad[i].freight == '1') data.ad[i].freighttle = "包邮"; if (data.ad[i].discount == '0') data.ad[i].discount = (data.ad[i].dp_price / data.ad[i].ori_price * 10).toFixed(1); data.ad[i].dp_price = (Number(data.ad[i].dp_price) / 100).toFixed(2); data.ad[i].ori_price = (Number(data.ad[i].ori_price) / 100).toFixed(2); } } return data; }; module.exports.init = function (obj, callback) { if (!callback) return;else callback(); return; if (globalRes) { callback(globalRes); return; } else if (hasRequest) { callbacks.push(callback); } else { getAd(obj, callback); } setTimeout(function () { if (!hasResponse) { if (callback) callback(); if (callbacks) for (var i = 0; i < callbacks.length; i++) { callbacks[i](); } } }, 4000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 279 */ /***/ (function(module, exports) { module.exports = "
    \n \n \n \n {{item.title}}\n {{item.brand}}\n {{if item.platform}} {{item.platform + \" \"}} {{/if}}{{item.store_name}}\n 热卖\n \n
    " /***/ }), /* 280 */ /***/ (function(module, exports) { module.exports = "
    \n {{site_k}}\n \n
    \n\n\n \n\n
    \n {{site_k2}}\n 京东\n 苏宁\n 亚马逊\n 当当\n 一号店\n 国美\n 购物党\n \n
    " /***/ }), /* 281 */ /***/ (function(module, exports) { module.exports = "
    \n {{site_k}}\n \n
    \n\n\n \n\n
    \n {{site_k2}}\n 京东\n 苏宁\n 亚马逊\n 当当\n 一号店\n 国美\n 购物党\n \n
    " /***/ }), /* 282 */ /***/ (function(module, exports) { module.exports = " \n " /***/ }), /* 283 */ /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n \n 好评\n
    \n
    \n \n 差评\n
    \n
    \n
    \n
    \n {{each data.good}}\n {{$value.label}}({{$value.num}})\n {{/each}}\n
    \n
    \n {{each data.bad}}\n {{$value.label}}({{$value.num}})\n {{/each}}\n
    \n
    \n \n 暂无评论\n
    \n
    \n \n
    " /***/ }), /* 284 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var exports = {}; var globalData, hasCallback, callbacks; var request = __webpack_require__(2); var yixunImg = __webpack_require__(285); exports.get = function (callback) { request.get(G.server + '/brwext/history?op=get').done(function (data) { data = yixunImg(data.result); data = filtPrice(data); globalData = data; if (callback) callback(data); if (callbacks && !hasCallback) { callbacks(data); hasCallback = true; } }); }; var filtPrice = function filtPrice(data) { var newdata = []; for (var i = 0; i < data.length; i++) { var price = Number(data[i].price); if (!data[i].url || !data[i].title) continue; if (price && price > 0) { newdata.push(data[i]); } } return newdata; }; exports.add = function (dp_id, callback) { request.get(G.server + '/brwext/history?op=add&dp_id=' + dp_id).done(function (data) { if (callback) callback(data); }); }; exports.delAll = function (callback) { request.get(G.server + '/brwext/history?op=delAll').done(function (data) { callback(); }); }; exports.del = function (dp_id, callback) { request.get(G.server + '/brwext/history?op=del&dp_id=' + dp_id).done(function (data) { if (callback) callback(); }); }; exports.getSize = function (callback) { if (globalData) { callback(globalData); hasCallback = true; } else callbacks = callback; setTimeout(function () { if (!hasCallback) { callbacks(null); hasCallback = true; } }, 14000); }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 285 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function (data) { var siteIdArr = ['15', '94', '108', '196', '32', '234', '273', '290', '292', '367', '373', '377']; var img_server = G.crc64 ? G.img64_server : G.img_server; if (!data || !data.length) return []; for (var i = 0; i < data.length; i++) { var d = data[i]; var dp_id = d.dp_id; if (!dp_id) continue; var siteId = dp_id.match(/\d+-(\d+)/) && dp_id.match(/\d+-(\d+)/)[1]; if (!siteId) continue; for (var j = 0; j < siteIdArr.length; j++) { if (siteId === siteIdArr[j]) { if (data[i].pic_url) data[i].pic_url = img_server + '/c_zoom,h_90/dp' + d.dp_id;else data[i].img_url = img_server + '/c_zoom,h_90/dp' + d.dp_id; } } } return data; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 286 */ /***/ (function(module, exports) { module.exports = "
    \n
    \n 浏览历史\n {{if his_size != 0}}\n 清空历史\n {{/if}}\n
    \n
    \n \n
    暂无浏览历史
    \n
    \n \n
    " /***/ }), /* 287 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 从底部版移植过来的底部版的天猫淘宝,原来的chrome_old没有独立的顶部版的天猫淘宝模块 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__(1); var request = __webpack_require__(2); var specialFilter = __webpack_require__(65); var showTaobaoProducts = __webpack_require__(288); return { /** * taobao 比价模块 * 目前仅包括底部版样式 * @author:mllong(mllong0925@gmail.com) * @since:2013-10-22 * @version:1.0.0 */ //初始化,根据数据的类型确定展示什么样式 init: function init(data, style) { if (G.saveTbResData != null) { this.renderTaobaoUI(G.saveTbResData); return; } var code_server = '1'; var code = data['code-server']; var msg = data.exact_arr; var price = data.now.price * 100; if (!price) { price = G.dp.price * 100; } if (!code) { code = {}; code_server = '0'; } var sitearr = ['amazon', '6pm', 'ebay']; if (sitearr.indexOf(G.site) > -1) { price = G.dp.price * 100; } /*日亚 美亚 德亚 在没有品牌的情况下 不请求淘宝客*/ if (G.site == 'amazon' && !msg.brand && data.now.site_id !== '1') return; var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + code.code + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server; request.get(url).done(function (mm) { if (G.site == 'taobao' || G.site == 'tmall') { showTaobaoProducts.getUniqPid(mm, function (mm) { G.saveTbResData = mm; // $this.renderTaobaoUI(mm); __webpack_require__(43).renderBt(mm); }); } else { showTaobaoProducts.getImgSearch(mm, function (mm) { G.saveTbResData = mm; // $this.renderTaobaoUI(mm); __webpack_require__(43).renderBt(mm); }); } }); }, //渲染请求淘宝接口后的界面 renderTaobaoUI: function renderTaobaoUI(mm) { var $this = this; var perPageMaxNumber = G.getFixedShowProductNum(); $this.showBottomView("tmall", mm); $this.showBottomView("taobao", mm); G.setPageArgs(G.extBrand + '-compare-tmall', perPageMaxNumber); G.setPageArgs(G.extBrand + '-compare-taobao', perPageMaxNumber); $this.setBottomViewOffset(); //重新适应宽度 G.autoFixWidth(); if (mm.search.keywords == '' && G.dp.isbn != '') { $('.' + G.extBrand + '-search-input').val(G.dp.isbn); } if (mm.search.keywords != '') { $('.' + G.extBrand + '-search-input').val(mm.search.keywords); } if (G.site === 'vipshop') { $('.' + G.extBrand + '-search-input').val(G.dp.cat_name); } $(window).bind("reDrawTaobaoBanner", function () { var perPageMaxNumber = G.getFixedShowProductNum(); $this.showBottomView("tmall", mm); $this.showBottomView("taobao", mm); G.setPageArgs(G.extBrand + '-compare-tmall', perPageMaxNumber); G.setPageArgs(G.extBrand + '-compare-taobao', perPageMaxNumber); $this.setBottomViewOffset(); }); //淘宝天猫异步加载太慢,有可能还没加载出来,所以再这里再屏蔽一次 if (G.p_fold == 1) { $('.' + G.extBrand + '-close-module').hide(); } }, showBottomView: function showBottomView(subsite, data) { var perPageMaxNumber = G.getFixedShowProductNum(); var site_name = ""; if (subsite == 'tmall') { site_name = '天猫商城'; } else if (subsite == 'taobao') { site_name = '淘宝网'; } if (data.site) { site_name = "同类热卖"; } if (data[subsite] && data[subsite].min_price) { if (data[subsite].product.length > 0) { var store = specialFilter.tb(data[subsite]); if (store instanceof Array) return; if (store.product.length === 0) return; var dp = store.product[0]; var len = parseInt(store.product.length); var pages = len % perPageMaxNumber == 0 ? parseInt(len / perPageMaxNumber) : parseInt(len / perPageMaxNumber) + 1; var li = $('
  • '); li.append($('', { 'class': G.extBrand + '-compare-item', 'href': dp.url, 'target': "_blank" }).append($('

    ', { 'style': "height:10px;display:none;", 'class': G.extBrand + '-iszwf' }).html(' ')).append($('

    ', { 'class': G.extBrand + '-price' }).html("¥" + store.min_price + (store.max_price != store.min_price ? "~" + store.max_price : ""))).append($('

    ', { 'class': G.extBrand + '-store' }).text(site_name)).append($('

    ', { 'style': "height:10px;display:none;", 'class': G.extBrand + '-iszwf' }).html(' '))); var detail = $('

    ', { 'class': G.extBrand + '-compare-item-detail re-' + G.extBrand + '-compare-item-detail ' + G.extBrand + '-compare-item-detail-fixed', 'style': 'display:none;' }); detail.append($('

    ', { 'class': G.extBrand + '-compare-item-detail-title ' + G.extBrand + '-height-auto ' + G.extBrand + '-compare-item-detail-title-fixed' }).append($('', { 'class': G.extBrand + '-compare-item-detail-title-desc' }).text(site_name + ':不同卖家运费不同'))); var itemList = $('

      ', { 'class': G.extBrand + '-item-list' }); for (var k = 0; k < len; k++) { var item = store.product[k]; itemList.append($('
    • ', { 'class': G.extBrand + '-list-item ' + (k % perPageMaxNumber == perPageMaxNumber - 1 || k == len - 1 ? G.extBrand + '-last' : ""), 'style': "display: " + (k >= perPageMaxNumber ? "none" : "block") }).append($('', { 'class': G.extBrand + '-pic', 'href': item.url, 'target': "_blank" }).append($('', { 'src': G.s_server + "/images/dp_default.jpg", 'data-original': item.pic_url, 'title': item.title }))).append($('', { 'class': G.extBrand + '-product-title', 'href': item.url, 'target': "_blank", 'title': item.title }).text(item.title)).append($('', { 'class': G.extBrand + '-price', 'href': item.url, 'target': "_blank" }).html('¥' + item.price))); } var tb_tm_PageView = $('
      ', { 'class': G.extBrand + '-tb-tm-PageView ' + G.extBrand + '-b2c-PageView-fixed' }); tb_tm_PageView.append($('

      ', { 'class': G.extBrand + '-compare-item-detail-title', 'style': 'height:auto;' }).append($('', { 'style': 'float:none;padding-left:10px;', 'class': G.extBrand + '-compare-item-detail-pages' }).append($('', { 'id': 'page-now-' + subsite, 'class': 'page-now' }).text('1')).append('/').append($('', { 'id': 'page-total-' + subsite, 'class': 'page-total' }).text('1')))); detail.append($("

      ", { 'class': G.extBrand + '-compare-prev-page ' + G.extBrand + '-left' }).append($('
      ', { 'class': G.extBrand + '-bg page-arrow' }))).append(itemList).append($("
      ", { 'class': G.extBrand + '-compare-next-page ' + G.extBrand + '-right' }).append($('
      ', { 'class': G.extBrand + '-bg page-arrow' }))).append(tb_tm_PageView); li.append(detail); $('#' + G.extBrand + '-compare-' + subsite).html("").append(li); if (pages == 1) { li.find('.' + G.extBrand + '-compare-prev-page').hide(); li.find('.' + G.extBrand + '-compare-next-page').hide(); li.find('.' + G.extBrand + '-b2c-PageView-fixed').hide(); li.attr("pages", 1); li.attr("len", len); var bannerWidth = len * 200; li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('width', bannerWidth + 2); } else { //contains border li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('width', G.width - 2); } $('#page-total-' + subsite).text(pages); } $('#' + G.extBrand + '-compare-' + subsite).css("display", "block"); } //添加 noreferrer $('#' + G.extBrand + '-compare-tmall,#' + G.extBrand + '-compare-taobao').each(function () { $(this).find('a.' + G.extBrand + '-compare-item,a.' + G.extBrand + '-pic,a.' + G.extBrand + '-product-title,a.' + G.extBrand + '-price').each(function () { $(this).attr('rel', 'noreferrer').attr('href', $(this).attr('href') + G.ut); }); }); }, setBottomViewOffset: function setBottomViewOffset() { $('#' + G.extBrand + '-compare-tmall li,#' + G.extBrand + '-compare-taobao li').each(function () { var menu_li = $(this); if (menu_li.attr("pages") == '1') { //尽量根据菜单的位置居中,实在不能居中的,就靠右 var menu_li_left = menu_li.offset().left; var menu_li_width = menu_li.width(); var bannerWidth = parseInt(menu_li.attr("len")) * 200; var target_left = menu_li_left - (bannerWidth / 2 - menu_li_width / 2); if (target_left < 0) { target_left = 0; } var remainWidth = G.width - target_left; if (G.IE6) { target_left = menu_li_width / 2 - bannerWidth / 2; if (target_left + menu_li_left < 0) { target_left = -menu_li_left; } menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('position', 'absolute').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', 0); } else { if (bannerWidth < remainWidth) { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', target_left); } else { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', G.width - bannerWidth); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', G.width - bannerWidth); } } } else { //非ie版本的压根不需要调整,这里的ie6版本需要进行调整。 if (G.IE6) { var menu_li_left = menu_li.offset().left; var target_left = 0 - menu_li_left; menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('position', 'absolute').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', 0); } } }); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 288 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__(2); var template = __webpack_require__(5); var specialFilter = __webpack_require__(65); var calWidth = __webpack_require__(27); var replaceHref = __webpack_require__(289); module.exports.init = function (data) { if (G.save_tbres_data != null) { this.renderTbres(G.save_tbres_data); return; } var $this = this; var code_server = '1'; var msg = data.exact_arr; var code = data['code-server']; var price = data.now.price * 100; if (!price) { price = G.dp.price * 100; } if (!code) { code = {}; code_server = '0'; } var sitearr = ['amazon', '6pm', 'ebay']; if (sitearr.indexOf(G.site) > -1) { price = G.dp.price * 100; } /*日亚 美亚 德亚 在没有品牌的情况下 不请求淘宝客*/ if (G.site == 'amazon' && !msg.brand && data.now.site_id !== '1') return; G.dp.min_price = parseInt(G.dp.min_price * 100); G.dp.max_price = parseInt(G.dp.max_price * 100); var url = G.server + '/brwext/tbres?union=' + G.union + '&url=' + encodeURIComponent(msg.url) + '&site=' + msg.site + '&isbn=' + msg.isbn + '&keywords=' + encodeURIComponent(msg.keywords) + '&brand=' + encodeURIComponent(msg.brand) + '&type=' + encodeURIComponent(msg.type) + '&price=' + price + '&class_id=' + msg.class_id + '&name=' + encodeURIComponent(G.dp.name) + '&code_brand_id=' + code.brand_id + '&code_clean_title=' + encodeURIComponent(code.clean_title) + '&code_code=' + encodeURIComponent(code.code) + '&code_display_brand=' + encodeURIComponent(code.display_brand) + '&code_brand=' + encodeURIComponent(code.brand) + '&code_class_id=' + encodeURIComponent(code.class_id) + '&code_price=' + encodeURIComponent(code.price) + '&code_spec=' + encodeURIComponent(code.spec) + '&code-server=' + code_server; request.get(url).done(function (mm) { if (G.site == 'taobao' || G.site == 'tmall' || G.site == 'ai-taobao') { $this.getUniqPid(mm, function (mm) { G.save_tbres_data = mm; $this.renderTbres(mm); }); } else { $this.getImgSearch(mm, function (mm) { G.save_tbres_data = mm; $this.renderTbres(mm); }); } }).fail(function () { if (G.style == 'right') { $('#plt-tmall-block').hide(); $('#plt-taobao-block').hide(); } }); }; module.exports.renderTbres = function (mm) { __webpack_require__(33).init(mm.tmall.product, 'tmall'); __webpack_require__(33).init(mm.taobao.product, 'taobao'); mm.tmall = specialFilter.tb(mm.tmall); mm.taobao = specialFilter.tb(mm.taobao); if (G.style == 'top') { this.show_taobao_products_top(mm); G.fixWidth(); } }; module.exports.show_taobao_products_top = function (data) { //tmall // from_self 如果为true 说明是用的我们自己的数据, 这个时候销量就是全部的销量 需要改一下。 var widthObj = calWidth.init(); var sale_tle = "最近销量"; if (data.from_self === true) sale_tle = "总销量"; if (G.lang === 'en') { sale_tle = 'Sales: '; } var tmhtml = __webpack_require__(95); if (typeof data.tmall.min_price != 'undefined' && data.tmall.min_price !== null) { if (data.search.is_exact == 0 && G.site.indexOf('taobao') >= 0) { var html = $('#' + G.extName + '-tmall-dp').html(); html = html.replace(/\u5929\u732b/ig, '天猫相似款'); $('#' + G.extName + '-tmall-dp').html(html); } replaceHref.init('tmall', data.tmall.product, '&column=b2c'); $('#' + G.extName + '-tmall-dp .gwd-price').html('¥' + data.tmall.min_price); $('#' + G.extName + '-tmall-dp').show(); debugger; $('#' + G.extName + '-tmall-dp-detail').append(template.compile(tmhtml)({ data: data.tmall.product, s_server: G.s_server, width: widthObj.turnpW, link: data.tmall.more_link, sale_tle: sale_tle, allProductW: widthObj.allProductW })); $('#tmall-prev-page').click(function () { G.change_page('tmall', -1); }); $('#tmall-next-page').click(function () { G.change_page('tmall', 1); }); } //taobao if (typeof data.taobao.min_price != 'undefined' && data.taobao.min_price !== null) { if (data.search.is_exact == 0 && G.site.indexOf('taobao') >= 0) { var html = $('#' + G.extName + '-taobao-dp').html(); html = html.replace(/\u6dd8\u5b9d/ig, '淘宝相似款'); $('#' + G.extName + '-taobao-dp').html(html); } var tbhtml = __webpack_require__(94); replaceHref.init('taobao', data.taobao.product, '&column=b2c'); $('#' + G.extName + '-taobao-dp .gwd-price').html('¥' + data.taobao.min_price); $('#' + G.extName + '-taobao-dp').show(); $('#' + G.extName + '-taobao-dp-detail').append(template.compile(tbhtml)({ data: data.taobao.product, s_server: G.s_server, width: widthObj.turnpW, link: data.taobao.more_link, allProductW: widthObj.allProductW })); $('#taobao-prev-page').click(function () { G.change_page('taobao', -1); }); $('#taobao-next-page').click(function () { G.change_page('taobao', 1); }); } /*if (data.search.keywords == '') { data.search.keywords = G.dp.name; }*/ if (G.site === 'vipshop') { $('#' + G.extName + '-search-product').val(G.dp.cat_name || G.save_dp_query.now.coreword); } else { if (data.search.keywords == '' && G.dp.isbn != '') { $('#' + G.extName + '-search-product').val(G.dp.isbn); } if (data.search.keywords != '') { $('#' + G.extName + '-search-product').val(data.search.keywords); } } G.init_item_list('tmall'); G.set_item_args('tmall'); G.set_page_args('tmall'); G.load_image('tmall', 0, G.page_size); G.init_item_list('taobao'); G.set_item_args('taobao'); G.set_page_args('taobao'); G.load_image('taobao', 0, G.page_size); }; module.exports.getImgSearch = function (msg, callback) { var buildTaobaoUrl = __webpack_require__(20); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } var dataShare = __webpack_require__(61); var brandId = dataShare.get('dp_data') && dataShare.get('dp_data')['exact_arr']['brand_id']; if (G.site == '360buy' && brandId && (!msg.taobao.sort || !msg.tmall.sort)) { // 在京东有brand 有比价结果的情况下, 不走图片检索 callback(msg); return; } __webpack_require__(28).init(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; module.exports.getUniqPid = function (msg, callback) { var buildTaobaoUrl = __webpack_require__(20); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } __webpack_require__(45).getTaobaouniqData(function (data) { if (data) { if (msg.tmall.sort) msg.tmall = {}; if (data.tmall.length > 0) { msg.tmall.min_price = data.tmall[0].price; msg.tmall.max_price = data.tmall[data.tmall.length - 1].price; msg.tmall.store = data.tmall; msg.tmall.product = data.tmall; } if (data.taobao.length > 0) { msg.taobao.product = data.taobao; msg.taobao.store = data.taobao; msg.taobao.min_price = data.taobao[0].price; msg.taobao.max_price = data.taobao[data.taobao.length - 1].price; } if (!msg.tmall.more_link) msg.tmall.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; if (!msg.taobao.more_link) msg.taobao.more_link = 'https://s.taobao.com/search?q=' + msg.search.keywords + '&pid=' + msg.search.union; callback(msg); } else { callback(msg); } }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 289 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var getTransInfo = function getTransInfo(name, data, str) { for (var i = 0; i < data.length; i++) { if (data[i].num_iid) { data[i].oldUrl = data[i].url; // let type = data[i].type ? ('&type=' + data[i].type) : ''; data[i].url = G.u_server + '/redirect/tao?id=' + data[i].num_iid + '&source=' + data[i].source + '&from_device=' + G.from_device; } } }; module.exports.init = function (name, data, str) { if (!data || !(data instanceof Array) || G.aliSite) return; str = str || ''; getTransInfo(name, data, str); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 290 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/** * b2c 比价模块 * 包括普通的样式和模糊搜索的样式 * @author:mllong(mllong0925@gmail.com) * @since:2013-07-24 * @version:1.0.0 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var $ = __webpack_require__(1); var exports = {}; var template = __webpack_require__(5); var viewB2cStore = __webpack_require__(89); var specialFilter = __webpack_require__(65); var calWidth = __webpack_require__(27); var rateSite = { '228': 'USD', '229': 'JPY', '238': 'USD', '246': 'EUR' }; var priceSite = { '228': '$', '238': '$', '229': '日元', '246': 'EUR' }; var fixedPrice = function fixedPrice(price) { if (!price) return price; try { var priarr = price.split('.'); price = priarr[0].replace(',', ''); if (Number(price) > 99999) { price = priarr[0]; } else { price = priarr[0] + '.' + priarr[1]; } } catch (e) { __webpack_require__(9)('b2cCompare:fixedPrice:error'); return price; } return price; }; var transRate = function transRate(dp) { if (dp.price_rmb) return dp; var parseprice = __webpack_require__(16); if (!dp.dp_id) return dp; var site_id = dp.dp_id.split('-')[1]; var type = site_id && rateSite[site_id]; if (!type) return dp; var price2 = parseprice(dp.price, type); var price3 = fixedPrice(dp.price); if (site_id == '229') { dp.price_rmb = price2 + ('(' + price3 + priceSite[site_id] + ')'); } else { dp.price_rmb = price2 + ('(' + priceSite[site_id] + price3 + ')'); } dp.price = price2; return dp; }; function showExactView(data) { var widthObj = calWidth.init(); data.b2c.product = specialFilter(data.b2c.product); if (data.b2c.product.length === 0) return; data.b2c.product[0] = transRate(data.b2c.product[0]); data.b2c.min_price = data.b2c.product[0].price.replace(',', ''); //var dp_ids = '0-0';//统计当前有售的商家编号们 //顶栏商城比价模块 var b2cdom = '\n \n 商城\n ¥' + data.b2c.min_price + '\n '; $('#' + G.extName + '-main-contents').append(b2cdom); function editData() { var len = data.b2c.store.length; for (var i = 0; i < data.b2c.store.length; i++) { data.b2c.store[i].price = data.b2c.store[i].price.replace(',', ''); if (data.b2c.store[i].promo.length > 3) { data.b2c.store[i].promo2 = data.b2c.store[i].promo.slice(0, 3); } } data.b2c.store2 = data.b2c.store.slice(0, 6); return len; } for (var i = 0; i < data.b2c.product.length; i++) { var dp = data.b2c.product[i]; dp = transRate(dp); //添加商品的促销活动信息 dp.promo = editPromoIcon(dp.promo); if (dp.promo && dp.promo.length > 0) { dp.promodom = ''; for (var p = 0, plen = dp.promo.length; p < 3 && p < plen; p++) { var pinfo = dp.promo[p]; if (pinfo.hasSame) continue; dp.promodom += ''; } } } //商城比价模块详情模块 var len = editData(); $('#' + G.extName + '-main').append(template.compile(viewB2cStore)({ data: data, len: len, extName: G.extName, width: widthObj.b2cTurnpW, productW: widthObj.b2cProductW })); $('#' + G.extName + '-b2c-dp-detail li img.store').on('error', function () { if (!G.new_extension) $(this).attr('src', G.c_server + '/favicon.ico'); }); $('#b2c-prev-page').click(function () { G.change_page('b2c', -1); }); $('#b2c-next-page').click(function () { G.change_page('b2c', 1); }); } function showFuzzyView(data) { var widthObj = calWidth.init(); data.b2c_fuzzy.product = specialFilter(data.b2c_fuzzy.product); if (data.b2c_fuzzy.product.length === 0) return; data.b2c_fuzzy.product[0] = transRate(data.b2c_fuzzy.product[0]); data.b2c_fuzzy.min_price = data.b2c_fuzzy.product[0].price; var fuzzdom = '\n \n 商城相似款\n ¥' + data.b2c_fuzzy.min_price + '\n '; $('#' + G.extName + '-main-contents').append(template.compile(fuzzdom)()); for (var i = 0; i < data.b2c_fuzzy.product.length; i++) { var dp = data.b2c_fuzzy.product[i]; dp = transRate(dp); //添加商品的促销活动信息 dp.promo = editPromoIcon(dp.promo); if (dp.promo && dp.promo.length > 0) { dp.promodom = ''; for (var p = 0, plen = dp.promo.length; p < 3 && p < plen; p++) { var pinfo = dp.promo[p]; if (pinfo.hasSame) continue; dp.promodom += ''; } } } var fuzzyDetail = __webpack_require__(90); $('#' + G.extName + '-main').append(template.compile(fuzzyDetail)({ data: data.b2c_fuzzy.product, s_server: G.s_server, width: widthObj.turnpW, productW: widthObj.allProductW })); $('#b2c_fuzzy-prev-page').on('click', function (e) { e.preventDefault(); G.change_page('b2c_fuzzy', -1); }); $('#b2c_fuzzy-next-page').on('click', function (e) { e.preventDefault(); G.change_page('b2c_fuzzy', 1); }); $('#' + G.extName + '-b2c_fuzzy-dp-detail').append('
      '); } function showBottomExactView(data) { var b2c = data.b2c; if (data.b2c2) b2c = data.b2c2; var perPageMaxNumber = G.getFixedShowProductNum(); if (b2c.store.length > 0) { //G.where_buy_dps = data.where_buy_dp_ids || '';\ $('#' + G.extBrand + '-compare').html(""); try { for (var i = 0; i < b2c.store.length; i++) { var store = b2c.store[i]; var dp = store.product[0]; dp = transRate(dp); var len = parseInt(store.product.length); var pages = len % perPageMaxNumber == 0 ? parseInt(len / perPageMaxNumber) : parseInt(len / perPageMaxNumber) + 1; var li = $('
    • '); li.append($('', { 'class': G.extBrand + '-compare-item', 'href': dp.url, 'target': '_blank' }).append($('

      ', { 'class': G.extBrand + '-price' }).html('¥' + dp.price)).append($('

      ', { 'class': G.extBrand + '-store' }).text(dp.site_name))); var detail = $('

      ', { 'class': G.extBrand + '-compare-item-detail re-' + G.extBrand + '-compare-item-detail ' + G.extBrand + '-compare-item-detail-fixed', 'style': 'display:none;' }); detail.append($('

      ', { 'class': G.extBrand + '-compare-item-detail-title ' + G.extBrand + '-height-auto ' + G.extBrand + '-compare-item-detail-title-fixed' }).append($('', { 'class': G.extBrand + '-compare-item-detail-title-desc' }).text(dp.site_name + ':' + store.fee))); var itemList = $('

        ', { 'class': G.extBrand + '-item-list' }); for (var k = 0; k < len; k++) { var item = store.product[k]; item = transRate(item); if (item.site_name.indexOf('微信端') > -1 || item.site_name.indexOf('移动端') > -1) item.isOtherClient = true; var rev_cnt = item.rev_cnt ? item.rev_cnt : 0; //添加商品的促销活动信息 var promoHtml = ''; item.promo = editPromoIcon(item.promo); if (item.promo && item.promo.length > 0) { for (var p = 0, plen = item.promo.length; p < perPageMaxNumber && p < plen; p++) { if (item.promo[p].hasSame) continue; var desc = item.promo[p].hasSameTitle ? item.promo[p].hasSameTitle : item.promo[p].desc; promoHtml += ' '; } } itemList.append($('
      • ', { 'class': G.extBrand + '-list-item ' + (k % perPageMaxNumber == perPageMaxNumber - 1 || k == len - 1 ? G.extBrand + '-last' : ''), 'style': "display: " + (k >= perPageMaxNumber ? "none" : "block") }).append($('', { 'class': G.extBrand + '-pic', 'href': item.url, 'target': '_blank' }).append($('', { 'src': G.s_server + '/images/dp_default.jpg', 'data-original': item.img_url, 'title': item.title }))).append($('', { 'class': G.extBrand + '-product-title', 'href': item.url, 'target': "_blank", 'title': item.title }).append($('
        ').text(item.title))).append($("
        ").append($('', { 'class': G.extBrand + '-price', 'href': item.url, 'target': '_blank' }).html('¥' + (item.price_rmb ? item.price_rmb : item.price)).append(promoHtml))).append($('
        ', { 'class': G.extBrand + '_rev_cnt' }).append($('', { 'class': G.extBrand + '_product_comment_amount', 'href': item.url, 'target': '_blank', 'title': item.isOtherClient ? item.site_name : '商品评论数' }).append($('').text(item.isOtherClient ? item.site_name : rev_cnt != 0 ? '评论数:' + item.rev_cnt : ''))))); } var b2c_PageView = $('
        ', { 'class': G.extBrand + '-b2c-PageView ' + G.extBrand + '-b2c-PageView-fixed' }); b2c_PageView.append($('

        ', { 'class': G.extBrand + '-compare-item-detail-title', 'style': 'height:auto;' }).append($('', { 'style': 'float:none;padding-left:10px;', 'class': G.extBrand + '-compare-item-detail-pages' }).append($('', { 'id': 'page-now-' + i, 'class': 'page-now' }).text('1')).append('/').append($('', { 'id': 'page-total-' + i, 'class': 'page-total' }).text('1')))); detail.append($("

        ", { 'class': G.extBrand + '-compare-prev-page ' + G.extBrand + '-left' }).append($('
        ', { 'class': G.extBrand + '-bg page-arrow' }))).append(itemList).append($("
        ", { 'class': G.extBrand + '-compare-next-page ' + G.extBrand + '-right' }).append($('
        ', { 'class': G.extBrand + '-bg page-arrow' }))).append(b2c_PageView); li.append(detail); if (pages == 1) { li.find('.' + G.extBrand + '-compare-prev-page').hide(); li.find('.' + G.extBrand + '-compare-next-page').hide(); li.find('.' + G.extBrand + '-b2c-PageView-fixed').hide(); li.attr("pages", 1); li.attr("len", len); var bannerWidth = len * 200; //border li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css("width", bannerWidth + 2); } else { //还要考虑到边框的border,必须减去两个像素 li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css("width", G.width - 2); } $('#' + G.extBrand + '-compare').append(li); $('#page-total-' + i).text(pages); } } catch (e) { if (G.debug) { throw e; } } } $('#' + G.extBrand + '-compare').show(); } function editPromoIcon(promo) { /*把相同的促销活动放一起, 避免显示多个相同图标, 但是不能直接改原来的内容, 会影响其他地方的价格计算*/ if (!promo || promo && !promo.length) return promo; for (var i = 0, len = promo.length; i < len; i++) { if (!promo[i]) continue; for (var j = 1; j < len; j++) { if (!promo[i + j]) continue; if (promo[i].type == promo[i + j].type) { if (promo[i].hasSame) continue; promo[i].hasSameTitle = (promo[i].hasSameTitle ? promo[i].hasSameTitle : promo[i].desc) + ' ' + promo[i + j].desc; promo[i + j].hasSame = true; } } } return promo; } //把模糊匹配的b2c转化成正规的b2c商城内容 function exchangeDataFormat(b2cFuzzy) { var b2c = {}; var fuzzy = b2cFuzzy.product; fuzzy = specialFilter(fuzzy); for (var fuzzyIndex in fuzzy) { if (fuzzy[fuzzyIndex].more == '1') { var product = fuzzy[fuzzyIndex].all; for (var productIndex in product) { var site_name = product[productIndex].site_name; if (b2c[site_name] == null) { b2c[site_name] = []; } b2c[site_name].push(product[productIndex]); } } else { var site_name = fuzzy[fuzzyIndex].site_name; if (b2c[site_name] == null) { b2c[site_name] = []; } b2c[site_name].push(fuzzy[fuzzyIndex]); } } var returnB2c = { 'store': [] }; for (var b2cIndex in b2c) { if (typeof b2c[b2cIndex][0].fee != 'undefined') { var store = { 'product': b2c[b2cIndex], 'fee': b2c[b2cIndex][0].fee }; returnB2c.store.push(store); } } return returnB2c; } //初始化,根据数据的类型确定展示什么样式 exports.init = function (data, type) { if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1) { return; } if (type == "bottom") { if (data.b2c && data.b2c.min_price) { showBottomExactView(data); G.setPageArgs(G.extBrand + '-compare', G.getFixedShowProductNum()); this.setBottomViewOffset(); } else if (data.b2c_fuzzy) { var obj = {}; obj.b2c2 = exchangeDataFormat(data.b2c_fuzzy); showBottomExactView(obj); G.setPageArgs(G.extBrand + '-compare', G.getFixedShowProductNum()); this.setBottomViewOffset(); $('.' + G.extBrand + '-bi').addClass(G.extBrand + '-bi-bg'); } //小红点提示 G.circleNotice(data.quan, data.promotion); } else { if (data.b2c && data.b2c.min_price) { showExactView(data); } else if (data.b2c_fuzzy) { showFuzzyView(data); } } }; //设定底部版的详情页的偏移位置 exports.setBottomViewOffset = function () { $('ul.' + G.extBrand + '-item-list').each(function () { var menu_li = $(this).parent().parent().eq(0); if (menu_li.attr("pages") == '1') { //尽量根据菜单的位置居中,实在不能居中的,就靠右 var menu_li_left = menu_li.offset().left; var menu_li_width = menu_li.width(); var bannerWidth = parseInt(menu_li.attr("len")) * 200; var target_left = menu_li_left - (bannerWidth / 2 - menu_li_width / 2); if (target_left < 0) { target_left = 0; } var remainWidth = G.width - target_left; if (G.IE6) { target_left = menu_li_width / 2 - bannerWidth / 2; if (target_left + menu_li_left < 0) { target_left = -menu_li_left; } menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('position', 'absolute').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', 0); } else { if (bannerWidth < remainWidth) { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', target_left); } else { menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('left', G.width - bannerWidth); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', G.width - bannerWidth); } } } else { //非ie版本的压根不需要调整,这里的ie6版本需要进行调整。 if (G.IE6) { var menu_li_left = menu_li.offset().left; var target_left = 0 - menu_li_left; menu_li.children('div.' + G.extBrand + '-compare-item-detail-fixed').css('position', 'absolute').css('left', target_left); menu_li.find('.' + G.extBrand + '-compare-item-detail-title-fixed').css('left', 0); } } }); }; return exports; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 291 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { module.exports.init = function () { // skuId=100014979337&cat=12218%2C21455%2C21456&venderId=1000362423&isCanUseDQ=isCanUseDQ-1&isCanUseJQ=isCanUseJQ-1 var skuId = window.pageConfig.product.skuid; var cat = window.pageConfig.product.cat.join(','); var venderId = window.pageConfig.product.venderId; return new Promise(function (resolve) { var domain = '//item.jd.com'; if (location.hostname.indexOf('npcitem.jd.hk') > -1) { domain = '//npcitem.jd.hk'; } $.get(domain + '/coupons?skuId=' + skuId + '&cat=' + encodeURIComponent(cat) + '&venderId=' + venderId).then(function (res) { var a = $('.coupon-wrap', res).children().toArray(); var r = []; for (var i = 0; i < a.length; i++) { if ($(a[i]).text().indexOf('已领取的券') > -1) { break; } if ($(a[i]).hasClass('coupon-item')) { r.push(a[i]); } } var resCoupon = r.map(function (x) { var couponVal = $(x).find('.coupon-val').text(); var cond = $(x).find('.condition').text(); var time = $(x).find('.coupon-time').text(); if (cond.endsWith('可减')) { cond = cond.replace('可减', '减' + couponVal); } return { text: cond.replace('可用', '减' + couponVal), time: time }; }).filter(function (x) { if (x.time) { var re = new RegExp('有效期([\\d\\-: ]*)至([\\d\\-: ]*)').exec(x.time); if (re && re[1]) { if (new Date(re[1]) > new Date()) { console.warn('filter early coupon', x); return false; } } } return true; }).map(function (x) { return x.text; }); console.log('获取到的优惠券'); console.log(resCoupon); console.log(r); resolve(resCoupon); }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) /***/ }), /* 292 */ /***/ (function(module, exports) { module.exports = "
        \n \n \n \n 到手价:\n ¥{{pri}}\n {{if tle}}\n ({{tle}})\n {{/if}}\n \n {{=desc}}\"\"\n
        \n
        \n
        \n \n
        到手价指促销活动完美凑单和使用优惠券后的理论到手价,不代表您的实际支付价格。
        \n \n
        " /***/ }), /* 293 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, Vue, $) { var _this = this; var request = __webpack_require__(2); var globalCondition = __webpack_require__(3); var PromotionPlan = __webpack_require__(294)['default']; var load = function load(dpId) { var skuId = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var promo, promoString, text, data, res, plan; return regeneratorRuntime.async(function load$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('promoGot')); case 2: promo = context$1$0.sent; promoString = promo && promo.origin_promo ? '&origin_promo=' + encodeURIComponent(promo.origin_promo) : ''; text = promo && promo.promo_text ? '&promo_text=' + promo.promo_text : '&promo_text=None'; context$1$0.next = 7; return regeneratorRuntime.awrap(request.get(G.server + ('/extension/PromotionPlan?price=' + G.dp.price + '&dp_id=' + dpId + (skuId ? '&skuId=' + skuId : '') + promoString + text))); case 7: data = context$1$0.sent; res = data.data; plan = new Vue({ el: '#gwd-pp', render: function render(h) { return h(PromotionPlan, { ref: 'plan', props: { data: res, tag: 3 } }); } }); $('.dsj-promo-link').hover(function () { plan.$refs.plan.over(); }); case 11: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports = { init: function init() { var dp_id; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 2: dp_id = context$1$0.sent; load(dp_id); if (G.on) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: G.on('skuChange', function (skuId) { load(dp_id, skuId); }); case 7: case 'end': return context$1$0.stop(); } }, null, this); } }; //let text = '&promo_text=none' /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(0), __webpack_require__(15)["default"], __webpack_require__(1))) /***/ }), /* 294 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___ = __webpack_require__(295); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___ = __webpack_require__(123); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___ = __webpack_require__(297); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["b" /* staticRenderFns */], false, null, "24d41b24", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('24d41b24')) { api.createRecord('24d41b24', component.options) } else { api.reload('24d41b24', component.options) } module.hot.accept("./PromotionPlan.vue?vue&type=template&id=24d41b24&scoped=true&", function () { api.rerender('24d41b24', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromotionPlan.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 295 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___ = __webpack_require__(296); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_template_id_24d41b24_scoped_true___["b"]; }); /***/ }), /* 296 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { directives: [ { name: "show", rawName: "v-show", value: _vm.data.length, expression: "data.length" } ], staticClass: "gwd-promo-plan" }, [ _c("table", [ _vm._m(0), _vm._v(" "), _c( "tbody", _vm._l(_vm.data, function(item, idx) { return _c("tr", [ _c("td", { staticStyle: { "padding-left": "10px" } }, [ _vm._v(_vm._s(item.plan_text)) ]), _vm._v(" "), _c( "td", { class: idx === 0 ? "red" : "", staticStyle: { "padding-right": "10px", "text-align": "right" } }, [_vm._v(_vm._s(parseFloat(item.total_price).toFixed(2)))] ), _vm._v(" "), _c( "td", { class: idx === 0 ? "red" : "", staticStyle: { "padding-right": "10px", "text-align": "right" } }, [_vm._v(_vm._s(parseFloat(item.current_price).toFixed(2)))] ), _vm._v(" "), _c( "td", { staticStyle: { padding: "10px" } }, _vm._l(item.promo_list, function(p) { return _c( p.url || p.id ? "a" : "span", { key: p.url, tag: "component", style: "color: #7d7e80;" + (p.url ? "text-decoration: underline" : ""), attrs: { href: p.id ? _vm.link(p.url_format, p.id) : p.url, target: "_blank" } }, [_vm._v(_vm._s(p.text) + " ")] ) }), 1 ) ]) }), 0 ) ]), _vm._v(" "), _vm.G.aliSite ? _c( "div", { staticClass: "gwd-p-qrcode gwd-column gwd-align gwd-jcc" }, [ _c( "div", { staticStyle: { width: "100px", height: "100px", position: "relative" } }, [ _c("img", { staticStyle: { width: "100%" }, attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _c("img", { staticStyle: { position: "absolute", top: "50%", left: "50%", width: "20px", height: "20px", transform: "translate(-50%, -50%)" }, attrs: { src: __webpack_require__(63), alt: "" } }) ] ), _vm._v(" "), _vm._m(1) ] ) : _vm._e() ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("thead", [ _c("tr", { staticStyle: { "min-height": "30px" } }, [ _c("th", [_c("span", [_vm._v("购买方案")])]), _vm._v(" "), _c("th", [_c("span", [_vm._v("实付总价(¥)")])]), _vm._v(" "), _c("th", [_c("span", [_vm._v("折合每件(¥)")])]), _vm._v(" "), _c("th", [_c("span", [_vm._v("使用的促销")])]) ]) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-row", staticStyle: { "margin-top": "8px", "white-space": "nowrap", height: "10px", "line-height": "10px" } }, [ _c( "span", { staticClass: "gwd-font10", staticStyle: { color: "#ff3220", "font-weight": "bold", "transform-origin": "top left", width: "42px", "margin-left": "6px" } }, [_vm._v("淘宝APP")] ), _vm._v(" "), _c( "span", { staticClass: "gwd-font9", staticStyle: { color: "#070707", "transform-origin": "top left", width: "64px" } }, [_vm._v("扫码 参加活动")] ) ] ) } ] render._withStripped = true /***/ }), /* 297 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___ = __webpack_require__(125); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_style_index_0_id_24d41b24_lang_less_scoped_true____default.a); /***/ }), /* 298 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-promo-plan[data-v-24d41b24] {\n z-index: 999;\n display: none;\n background: white;\n position: absolute;\n left: 0;\n right: 0;\n box-shadow: 0px 2px 3px 0px rgba(0, 0, 0, 0.2);\n top: 35px;\n box-sizing: border-box;\n padding: 10px;\n}\n.gwd-promo-plan *[data-v-24d41b24] {\n float: initial;\n}\n.gwd-promo-plan table[data-v-24d41b24] {\n border-collapse: collapse;\n width: 100%;\n white-space: initial;\n}\n.gwd-promo-plan table .red[data-v-24d41b24] {\n color: #e4393c;\n}\n.gwd-promo-plan table th[data-v-24d41b24] {\n padding-left: 10px;\n text-align: left;\n height: 30px;\n background: #f1f9fc;\n font-weight: normal;\n}\n.gwd-promo-plan table th span[data-v-24d41b24] {\n display: inline-block;\n font-size: 12px;\n transform: scale(0.833);\n transform-origin: left center;\n color: #969899;\n white-space: nowrap;\n}\n.gwd-promo-plan table th[data-v-24d41b24],\n.gwd-promo-plan table td[data-v-24d41b24] {\n border: 1px solid #edf1f2;\n box-sizing: border-box;\n vertical-align: middle;\n line-height: 17px;\n}\n.gwd-promo-plan table td[data-v-24d41b24] {\n min-height: 35px;\n}\n.gwd-promo-plan table td a[data-v-24d41b24] {\n text-decoration: underline;\n}\n.gwd-promo-plan table td a[data-v-24d41b24]:hover {\n color: #e4393c !important;\n}\n.gwd-promo-plan .gwd-p-qrcode[data-v-24d41b24] {\n box-sizing: border-box;\n position: absolute;\n bottom: -1px;\n top: -36px;\n z-index: 999;\n width: 130px;\n background: white;\n border: 1px solid #e6e9eb;\n box-shadow: 2px 1px 3px 0 rgba(0, 0, 0, 0.2);\n right: -130px;\n font-size: 0;\n}\n.gwd-promo-plan .gwd-p-qrcode span[data-v-24d41b24] {\n display: inline-block;\n}\n", ""]); // exports /***/ }), /* 299 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var _this = this; var _slicedToArray = (function () { function sliceIterator(arr, i) { var _arr = []; var _n = true; var _d = false; var _e = undefined; try { for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i['return']) _i['return'](); } finally { if (_d) throw _e; } } return _arr; } return function (arr, i) { if (Array.isArray(arr)) { return arr; } else if (Symbol.iterator in Object(arr)) { return sliceIterator(arr, i); } else { throw new TypeError('Invalid attempt to destructure non-iterable instance'); } }; })(); var globalCondition = __webpack_require__(3); module.exports.init = function callee$0$0() { var localPromo, promoUrlMap, promos, coupons, couponLinks; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.site !== '360buy')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: context$1$0.next = 4; return regeneratorRuntime.awrap(globalCondition.met('localPromoGot')); case 4: localPromo = context$1$0.sent; context$1$0.next = 7; return regeneratorRuntime.awrap(globalCondition.met('remoteUrlMap')); case 7: promoUrlMap = context$1$0.sent; promos = localPromo.promo.map(function (item) { item = item.replace('http://', '//').replace('https://', '//'); if (item.indexOf(':') > -1) { var _item$split = item.split(':'); var _item$split2 = _slicedToArray(_item$split, 2); var url = _item$split2[0]; var text = _item$split2[1]; return { text: text, url: url }; } }); console.log('localPromo', localPromo); $('#prom .prom-item').toArray().forEach(function (item) { var textNode = $(item).find('.hl_red'); var typeNode = $(item).find('.hl_red_bg'); var urlNode = $(item).find('a'); var text = textNode[0].innerText; var type = typeNode[0].innerText; if (type === '换购') { return; } var thePromo = promos.filter(function (promoItem) { if (!promoItem) { return false; } var url = false; // if (urlNode && urlNode.attr('href')) { // url = urlNode.attr('href') // } if (url && promoItem.url) { return url.indexOf(promoItem.url) > -1; } else { return promoItem && promoItem.text === text; } }); if (thePromo.length) { var url = thePromo[0].url; var link = promoUrlMap[' ' + url]; $(item).append('
        查看此活动全部商品'); } }); coupons = localPromo.quan.map(function (item) { item = item.replace('http://', '//').replace('https://', '//'); if (item.indexOf(':') > -1) { var _item$split3 = item.split(':'); var _item$split32 = _slicedToArray(_item$split3, 2); var url = _item$split32[0]; var text = _item$split32[1]; return { text: text, url: url }; } }); coupons = coupons.filter(function (item) { return item && item.url; }); couponLinks = coupons.map(function (item, idx) { var link = promoUrlMap[' ' + item.url]; return '查看' + item.text.split(',')[0] + '商品' + (idx === 0 ? '' : '') + ''; }).join(''); if (coupons.length > 1) { $('#summary-quan .lh').append('\n
        \n
        \n ' + couponLinks + '\n
        \n
        \n '); } else { $('#summary-quan .lh').append('\n
        \n ' + couponLinks + '\n
        \n '); } $('#summary-quan .lh').css('line-height', 0); __webpack_require__(300); case 17: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 300 */ /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /* 303 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) {// 某些网站单品页的元素会被工具条遮挡,因此需要修改网站css var appendCss = function appendCss(styleText) { var style = document.createElement('style'); style.type = 'text/css'; style.innerHTML = styleText; document.getElementsByTagName('head')[0].appendChild(style); }; var toolbarHeight = 37; var increaseTop = function increaseTop(elementSelector) { // .gwd_unfold类是顶部工具条展开的情况 appendCss('\n .gwd_unfold ' + elementSelector + ' {\n top: ' + toolbarHeight + 'px!important;\n }\n '); }; module.exports = function () { if (location.hostname === 'item.taobao.com') { increaseTop('.tb-tabbar-wrap-sticky'); } if (location.hostname === 'detail.tmall.com') { increaseTop('#J_TabBarBox'); increaseTop('.tm-floatcart-link'); increaseTop('.hook-float'); increaseTop('#side-shop-info .shop-intro-float'); } if (location.hostname === 'item.jd.com') { increaseTop('.pro-detail-hd-fixed-div'); increaseTop('.popbox .popbox-inner.pro-detail-hd-fixed'); increaseTop('#detail .tab-main.pro-detail-hd-fixed'); // 京东单品页的tabItem点击后会滚动到上面去,导致取消悬浮效果 $('.tab-main ul li').on('click', function () { setTimeout(function () { if ($(document).scrollTop() > 1260) { $(document).scrollTop($(document).scrollTop() + 3); } }, 300); }); } if (location.hostname === 'product.suning.com') { increaseTop('.fixbar'); } if (location.hostname === 'product.dangdang.com') { increaseTop('.product_content .t_box .tab_panel_fixed'); } if (location.hostname === 'www.vmall.com') { increaseTop('.product-tab-top'); } if (location.hostname === 'item.mi.com') { increaseTop('.xm-product-box.nav-bar-hidden.nav_fix'); } if (location.hostname === 'www.adidas.com.cn') { increaseTop('.page-header-new'); $('body').css('padding-top', toolbarHeight + 'px'); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1))) /***/ }), /* 304 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var template = __webpack_require__(5); var log = __webpack_require__(9); var cnzz = __webpack_require__(4); var globalCondition = __webpack_require__(3); var request = __webpack_require__(2); module.exports.init = function () { render(); }; var link = ""; var dpId = ''; var getLink = function getLink() { var payload = { dp_id: dpId }; if (G.dp.price) { payload.price = G.dp.price; } $.post(G.server + '/extension/ShareUrl', payload).then(function (res) { res = JSON.parse(res); if (res.code) { link = res.link; $('.shareExt').remove(); render(); } }); }; var render = function render() { var html, priceInfo, priceInfoCopy; return regeneratorRuntime.async(function render$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: html = __webpack_require__(305); priceInfo = '', priceInfoCopy = ''; context$1$0.next = 4; return regeneratorRuntime.awrap(globalCondition.met('GwdPriceTrendLoaded')); case 4: context$1$0.next = 6; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 6: dpId = context$1$0.sent; if (G.dp.storeInfo && G.dp.storeInfo.length) { (function () { var store = G.dp.storeInfo[0]; var current = parseFloat(store.all_line[store.all_line.length - 1]); if (!current) { current = parseFloat(store.current_price); } var p = store.all_line.filter(function (x) { return x !== current; }); var last = current; if (p.length) { last = p[p.length - 1]; } //let last = store.last_price / 100; var priceTrend = '价格平稳'; if (current < last) { priceTrend = '价格下降'; if (current === store.lowest) { priceTrend = '历史最低'; } } else if (current > last) { priceTrend = '价格上涨'; } if (last === current) { last = 0; } var lowestStr = store.lowest ? ',历史最低价¥' + store.lowest : ''; var oriStr = last ? ' 原价¥' + last : ''; priceInfo = '' + priceTrend + oriStr + ',现价¥' + parseFloat(current) + lowestStr; priceInfoCopy = '' + priceTrend + oriStr + ',现价¥' + parseFloat(current) + lowestStr; })(); } $(template.compile(html, { escape: false })({ title: G.dp.name.replace(/ /g, '').replace(/\n/g, ''), priceInfo: priceInfo, priceInfoCopy: priceInfoCopy, link: link })).insertBefore('.gwd-topbar-right .top-bar-setting'); addEvent(); case 10: case 'end': return context$1$0.stop(); } }, null, _this); }; var addEvent = function addEvent() { var isshow = undefined; $('.shareExt').on('mouseenter', function () { if (!isshow) { isshow = true; log("share-ext-show"); cnzz.log("share-ext-show"); } if (link === '') { getLink(); } }); $('.shareExt').on('mouseleave', function () { $('#copy-btn').removeClass('copyss').text('复制去分享'); }); $('#copy-btn').on('click', function () { var element = $('#copy-input')[0]; element.select(); element.setSelectionRange(0, element.value.length); window.selectedText = element.value; var t = window.document.execCommand("copy"); if (t) { $('#copy-btn').addClass('copyss').text("复制成功!"); log("share-ext-copy"); cnzz.log("share-ext-copy"); } }); }; //$(`.gwd-topbar-right`).prepend(template.compile(html)()) /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1), __webpack_require__(7))) /***/ }), /* 305 */ /***/ (function(module, exports) { module.exports = "
        \n \n \n 分享\n \n
        \n {{ title }}\n
        \n {{ priceInfo }}\n
        \n \n 点击链接查看具体历史价格详情{{ link }}\n \n
        \n 复制去分享\n
        \n \n
        \n \n
        " /***/ }), /* 306 */ /***/ (function(module, exports) { module.exports = "
        \n \n \n \n
        \n \n \n \n \n \n \n \n \n \n
        \n
        \n
        \n \n
        \n
          \n \n
        \n
        \n \n
        \n
        \n
        \n
        \n \n \n
        \n \n
        \n
        \n
        \n
        \n
        \n \n \n 到手价(单件)\n \n \n \n 凑单价\n \n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n \n
        \n \n \n \n \n \n \n
        \n
        \n \n
        \n
        \n
        \n" /***/ }), /* 307 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__(5); var deviceEncode = __webpack_require__(44); var util = __webpack_require__(11); var userData = __webpack_require__(6); var addEvent = function addEvent() { var time1 = undefined; $('#bjd_logo').on('mouseenter', function () { $('#nbt_setting').show(); }); $('#bjd_logo').on('mouseleave', function () { time1 = setTimeout(function () { $('#nbt_setting').hide(); }, 200); }); $('#nbt_setting').on('mouseenter', function () { clearTimeout(time1); }); $('#nbt_setting').on('mouseleave', function () { $('#nbt_setting').hide(); }); $('#nbt_setting .setting-item').on('mouseenter', function () { $(this).addClass('setting_hover'); }); $('#nbt_setting .setting-item').on('mouseleave', function () { $(this).removeClass('setting_hover'); }); $('.main-setting').on('click', function () { util.openTab(); }); }; var render = function render() { var perinfo = userData.get('permanent'); var href = document.location.href; var btype = G.btype ? G.btype : ''; if (G.aliSite) return; var settingUrl = undefined; if (!perinfo.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } var html = __webpack_require__(308); $('#bjd_bottom_detail').append(template.compile(html)({ mainset: G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + btype, feedback: G.c_server + '/brwext/suggest?refer=' + encodeURIComponent(href) + '&from_device=' + G.from_device + '&btype=' + btype, help: G.c_server + '/app/extension?page=question', settingUrl: settingUrl, webpage: G.c_server + '/' })); addEvent(); }; module.exports.init = function () { render(); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 308 */ /***/ (function(module, exports) { module.exports = "" /***/ }), /* 309 */ /***/ (function(module, exports) { module.exports = "\n\n\n
        \n\t\n
        \n
        \n\t
        \n\t
        \n\t\t
        \n\t\t\t更多价格走势图\n\t\t\t
        \n\t\t\t请先 登录 购物党,或使用第三方账号登录\n\t\t
        \n\t\t
        \n\t
        \n
        \n\n
        \n" /***/ }), /* 310 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { return function (time) { var x = new Date(time); var p = new Date(x.getFullYear(), x.getMonth(), x.getDate()); var midDate = p.getTime() + 19 * 3600000; return midDate; }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /***/ }), /* 311 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var originPrice = 0; var originPricePattern = { '360buy': '#page_maprice', 'suning': ['del.small-price', 'del', '#itemPrice>del'], 'amazon': ['.digital-list-price>td>.a-text-strike', '.a-span12.a-color-secondary.a-size-base', '.a-text-strike'], 'yougou': 'del:eq(0)', 'dangdang': ['.price_m:eq(0)', '.d15_price_info .price_pc .price_m'], 'vipshop': '.J-mPrice', 'keede': '.message_price_kd', 'feiniu': 'del.fn-rmb-num:eq(0)', 'kaola': '#js_marketPrice', '111': 'del', 'jiuxian': 'del', 'yintai': '.mk-num', 'beibei': '.strike[op-value="originPrice"]', 'bookschina': 'td:eq(19)', 'tmall': ['.tb-rmb-num', '.tm-tagPrice-panel .tm-price', '.tm-price-panel .tm-price'], 'taobao': '#J_StrPrice>em.tb-rmb-num', 'taobao-95095': '.tm-price-panel .tm-price:eq(0)', 'lefeng': '.marketPrice-s' }; //let all_equal_short = false; var patternUsed = ''; if (originPricePattern[G.site] != undefined) { var pattern = originPricePattern[G.site]; if (pattern instanceof Array) { pattern.forEach(function (i) { var element = $(i); var len = $(i).toArray().length; if (len > 1) { element = $(i + (':eq(' + (len - 1) + ')')); } if (originPrice) return; if (!element || !element.text()) return; var priceText = element.text(); if (priceText.trim) { priceText = priceText.trim(); } var price = parseFloat(priceText.replace(',', '').replace('¥', '').replace('¥', '').replace('$', '').replace(',', '')); originPrice = price; patternUsed = i; }); } else { var element = $(pattern); if (element && element.text().length > 0) { var priceText = element.text(); if (priceText.trim) { priceText = priceText.trim(); } var price = parseFloat(priceText.replace(',', '').replace('¥', '').replace('¥', '').replace(',', '')); // originPrice = price; patternUsed = pattern; } } } // tmall.hk if (location.host === 'detail.tmall.hk') { originPrice = $('span.tm-price:eq(0)').text(); var unitText = $('em.tm-yen:eq(0)').text(); if (unitText === '₩' || unitText === 'NT$' || $('span.tm-price:eq(0)').css('text-decoration') && $('span.tm-price:eq(0)').css('text-decoration').indexOf('line-through') === -1) { originPrice = null; } var try2 = $('.wrtoriginprice .tm-price').text(); if (try2) { originPrice = try2; } } // 淘宝需特殊处理 var jstrprice = $('#J_StrPrice').text() && $('#J_StrPrice').css('text-decoration').toString().indexOf('line-through') === -1; if ((G.site === 'taobao' || G.site === 'tmall' || G.site === 'taobao-95095') && (jstrprice || G.site === 'tmall' && $('#J_StrPriceModBox').css('display') === 'none')) { if (patternUsed === '.tm-price-panel .tm-price' || patternUsed === '#J_StrPrice>em.tb-rmb-num') { originPrice = null; } } if (G.site === 'taobao' || G.site === 'tmall' || G.site === 'taobao-95095') { var e = $(patternUsed); if (e.css('text-decoration') && e.css('text-decoration').toString().indexOf('line-through') === -1) { if (G.site === 'taobao') { if (e.parent().css('text-decoration').toString().indexOf('line-through') === -1) { originPrice = null; } } else { originPrice = null; } } } if (G.site === 'bookschina') { var s = $('td').toArray().map(function (i) { return i.innerText; }); var pos = s.indexOf('定    价:'); originPrice = s[pos + 1]; } var type = null; if (location.host === 'www.amazon.co.jp') { type = 'JPY'; } originPrice = __webpack_require__(16)(originPrice, type); originPrice = parseFloat(originPrice); return originPrice; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 312 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n {{if d1.nowprice}}\n 现价:\n {{d1.display_nowprice}}\n {{else}}\n 最高:\n {{d1.display_Phighest}}\n {{lowtle}}\n {{d1.display_Plowest}}\n {{d1.lowestDate}}\n {{if !d2 && !aliSite && promoUrl}}\n 历史促销明细>\n {{/if}}\n {{/if}}\n
        \n{{if d2}}\n
        \n {{if !d1.nowprice}}\n \n {{/if}}\n 最低(需凑单):\n {{d2.display_Plowest}}\n {{d2.lowestDate}}\n {{if promoUrl}}\n 历史促销明细>\n {{/if}}\n
        \n{{/if}}\n\n
        \n\n" /***/ }), /* 313 */ /***/ (function(module, exports) { module.exports = "

        {{data.time}}

        \n{{if data.pagePrice && domclass == \"\"}}\n
        \n \n {{if !aliSite}}\n 到手价 / 页面价\n :\n {{/if}}\n {{data.pagePrice}}\n
        \n\n{{else if data.pagePrice}}\n
        \n \n 页面价\n :\n {{data.pagePrice}}\n
        \n{{/if}}\n{{if data.directpro}}\n
        \n \n 到手价\n :\n ¥{{data.directpro}}\n {{#data.promo2}}\n
        \n{{/if}}\n{{if data.addpro}}\n
        \n \n 凑单价\n :\n ¥{{data.addpro}}\n {{#data.promo1}}\n
        \n{{/if}}\n" /***/ }), /* 314 */ /***/ (function(module, exports) { module.exports = "
        {{data.time}}
        \n
        \n {{if data.pagePrice && domclass == \"\"}}\n
        \n \n {{if !aliSite}}\n 到手价 / 页面价\n :\n {{/if}}\n {{data.pagePrice}}\n
        \n {{else if data.pagePrice}}\n
        \n \n 页面价\n :\n {{data.pagePrice}}\n
        \n {{/if}}\n {{if data.directpro}}\n
        \n \n 到手价\n :\n ¥{{data.directpro}}\n {{#data.promo2}}\n
        \n {{/if}}\n {{if data.addpro}}\n
        \n \n 凑单价\n :\n ¥{{data.addpro}}\n {{#data.promo1}}\n
        \n {{/if}}\n
        " /***/ }), /* 315 */ /***/ (function(module, exports) { module.exports = "
        \n {{if lowest_obj.nowprice}}\n 现价:\n ¥{{lowest_obj.nowprice}}\n {{else}}\n 最高:\n {{currency}}{{lowest_obj.Phighest}}\n {{lowtle}}\n {{currency}}{{lowest_obj.Plowest}}\n {{lowestDate}}\n {{/if}}\n
        \n{{if lowest_obj2 && lowestDate2}}\n
        \n {{if !lowest_obj.nowprice}}\n \n {{/if}}\n 最低(需凑单):\n {{currency}}{{lowest_obj2.Plowest}}\n {{lowestDate2}}\n \n
        \n{{/if}}\n\n{{if promoUrl}}\n\n{{/if}}" /***/ }), /* 316 */ /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /* 319 */ /***/ (function(module, exports) { module.exports = "
        \n

        我们检测到访问异常,请您验证后继续使用

        \n 点击验证\n \n \n
        " /***/ }), /* 320 */ /***/ (function(module, exports) { module.exports = "
        \n

        我们检测到访问异常,请您验证后继续使用

        \n 点击验证\n \n
        " /***/ }), /* 321 */ /***/ (function(module, exports) { module.exports = "
        \n

        我们检测到访问异常,请您验证后继续使用

        \n 点击验证\n \n \n
        " /***/ }), /* 322 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n
        \n
        \n
        \n
        \n \n \n 到手价(单件)\n \n \n \n 凑单价\n \n
        \n
        \n
        \n
        \n\n
        \n \n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n
        " /***/ }), /* 323 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___ = __webpack_require__(324); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MiniPromoHistory_vue_vue_type_script_lang_js___ = __webpack_require__(130); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MiniPromoHistory_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__MiniPromoHistory_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less___ = __webpack_require__(342); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__MiniPromoHistory_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___["b" /* staticRenderFns */], false, null, "54b7e36a", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('54b7e36a')) { api.createRecord('54b7e36a', component.options) } else { api.reload('54b7e36a', component.options) } module.hot.accept("./MiniPromoHistory.vue?vue&type=template&id=54b7e36a&scoped=true&", function () { api.rerender('54b7e36a', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/MiniPromoHistory.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 324 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___ = __webpack_require__(325); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_template_id_54b7e36a_scoped_true___["b"]; }); /***/ }), /* 325 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-mini-trend-right", style: _vm.promoHistory.analysis && _vm.ready ? "display: flex; height: 100%;" : "display: none" }, [ _c("div", { staticStyle: { width: "13px" } }, [ _c( "svg", { staticStyle: { height: "100%", width: "100%", position: "relative", overflow: "visible" } }, [ _c("line", { staticStyle: { "stroke-width": "1px" }, attrs: { x1: "-2", y1: "23", x2: "11", y2: "23", "stroke-dasharray": "1 3", stroke: _vm.strokeColor } }), _vm._v(" "), _c("line", { staticStyle: { "stroke-width": "1px" }, attrs: { x1: "-2", y1: "23", x2: "-2", y2: _vm.lineHeight, "stroke-dasharray": "1 3", stroke: _vm.strokeColor } }), _vm._v(" "), _c("line", { staticStyle: { "stroke-width": "1px" }, attrs: { x1: _vm.left, y1: _vm.lineHeight, x2: "-2", y2: _vm.lineHeight, "stroke-dasharray": "1 3", stroke: _vm.strokeColor } }), _vm._v(" "), _c("circle", { attrs: { cx: "11", cy: "23", r: "2", fill: "white", stroke: _vm.strokeColor, "stroke-width": "1" } }) ] ) ]), _vm._v(" "), _c( "div", { staticStyle: { "margin-left": "6px", display: "flex", "flex-direction": "column", flex: "1", overflow: "hidden" } }, [ _c("div", { staticClass: "gwd-top-price" }, [ _c("span", { staticClass: "gwd-l1" }, [ _vm._v( "当前" + _vm._s(_vm.priceType) + ": ¥" + _vm._s(parseFloat(_vm.price).toFixed(2)) ) ]), _vm._v(" "), _c( "span", { staticClass: "gwd-l2", style: "color: " + _vm.textColor }, [_vm._v(_vm._s(_vm.tip))] ), _vm._v(" "), _vm.currentPromo || _vm.showingPromo.length === 0 ? _c("span", { staticClass: "gwd-l3" }, [ _vm._v(_vm._s(_vm.currentPromo)) ]) : _vm._e() ]), _vm._v(" "), _c("div", { staticClass: "gwd-split", style: !_vm.currentPromo && _vm.showingPromo.length > 0 ? "margin-top: 10px;" : "" }), _vm._v(" "), _c( "div", { staticClass: "gwd-bottom-log" }, [ _vm._l(_vm.showingPromo, function(item, idx) { return _vm.showingType === "normal" && item ? _c( "Normal", { key: idx, staticStyle: { "margin-top": "12px" }, attrs: { price: item.price, type: item.type, badge: item.badge, date: item.dateStr } }, [ _vm._v( "\n 页面价: " + _vm._s(_vm.currency) + _vm._s(item.oriPrice) ), _c("br"), _vm._v( "\n " + _vm._s(item.promo ? "促: " + item.promo + ";" : "") ), item.promo && item.coupon ? _c("br") : _vm._e(), _vm._v( _vm._s(item.coupon ? "劵:" + item.coupon : "") + "\n " ) ] ) : _vm._e() }), _vm._v(" "), _vm._l(_vm.showingPromo, function(item, idx) { return _vm.showingType === "special" ? _c("Special", { key: idx, staticStyle: { "margin-bottom": "2px", "margin-top": "10px" }, attrs: { promoType: item.dateStr === "06-18" ? "618" : "双11", promo: item.promo, coupon: item.coupon, priceType: item.type, price: item.price, pagePrice: item.oriPrice, date: item.date } }) : _vm._e() }), _vm._v(" "), _vm.showingPromo.length === 0 ? _c("AppDownload") : _vm._e() ], 2 ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.promoUrl && _vm.promoHistory.promoShow && _vm.promoHistory.promoShow.length > 2 && !_vm.isAliSite ? _c( "div", { staticStyle: { "text-align": "right", "line-height": "initial" } }, [ _vm.promoUrl ? _c( "span", { staticStyle: { color: "#969899", "font-size": "12px", "text-decoration": "none", "line-height": "initial", cursor: "pointer" }, attrs: { target: "_blank" }, on: { click: _vm.urlClick } }, [ _vm._v("更多历史促销明细\n "), _c("img", { staticStyle: { width: "6px", height: "9px", "margin-top": "0px", "vertical-align": "initial", display: "inline-block" }, attrs: { src: __webpack_require__(326), alt: "" } }) ] ) : _vm._e() ] ) : _vm._e(), _vm._v(" "), _c("div", { staticStyle: { height: "16px", visibility: "hidden" } }, [ _vm._v(_vm._s(_vm.width)) ]) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /* 326 */, /* 327 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Normal_vue_vue_type_template_id_7cd833d3_scoped_true___ = __webpack_require__(328); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___ = __webpack_require__(132); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less___ = __webpack_require__(330); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__Normal_vue_vue_type_template_id_7cd833d3_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__Normal_vue_vue_type_template_id_7cd833d3_scoped_true___["b" /* staticRenderFns */], false, null, "7cd833d3", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('7cd833d3')) { api.createRecord('7cd833d3', component.options) } else { api.reload('7cd833d3', component.options) } module.hot.accept("./Normal.vue?vue&type=template&id=7cd833d3&scoped=true&", function () { api.rerender('7cd833d3', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromoHistory/Normal.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 328 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_template_id_7cd833d3_scoped_true___ = __webpack_require__(329); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_template_id_7cd833d3_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_template_id_7cd833d3_scoped_true___["b"]; }); /***/ }), /* 329 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-promo-normal" }, [ _c("div", { staticClass: "gwd-tp-1" }, [ _c("span", { staticClass: "gwd-date" }, [_vm._v(_vm._s(_vm.date))]), _vm._v(" "), _c("span", { staticClass: "gwd-priceType" }, [ _vm._v(_vm._s(_vm.type) + ": "), _c("span", { staticClass: "gwd-price" }, [ _vm._v("¥" + _vm._s(parseFloat(_vm.price).toFixed(2))) ]) ]), _vm._v(" "), _vm.badge ? _c( "span", { class: "gwd-badge" + (_vm.badge === "最低" ? " gwd-lowest" : "") }, [_vm._v(_vm._s(_vm.badge))] ) : _vm._e() ]), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "4px", color: "#5c6266", "font-size": "10px", "line-height": "18px" } }, [_vm._t("default")], 2 ) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /* 330 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less___ = __webpack_require__(134); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_style_index_0_id_7cd833d3_scoped_true_lang_less____default.a); /***/ }), /* 331 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-promo-normal[data-v-7cd833d3] {\n line-height: initial;\n text-align: left;\n}\n.gwd-promo-normal .gwd-tp-1[data-v-7cd833d3] {\n white-space: nowrap;\n display: inline-flex;\n align-items: center;\n height: 12px;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-date[data-v-7cd833d3] {\n font-size: 12px;\n color: #999999;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-priceType[data-v-7cd833d3] {\n font-size: 12px;\n color: #999999;\n margin-left: 6px;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-priceType .gwd-price[data-v-7cd833d3] {\n color: #e4393c;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-badge[data-v-7cd833d3] {\n margin-left: 4px;\n display: inline-block;\n text-align: center;\n width: 48px;\n height: 24px;\n line-height: 19px;\n vertical-align: middle;\n border: 2px solid #5acffa;\n color: #5acffa;\n font-size: 16px;\n border-radius: 2px;\n box-sizing: border-box;\n transform: scale(0.5);\n transform-origin: center left;\n}\n.gwd-promo-normal .gwd-tp-1 .gwd-lowest[data-v-7cd833d3] {\n background: #3dbc6b;\n border: 2px solid #3dbc6b;\n color: white;\n}\n", ""]); // exports /***/ }), /* 332 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Special_vue_vue_type_template_id_07414d06_scoped_true___ = __webpack_require__(333); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___ = __webpack_require__(135); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true___ = __webpack_require__(335); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__Special_vue_vue_type_template_id_07414d06_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__Special_vue_vue_type_template_id_07414d06_scoped_true___["b" /* staticRenderFns */], false, null, "07414d06", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('07414d06')) { api.createRecord('07414d06', component.options) } else { api.reload('07414d06', component.options) } module.hot.accept("./Special.vue?vue&type=template&id=07414d06&scoped=true&", function () { api.rerender('07414d06', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromoHistory/Special.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 333 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_template_id_07414d06_scoped_true___ = __webpack_require__(334); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_template_id_07414d06_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_template_id_07414d06_scoped_true___["b"]; }); /***/ }), /* 334 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticStyle: { "text-align": "left" } }, [ _c("div", { staticClass: "gwd-topSpecialActivity" }, [ _vm._v( _vm._s(_vm.promoType) + _vm._s(_vm.priceType) + ": ¥" + _vm._s(_vm.price) + " " ), _c("span", { staticStyle: { color: "#969899" } }, [ _vm._v("(" + _vm._s(_vm.date) + ")") ]) ]), _vm._v(" "), _vm.pagePrice ? _c("div", { staticClass: "gwd-grayText" }, [ _vm._v("页面价: ¥" + _vm._s(_vm.pagePrice)) ]) : _vm._e(), _vm._v(" "), _vm.promo ? _c("div", { staticClass: "gwd-grayText" }, [ _vm._v("促: " + _vm._s(_vm.promo)) ]) : _vm._e(), _vm._v(" "), _vm.coupon ? _c("div", { staticClass: "gwd-grayText" }, [ _vm._v("券: " + _vm._s(_vm.coupon)) ]) : _vm._e() ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /* 335 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true___ = __webpack_require__(137); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Special_vue_vue_type_style_index_0_id_07414d06_lang_less_scoped_true____default.a); /***/ }), /* 336 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-grayText[data-v-07414d06] {\n font-size: 12px;\n line-height: 18px;\n color: #969899;\n /*transform: scale(0.8333);*/\n /*transform-origin: left center;*/\n}\n.gwd-topSpecialActivity[data-v-07414d06] {\n font-size: 12px;\n color: #5c6266;\n line-height: 12px;\n margin-bottom: 5px;\n white-space: nowrap;\n /*transform: scale(0.8333);*/\n /*transform-origin: left center;*/\n}\n", ""]); // exports /***/ }), /* 337 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___ = __webpack_require__(338); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___ = __webpack_require__(138); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true___ = __webpack_require__(340); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___["b" /* staticRenderFns */], false, null, "4c125ee6", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4c125ee6')) { api.createRecord('4c125ee6', component.options) } else { api.reload('4c125ee6', component.options) } module.hot.accept("./AppDownload.vue?vue&type=template&id=4c125ee6&scoped=true&", function () { api.rerender('4c125ee6', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PromoHistory/AppDownload.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 338 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___ = __webpack_require__(339); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_template_id_4c125ee6_scoped_true___["b"]; }); /***/ }), /* 339 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _vm._m(0) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-app-download" }, [ _c("img", { staticStyle: { width: "80px", height: "80px", "margin-top": "20px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/apptg181019/cli_1000px.png", alt: "" } }), _vm._v(" "), _c( "span", { staticStyle: { "font-size": "12px", color: "#555555", "margin-top": "4px" } }, [_vm._v("立即下载APP")] ), _vm._v(" "), _c("div", { staticClass: "gwd-btnSlogan" }, [ _c("span", [_vm._v("比价格")]), _vm._v(" "), _c("span", [_vm._v("查历史")]), _vm._v(" "), _c("span", [_vm._v("找优惠券")]) ]) ]) } ] render._withStripped = true /***/ }), /* 340 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true___ = __webpack_require__(140); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_AppDownload_vue_vue_type_style_index_0_id_4c125ee6_lang_less_scoped_true____default.a); /***/ }), /* 341 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-app-download[data-v-4c125ee6] {\n display: flex;\n flex-direction: column;\n align-items: center;\n line-height: 12px;\n}\n.gwd-app-download .gwd-btnSlogan[data-v-4c125ee6] {\n display: flex;\n justify-content: center;\n margin-top: 6px;\n}\n.gwd-app-download .gwd-btnSlogan span[data-v-4c125ee6] {\n font-size: 12px;\n color: #999999;\n margin-left: 5px;\n margin-right: 5px;\n}\n", ""]); // exports /***/ }), /* 342 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less___ = __webpack_require__(141); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_style_index_0_id_54b7e36a_scoped_true_lang_less____default.a); /***/ }), /* 343 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-mini-trend-right[data-v-54b7e36a] {\n /*width: 196px;*/\n padding-right: 16px;\n display: flex;\n}\n.gwd-mini-trend-right .gwd-top-price[data-v-54b7e36a] {\n margin-top: 17px;\n align-items: flex-start;\n}\n.gwd-mini-trend-right .gwd-top-price span[data-v-54b7e36a] {\n display: block;\n text-align: left;\n}\n.gwd-mini-trend-right .gwd-top-price .gwd-l1[data-v-54b7e36a] {\n font-size: 12px;\n color: #5c6266;\n height: 14px;\n line-height: 14px;\n}\n.gwd-mini-trend-right .gwd-top-price .gwd-l2[data-v-54b7e36a] {\n font-size: 12px;\n color: #fba500;\n margin-top: 6px;\n height: 11px;\n line-height: 11px;\n}\n.gwd-mini-trend-right .gwd-top-price .gwd-l3[data-v-54b7e36a] {\n margin-top: 13px;\n color: #969899;\n font-size: 12px;\n line-height: 18px;\n}\n.gwd-mini-trend-right .gwd-split[data-v-54b7e36a] {\n width: 100%;\n height: 1px;\n transform: scaleY(0.5);\n background: #edf1f2;\n margin-top: 13px;\n}\n.gwd-mini-trend-right .gwd-bottom-log[data-v-54b7e36a] {\n /*width: 354px;*/\n}\n", ""]); // exports /***/ }), /* 344 */ /***/ (function(module, exports) { module.exports = "
        \n

        历史促销优惠信息

        \n
        \n \n
        \n
        \n
        \n
        \n \"\"\n
        \n
        \n 打开购物党APP扫码查看\n
        \n
        \n
        \n\n\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n" /***/ }), /* 345 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { // 某些网站会覆盖掉js的一些方法 if (G.site === 'keede') { __webpack_require__(346)(); } if (G.site === 'ule' || G.site === 'yesmywine') { Array.prototype.filter = function (cb) { var temp = []; for (var i = 0; i < this.length; i++) { if (cb(this[i])) { temp.push(this[i]); } } return temp; }; } if (G.site === 'suning') { setTimeout(function () { $('#gwd_mini_compare').on('click', 'a', function (e) { var url = $(this).attr('href'); if (url && url.indexOf('http') > -1) { window.open($(this).attr('href')); e.preventDefault(); } }); }, 500); } if (G.site === 'wstx') { Array.prototype.indexOf = function (searchElement, fromIndex) { var k; if (this == null) { throw new TypeError('"this" is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (len === 0) { return -1; } var n = +fromIndex || 0; if (Math.abs(n) === Infinity) { n = 0; } if (n >= len) { return -1; } k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); while (k < len) { if (k in O && O[k] === searchElement) { return k; } k++; } return -1; }; } }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 346 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function () { if (G.site === 'keede' && Array.prototype.forEach.toString() !== "function forEach() { [native code] }") { Array.prototype.forEach = function (callback, thisArg) { var T, k; if (this == null) { throw new TypeError(' this is null or not defined'); } var O = Object(this); var len = O.length >>> 0; if (typeof callback !== "function") { throw new TypeError(callback + ' is not a function'); } if (arguments.length > 1) { T = thisArg; } k = 0; while (k < len) { var kValue; if (k in O) { kValue = O[k]; callback.call(T, kValue, k, O); } k++; } }; } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0))) /***/ }), /* 347 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var request = __webpack_require__(2); module.exports = { init: function init() { var EpicTrend; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__(11).waitForConditionFn(function () { var t = $('[data-component=PurchaseButton] button')[0].innerText; return t === '立即购买' || t === '预购'; })); case 2: EpicTrend = __webpack_require__(348)['default']; setTimeout(function () { var list = $('[data-component=ProductCard]'); console.log(list); var r = list.toArray().map(function (item) { var link = $(item).find('a').attr('href'); if (!link) { link = location.href; } else { link = 'https://' + location.hostname + link; } var el = $(item).find('[data-component=ProductCardBottomRowLayout]'); return { mountPoint: el, link: link }; }); console.log(r); r.forEach(function (item) { request.get(G.server + '/extension/price_towards?url=' + item.link + '&ver=1', true).then(function (res) { var e = document.createElement('div'); if (!res.store.length || !res.store[0].all_line.length) { return; } e.classList.add('gwd-tag'); $(item.mountPoint).after(e); new Vue({ el: e, render: function render(h) { return h(EpicTrend, { props: { data: res } }); } }); // debugger $(e).on('DOMNodeRemoved', function () { debugger; }); }); }); var mountPoint = $('[data-component=PurchaseButton]'); if (!mountPoint.length) { return; } if ($(mountPoint[0]).parents('[data-component=ProductCard]').length) { return; } // let priceText = $('[data-component=Price]')[0].innerText.replace('US$', '') * 100 request.get(G.server + '/extension/price_towards?url=' + location.href + '&ver=1', true).then(function (res) { var e = document.createElement('div'); if (!res.store.length || !res.store[0].all_line.length) { return; } $(mountPoint[0]).after(e); new Vue({ el: e, render: function render(h) { return h(EpicTrend, { props: { data: res, type: 'top' } }); } }); }); }, 2000); case 4: case 'end': return context$1$0.stop(); } }, null, this); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(1), __webpack_require__(0), __webpack_require__(15)["default"])) /***/ }), /* 348 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___ = __webpack_require__(349); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___ = __webpack_require__(142); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less___ = __webpack_require__(351); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["b" /* staticRenderFns */], false, null, "bc2362ee", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('bc2362ee')) { api.createRecord('bc2362ee', component.options) } else { api.reload('bc2362ee', component.options) } module.hot.accept("./EpicTrend.vue?vue&type=template&id=bc2362ee&scoped=true&", function () { api.rerender('bc2362ee', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/EpicTrend.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 349 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___ = __webpack_require__(350); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_template_id_bc2362ee_scoped_true___["b"]; }); /***/ }), /* 350 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-epic-bar-container gwd-row", style: _vm.type === "top" ? "margin-top: 6px;" : "" }, [ _c( "div", { staticClass: "gwd-epic-price gwd-row gwd-align", style: _vm.type === "top" ? "margin-right: 0px;" : "", on: { mouseover: _vm.draw } }, [ _vm._v("\n " + _vm._s(_vm.priceStatusText) + "\n "), _c("img", { staticStyle: { "margin-left": "6px", transform: "scale(0.5)", "transform-origin": "left center" }, attrs: { src: _vm.priceTrendIcon, alt: "" } }), _vm._v(" "), _c("div", { staticClass: "gwd-price-trend-panel" }, [ _c("div", { staticClass: "gwd-top-price gwd-row" }, [ _c( "span", { staticClass: "gwd-price-text", staticStyle: { "border-color": "#ff5627", color: "#ff5627" } }, [ _vm._v( "最高: $" + _vm._s(parseFloat(_vm.data.store[0].highest).toFixed(2)) ) ] ), _vm._v(" "), _c( "span", { staticClass: "gwd-price-text", staticStyle: { "border-color": "#9ed81e", color: "#9ed81e" } }, [ _vm._v( "最低: $" + _vm._s(parseFloat(_vm.data.store[0].lowest).toFixed(2)) ) ] ) ]), _vm._v(" "), _c( "span", { staticStyle: { position: "absolute", color: "#777777", "font-size": "12px", top: "37px", left: "28px", "z-index": "3" } }, [_vm._v("价格(US$)")] ), _vm._v(" "), _c("div", { ref: "plotArea", staticStyle: { "margin-top": "-1px", height: "207px" } }) ]) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /* 351 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less___ = __webpack_require__(145); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_style_index_0_id_bc2362ee_scoped_true_lang_less____default.a); /***/ }), /* 352 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-epic-bar-container[data-v-bc2362ee] {\n position: relative;\n z-index: 2;\n margin-top: -10px;\n height: 45px;\n justify-content: flex-end;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-bc2362ee] {\n width: 262px;\n height: 32px;\n background: #007feb;\n border-radius: 3px;\n color: white;\n justify-content: center;\n margin-right: 32px;\n position: relative;\n font-size: 12px;\n cursor: pointer;\n}\n.gwd-epic-bar-container .gwd-epic-price .gwd-price-trend-panel[data-v-bc2362ee] {\n position: absolute;\n width: 400px;\n height: 260px;\n background: #1E1E1E;\n box-shadow: 0px 4px 9px 0px #030303;\n border-radius: 2px 0px 0px 2px;\n overflow: hidden;\n top: 32px;\n right: 0;\n z-index: 3;\n display: none;\n}\n.gwd-epic-bar-container .gwd-epic-price[data-v-bc2362ee]:hover {\n background: #1e94f8;\n}\n.gwd-epic-bar-container .gwd-epic-price:hover .gwd-price-trend-panel[data-v-bc2362ee] {\n z-index: 3;\n display: block;\n}\n.gwd-epic-bar-container .gwd-top-price[data-v-bc2362ee] {\n margin-top: 18px;\n justify-content: center;\n position: relative;\n z-index: 3;\n}\n.gwd-epic-bar-container .gwd-top-price .gwd-price-text[data-v-bc2362ee] {\n display: inline-block;\n min-width: 88px;\n height: 26px;\n margin-left: 18px;\n margin-right: 18px;\n text-align: center;\n border-width: 1px;\n border-style: solid;\n line-height: 24px;\n}\n.ttip-discount[data-v-bc2362ee] {\n background: #000000;\n color: #aaaaaa;\n width: 110px;\n height: 52px;\n}\n", ""]); // exports /***/ }), /* 353 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__(5); var log = __webpack_require__(9); var renderChart = function renderChart(data) { renderBtn(data); renderDetail(); var id = 'trend_box'; $('.min-max-price-lable .max-lab').text('最高:¥' + data.store[0].highest); $('.min-max-price-lable .min-lab').text('最低:¥' + data.store[0].lowest); __webpack_require__(144)({ el: id, msg: data.store[0] }); }; var priceTle = { 'pri-t1': "价格上涨", 'pri-t0': "价格平稳", 'pri-t-1': "价格下降", 'pri-t-2': "历史最低" }; var renderBtn = function renderBtn(data) { var dom = $('.game_purchase_action:contains("开始游戏")'); if (dom.length === 0) dom = $('.game_purchase_action:contains("在购物车中")'); if (dom.length === 0) dom = $('.game_purchase_action:contains("添加至购物车")'); var status = data.price_status; var status_str = 'pri-t' + status; var status_tle = priceTle[status_str]; var html = __webpack_require__(354); var bixbox = dom.eq(0); var bigboxwidth = bixbox.width(); var children = bixbox.children(); var w = 0; for (var i = 0; i < children.length; i++) { w += children.eq(i).outerWidth(); } var btnleft = bigboxwidth - w - 5 - 108; var imgurls = G.s_server + '/images/extensions/newbar'; if ($('#steam_tremd_btn').length) { return; } dom.eq(0).prepend(template.compile(html)({ imgurl: imgurls, btnleft: btnleft, status_tle: status_tle, status_str: status_str, ext_class: G.from_device.indexOf('bijiago') > -1 ? 'bjgou' : '' })); }; var addEvent = function addEvent() { var time1 = undefined; $('#steam_tremd_btn').on('mouseenter', function () { $('#trenm_trend_detail').show(); $('#steam_tremd_btn').addClass('_mshover'); log('steam-trend-track'); }); $('#steam_tremd_btn').on('mouseleave', function () { time1 = setTimeout(function () { $('#trenm_trend_detail').hide(); $('#steam_tremd_btn').removeClass('_mshover'); }, 300); }); $('#trenm_trend_detail').on('mouseenter', function () { clearTimeout(time1); }); $('#trenm_trend_detail').on('mouseleave', function () { $('#trenm_trend_detail').hide(); $('#steam_tremd_btn').removeClass('_mshover'); }); }; var renderDetail = function renderDetail() { var html = __webpack_require__(355); var dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("开始游戏")'); if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("在购物车中")'); if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game:contains("添加至购物车")'); if (dom.length === 0) dom = $('#steam_tremd_btn').parents('.game_area_purchase_game_wrapper:contains("添加至购物车")'); dom.eq(0).append(template.compile(html)()); dom.eq(0).addClass('steam_box_tt'); addEvent(); }; module.exports.init = function (data) { if (!data || data instanceof Array || data.store[0].all_line.length === 0) return; renderChart(data); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(1), __webpack_require__(0))) /***/ }), /* 354 */ /***/ (function(module, exports) { module.exports = "
        \n {{status_tle}}\n \n \n
        " /***/ }), /* 355 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n
        \n
        \n 最高:¥5.00\n 最低:¥3.00\n
        \n \n
        \n \n
        " /***/ }), /* 356 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n \n
        \n
        \n < 上一页\n {{if totalPages > 1}}\n 下一页 >\n {{/if}}\n {{if linkAll}}\n 查看全部\n {{/if}}\n
        \n \n \n
        \n" /***/ }), /* 357 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n
          \n {{each data}}\n
        • \n \n \n {{if $value.promo}}\n {{$value.promo}}\n {{/if}}\n \n \n {{$value.title}}\n \n \n \n {{$value.site_name}}\n \n 页面价:¥{{$value.last_price}}\n 到手价:¥{{$value.price}}\n
        • \n {{/each}}\n \n
        \n
        \n
        \n < 上一页\n {{if totalPages > 1}}\n 下一页 >\n {{/if}}\n {{if linkAll}}\n 查看全部\n {{/if}}\n
        \n
        " /***/ }), /* 358 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (time, type) { // 1: xxxx-xx-xx 2.xx-xx 3.xx.xx 4. xxxx.xx.xx var dateObj = new Date(time); var y = dateObj.getFullYear(); var m = dateObj.getMonth() + 1; var d = dateObj.getDate(); var h = dateObj.getHours(); var mi = dateObj.getMinutes(); var ss = dateObj.getSeconds(); if (m < 10) m = '0' + m; if (d < 10) d = '0' + d; if (ss < 10) ss = '0' + ss; if (mi < 10) mi = '0' + mi; if (h < 10) h = '0' + h; var str = ''; switch (type) { case "1": str = y + '-' + m + '-' + d; break; case "2": str = m + '-' + d; break; case "3": str = m + '.' + d; break; case "4": str = y + '.' + m + '.' + d; break; case "5": str = y + '/' + m + '/' + d; break; case "6": str = y + '/' + m + '/' + d + '/' + h + ':' + mi + ':' + ss; break; case "7": str = y + '-' + m + '-' + d + ' ' + h + ':' + mi + ':' + ss; break; default: str = '(' + y + '.' + m + '.' + d + ')'; } return str; }; /***/ }), /* 359 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n \n 抢购提醒\n
        \n
        \n 设置提醒\n \n \n 已设置抢购提醒\n \n \n 您还没有绑定公众号请先扫码绑定\n \n \n \n \n 扫码关注购物党公众号\n 开售前5分钟推送提醒\n
        \n
        \n
        \n
        \n
        \n
        \n" /***/ }), /* 360 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n \n \n \n
        \n
        \n {{if newTime}}\n
        \n
        \n \n 抢购提醒\n
        \n
        \n {{else}}\n
        \n
        \n \n 降价提醒\n
        \n
        \n {{/if}}\n
        \n
        \n
        \n
        \n
        \n
        \n" /***/ }), /* 361 */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /* 362 */ /***/ (function(module, exports) { module.exports = "
        \n

        同款比价

        \n \n {{if storeSize > 6}}\n \n 查看全部({{storeSize}})\n \n {{/if}}\n \n
        \n" /***/ }), /* 363 */ /***/ (function(module, exports) { module.exports = "
        \n \n \n
        \n
        \n
          \n
        • 男装
        • \n
        • 女装
        • \n
        • 童装
        • \n
        • 男鞋
        • \n
        • 女鞋
        • \n
        • 童鞋
        • \n
        \n
        \n
        单位:厘米(CM)
        \n
        单位:毫米(MM)
        \n
        \n
        \n
        \n 上装\n 下装\n 0 ~ 4岁\n 4 ~ 12岁\n 鞋子\n 0 ~ 4岁\n 4 ~ 12岁\n \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n \n
        \n
        \n \n 此尺码为一般尺码,不同品牌可能会存在相应不同\n
        \n
        \n
        \n
        \n
        在线尺寸转换工具
        \n
        \n \n \n
        \n \n \n 厘米\n 毫米\n 英尺\n 英寸\n \n \n \n \n \n
        \n 转换为\n \n \n
        \n \n \n 厘米\n 毫米\n 英尺\n 英寸\n \n \n \n \n \n
        \n
        \n
        \n
        " /***/ }), /* 364 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n \n \n \n
        \n
        \n
        \n
        \n 最高:\n \n 最低:\n \n
        \n 降价提醒\n
        \n
        \n
        \n
        \n
        \n
        \n
        \n \n
        \n
        \n
        \n \n 降价提醒\n
        \n
        \n
        \n \n
        " /***/ }), /* 365 */ /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /* 419 */ /***/ (function(module, exports) { module.exports = "
        \n \n {{ text }}\n
        \n \n \n 立即领取\n
        \n \"\"\n \n 微信扫码\n 领红包\n \n
        \n
        \n
        \n" /***/ }), /* 420 */ /***/ (function(module, exports) { module.exports = "
        \n \"\"\n
        \n \"\"\n \n 微信扫码\n 领红包\n \n
        \n
        \n" /***/ }), /* 421 */ /***/ (function(module, exports) { module.exports = "
        \n \"\"\n {{ text }}\n
        \n \"\"\n
        \n 微信扫码\n {{ qrText }}\n
        \n
        \n
        \n" /***/ }), /* 422 */ /***/ (function(module, exports) { module.exports = "\n \n {{ text }}\n
        \n \n 立即领取\n
        \n" /***/ }), /* 423 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) {// 京东礼金 var _this2 = this; var request = __webpack_require__(2); var globalCondition = __webpack_require__(3); module.exports.init = function callee$0$0() { var config; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(G.site !== '360buy')) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!G.forbidGiftMoney) { context$1$0.next = 6; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__(38).init('qr'); return context$1$0.abrupt('return'); case 6: context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__(11).waitForConditionFn(function () { return $('#summary-tips').length > 0; })); case 8: if (!($('#summary-tips').text().indexOf('不可使用东券') > -1 || $('#summary-tips').text().indexOf('不可使用京券、东券') > -1)) { context$1$0.next = 12; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__(38).init('qr'); return context$1$0.abrupt('return'); case 12: if (!($('#pingou-banner .activity-type strong').text().indexOf('预售') > -1)) { context$1$0.next = 16; break; } globalCondition.setMet('noOtherGiftMoney'); __webpack_require__(38).init('qr'); return context$1$0.abrupt('return'); case 16: context$1$0.next = 18; return regeneratorRuntime.awrap(request.rawGet('https://cdn.gwdang.com/js/configs/gwdang.json')); case 18: config = context$1$0.sent; if (!config.allowJdGiftMoney) { context$1$0.next = 24; break; } context$1$0.next = 22; return regeneratorRuntime.awrap((function callee$1$0() { var payload, duomaiData, params, res; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: payload = { rebate: 1, dp_id: G.dp.itemId }; if (!config.allowDuomai) { context$2$0.next = 13; break; } context$2$0.prev = 2; context$2$0.next = 5; return regeneratorRuntime.awrap(request.rawGet('https://u.gwdang.com/gyp/jd/item?id=' + G.dp.itemId.replace('-3', ''))); case 5: duomaiData = context$2$0.sent; payload.rate = (parseFloat(duomaiData.commission_rate) * 100).toFixed(2); payload.price = duomaiData.price * (location.href.indexOf('debugExt') > -1 ? 10000 : 1); context$2$0.next = 13; break; case 10: context$2$0.prev = 10; context$2$0.t0 = context$2$0['catch'](2); console.warn(context$2$0.t0); case 13: params = Object.keys(payload).map(function (k) { return k + '=' + encodeURIComponent(payload[k]); }).join('&'); context$2$0.next = 16; return regeneratorRuntime.awrap(request.get(G.server + '/extension/Coupon?' + params)); case 16: res = context$2$0.sent; if (res.rebate && res.rebate >= 1) { (function () { __webpack_require__(4).log('jdGiftMoney:show'); if (res._jump === 'qrcode') { __webpack_require__(4).log('jdGiftMoney:needScanQr'); __webpack_require__(4).log('jdGiftMoney:-needScanQr'); } else if (res._jump === 'link') { __webpack_require__(4).log('jdGiftMoney:needClickLink'); } var GiftMoney = __webpack_require__(430)['default']; $('#gwd-coupon-placeholder').replaceWith('
        '); new Vue({ el: '#gwd-giftmoney', render: function render(h) { return h(GiftMoney, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, tag: res._tag } }); } }); $('#gwdang-banner-ad').remove(); var GiftMoneyTop = __webpack_require__(163)['default']; $('.gwd-topbar-left').append('
        '); new Vue({ el: '#gwd-giftmoney-top', render: function render(h) { return h(GiftMoneyTop, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, tag: res._tag } }); } }); //require('standard/module/jdPriceProtect').init('redpack') })(); } else { globalCondition.setMet('noOtherGiftMoney'); __webpack_require__(38).init('qr'); } case 18: case 'end': return context$2$0.stop(); } }, null, _this, [[2, 10]]); })()); case 22: context$1$0.next = 26; break; case 24: globalCondition.setMet('noOtherGiftMoney'); __webpack_require__(38).init('qr'); case 26: case 'end': return context$1$0.stop(); } }, null, _this2); }; //if (navigator.userAgent.toLowerCase().indexOf('metasr') === -1) return // let prev = 'www.duomai.com' // if (!G.allowBackgroundRequest) { // prev = 'browser.bijiago.com/duomai' // } // let duomaiData = await request.rawGet(`https://${prev}/api/duomai_product.php?type=jd&good_id=${G.dp.itemId.replace('-3', '')}`) // //let duomaiData = await request.get(`https://www.duomai.com/api/duomai_product.php?type=jd&good_id=${G.dp.itemId.replace('-3', '')}`) // if (typeof duomaiData === 'string') { // duomaiData = JSON.parse(duomaiData) // } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(7), __webpack_require__(0), __webpack_require__(1), __webpack_require__(15)["default"])) /***/ }), /* 424 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___ = __webpack_require__(425); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___ = __webpack_require__(167); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___ = __webpack_require__(428); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["b" /* staticRenderFns */], false, null, "09436700", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('09436700')) { api.createRecord('09436700', component.options) } else { api.reload('09436700', component.options) } module.hot.accept("./GwdPriceProtectMiddle.vue?vue&type=template&id=09436700&scoped=true&", function () { api.rerender('09436700', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/GwdPriceProtectMiddle.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 425 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___ = __webpack_require__(426); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_template_id_09436700_scoped_true___["b"]; }); /***/ }), /* 426 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-minibar-element", staticStyle: { height: "36px", width: "460px", background: "white", "align-items": "center", display: "flex", position: "relative" }, attrs: { id: "gwd-price-protect" }, on: { mouseover: _vm.over } }, [ _c("img", { staticStyle: { "margin-left": "11px", width: "16px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/price-protect@2x.png", alt: "" } }), _vm._v(" "), _vm.mode === "qr" ? _c( "span", { staticStyle: { "margin-left": "10px", "font-size": "12px", color: "#ff3532", "margin-top": "-2px" } }, [_vm._v("买完就降价?购物党公众号提醒你申请返差价")] ) : _vm._e(), _vm._v(" "), _vm.mode === "redpack" ? _c( "span", { staticClass: "gwd-hui999 gwd-font12", staticStyle: { "margin-left": "10px" } }, [ _vm._v( "\n 当前商品支持价格保护,扫码领红包下单后为您添加降价提醒\n " ) ] ) : _vm._e(), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.mode === "qr" ? _c("img", { attrs: { src: __webpack_require__(427), alt: "" } }) : _vm._e(), _vm._v(" "), _vm.mode === "qr" ? _c("span", { staticClass: "gwd-qr-scan" }, [_vm._v("扫码关注")]) : _vm._e(), _vm._v(" "), _vm.mode === "qr" ? _c( "div", { staticClass: "gwd-price-protect-qr gwd-column gwd-align" }, [ _vm.qrLink ? _c("img", { attrs: { src: _vm.qrLink, alt: "" } }) : _vm._e(), _vm._v(" "), _vm._m(0) ] ) : _vm._e() ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "span", { staticClass: "gwd-font12", staticStyle: { "margin-top": "6px" } }, [ _c("span", { staticClass: "gwd-red" }, [_vm._v("微信扫码")]), _vm._v(" "), _c( "span", { staticClass: "gwd-hui333", staticStyle: { "margin-left": "3px" } }, [_vm._v("获取价保提醒")] ) ] ) } ] render._withStripped = true /***/ }), /* 427 */ /***/ (function(module, exports) { module.exports = "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iMjNweCIgaGVpZ2h0PSIxMHB4IiB2aWV3Qm94PSIwIDAgMjMgMTAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8IS0tIEdlbmVyYXRvcjogU2tldGNoIDUyLjEgKDY3MDQ4KSAtIGh0dHA6Ly93d3cuYm9oZW1pYW5jb2RpbmcuY29tL3NrZXRjaCAtLT4KICAgIDx0aXRsZT7nrq3lpLQ8L3RpdGxlPgogICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+CiAgICA8ZyBpZD0iMeaciOS/ruaUuSIgc3Ryb2tlPSJub25lIiBzdHJva2Utd2lkdGg9IjEiIGZpbGw9Im5vbmUiIGZpbGwtcnVsZT0iZXZlbm9kZCI+CiAgICAgICAgPGcgaWQ9IuaPkuS7tue6ouWMhSIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTExNDguMDAwMDAwLCAtNTU3LjAwMDAwMCkiIGZpbGw9IiNGRjU2NTIiPgogICAgICAgICAgICA8ZyBpZD0i5YiG57uELTQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDgyMi4wMDAwMDAsIDU0NS4wMDAwMDApIj4KICAgICAgICAgICAgICAgIDxnIGlkPSLnrq3lpLQiIHRyYW5zZm9ybT0idHJhbnNsYXRlKDMyNi4wMDAwMDAsIDEyLjAwMDAwMCkiPgogICAgICAgICAgICAgICAgICAgIDxwb2x5Z29uIGlkPSLot6/lvoQiIHBvaW50cz0iMTYuNjk4MTYxOCA5LjE0MjU4MjQgMjEuMjgyNTUwMiA1IDE2LjY5ODE2MTggMC44NTc0MTc2MDMgMTcuMzUzMDc0NCAwLjI2NTYyMDExOCAyMi41OTIzNzU0IDUgMTcuMzUzMDc0NCA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hC1jb3B5IiBvcGFjaXR5PSIwLjgiIHBvaW50cz0iOC40NDE3ODIwOSA5LjE0MjU4MjQgMTMuMDI2MTcwNCA1IDguNDQxNzgyMDkgMC44NTc0MTc2MDMgOS4wOTY2OTQ3MSAwLjI2NTYyMDExOCAxNC4zMzU5OTU3IDUgOS4wOTY2OTQ3MSA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICAgICAgPHBvbHlnb24gaWQ9Iui3r+W+hC1jb3B5LTIiIG9wYWNpdHk9IjAuNCIgcG9pbnRzPSIwLjE4NTQwMjM3NCA5LjE0MjU4MjQgNC43Njk3OTA3MiA1IDAuMTg1NDAyMzc0IDAuODU3NDE3NjAzIDAuODQwMzE0OTk2IDAuMjY1NjIwMTE4IDYuMDc5NjE1OTcgNSAwLjg0MDMxNDk5NiA5LjczNDM3OTg4Ij48L3BvbHlnb24+CiAgICAgICAgICAgICAgICA8L2c+CiAgICAgICAgICAgIDwvZz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPg==" /***/ }), /* 428 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___ = __webpack_require__(169); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_style_index_0_id_09436700_scoped_true_lang_less____default.a); /***/ }), /* 429 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-qr-scan[data-v-09436700] {\n width: 64px;\n height: 22px;\n background: #FF3532;\n border-radius: 11px;\n font-size: 12px;\n color: white;\n margin-left: 31px;\n margin-right: 11px;\n text-align: center;\n line-height: 20px;\n cursor: pointer;\n position: relative;\n}\n.gwd-price-protect-qr[data-v-09436700] {\n display: none;\n position: absolute;\n box-sizing: border-box;\n width: 148px;\n height: 156px;\n right: 0;\n top: 36px;\n border: 1px solid #ff3532;\n background: #fff7f7;\n z-index: 99;\n}\n.gwd-price-protect-qr img[data-v-09436700] {\n margin-top: 7px;\n width: 120px;\n height: 120px;\n}\n#gwd-price-protect:hover .gwd-price-protect-qr[data-v-09436700] {\n display: flex;\n}\n", ""]); // exports /***/ }), /* 430 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___ = __webpack_require__(431); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___ = __webpack_require__(170); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__GiftMoney_vue_vue_type_style_index_0_id_5b302872_scoped_true_lang_less___ = __webpack_require__(433); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css___ = __webpack_require__(435); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___["b" /* staticRenderFns */], false, null, "5b302872", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('5b302872')) { api.createRecord('5b302872', component.options) } else { api.reload('5b302872', component.options) } module.hot.accept("./GiftMoney.vue?vue&type=template&id=5b302872&scoped=true&", function () { api.rerender('5b302872', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/GiftMoney.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 431 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___ = __webpack_require__(432); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_template_id_5b302872_scoped_true___["b"]; }); /***/ }), /* 432 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "bjgou-subsidy-bar bjgou-component coupon-box1", staticStyle: { display: "flex" }, attrs: { id: "coupon_box" }, on: { click: _vm.goLink } }, [ _vm._m(0), _vm._v(" "), _c( "span", { staticClass: "bjg-bold", staticStyle: { "margin-left": "11px" } }, [_vm._v("当前商品可领购物党红包,预估立减" + _vm._s(_vm.value) + "元")] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c("img", { staticStyle: { width: "26px", height: "10px" }, attrs: { src: "https://cdn.bijiago.com/images/extensions/bijiago/right-arrow.svg", alt: "" } }), _vm._v(" "), _c( "div", { staticClass: "bjg-take", staticStyle: { "margin-left": "25px", "margin-right": "15px" }, on: { mouseover: _vm.over } }, [ _c("span", { staticStyle: { flex: "1", color: "#ff2d53" } }, [ _vm._v("¥" + _vm._s(_vm.value)) ]), _vm._v(" "), _c( "span", { staticClass: "taker", staticStyle: { "margin-top": "-1px" } }, [_vm._v("领取")] ), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "qrcode" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "120px", height: "120px" }, style: _vm.qrcode ? "" : "visibility: hidden", attrs: { src: _vm.qrcode, alt: "" } }), _vm._v(" "), _vm.error ? _c("QrError", { on: { refresh: _vm.over } }) : _vm._e(), _vm._v(" "), _vm._m(1) ], 1 ) : _vm._e() ] ) ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "bjg-badge" }, [ _c("img", { staticStyle: { width: "14px", height: "17px" }, attrs: { src: "https://cdn.bijiago.com/images/extensions/activity/giftmoney@2x.png" } }) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticStyle: { "margin-top": "4px", "text-align": "center" } }, [ _c( "span", { staticStyle: { "font-weight": "bold", color: "#ff2d53", "font-size": "14px" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [_vm._v("领红包")] ) ] ) } ] render._withStripped = true /***/ }), /* 433 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_0_id_5b302872_scoped_true_lang_less___ = __webpack_require__(172); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_0_id_5b302872_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_0_id_5b302872_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_0_id_5b302872_scoped_true_lang_less____default.a); /***/ }), /* 434 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".bjgou-subsidy-bar[data-v-5b302872] {\n width: 460px;\n background: white;\n border-left: 1px solid #e6e9eb;\n border-right: 1px solid #e6e9eb;\n border-bottom: 1px solid #e6e9eb;\n display: inline-flex;\n align-items: center;\n height: 34px;\n}\n.bjgou-subsidy-bar .bjg-badge[data-v-5b302872] {\n margin-left: 13px;\n font-size: 0;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-5b302872] {\n font-size: 13px;\n font-weight: bold;\n color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-5b302872] {\n min-width: 87px;\n height: 22px;\n border: 0.5px solid #FF2D53;\n position: relative;\n display: flex;\n cursor: pointer;\n border-radius: 2px;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-5b302872] {\n font-size: 12px;\n text-align: center;\n line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-5b302872] {\n color: white;\n width: 36px;\n height: 24px;\n line-height: 24px;\n background: linear-gradient(90deg, #FF3A62 0%, #FF665B 100%);\n display: inline-block;\n}\n.bjgou-subsidy-bar .bjg-take .qrcode[data-v-5b302872] {\n display: none;\n position: absolute;\n top: 27px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.bjgou-subsidy-bar .bjgou-subsidy-bar:hover .qrcode[data-v-5b302872] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /* 435 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css___ = __webpack_require__(173); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_0_13_2_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css____default.a); /***/ }), /* 436 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, "\n.qrcode[data-v-5b302872] {\n display: none;\n position: absolute;\n top: 27px;\n right: -15px;\n width: 148px;\n height: 156px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.bjgou-subsidy-bar:hover .qrcode[data-v-5b302872] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n#coupon_box.coupon-box1[data-v-5b302872] {\n width: 460px;\n height: 34px;\n background-color: #fff;\n border: 1px solid #e8e8e8;\n border-top: none;\n position: relative;\n margin: 0px;\n padding: 0px;\n float: left;\n display: block;\n}\n#coupon_box[data-v-5b302872]:after {\n display: block;\n content: \"\";\n clear: both;\n}\n.gwd_tmall #gwd_minibar[data-v-5b302872] {\n float: none;\n}\n#coupon_box *[data-v-5b302872] {\n cursor: pointer;\n}\n.minicoupon_detail[data-v-5b302872] {\n position: absolute;\n top: 35px;\n right: -1px;\n height: 150px;\n width: 132px;\n display: none;\n z-index: 99999999999;\n background: #FFF7F8;\n border: 1px solid #F95774;\n}\n#coupon_box:hover .minicoupon_detail[data-v-5b302872] {\n display: block;\n}\n#coupon_box:hover .gwd-qrcode-container[data-v-5b302872] {\n display: flex;\n}\n#coupon_box:hover .gwd-qrcode-container[data-v-5b302872] {\n right: 0!important;\n margin-right: 0!important;\n z-index: 999;\n}\n#coupon_box:hover .gwd-qrcode-jd[data-v-5b302872] {\n top: 6px;\n}\n.minicoupon_detail img[data-v-5b302872] {\n width: 114px;\n height: 114px;\n float: left;\n margin-left: 9px;\n margin-top: 9px;\n}\n.minicoupon_detail span[data-v-5b302872] {\n font-size: 14px;\n color: #F95572;\n letter-spacing: 0;\n font-weight: bold;\n float: left;\n height: 12px;\n line-height: 14px;\n width: 100%;\n margin-top: 6px;\n text-align: center;\n}\n.coupon-box1 *[data-v-5b302872] {\n font-family: 'Microsoft YaHei',Arial,SimSun;\n}\n.coupon-icon[data-v-5b302872] {\n float: left;\n width: 20px;\n height: 20px;\n background: url('https://cdn.gwdang.com/images/extensions/newbar/coupon_icon.png') 0px 0px no-repeat;\n margin: 9px 8px 9px 12px;\n}\n#coupon_box .coupon-tle[data-v-5b302872] {\n color: #FF3B5C;\n font-size: 12px;\n margin-right: 11px;\n float: left;\n height: 34px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n width: 301px;\n line-height: 34px;\n text-decoration: none!important;\n}\n#coupon_box .coupon-tle *[data-v-5b302872] {\n color: #f15672;\n}\n#coupon_box .coupon-tle span[data-v-5b302872] {\n margin-right: 5px;\n}\n.coupon_gif[data-v-5b302872] {\n background: url('https://cdn.gwdang.com/images/extensions/newbar/turn.gif') 0px 0px no-repeat;\n float: right;\n height: 20px;\n width: 56px;\n margin-top: 9px;\n}\n.click2get[data-v-5b302872] {\n width: 70px;\n height: 18px;\n background: linear-gradient(90deg, #EF2525 0%, #FF2F20 100%);\n border-radius: 9px;\n text-align: center;\n}\n.click2get span[data-v-5b302872] {\n font-size: 12px;\n color: #fff;\n}\n.c2g-sp1[data-v-5b302872] {\n width: 50px;\n color: #FF3B5C;\n text-align: center;\n font-size: 14px;\n line-height: 24px!important;\n}\n.c2g-sp2[data-v-5b302872] {\n width: 44px;\n line-height: 24px!important;\n color: #fff!important;\n text-align: center;\n}\ndiv#gwd_wishlist_div.gwd_wishlist_div[data-v-5b302872] {\n border-bottom-right-radius: 0px;\n border-bottom-left-radius: 0px;\n}\n", ""]); // exports /***/ }), /* 437 */ /***/ (function(module, exports) { module.exports = "
        \n {{ if showPinPrice }}\n
        \n \"\"\n
        \n {{/if}}\n {{ if (coupon) }}\n
        \n {{ #coupon }}\n
        \n {{ /if}}\n \"\"\n 微信扫码 购买\n
        \n" /***/ }), /* 438 */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /* 439 */ /***/ (function(module, exports) { module.exports = "\n \n
        \n 当前商品可领内部券,立减{{data.coupon.coupon_money}}元 \n \n
        \n
        \n ¥{{data.coupon.coupon_money}}\n 领取\n
        \n {{if picUrl && isShowPic}}\n
        \n \n 微信扫码领券\n
        \n {{/if}}\n \n
        " /***/ }), /* 440 */ /***/ (function(module, exports) { module.exports = "\n" /***/ }), /* 441 */ /***/ (function(module, exports) { module.exports = "\n \n
        \n 当前商品领券立减{{data.coupon.coupon_money}}元 \n \n
        \n
        \n ¥{{data.coupon.coupon_money}}\n 领取\n
        \n {{if picUrl && isShowPic}}\n
        \n \n {{ useTaobao? '淘宝': '微信' }}扫码领券\n
        \n {{/if}}\n \n
        " /***/ }), /* 442 */ /***/ (function(module, exports) { module.exports = "
        \n \"\"\n 当前网络异常\n 点此刷新\n
        \n" /***/ }), /* 443 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Vue) { var request = __webpack_require__(2); module.exports = { init: function init() { var g_config = window.g_config; var hasShopCoupon = false; setTimeout(function () { if (!hasShopCoupon) __webpack_require__(3).setMet('shopCouponGot', false); }, 3000); request.get(G.server + '/extension/Coupon?dp_id=' + G.dp.itemId + '&sellerId=' + g_config.sellerId + '&price=' + G.dp.price).then(function (res) { __webpack_require__(3).setMet('shopCouponGot', res && res.shop_coupon); hasShopCoupon = true; if (!res || !res.shop_coupon) return; var coupon = res.shop_coupon; setTimeout(function () { $('#gwd-coupon-placeholder').replaceWith('
        '); var ShopCouponMini = __webpack_require__(444)['default']; var ShopCouponTop = __webpack_require__(450)['default']; new Vue({ el: '#shopCouponMini', render: function render(h) { return h(ShopCouponMini, { props: { coupon: coupon } }); } }); $('.gwd-topbar-left').append('
        '); new Vue({ el: '#shopCouponTop', render: function render(h) { return h(ShopCouponTop, { props: { coupon: coupon } }); } }); }, 0); }); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1), __webpack_require__(15)["default"])) /***/ }), /* 444 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ShopCouponMini_vue_vue_type_template_id_4a9a57be_scoped_true___ = __webpack_require__(445); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ShopCouponMini_vue_vue_type_script_lang_js___ = __webpack_require__(175); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__ShopCouponMini_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__ShopCouponMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ShopCouponMini_vue_vue_type_style_index_0_id_4a9a57be_scoped_true_lang_less___ = __webpack_require__(447); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__ShopCouponMini_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__ShopCouponMini_vue_vue_type_template_id_4a9a57be_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__ShopCouponMini_vue_vue_type_template_id_4a9a57be_scoped_true___["b" /* staticRenderFns */], false, null, "4a9a57be", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('4a9a57be')) { api.createRecord('4a9a57be', component.options) } else { api.reload('4a9a57be', component.options) } module.hot.accept("./ShopCouponMini.vue?vue&type=template&id=4a9a57be&scoped=true&", function () { api.rerender('4a9a57be', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/ShopCouponMini.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 445 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_template_id_4a9a57be_scoped_true___ = __webpack_require__(446); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_template_id_4a9a57be_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_template_id_4a9a57be_scoped_true___["b"]; }); /***/ }), /* 446 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-shop-coupon" }, [ _c("span", { staticClass: "gwd-cp" }, [_vm._v("券")]), _vm._v(" "), _c( "span", { staticClass: "gwd-coupon-big", staticStyle: { "margin-left": "10px" } }, [_vm._v("当前商品领券")] ), _vm._v(" "), _c( "span", { staticClass: "gwd-coupon-big", staticStyle: { "margin-left": "10px" } }, [ _vm._v( "满" + _vm._s(_vm.coupon.limit) + "减" + _vm._s(_vm.coupon.discount) ) ] ), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _c("img", { staticStyle: { width: "26px", height: "10px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/bijiago/right-arrow.svg", alt: "" } }), _vm._v(" "), _c( "div", { staticClass: "gwd-coupon-take", on: { mouseover: _vm.mouseover } }, [ _c( "span", { staticStyle: { width: "51px", display: "inline-block", "line-height": "24px", color: "#ff6132", "font-size": "14px", "text-align": "center" } }, [_vm._v("¥" + _vm._s(_vm.coupon.discount))] ), _vm._v(" "), _c( "span", { staticStyle: { "font-size": "12px", color: "white", "text-align": "center", flex: "1" } }, [_vm._v("领取")] ), _vm._v(" "), _c("div", { staticClass: "gwd-coupon-qr" }, [ _c( "span", { staticClass: "gwd-coupon-title", staticStyle: { "margin-top": "6px" } }, [ _vm._v( "领券满" + _vm._s(_vm.coupon.limit) + "减" + _vm._s(_vm.coupon.discount) ) ] ), _vm._v(" "), _c("img", { staticStyle: { "margin-top": "5px", width: "120px", height: "120px" }, attrs: { src: this.img, alt: "" } }), _vm._v(" "), _vm._m(0) ]) ] ) ]) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticStyle: { "vertical-align": "bottom", "margin-top": "8px", "text-align": "center", height: "14px", "line-height": "14px" } }, [ _c( "span", { staticStyle: { "font-size": "14px", "font-weight": "bold", color: "#ff6132" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", "font-size": "12px", color: "#333333" } }, [_vm._v("领券")] ) ] ) } ] render._withStripped = true /***/ }), /* 447 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_style_index_0_id_4a9a57be_scoped_true_lang_less___ = __webpack_require__(177); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_style_index_0_id_4a9a57be_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_style_index_0_id_4a9a57be_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponMini_vue_vue_type_style_index_0_id_4a9a57be_scoped_true_lang_less____default.a); /***/ }), /* 448 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-shop-coupon[data-v-4a9a57be] {\n border: 1px solid #e6e9eb;\n border-top: none;\n display: flex;\n width: 460px;\n height: 37px;\n align-items: center;\n}\n.gwd-shop-coupon .gwd-cp[data-v-4a9a57be] {\n margin-left: 11px;\n display: inline-block;\n text-align: center;\n line-height: 18px;\n width: 18px;\n height: 18px;\n font-size: 13px;\n color: white;\n font-weight: bold;\n border-radius: 2px;\n background: linear-gradient(90deg, #FF2A1A 0%, #FF621F 100%);\n}\n.gwd-shop-coupon .gwd-coupon-big[data-v-4a9a57be] {\n color: #ff6132;\n font-size: 14px;\n font-weight: bold;\n}\n.gwd-shop-coupon .gwd-coupon-take[data-v-4a9a57be] {\n width: 95px;\n height: 24px;\n background: url(" + __webpack_require__(449) + ");\n background-size: cover;\n display: flex;\n align-items: center;\n position: relative;\n margin-left: 29px;\n margin-right: 11px;\n cursor: pointer;\n}\n.gwd-shop-coupon .gwd-coupon-take .gwd-coupon-qr[data-v-4a9a57be] {\n display: none;\n position: absolute;\n width: 148px;\n height: 175px;\n right: -11px;\n z-index: 9;\n top: 31px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n flex-direction: column;\n align-items: center;\n}\n.gwd-shop-coupon .gwd-coupon-take .gwd-coupon-qr .gwd-coupon-title[data-v-4a9a57be] {\n display: inline-block;\n position: relative;\n font-size: 12px;\n height: 12px;\n line-height: 12px;\n color: #333333;\n z-index: 2;\n}\n.gwd-shop-coupon .gwd-coupon-take .gwd-coupon-qr .gwd-coupon-title[data-v-4a9a57be]::after {\n content: '';\n position: absolute;\n bottom: 0px;\n left: 0;\n right: 0;\n height: 4px;\n z-index: -1;\n background: #ff8f4b;\n}\n.gwd-shop-coupon .gwd-coupon-take:hover .gwd-coupon-qr[data-v-4a9a57be] {\n display: flex;\n}\n", ""]); // exports /***/ }), /* 449 */, /* 450 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__ShopCouponTop_vue_vue_type_template_id_6290e27b_scoped_true___ = __webpack_require__(451); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ShopCouponTop_vue_vue_type_script_lang_js___ = __webpack_require__(178); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__ShopCouponTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_1__ShopCouponTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ShopCouponTop_vue_vue_type_style_index_0_id_6290e27b_scoped_true_lang_less___ = __webpack_require__(453); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__(12); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__ShopCouponTop_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__ShopCouponTop_vue_vue_type_template_id_6290e27b_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__ShopCouponTop_vue_vue_type_template_id_6290e27b_scoped_true___["b" /* staticRenderFns */], false, null, "6290e27b", null ) /* hot reload */ if (false) { var api = require("/Users/huangdie/work-gwdang/extension/browser/dev/node_modules/.2.3.4@vue-hot-reload-api/dist/index.js") api.install(require('vue')) if (api.compatible) { module.hot.accept() if (!api.isRecorded('6290e27b')) { api.createRecord('6290e27b', component.options) } else { api.reload('6290e27b', component.options) } module.hot.accept("./ShopCouponTop.vue?vue&type=template&id=6290e27b&scoped=true&", function () { api.rerender('6290e27b', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/ShopCouponTop.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /* 451 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_template_id_6290e27b_scoped_true___ = __webpack_require__(452); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_template_id_6290e27b_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_template_id_6290e27b_scoped_true___["b"]; }); /***/ }), /* 452 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwd-shop-coupon-top", on: { mouseover: _vm.mouseover } }, [ _c("span", { staticClass: "cp-text" }, [_vm._v("当前商品可领券")]), _vm._v(" "), _c("span", { staticClass: "cp-value" }, [ _vm._v("¥" + _vm._s(_vm.coupon.discount)) ]), _vm._v(" "), _c("div", { staticClass: "gwd-coupon-qr" }, [ _c( "span", { staticClass: "gwd-coupon-title", staticStyle: { "margin-top": "6px" } }, [ _vm._v( "领券满" + _vm._s(_vm.coupon.limit) + "减" + _vm._s(_vm.coupon.discount) ) ] ), _vm._v(" "), _c("img", { staticStyle: { "margin-top": "5px", width: "120px", height: "120px" }, attrs: { src: this.img, alt: "" } }), _vm._v(" "), _vm._m(0) ]) ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticStyle: { "vertical-align": "bottom", "margin-top": "6px", "text-align": "center", height: "14px", "line-height": "14px" } }, [ _c( "span", { staticStyle: { "font-size": "14px", "font-weight": "bold", color: "#ff6132" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", "font-size": "12px", color: "#333333" } }, [_vm._v("领券")] ) ] ) } ] render._withStripped = true /***/ }), /* 453 */ /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_0_id_6290e27b_scoped_true_lang_less___ = __webpack_require__(180); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_0_id_6290e27b_scoped_true_lang_less____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_0_id_6290e27b_scoped_true_lang_less___); /* unused harmony reexport namespace */ /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_0__node_modules_4_1_2_vue_style_loader_index_js_node_modules_0_20_2_css_loader_index_js_node_modules_15_9_3_vue_loader_lib_loaders_stylePostLoader_js_node_modules_4_1_0_less_loader_dist_cjs_js_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_ShopCouponTop_vue_vue_type_style_index_0_id_6290e27b_scoped_true_lang_less____default.a); /***/ }), /* 454 */ /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__(8)(); // imports // module exports.push([module.i, ".gwd-shop-coupon-top[data-v-6290e27b] {\n display: inline-flex;\n width: 150px;\n margin-top: 2px;\n cursor: pointer;\n height: 32px;\n align-items: center;\n background: url(" + __webpack_require__(455) + ");\n background-size: cover;\n position: relative;\n}\n.gwd-shop-coupon-top .cp-text[data-v-6290e27b] {\n font-size: 13px;\n color: #ffefd3;\n font-weight: bold;\n margin-left: 8px;\n margin-top: -2px;\n}\n.gwd-shop-coupon-top .cp-value[data-v-6290e27b] {\n font-size: 12px;\n width: 32px;\n text-align: center;\n color: white;\n font-weight: 600;\n margin-left: 15px;\n}\n.gwd-shop-coupon-top .gwd-coupon-qr[data-v-6290e27b] {\n display: none;\n position: absolute;\n width: 148px;\n height: 175px;\n right: 0;\n z-index: 9;\n top: 30px;\n background: #FFF6F4;\n border: 1px solid #FF6132;\n flex-direction: column;\n align-items: center;\n}\n.gwd-shop-coupon-top .gwd-coupon-qr .gwd-coupon-title[data-v-6290e27b] {\n display: inline-block;\n position: relative;\n font-size: 12px;\n color: #333333;\n z-index: 2;\n}\n.gwd-shop-coupon-top .gwd-coupon-qr .gwd-coupon-title[data-v-6290e27b]::after {\n content: '';\n position: absolute;\n bottom: 2px;\n left: 0;\n right: 0;\n height: 4px;\n z-index: -1;\n background: #ff8f4b;\n}\n.gwd-shop-coupon-top:hover .gwd-coupon-qr[data-v-6290e27b] {\n display: flex;\n}\n", ""]); // exports /***/ }), /* 455 */, /* 456 */ /***/ (function(module, exports) { module.exports = "\n \"\"\n \n 生成淘口令\n\n\n456\n\n" /***/ }), /* 457 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n \n 生成淘口令\n
        \n 一键分享到微信或QQ\n 抱歉,当前商品暂时无法生成淘口令~\n \n
        \n
        \n456\n\n
        " /***/ }), /* 458 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { init: function init() { if (G.site !== '360buy') { return; } this.doIt(); }, doIt: function doIt() { var data = { text: $('#p-ad').text(), link: $('#p-ad a').attr('href'), url: location.href, time: Date.now() }; if (data.text) { __webpack_require__(2).post(G.server + '/extension?ac=sendPromos&site_id=3&jfrom=jcoupon', JSON.stringify(data), false); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(1))) /***/ }), /* 459 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(Vue) { var QRLink = __webpack_require__(111)['default']; var util = __webpack_require__(36); module.exports = { init: function init() { if (location.href.indexOf('plogin.m.jd.com') === -1 || location.href.indexOf('sku') === -1) { return; } if (location.href.indexOf('giftcoupon') > -1) { return; } var d = decodeURIComponent(util.getParameterByName('returnurl')); d = decodeURIComponent(util.getParameterByName('returnurl', d)); var dpId = util.getParameterByName('sku', d); if (!dpId) { return; } var e = document.createElement('DIV'); document.body.appendChild(e); var app = new Vue({ el: e, render: function render(h) { return h(QRLink, { ref: 'qr', props: { mode: 'gwd-mode-login', dpId: dpId + '-3' } }); } }); app.$refs.qr.over(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(15)["default"])) /***/ }), /* 460 */ /***/ (function(module, exports) { module.exports = "
        \n
        \n
        最近180天价格历史
        \n
        \n \n {{data.trend.store[0].status_tle}}\n
        \n
        \n {{if data.trend.store[0].nowprice}}\n 现价:{{data.trend.store[0].nowprice}}\n {{else}}\n 最高:{{data.trend.store[0].max_price}}\n 最低:{{data.trend.store[0].min_price}}\n {{/if}}\n {{lowestTime}}\n
        \n
        \n {{if !isAliSite}}\n
        \n \n \n {{data.site_name}}\n \n {{if isGwd}}\n {{each data.more}}\n \n \n {{$value.title}}\n \n {{/each}}\n {{/if}}\n
        \n {{/if}}\n
        \n {{if !isAliSite && !nostore}}\n
        \n

        商城比价

        \n \n {{if isGwd}}\n {{data.more_tle}}\n {{/if}}\n
        \n {{/if}}\n \n {{if !isGwd}}\n \n {{else}}\n \n {{/if}}\n
        " /***/ }), /* 461 */ /***/ (function(module, exports) { module.exports = "
        \n

        我们检测到访问异常,请您验证后继续使用

        \n 点击验证\n \n
        " /***/ }), /* 462 */ /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts) { var timeFormat = function timeFormat(date) { var x = new Date(date); var year = x.getFullYear(); if (G.IE7 || G.IE8) { year = x.getFullYear(); } var month = x.getMonth() + 1; var day = x.getDate(); if (month < 10) { month = '0' + month + ''; } if (day < 10) { day = '0' + day + ''; } // let hour = x.getHours(); var timeStr = year + '/' + month + '/' + day; return timeStr; }; var supplementPoint = function supplementPoint(data) { if (data.length === 1) { data.unshift([data[0][0] - 1000, data[0][1]]); } console.log(data); return data; // let newdata = [] // for (let i=0; i= 2) { // for (let j=1; j'; for (var i = 0; i < this.points.length; i++) { var priceStr = parseFloat(Number(this.points[i].y).toFixed(2)) + '万'; result += '' + this.points[i].point.series.name + '\n ' + priceStr + ''; } result += ''; return result; } }, plotOptions: { series: { marker: { radius: 1, states: { hover: { radius: 2 } } }, lineWidth: 1.5, shadow: false, states: { hover: { lineWidth: 1 } } } }, legend: { enabled: true, borderWidth: 0, verticalAlign: 'top', x: 228, y: -8, itemStyle: { color: '#585858', fontWeight: 'normal', fontSize: '14px', marginBottom: '0px' }, symbolWidth: 12, symbolHeight: 3, itemMarginBottom: 0, itemMarginTop: 0, margin: 12 }, series: [] }; obj.title.style.display = 'none'; var msg = data.msg; if (data.mainTrend) { obj.series[0] = { visible: true, name: '房源价格走势', marker: { symbol: 'circle' }, data: [] }; obj.series[0].data = msg.price_history; obj.series[0].data = supplementPoint(obj.series[0].data); obj.colors = ['#3ebdf7']; obj.legend.enabled = false; } else { var index1 = 0, index2 = 0, index3 = 0; var colorArr = []; if (msg.onsale.length >= 1) { obj.series[index1] = { visible: true, name: '挂牌单价', marker: { symbol: 'circle' }, data: [] }; index2++; index3++; colorArr.push('#d150f0'); obj.legend.x = obj.legend.x - 48; for (var i = 0; i < data.msg.onsale.length; i++) { var arr = new Array(2); arr[0] = data.msg.onsale[i][0] * 1000; arr[1] = Math.round(data.msg.onsale[i][1] * 100) / 100; obj.series[index1].data.push(arr); } obj.series[index1].data = supplementPoint(obj.series[index1].data); } if (msg.dealt.length >= 1) { obj.series[index2] = { visible: true, name: '成交单价', marker: { symbol: 'circle' }, data: [] }; index3++; colorArr.push('#f0b507'); obj.legend.x = obj.legend.x - 48; for (var i = 0; i < data.msg.dealt.length; i++) { var arr = new Array(2); arr[0] = data.msg.dealt[i][0] * 1000; arr[1] = Math.round(data.msg.dealt[i][1] * 100) / 100; obj.series[index2].data.push(arr); } obj.series[index2].data = supplementPoint(obj.series[index2].data); } obj.yAxis.title.text = '单位(万)'; obj.colors = colorArr; } new Highcharts.Chart(obj); } catch (e) {} }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(0), __webpack_require__(47))) /***/ }), /* 463 */ /***/ (function(module, exports) { module.exports = "" /***/ }), /* 464 */ /***/ (function(module, exports) { module.exports = "
        \n \n 一键海淘:\n ¥{{data.goods_price}}\n
        \n
        \n {{if !data.noinfo}}\n
        \n
        \n
        \n \n {{if protype=='ziying'}} 自营 {{else}}第三方{{/if}}\n
        \n {{protype=='ziying'?(site + '直接销售'):(site + '第三方商家销售')}}\n
        \n
        \n
        \n \n 一键海淘\n
        \n 由剁手帮提供一键海淘服务\n
        \n
        \n
        \n \n 翻译帮助\n
        已为您开启划词翻译,鼠标选中相关文字,即可翻译
        \n
        \n
        \n \n 尺码帮助\n
        点击查看尺码帮助
        \n
        \n
        \n
        \n
        \n 官网运费\n :\n ¥{{data.official_postage}}\n {{if data.xm_official != 0}}\n ¥{{data.xm_official}}\n \n {{/if}}\n
        \n
        \n 转运费\n :\n ¥{{data.international_postage}}\n \n
        \n
        \n 税费\n :\n ¥{{data.tax_fee}}\n {{if data.xm_fee != 0}}\n ¥{{data.xm_fee}}\n \n {{/if}}\n
        \n
        \n 到手价\n :\n ¥{{data.purePrice}}\n \n
        \n
        \n
        \n
        \n 预计到货时间:{{timestr}}\n 立即购买\n
        \n {{else}}\n
        \n \n
        抱歉,由于相关法律或者转运禁运的原因
        \n
        该商品暂时不支持一键海淘
        \n
        \n {{/if}}\n
        \n" /***/ }), /* 465 */, /* 466 */, /* 467 */, /* 468 */ /***/ (function(module, exports) { module.exports = "
        \n \n 一键海淘\n \n
        \n" /***/ }), /* 469 */ /***/ (function(module, exports) { module.exports = "
        \n \n 去结算\n \n
        \n" /***/ }), /* 470 */ /***/ (function(module, exports) { module.exports = "
        \n

        温馨提示

        \n 如选择直邮,请直接填写国内收货地址;\n 如使用转运,请在此页面填写转运公司地址;\n 转运攻略\n \n \n
        \n" /***/ }), /* 471 */ /***/ (function(module, exports) { module.exports = "
        \n

        该商品支持直邮中国

        \n

        直邮,请填写国内收货地址;

        \n

        转运,请填写转运公司地址。

        \n
        \n" /***/ }), /* 472 */ /***/ (function(module, exports) { module.exports = "
        \n \n 点此进入下一步\n \n
        \n" /***/ }), /* 473 */ /***/ (function(module, exports) { module.exports = "
        \n \n 点此进入下一步\n \n
        \n" /***/ }), /* 474 */ /***/ (function(module, exports) { module.exports = "
        \n

        信用卡识别

        \n 单币信用卡:信用卡上只有银联标志;\n 双币信用卡:信用卡上有VistaMasterCardJCB\n AmericanExpress标志的,一般都是双币信用卡\n \n \n
        \n" /***/ }), /* 475 */ /***/ (function(module, exports) { module.exports = "
        \n \n 添加信用卡\n \n
        \n
        \n" /***/ }), /* 476 */ /***/ (function(module, exports) { module.exports = "
        \n \n 如有优惠码,此处添加优惠码\n \n
        \n" /***/ }), /* 477 */ /***/ (function(module, exports) { module.exports = "
        \n \n 支持单币 / 双币信用卡\n \n
        \n" /***/ }) ],[196]);