// ==UserScript== // @name 购物党比价工具【官方正版,持续维护】 // @author 购物党 // @name:zh-cn 购物党比价工具【官方正版,持续维护】 // @antifeature referral-link 含有购物党官方返利 // @description [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 // @description:zh-hk [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 // @run-at document-idle // @version 3.1.2 // @grant none // @require https://cdn.gwdang.com/js/vendor-gwd.js?v=1.1 // @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/* // @include https://plogin.m.jd.com/* // @include https://login.m.taobao.com/* // @grant none // @namespace no // @downloadURL none // ==/UserScript== gwdangJsonp([0],{ /***/ "000bbf01d73ab546daa9": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin); exports["default"] = { mixins: [_commonComponentsMemberCouponMixin2["default"]] }; module.exports = exports["default"]; /***/ }), /***/ "034f9176860d52edf6c0": /***/ (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__("5d4f0e584bd9a3a675b3"), __webpack_require__("ff50e367dd130fa205e3"))) /***/ }), /***/ "03bec9e018c5e5127ba6": /***/ (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_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___ = __webpack_require__("e756d69fbda7cdc8ade7"); /* 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_QRLinkContact_vue_vue_type_template_id_9a793014_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_QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["b"]; }); /***/ }), /***/ "03dd60018ce5ed1344a1": /***/ (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__("472a9b3fc8c8805a5dd7"); function goLog(event) { var userid = __webpack_require__("d82c9248d08dbd7e46d4").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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "041f80fea3d67bf79b22": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___ = __webpack_require__("6e9dc8f3fe8ed1fd40dc"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLink_vue_vue_type_script_lang_js___ = __webpack_require__("399d3eb4adfb0281eed0"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLink_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__QRLink_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLink_vue_vue_type_style_index_0_lang_css___ = __webpack_require__("580fdef2bbaa9f2dc7e9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__QRLink_vue_vue_type_style_index_1_id_673c66fa_scoped_true_lang_less___ = __webpack_require__("2e99c26f3c749e77922a"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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__QRLink_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["b" /* staticRenderFns */], false, null, "673c66fa", 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('673c66fa')) { api.createRecord('673c66fa', component.options) } else { api.reload('673c66fa', component.options) } module.hot.accept("./QRLink.vue?vue&type=template&id=673c66fa&scoped=true&", function () { api.rerender('673c66fa', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLink.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "047b30291b8b83e043ed": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var callbacks = undefined, hasreq = undefined, urls = undefined; var request = __webpack_require__("91f250ebeb8d5987491c"); var getPageInfo = function getPageInfo(info, callback) { var infoObj = {}; if (hasreq) { callbacks = callback; urls = info.click_url; return; } var itemId = G.dp.itemId; if (!itemId && G.site === 'taobao-ju') { itemId = location.href.match(/item_id=(\d+)/)[1]; } var obj = { itemNumId: itemId }; var url = 'https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=' + encodeURIComponent(JSON.stringify(obj)); request.getPure(url).done(function (data) { try { var item = data.data.item; var seller = data.data.seller; var item2 = JSON.parse(data.data.apiStack[0].value); infoObj.title = item.title; infoObj.picUrl = item.images[0]; infoObj.shopName = seller.shopName; infoObj.shopLogo = seller.shopIcon; infoObj.shopUrl = seller.shopUrl; infoObj.biz30Day = item2.item.sellCount; infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2); } catch (e) { console.error(e); } if (!infoObj.title) { infoObj.title = document.title; } if (!infoObj.title) { infoObj.title = $('.tb-detail-hd > h1').text().trim(); } if (!infoObj.picUrl) { infoObj.picUrl = $('#J_ImgBooth').attr('src'); } if (!infoObj.discountPrice) { infoObj.discountPrice = G.dp.price; } infoObj.id = itemId; infoObj.amount = info.coupon.coupon_money; infoObj.effectiveStartTime = info.coupon.start_time; infoObj.effectiveEndTime = info.coupon.end_time; infoObj.pid = info.pid; infoObj.tkl = info.tkl; infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false; if (G.site === 'taobao-ju') { infoObj.shopName = $('.sellername:eq(0)').text(); } callback(infoObj, info.click_url); //console.log(infoObj) if (callbacks) { callbacks(infoObj, urls); } }); }; module.exports = getPageInfo; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "04a1e812dbb979983ae6": /***/ (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__("549da4e43b9ab5780ba3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__EpicTrend_vue_vue_type_script_lang_js___ = __webpack_require__("31d452087f8bb0fc12f2"); /* 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__("fe07faa726be683793d3"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "04dcccd8601de1b226fb": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-bottom-line[data-v-9a793014] {\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-9a793014] {\n font-size: 22px;\n font-weight: bold;\n color: #EF6701;\n}\n.gwd-qr-bottom-line span.normal[data-v-9a793014] {\n font-size: 16px;\n color: #070707;\n}\n.gwd-qr-logo[data-v-9a793014] {\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-9a793014] {\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-9a793014] {\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-9a793014] {\n visibility: visible;\n}\n", ""]); // exports /***/ }), /***/ "05dfce086a5faeee4991": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['tag', 'coupon'], data: function data() { return { dpId: G.dp.dpId }; }, computed: { couponTypeText: function couponTypeText() { var tag = parseInt(this.tag); return ['', '', '会员券', '', '', '', '店铺券'][tag]; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "0652a96425157e5f02e5": /***/ (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_TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_scoped_true_lang_less___ = __webpack_require__("c71237894d7ceec4e973"); /* 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_TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_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_TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_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_TbGiftMoney_vue_vue_type_style_index_0_id_53cb8bb8_scoped_true_lang_less____default.a); /***/ }), /***/ "06def2eafc3328454ad8": /***/ (function(module, exports) { module.exports = "
\n
\n \n
\n {{data.trendMsg}}\n \n
\n
\n \n 降价提醒 \n
\n
\n
\n
\n \n
\n
\n 每日成交行情\n 最新降价房源\n \n

扫码关注撸房价

\n

降价提醒你

\n
\n
\n {{if data.maxPrice == data.minPrice}}\n 现价:{{data.maxPrice}}万\n {{else}}\n 最高价:{{data.maxPrice}}万\n 最低价:{{data.minPrice}}万\n {{/if}}\n
\n
\n
\n 房源行情\n 小区行情\n
\n \n
\n
\n
\n
\n 关注公众号\n 房源降价实时提醒\n \n 不再提示\n
\n\n
" /***/ }), /***/ "077190fa6c9d23369f6d": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "0a074eb0202bcf717388": /***/ (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" /***/ }), /***/ "0a3b1f8666118ebd3443": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['data', 'type'], data: function data() { return { rendered: false }; }, methods: { draw: function draw() { if (this.rendered) return; this.rendered = true; __webpack_require__("7bc264230157b5cefc24")({ el: this.$refs.plotArea, msg: this.data.store[0], unit: ' ', bg: '#1e1e1e' }); } }, mounted: function mounted() { console.log(this.data); }, computed: { priceStatusText: function priceStatusText() { return ['历史最低', '价格下降', '价格平稳', '价格上涨'][this.data.price_status + 2]; }, priceTrendIcon: function priceTrendIcon() { return [G.s_server + '/images/extensions/newbar/fall@2x.png', G.s_server + '/images/extensions/newbar/fall@2x.png', G.s_server + '/images/extensions/newbar/stable@2x.png', G.s_server + '/images/extensions/newbar/rise@2x.png'][this.data.price_status + 2]; } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "0a495424a371aad0e27a": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "0acb2fc6a638869b1543": /***/ (function(module, exports) { module.exports = "
\n \n 点此进入下一步\n \n
\n" /***/ }), /***/ "0b4163e217e4ff33f7c4": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "12353e6c503e80823ba4": /***/ (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_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___ = __webpack_require__("23aafd2ad4b6e88819f1"); /* 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_QRLinkLeft_vue_vue_type_template_id_b671e2be_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_QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["b"]; }); /***/ }), /***/ "12aab5fd482f5627ccd1": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var CommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc")['default']; module.exports = { init: function init(hasCoupon) { var config, onlyCenter, _ret; return regeneratorRuntime.async(function init$(context$1$0) { var _this = this; 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 = 20; break; } context$1$0.next = 17; return regeneratorRuntime.awrap((function callee$1$0() { var c, shopCoupon, giftMoney, t, s, e, use, link, html, html2; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: c = config.aliActivity; if (c.disableWhenHasCoupon && hasCoupon) { onlyCenter = true; } context$2$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('shopCouponGot')); case 4: shopCoupon = context$2$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$2$0.next = 13; break; } context$2$0.next = 9; return regeneratorRuntime.awrap(__webpack_require__("fe179e544c8fafeea4a2").init()); case 9: giftMoney = context$2$0.sent; console.log('giftmoney', giftMoney); if (!giftMoney) { context$2$0.next = 13; break; } return context$2$0.abrupt('return', { v: undefined }); case 13: t = new Date(); s = new Date(c.start); e = new Date(c.end); use = 'link'; if (G.from_device === 'chrome') { use = 'qr'; // use = 'link' } //let link = 'https://tb.gwdang.com/static_page/618/618Scan.html' link = c.link; if (t < e && t > s) { if (!onlyCenter) { if ($('#gwd-space').outerWidth() >= 230) { html = template.compile(use === 'link' ? __webpack_require__("32e21676b7e7687a50e8") : __webpack_require__("f37a41a323a3e8d8897a"))({ img: c.top.img, qr: c.top.qr, link: link }); $('.gwd-topbar-left').append(html); setTimeout(function () { var topLogged = false; var topTmall = $('.gwd-top-tmall'); if (topTmall.length) { __webpack_require__("83271c7588396d2d5e59").log('顶部活动二维码', '曝光'); } topTmall.hover(function () { if (!topLogged) { topLogged = true; __webpack_require__("83271c7588396d2d5e59").log('顶部活动二维码', '悬浮'); } }); }, 0); } if (!hasCoupon && c.middle.text) { if (use === 'link') { new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', href: link, mainColor: '#ff6132', secondColor: '#ff7d38', text: c.middle.text, icon: 'https://cdn.bijiago.com/images/extensions/activity/giftmoney@2x.png' } }); } }); } else { html2 = template.compile(__webpack_require__("5da7ab7bd297c0f5dff1"))({ qr: c.top.qr, text: c.middle.text, link: link }); $('#gwd-coupon-placeholder').replaceWith(html2); } } if (window.innerWidth - $('#bjd_bottom_detail').outerWidth() > 160) { (function () { // 购物党底部 var html = template.compile(use === 'link' ? __webpack_require__("bffd1ad7085454d93e70") : __webpack_require__("096940133ad1c1c2cd59"))({ img: c.bottom.img, qr: c.bottom.qr, extClass: 'rinfo-btn', link: link }); $('#bjd_bottom_detail .right-info .search-mod').after(html); var bottomLogged = false; setTimeout(function () { var bottomTmall = $('.gwd-bottom-tmall'); if (bottomTmall.length) { __webpack_require__("83271c7588396d2d5e59").log('底部活动二维码', '曝光'); } bottomTmall.hover(function () { if (!bottomLogged) { bottomLogged = true; __webpack_require__("83271c7588396d2d5e59").log('底部活动二维码', '悬浮'); } }); }, 0); })(); } } if ($('#mini-price-history') && c.center.text) { (function () { // 购物党中间 var html = template.compile(use === 'link' ? __webpack_require__("67e7ec3ad30622808c87") : __webpack_require__("1bdb575b0e1065a8ec36"))({ img: c.top.img, qr: c.top.qr, text: c.center.text, extClass: 'minibar-tab', qrText: c.qrText, link: link }); $('#mini_price_history').after(html); $('.minibar-tab').css('width', '128px'); $('.gwd-middle-tmall').css('width', '159px;'); var centerLogged = false; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '曝光'); setTimeout(function () { $('.gwd-middle-tmall').hover(function () { if (!centerLogged) { centerLogged = true; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '悬浮'); } }); $('.gwd-take').hover(function () { if (!centerLogged) { centerLogged = true; __webpack_require__("83271c7588396d2d5e59").log('中间活动二维码', '悬浮'); } }); }, 0); })(); } } case 20: case 'end': return context$2$0.stop(); } }, null, _this); })()); case 17: _ret = context$1$0.sent; if (!(typeof _ret === 'object')) { context$1$0.next = 20; break; } return context$1$0.abrupt('return', _ret.v); case 20: if (config.jdActivity && G.site === '360buy') { (function () { var c = config.jdActivity; var 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) { // 购物党中间 // let html = template.compile(require('raw-loader!activities/gwd-jd-middle.html'))({ // link: c.center.link, // text: c.center.textlong // }); // $('#gwd_minibar').after(html) new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', href: c.center.link, mainColor: '#ff3b5c', secondColor: '#ff809a', text: c.center.textlong, icon: 'https://cdn.bijiago.com/images/extensions/activity/giftmoney@2x.png' } }); } }); } } if (window.innerWidth - $('#bjd_bottom_detail').outerWidth() > 160) { // 购物党底部 var html = ''; $('#bjd_bottom_detail .right-info .search-mod').after(html); } } })(); } case 21: case 'end': return context$1$0.stop(); } }, null, this); } }; // 购物党顶部 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "1366da12f7e36765c3a2": /***/ (function(module, exports) { module.exports = "
\n

信用卡识别

\n 单币信用卡:信用卡上只有银联标志;\n 双币信用卡:信用卡上有VistaMasterCardJCB\n AmericanExpress标志的,一般都是双币信用卡\n \n \n
\n" /***/ }), /***/ "1529c418281de0d4e4b2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { module.exports = function () { var match = navigator.userAgent.match(/(?:MSIE |Trident\/.*; rv:)(\d+)/); if (match) G['IE' + parseInt(match[1])] = true; if (navigator.userAgent.toLowerCase().indexOf('msie') > -1) return true; if (navigator.userAgent.toLowerCase().indexOf('edge') > -1) return true; return match ? parseInt(match[1]) : undefined; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "15f190fd9ef61a3cd23c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime, $) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _PromoHistoryNormalVue = __webpack_require__("69b83ab67396df893d0b"); var _PromoHistoryNormalVue2 = _interopRequireDefault(_PromoHistoryNormalVue); var _PromoHistorySpecialVue = __webpack_require__("820ada4eda60a4c0283e"); var _PromoHistorySpecialVue2 = _interopRequireDefault(_PromoHistorySpecialVue); var _PromoHistoryAppDownloadVue = __webpack_require__("5e0d66879d722b2ada2c"); var _PromoHistoryAppDownloadVue2 = _interopRequireDefault(_PromoHistoryAppDownloadVue); var _standardModuleUtil = __webpack_require__("d54879e983a83d07f093"); var _standardModuleUtil2 = _interopRequireDefault(_standardModuleUtil); var _commonGlobalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var _commonGlobalCondition2 = _interopRequireDefault(_commonGlobalCondition); exports['default'] = { components: { Normal: _PromoHistoryNormalVue2['default'], Special: _PromoHistorySpecialVue2['default'], AppDownload: _PromoHistoryAppDownloadVue2['default'] }, props: ['promoHistory', 'showApp'], data: function data() { return { lineHeight: 200, left: -492, price: '', tip: '', ready: false, priceType: '', currentPromo: '', promoUrl: '', currency: '¥', isAliSite: G.aliSite, showingPromo: [], showingType: 'special' // special/normal }; }, methods: { syncHeight: function syncHeight() { var p; return regeneratorRuntime.async(function syncHeight$(context$1$0) { var _this = this; while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(_commonGlobalCondition2['default'].met('lastPointPos')); case 2: p = context$1$0.sent; _commonGlobalCondition2['default'].clear('lastPointPos'); this.$nextTick(function () { var lHeight = $('.max-min-priinfo').height(); if (lHeight < 64) lHeight = 64; var left = gwd_chart.axes[0].left; _this.left = -452 + left; _this.lineHeight = p.plotY + parseInt(lHeight) + 5; _this.price = p.y; if (_this.promoHistory.analysis) _this.tip = _this.promoHistory.analysis.tip; _this.priceType = p.series.name.indexOf('页面价') > -1 ? '到手价' : '凑单价'; var promos = []; _this.ready = true; if (_this.promoHistory.promoShow) { (function () { var lastPromo = _this.promoHistory.promoShow[0]; _this.currentPromo = lastPromo.msg.promotion ? lastPromo.msg.promotion + ';' : ''; if (lastPromo.msg.coupon) { _this.currentPromo += lastPromo.msg.coupon; } var type = '凑单价'; if (_this.promoHistory.store.length > 1 && _this.promoHistory.store[1].name === '到手价') { type = '到手价'; } promos = promos.concat(_this.promoHistory.promoShow.map(function (x) { x.type = type; return x; }).filter(function (x) { return x.time * 1000 >= _this.promoHistory.store[1].all_line_begin_time - 19 * 3600000; })); if (_standardModuleUtil2['default'].getTimeNumber(new Date(lastPromo.time * 1000), '2') !== _standardModuleUtil2['default'].getTimeNumber(new Date(), '2')) { _this.currentPromo = ''; } })(); } // if (this.promoHistory.nopuzzle_promo) { // promos = promos.concat(this.promoHistory.nopuzzle_promo.map(x => { // x.type = '页面价' // return x // })) // } _this.setShowingPromo(promos); _this.currentPromo = _this.currentPromo.replace(/;/g, ';'); }); case 5: case 'end': return context$1$0.stop(); } }, null, this); }, getTimePrice: function getTimePrice(time) { var current = this.promoHistory.store[0].all_line_begin_time, idx = 0; while (_standardModuleUtil2['default'].getTimeNumber(current, '2') !== time) { current += 86400000; idx++; if (idx > this.promoHistory.store[0].all_line.length - 1) return null; } return { price: this.promoHistory.store[0].all_line[idx], time: current }; }, urlClick: function urlClick() { window.open(this.promoUrl); }, setShowingPromo: function setShowingPromo(promos) { var obj = {}; promos.map(function (x) { var t = new Date(x.time * 1000); return { pagePrice: '', price: x.price / 100, oriPrice: x.ori_price / 100, promo: x.msg.promotion, coupon: x.msg.coupon, dateStr: _standardModuleUtil2['default'].getTimeNumber(t, '2'), time: x.time * 1000, type: x.isDSJ ? '到手价' : '凑单价', isDSJ: x.isDSJ }; }).forEach(function (x) { if (obj[x.dateStr]) { if (obj[x.dateStr].price > x.price) { obj[x.dateStr] = x; } } else { obj[x.dateStr] = x; } }); var key618 = undefined, key1111 = undefined; this.promoHistory.analysis.promo_days.forEach(function (item) { if (item.show === '618价格') { key618 = item.date.substr(5); } if (item.show === '双11价格') { key1111 = item.date.substr(5); } }); var pri618 = this.getTimePrice('06-18'); var pri1111 = this.getTimePrice('11-11'); if (obj[key1111] || obj[key618] || pri618 || pri1111) { if (obj[key1111]) { obj[key1111].type = '凑单价'; obj[key1111].date = new Date(obj[key1111].time).getFullYear() + '-' + key1111; obj[key1111].dateStr = '11-11'; this.showingPromo.push(obj[key1111]); } if (obj[key618]) { obj[key618].type = '凑单价'; obj[key618].date = new Date(obj[key618].time).getFullYear() + '-' + key618; obj[key618].dateStr = '06-18'; this.showingPromo.push(obj[key618]); } if (pri618 && !obj[key618]) { this.showingPromo.push({ pagePrice: '', price: pri618.price, dateStr: '06-18', time: pri618.time, date: new Date(pri618.time).getFullYear() + '-' + '06-18', type: '到手价' }); } if (pri1111 && !obj[key1111]) { this.showingPromo.push({ pagePrice: '', price: pri1111.price, dateStr: '11-11', time: pri1111.time, date: new Date(pri1111.time).getFullYear() + '-' + '11-11', type: '到手价' }); } this.showingPromo.sort(function (a, b) { return b.time - a.time; }); this.showingType = 'special'; return; } this.showingType = 'normal'; var todayPoint = obj[_standardModuleUtil2['default'].getTimeNumber(new Date(), '2')]; var r = Object.keys(obj).map(function (k) { return obj[k]; }).filter(function (x) { return x.dateStr !== _standardModuleUtil2['default'].getTimeNumber(new Date(), '2'); }); r.sort(function (a, b) { return b.time - a.time; }); var nearest = r[0]; var lowest = r[0]; r.forEach(function (x) { if (x.price < lowest.price) { lowest = x; } }); if (todayPoint && todayPoint.price <= lowest.price) { r = r.filter(function (x) { return x.dateStr !== _standardModuleUtil2['default'].getTimeNumber(new Date(), '2'); }); if (r.length) { r[0].badge = '最近'; this.showingPromo = [r[0]]; if (r.length > 1) { this.showingPromo.push(r[1]); } } return; } if (!nearest) return; if (nearest.time !== lowest.time) { nearest.badge = '最近'; lowest.badge = '最低'; this.showingPromo = [nearest, lowest]; } else { lowest.badge = '最低'; var secondLowest = r.filter(function (x) { return x.time !== lowest.time; }).reverse()[0]; this.showingPromo = [lowest, secondLowest]; } } }, computed: { strokeColor: function strokeColor() { return this.priceType === '到手价' ? '#5acffb' : '#ffc06d'; }, textColor: function textColor() { return this.priceType === '到手价' ? '#5acffb' : '#fba500'; }, width: function width() { if (this.showingPromo && this.showingPromo.length > 0) { $('#mini_price_history_detail').css('width', '690px'); return 690; } else { if (this.promoHistory.analysis) { $('#mini_price_history_detail').css('width', '640px'); } return 640; } } }, mounted: function mounted() { var _this2 = this; this.syncHeight(); _commonGlobalCondition2['default'].met('promoUrl').then(function (res) { _this2.promoUrl = res; }); } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "1611f279bc42ac74950b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-pdd-act-bottom-qr[data-v-984546bc] {\n display: inline-block;\n font-family: \"Microsoft YaHei\";\n margin-top: 3px;\n box-sizing: border-box !important;\n}\n.gwd-pdd-act-bottom-qr .top[data-v-984546bc] {\n position: relative;\n width: 150px;\n height: 28px;\n background: #f40209;\n display: flex;\n align-items: center;\n cursor: pointer;\n}\n.gwd-pdd-act-bottom-qr .top .bold[data-v-984546bc] {\n font-size: 12px;\n height: 12px;\n line-height: 11px;\n color: white;\n font-weight: bold;\n}\n.gwd-pdd-act-bottom-qr .top .circle[data-v-984546bc] {\n width: 22px;\n height: 22px;\n border-radius: 11px;\n display: inline-block;\n margin-right: 4px;\n line-height: 22px;\n font-size: 12px;\n color: white;\n text-align: center;\n font-weight: bold;\n background: #FFC034;\n}\n.gwd-pdd-act-bottom-qr .top .qr-area[data-v-984546bc] {\n position: absolute;\n left: 0;\n width: 150px;\n box-sizing: border-box !important;\n top: 28px;\n height: 158px;\n display: flex;\n flex-direction: column;\n align-items: center;\n background: #FFF7F6;\n border: 1px solid #EF2C29;\n}\n.gwd-pdd-act-bottom-qr .top .qr-area img[data-v-984546bc] {\n width: 120px;\n height: 120px;\n}\n.gwd-pdd-act-bottom-qr .top:hover .qr-area[data-v-984546bc] {\n display: flex!important;\n}\n.gwd-pdd-act-bottom-qr .top-2[data-v-984546bc] {\n width: 158px;\n background: url(" + __webpack_require__("f70922c524ca27f98c79") + ");\n background-size: cover;\n}\n", ""]); // exports /***/ }), /***/ "165a6a29b755ef153829": /***/ (function(module, exports, __webpack_require__) { "use strict"; function touchHandler(event) { if (event.target.tagName === 'INPUT') return; //if (!isMouseDown) return var touches = event.changedTouches, first = event, type = ""; switch (event.type) { case "mousedown": type = "touchstart";break; case "mousemove": type = "touchmove";break; case "mouseup": type = "touchend";break; default: return; } if (type === 'touchstart') { isMouseDown = true; } else if (type === 'touchend') { isMouseDown = false; } // initMouseEvent(type, canBubble, cancelable, view, clickCount, // screenX, screenY, clientX, clientY, ctrlKey, // altKey, shiftKey, metaKey, button, relatedTarget); // var simulatedEvent = document.createEvent("TouchEvent"); // simulatedEvent.initTouchEvent(type, true, true, window, 1, // first.screenX, first.screenY, // first.clientX, first.clientY, false, // false, false, false, 0/*left*/, null); // // first.target.dispatchEvent(simulatedEvent); if (type === 'touchmove' && !isMouseDown) return; sendTouchEvent(first.clientX, first.clientY, first.target, type); event.preventDefault(); } function sendTouchEvent(x, y, element, eventType) { var touchObj = new Touch({ identifier: Date.now(), target: element, clientX: x, clientY: y, radiusX: 2.5, radiusY: 2.5, rotationAngle: 10, force: 0.5 }); var touchEvent = new TouchEvent(eventType, { cancelable: true, bubbles: true, touches: [touchObj], targetTouches: [], changedTouches: [touchObj], shiftKey: true }); element.dispatchEvent(touchEvent); } var isMouseDown = false; function mouseDown() { isMouseDown = true; } function mouseUp() { isMouseDown = false; } function init() { document.addEventListener("mousedown", touchHandler, true); document.addEventListener("mousemove", touchHandler, true); document.addEventListener("mouseup", touchHandler, true); } module.exports.init = init; /***/ }), /***/ "17bd0a8188e0c1f7d7ba": /***/ (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__("f07a854b46071e85aa67"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PromotionPlan_vue_vue_type_script_lang_js___ = __webpack_require__("314ddba7e03fe1fca042"); /* 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__("3c102bca554f27879709"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "18e29106b21ecba1b1f4": /***/ (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__("afcfbe92108085df7c1c"); /* 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); /***/ }), /***/ "18e8e3ed308157c61508": /***/ (function(module, exports) { module.exports = "
\n

温馨提示

\n 如选择直邮,请直接填写国内收货地址;\n 如使用转运,请在此页面填写转运公司地址;\n 转运攻略\n \n \n
\n" /***/ }), /***/ "1933d89a9414ea50fbbd": /***/ (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__("a3752ec682eda733a057"); /* 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"]; }); /***/ }), /***/ "19d783aa5f74a9e4ac9c": /***/ (function(module, exports) { module.exports = "
\n \n \n {{if lang == 'en'}}Promotion Price{{else}}到手价{{/if}}:\n ¥{{pri}}\n {{if tle}}\n ({{tle}})\n {{/if}}\n \n \n {{=desc}}\n
\n
\n
\n \n
{{if lang == 'en'}}Promotion price is the theoretical price after perfect promotions combined and coupons,not the actual price you paid.{{else}}到手价指促销活动完美凑单和使用优惠券后的理论到手价,不代表您的实际支付价格。{{/if}}
\n \n \n {{if lang == 'en'}}\n \n {{/if}}\n
" /***/ }), /***/ "1a0cda2f74042332262b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___ = __webpack_require__("fc02c8246c40af764545"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__JdRankList_vue_vue_type_script_lang_js___ = __webpack_require__("93201dafc10fe2ec927e"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__JdRankList_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__JdRankList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__JdRankList_vue_vue_type_style_index_0_id_a48d90ba_scoped_true_lang_less___ = __webpack_require__("0e53a0c44eeffdc5af61"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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__JdRankList_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__JdRankList_vue_vue_type_template_id_a48d90ba_scoped_true___["b" /* staticRenderFns */], false, null, "a48d90ba", 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('a48d90ba')) { api.createRecord('a48d90ba', component.options) } else { api.reload('a48d90ba', component.options) } module.hot.accept("./JdRankList.vue?vue&type=template&id=a48d90ba&scoped=true&", function () { api.rerender('a48d90ba', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/JdRankList.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "1b62f754a85a57168a27": /***/ (function(module, exports, __webpack_require__) { "use strict"; var browser = { 'url': '', 'utype': '' }; var chromeType = navigator.userAgent.toLowerCase(); module.exports.getBrowser = function () { if ("ActiveXObject" in window) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; infopath.3; .net4.0e) browser.utype = "ie"; browser.utitle = "IE"; browser.background = "-401px -81px"; } else if (chromeType.indexOf('firefox') > -1) { //mozilla/5.0 (windows nt 6.1; wow64; rv:42.0) gecko/20100101 firefox/42.0 browser.utype = "firefox"; browser.utitle = "火狐"; browser.background = "-401px -44px"; } else if (chromeType.indexOf('opera') > -1 || chromeType.indexOf('opr') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.86 safari/537.36 opr/33.0.1990.115 browser.utype = "opera"; browser.utitle = "Opera"; browser.background = "-2px -120px"; } else if (chromeType.indexOf('safari') > -1 && chromeType.indexOf('chrome') == -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2 browser.utype = "safari"; browser.utitle = "Safari"; browser.background = "-301px -44px"; } else if (chromeType.indexOf('chrome') > -1) { var check360 = checkChromeWeight(); if (chromeType.indexOf('qqbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.87 safari/537.36 qqbrowser/9.2.5542.400 browser.utype = "qq"; browser.utitle = "QQ"; browser.background = "-104px -81px"; } else if (chromeType.indexOf('maxthon') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) maxthon/4.4.8.1000 chrome/30.0.1599.101 safari/537.36 browser.utype = "maxthon"; browser.utitle = "傲游"; browser.background = "-401px -4px"; } else if (chromeType.indexOf('bidubrowser') > -1) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; bidubrowser 8.1) browser.utype = 'baidu'; browser.utitle = '百度'; browser.background = "-104px -120px"; } else if (chromeType.indexOf('ubrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/44.0.2403.157 ubrowser/5.5.6743.207 safari/537.36 browser.utype = 'uc'; browser.utitle = "UC"; browser.background = "-2px -44px"; } else if (chromeType.indexOf('lbbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/42.0.2311.154 safari/537.36 lbbrowser browser.utype = 'liebao'; browser.utitle = "猎豹安全"; browser.background = "-301px -4px"; } else if (chromeType.indexOf('taobrowser') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11 browser.utype = 'taobao'; browser.utitle = "淘宝"; browser.background = "-104px -44px"; } else if (chromeType.indexOf('2345explorer') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 2345Explorer/6.4.0.10356 browser.utype = '2345'; browser.utitle = "2345王牌"; browser.background = "-301px -81px"; } else if (chromeType.indexOf('2345chrome') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/39.0.2171.99 safari/537.36 2345chrome v3.0.0.9739 browser.utype = '2345jiasu'; browser.utitle = "2345加速"; } else if (chromeType.indexOf('coolnovo') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20 browser.utype = 'fengshu'; browser.utitle = "枫树"; browser.background = "-2px -81px"; } else if (chromeType.indexOf('greenbrowser') > -1) { //Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; GreenBrowser) browser.utype = 'gb'; browser.utitle = "GB"; browser.background = "-203px -81px"; } else if (check360 === "Chrome") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.80 safari/537.36 browser.utype = 'chrome'; browser.utitle = 'Chrome'; browser.background = "-2px -4px"; } else if (check360 === "360SE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/31.0.1650.63 safari/537.36 browser.utype = '360se'; browser.utitle = '360安全'; browser.background = "-203px -4px"; } else if (check360 === "360EE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.101 safari/537.36 browser.utype = '360se'; browser.utitle = '360极速 '; browser.background = "-104px -4px"; } else if (chromeType.indexOf('se') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/38.0.2125.122 safari/537.36 se 2.x metasr 1.0 browser.utype = 'sogou'; browser.utitle = "搜狗"; browser.background = "-401px -120px"; } else { browser.utype = 'chrome'; browser.utitle = 'Chromium内核'; } } else { browser.utype = 'chrome'; browser.utitle = '未知浏览器'; } return browser; }; var chrome_weight = { "result": "Chrome", "details": { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }, "sorted": ["Chrome", "360SE", "360EE", "Chromium"], "exec": function exec(results) { var details = { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }; var _ua = window.navigator.userAgent; if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { if (window.navigator.platform == "Win32") { if (!window.clientInformation.languages) { details._360SE += 8; } if (/zh/i.test(navigator.language)) { details._360SE += 3; details._360EE += 3; } if (window.clientInformation.languages) { var lang_len = window.clientInformation.languages.length; if (lang_len >= 3) { details.Chrome += 10; details.Chromium += 6; } else if (lang_len == 2) { details.Chrome += 3; details.Chromium += 6; details._360EE += 6; } else if (lang_len == 1) { details.Chrome += 4; details.Chromium += 4; } } for (var i in window.navigator.plugins) { if (window.navigator.plugins[i].filename == "np-mswmp.dll") { details._360SE += 20; details._360EE += 20; } } if (Object.keys(window.chrome.webstore).length <= 1) { details._360SE += 7; } else if (Object.keys(window.chrome.webstore).length == 2) { details._360SE += 4; details.Chromium += 3; } if (window.navigator.plugins.length >= 30) { details._360EE += 7; details._360SE += 7; details.Chrome += 7; } else if (window.navigator.plugins.length < 30 && window.navigator.plugins.length > 10) { details._360EE += 3; details._360SE += 3; details.Chrome += 3; } else if (window.navigator.plugins.length <= 10) { details.Chromium += 6; } } else { details._360SE -= 50; details._360EE -= 50; if (/Linux/i.test(window.navigator.userAgent)) { details.Chromium += 5; } } var found = 0; var respdf = undefined; for (var i in window.navigator.plugins) { if (!!(respdf = /^(.+) PDF Viewer$/.exec(window.navigator.plugins[i].name))) { if (respdf[1] == "Chrome") { details.Chrome += 6; details._360SE += 6; found = 1; break; } if (respdf[1] == "Chromium") { details.Chromium += 10; details._360EE += 6; found = 1; break; } } } if (!found) { details.Chromium += 9; } } var chrome_result = new Object(); chrome_result['Chrome'] = details.Chrome; chrome_result['Chromium'] = details.Chromium; chrome_result['360SE'] = details._360SE; chrome_result['360EE'] = details._360EE; var sortable = []; for (var value in chrome_result) { sortable.push([value, chrome_result[value]]); }sortable.sort(function (a, b) { return b[1] - a[1]; }); this.sorted = sortable; this.details = details; this.result = sortable[0][0]; if (results == "result") { return sortable[0][0]; } else if (results == "details") { return chrome_result; } else if (results == "sorted") { return sortable; } } }; var checkChromeWeight = function checkChromeWeight() { var _ua = window.navigator.userAgent; try { chrome_weight.exec(); if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { return chrome_weight.result; } else {} } catch (e) { return; } }; module.exports.getChromeVersion = function () { var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); return raw ? parseInt(raw[2], 10) : false; }; /***/ }), /***/ "1b6e543795a8607b10bc": /***/ (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
" /***/ }), /***/ "1b7cd483fef8d06be5bd": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___ = __webpack_require__("6da42464ccd75a83a065"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GwdPriceProtectMiddle_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "1bdb575b0e1065a8ec36": /***/ (function(module, exports) { module.exports = "
\n \"\"\n {{ text }}\n
\n \"\"\n
\n 微信扫码\n {{ qrText }}\n
\n
\n
\n" /***/ }), /***/ "1c640a99db9f6f8a16c2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var b2cCompare = __webpack_require__("c912948d535762b7172f"); var tbCompare2 = __webpack_require__("a8d04aabebd76e8bb3f7"); var amazonGlobal = __webpack_require__("b222cbd907f0b4aea97f"); var calWidth = __webpack_require__("54be372a53153922dc13"); var utils = __webpack_require__("d54879e983a83d07f093"); var log = __webpack_require__("03dd60018ce5ed1344a1"); 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__("aab666384cabf081c4de").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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1f2fc6d8a8045863aace": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { if ("ActiveXObject" in window) { G.browser = { engine: "trident", agent: "msie", ver: window.XMLHttpRequest ? document.querySelector ? document.addEventListener ? window.atob ? window.execScript ? 10 : 11 : 9 : 8 : 7 : 6 }; } G.browser.version = G.browser.ver; if (G.browser.agent === 'msie') G.browser.msie = true; G.IE6 = G.browser.agent == "msie" && G.browser.ver === 6; G.IE7 = G.browser.agent == "msie" && G.browser.ver === 7; G.IE8 = G.browser.agent == "msie" && G.browser.ver === 8; G.IE9 = G.browser.agent == "msie" && G.browser.ver === 9; G.IE10 = G.browser.agent == "msie" && G.browser.ver === 10; G.IE11 = G.browser.agent == "msie" && G.browser.ver === 11; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1f677ede70b4f8bcb282": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); 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__("7a162262fe305871f8d9").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', () => { // 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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "1fe950940db4316946fc": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "1fffec0778a8d8b2e8e2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['tag'], data: function data() { return { qr: '', loading: false }; }, methods: { over: function over() { var _this = this; if (this.tag === 2) { __webpack_require__("83271c7588396d2d5e59").logOnce('淘宝会员券:悬浮'); } if (this.loading || this.qr) return; this.loading = true; __webpack_require__("91f250ebeb8d5987491c").rawGet(G.u_server + ('/helper/qrcode?event=appQrcode' + (this.tag ? '&tag=' + this.tag : '') + '&dp_id=') + (this.dpId ? this.dpId : G.dp.dpId)).then(function (res) { if (typeof res === 'string') { res = JSON.parse(res); } _this.qr = res.data.qrImgStr; }); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "216fab13e1b023587a5c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js___ = __webpack_require__("8b0ac201d3fddea2e383"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_Normal_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "21eec4aa13ef0038a0ea": /***/ (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" /***/ }), /***/ "238322f76284ba9e93e3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var posDict = { 'taobao': '#J_Social', 'tmall': '#J_DetailMeta .tm-action.tm-clear' }; var tokenCache = undefined; module.exports.init = function () { if (G.from_device.indexOf('bijiago') > -1 && $('html').hasClass('gwd_taobao_ju')) return; if (window.bjd_tkl_exist && window.bjd_tkl_exist.indexOf('bijiago') === -1) { return; } window.bjd_tkl_exist = G.from_device; if (G.forbidTkl) return; if (location.host.indexOf('taobao') === -1 && location.host.indexOf('tmall') === -1) { return; } if (G.site === 'taobao-ju') { if ($('#bjg-tkl').length) { $('#bjg-tkl').remove(); } renderJu(); return; } render(); }; var renderJu = function renderJu() { var html = __webpack_require__("7cadd8d25c22f502154a"); var res = template.compile(html)({ s_server: G.s_server }); window.$ = $; $('.botbar .operation').append(res); addEventJu(); }; var addEventJu = function addEventJu() { var tklOK = false; $('#bjg-tkl').on('click', function (e) { if (tklOK) { clipboard(); e.preventDefault(); return; } else { cnzz.log("gettklinfo"); getTkl(function (data) { if (data) { $('#gwd-tkl-text').text("点击复制淘口令"); tklOK = true; var dptle = getTbTle(); var newTxt = '7' + data; $('#box_btn').text(newTxt); $('.gggbox-input').val(newTxt); } else { // $('.cptkl-remind-err').show() cnzz.log("gettklerr"); $('#bjg-tkl').addClass('gwd-notkl-error'); } }); } e.preventDefault(); }); }; var getTkl = function getTkl(callback) { if (tokenCache) { callback(tokenCache); return; } var id = location.href.match(/id=(\d+)/)[1]; if (G.site === 'taobao-ju') { id = location.href.match(/item_id=(\d+)/)[1]; } var url = G.server + '/extension/TaoKL?id=' + id; if (G.ss_name === 'priceDog') { url = G.u_server + '/redirect/tao?id=' + id + '&format=json&tkl=1'; } request.get(url).then(function (data) { if (data && data.ios_token) { tokenCache = data.ios_token; callback(data.ios_token); } else { callback(); } })['catch'](function () { callback(); }); }; var getTbTle = function getTbTle() { var tle = ''; if (G.site === 'taobao') { tle = $('#J_Title h3').text().trim(); } else if (G.site === 'taobao-ju') { tle = $('.title').text().trim(); } else { tle = $('.tb-detail-hd>h1').text().trim(); } return tle; }; var render = function render() { var html = __webpack_require__("fd74a65531354a645822"); var pos = posDict[G.site]; var str = 'is_tb_site'; if (G.site === 'tmall') str = 'is_tm_site'; if ($(pos).length > 0) { $(pos).after(template.compile(html)({ s_server: G.s_server, str: str })); } addEvent(); }; var clicked = undefined; var clipboard = function clipboard() { //if (clicked) return; var element = document.getElementById('box_btn'); var element2 = document.querySelectorAll('.gggbox-input')[0]; if (element.hasAttribute('contenteditable')) { element.focus(); } var selection = window.getSelection(); var range = document.createRange(); range.selectNodeContents(element); selection.removeAllRanges(); selection.addRange(range); window.selectedText = selection.toString(); if (!window.selectedText) { element2.select(); element2.setSelectionRange(0, element2.value.length); window.selectedText = element2.value; } try { var t = window.document.execCommand("copy"); if (t) { clicked = true; cnzz.log("copytklss"); if (G.site === 'taobao-ju') { $('#gwd-tkl-text').text("复制成功"); $('#bjg-tkl img').attr('src', G.s_server + '/images/extensions/TKLSuccess@2x.png'); } $('.cptkl-btn span').text("复制成功"); $('.cptkl-btn').removeClass('cpready').addClass('cpsuccess'); } } catch (e) { console.error(e); } }; var addEvent = function addEvent() { var tklOK = undefined; $('.cptkl-btn').on('click', function () { if (tklOK) { clipboard(); return; } else { cnzz.log("gettklinfo"); } getTkl(function (data) { if (data) { $('.cptkl-btn span').text("点击复制淘口令"); $('.cptkl-btn').addClass('cpready'); tklOK = true; var dptle = getTbTle(); var newTxt = '7' + data; $('#box_btn').text(newTxt); $('.gggbox-input').val(newTxt); } else { $('.cptkl-remind-err').show(); cnzz.log("gettklerr"); } }); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "23aafd2ad4b6e88819f1": /***/ (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-left gwd-row gwd-align", style: "left: " + _vm.left + "px", on: { mouseenter: _vm.over } }, [ _c( "span", { staticStyle: { "margin-left": "8px", "font-size": "12px", color: "#7d7e80", width: "48px" } }, [ _vm._v( "手淘扫码" + _vm._s(_vm.hasBuyButton ? "查看优惠" : "快捷购买") ) ] ), _vm._v(" "), _c("img", { staticStyle: { width: "22px", height: "22px", "margin-left": "8px" }, attrs: { src: __webpack_require__("4274a17d553e5317d58f"), alt: "" } }), _vm._v(" "), _c( "svg", { staticStyle: { "margin-left": "4px", width: "11px", height: "6px" }, attrs: { viewBox: "0 0 11 6" } }, [ _c("polygon", { attrs: { points: "0,0 11,0 5.5,6", fill: "#c4c5c6" } }) ] ), _vm._v(" "), _c("div", { staticClass: "gwd-qr-content gwd-align gwd-column" }, [ _vm.qr ? _c("img", { staticStyle: { width: "98px", height: "98px" }, attrs: { src: _vm.qr, alt: "" } }) : _vm._e(), _vm._v(" "), _c("img", { staticStyle: { width: "20px", height: "20px", position: "absolute", left: "50%", top: "42px", transform: "translate(-50%, 0%)" }, attrs: { src: __webpack_require__("c9085187c37fc1ab0e5e"), alt: "" } }) ]) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "2434f337fd6a094fb5fe": /***/ (function(module, exports) { module.exports = "
\n
\n
\n 功能设置\n
\n
\n
\n 意见反馈\n
\n
\n
\n 使用帮助\n
\n \n
" /***/ }), /***/ "246ceb42c05cc162aaa5": /***/ (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_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___ = __webpack_require__("6524c6395176cac4885b"); /* 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_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_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_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_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_QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less____default.a); /***/ }), /***/ "2471c34a1449a65b6e88": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); 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.same_style = true; item.volume = data[i].view_sales.replace('人付款', ''); 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() { console.log('taobaoImgSearch'); /*taobao root_id 筛选需要做图片检索的分类*/ var rootIdArr = ["50510002", "50012029", "50013864", "50011397", "50010404", "1625", "50006842", "50006843", "16", "50011740", "50011699", "50008165", "50008163", "30", "50020857", "50020808", "50013886"]; var root_id = G.dp.root_id; if (root_id && rootIdArr.indexOf(root_id) > -1) { __webpack_require__("ff881c8b15091819a13e").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.clear = function () { globalData = null; callbacks = null; hasrun = false; }; module.exports.getTaobaouniqData = function (callback) { //callback() // if (globalData) { // callback(globalData) // hasrun = true; // } else callbacks = callback; setTimeout(function () { // if (callbacks && hasrun === false) { // callbacks(null) // hasrun = true; // } callback(null); }, timeOUT); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "2517c4f5c89f34233e53": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var browser = { 'url': '', 'utype': '' }; var chromeType = navigator.userAgent.toLowerCase(); module.exports.getBrowser = function () { if ("ActiveXObject" in window) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; slcc2; .net clr 2.0.50727; .net clr 3.5.30729; .net clr 3.0.30729; .net4.0c; infopath.3; .net4.0e) browser.url = G.c_server + ('/files/ext/' + G.extName + '_install_IE.exe'); browser.utype = "ie"; browser.utitle = "IE"; browser.background = "-401px -81px"; } else if (chromeType.indexOf('firefox') > -1) { //mozilla/5.0 (windows nt 6.1; wow64; rv:42.0) gecko/20100101 firefox/42.0 browser.url = "https://addons.mozilla.org/firefox/downloads/latest/405940/addon-405940-latest.xpi?src=dp-btn-primary"; browser.bjgUrl = "https://addons.mozilla.org/zh-CN/firefox/addon/%E6%AF%94%E4%BB%B7%E7%8B%97-%E7%BD%91%E8%B4%AD%E7%9C%81%E9%92%B1%E7%A5%9E%E5%99%A8/?src=search"; browser.utype = "firefox"; browser.utitle = "火狐"; browser.background = "-401px -44px"; } else if (chromeType.indexOf('opera') > -1 || chromeType.indexOf('opr') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.86 safari/537.36 opr/33.0.1990.115 browser.url = G.c_server + "/files/ext/opera.crx"; browser.utype = "opera"; browser.utitle = "Opera"; browser.background = "-2px -120px"; } else if (chromeType.indexOf('safari') > -1 && chromeType.indexOf('chrome') == -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/534.57.2 (khtml, like gecko) version/5.1.7 safari/534.57.2 browser.url = G.c_server + ('/files/ext/' + G.extName + '.safariextz'); browser.utype = "safari"; browser.utitle = "Safari"; browser.background = "-301px -44px"; } else if (chromeType.indexOf('chrome') > -1) { var check360 = checkChromeWeight(); if (chromeType.indexOf('qqbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.87 safari/537.36 qqbrowser/9.2.5542.400 browser.url = "https://pcbrowser.dd.qq.com/pcbrowserbig/qbextension/update/20160122/jgphnjokjhjlcnnajmfjlacjnjkhleah.crx"; browser.bjgUrl = "https://pcbrowser.dd.qq.com/pcbrowserbig/qbextension/update/20180615/lpmlfjjccfdcnfplffgcmnkaafcigoil.crx"; browser.utype = "qq"; browser.utitle = "QQ"; browser.background = "-104px -81px"; } else if (chromeType.indexOf('maxthon') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) maxthon/4.4.8.1000 chrome/30.0.1599.101 safari/537.36 browser.url = "http://extension.maxthon.cn/detail/index.php?view_id=358"; browser.utype = "maxthon"; browser.utitle = "傲游"; browser.background = "-401px -4px"; } else if (chromeType.indexOf('bidubrowser') > -1) { //mozilla/5.0 (compatible; msie 10.0; windows nt 6.1; wow64; trident/6.0; bidubrowser 8.1) browser.url = "http://chajian.baidu.com/2015/#all/39/mcgoibhhihpolaiioggajoipieefgmoa"; browser.utype = 'baidu'; browser.utitle = '百度'; browser.background = "-104px -120px"; } else if (chromeType.indexOf('ubrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/44.0.2403.157 ubrowser/5.5.6743.207 safari/537.36 browser.url = "http://extensions.uc.cn/newindex.htm#!detail/bpdlhpjkjbdiflnankpohpfepecdjgag"; browser.bjgUrl = "https://www.bijiago.com/static/extensions/chrome_bijiago_uc.crx"; browser.utype = 'uc'; browser.utitle = "UC"; browser.background = "-2px -44px"; } else if (chromeType.indexOf('lbbrowser') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/42.0.2311.154 safari/537.36 lbbrowser browser.url = "http://store.liebao.cn/admin/extensions/201511/ea878d5a4d2a008ad78978a94eea62a1.crx"; browser.utype = 'liebao'; browser.utitle = "猎豹安全"; browser.background = "-301px -4px"; } else if (chromeType.indexOf('taobrowser') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.11 (KHTML, like Gecko) Chrome/20.0.1132.11 TaoBrowser/3.5 Safari/536.11 browser.url = G.c_server + "/files/ext/chrome.crx"; browser.utype = 'taobao'; browser.utitle = "淘宝"; browser.background = "-104px -44px"; } else if (chromeType.indexOf('2345explorer') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.99 Safari/537.36 2345Explorer/6.4.0.10356 browser.url = "http://extension.ie.2345.com/#nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.utype = '2345'; browser.utitle = "2345王牌"; browser.background = "-301px -81px"; } else if (chromeType.indexOf('2345chrome') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/39.0.2171.99 safari/537.36 2345chrome v3.0.0.9739 browser.url = "http://extension.chrome.2345.com/#nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.utype = '2345jiasu'; browser.utitle = "2345加速"; } else if (chromeType.indexOf('coolnovo') > -1) { //Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.110 Safari/537.36 CoolNovo/2.0.9.20 browser.url = G.c_server + "/files/ext/chrome.crx"; browser.utype = 'fengshu'; browser.utitle = "枫树"; browser.background = "-2px -81px"; } else if (chromeType.indexOf('greenbrowser') > -1) { //Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/6.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; InfoPath.3; .NET4.0E; GreenBrowser) browser.url = G.c_server + ('/files/ext/' + G.extName + '_for_greenbrowser.zip'); browser.utype = 'gb'; browser.utitle = "GB"; browser.background = "-203px -81px"; } else if (check360 === "Chrome") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/46.0.2490.80 safari/537.36 browser.url = G.c_server + "/app/extension?from_device=" + G.from_device_num; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = 'Chrome'; browser.background = "-2px -4px"; } else if (check360 === "360SE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/31.0.1650.63 safari/537.36 browser.url = "https://ext.se.360.cn/webstore/detail/nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.bjgUrl = "https://ext.se.360.cn/webstore/detail/dikcgfcdhfcmnicjknpmaakimonplclf"; browser.utype = '360se'; browser.utitle = '360安全'; browser.background = "-203px -4px"; } else if (check360 === "360EE") { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/45.0.2454.101 safari/537.36 browser.url = "https://ext.chrome.360.cn/webstore/detail/nfbikdkjfjcejddbdcpbafnclkfdhijd"; browser.bjgUrl = "https://ext.se.360.cn/webstore/detail/dikcgfcdhfcmnicjknpmaakimonplclf"; browser.utype = '360se'; browser.utitle = '360极速 '; browser.background = "-104px -4px"; } else if (chromeType.indexOf('se') > -1) { //mozilla/5.0 (windows nt 6.1; wow64) applewebkit/537.36 (khtml, like gecko) chrome/38.0.2125.122 safari/537.36 se 2.x metasr 1.0 browser.url = "http://ie.sogou.com/tools/tool_337.html"; browser.bjgUrl = "http://ie.sogou.com/app/s/YXBwXzU5Njc="; browser.utype = 'sogou'; browser.utitle = "搜狗"; browser.background = "-401px -120px"; } else { browser.url = G.c_server + "/app/extension"; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = 'Chromium内核'; } } else { browser.url = G.c_server + "/app/extension"; browser.bjgUrl = "https://www.bijiago.com/chromeGuide/"; browser.utype = 'chrome'; browser.utitle = '未知浏览器'; } return browser; }; var chrome_weight = { "result": "Chrome", "details": { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }, "sorted": ["Chrome", "360SE", "360EE", "Chromium"], "exec": function exec(results) { var details = { "Chrome": 5, "Chromium": 0, "_360SE": 0, "_360EE": 0 }; var _ua = window.navigator.userAgent; if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { if (window.navigator.platform == "Win32") { if (!window.clientInformation.languages) { details._360SE += 8; } if (/zh/i.test(navigator.language)) { details._360SE += 3; details._360EE += 3; } if (window.clientInformation.languages) { var lang_len = window.clientInformation.languages.length; if (lang_len >= 3) { details.Chrome += 10; details.Chromium += 6; } else if (lang_len == 2) { details.Chrome += 3; details.Chromium += 6; details._360EE += 6; } else if (lang_len == 1) { details.Chrome += 4; details.Chromium += 4; } } for (var i in window.navigator.plugins) { if (window.navigator.plugins[i].filename == "np-mswmp.dll") { details._360SE += 20; details._360EE += 20; } } if (Object.keys(window.chrome.webstore).length <= 1) { details._360SE += 7; } else if (Object.keys(window.chrome.webstore).length == 2) { details._360SE += 4; details.Chromium += 3; } if (window.navigator.plugins.length >= 30) { details._360EE += 7; details._360SE += 7; details.Chrome += 7; } else if (window.navigator.plugins.length < 30 && window.navigator.plugins.length > 10) { details._360EE += 3; details._360SE += 3; details.Chrome += 3; } else if (window.navigator.plugins.length <= 10) { details.Chromium += 6; } } else { details._360SE -= 50; details._360EE -= 50; if (/Linux/i.test(window.navigator.userAgent)) { details.Chromium += 5; } } var found = 0; var respdf = undefined; for (var i in window.navigator.plugins) { if (!!(respdf = /^(.+) PDF Viewer$/.exec(window.navigator.plugins[i].name))) { if (respdf[1] == "Chrome") { details.Chrome += 6; details._360SE += 6; found = 1; break; } if (respdf[1] == "Chromium") { details.Chromium += 10; details._360EE += 6; found = 1; break; } } } if (!found) { details.Chromium += 9; } } var chrome_result = new Object(); chrome_result['Chrome'] = details.Chrome; chrome_result['Chromium'] = details.Chromium; chrome_result['360SE'] = details._360SE; chrome_result['360EE'] = details._360EE; var sortable = []; for (var value in chrome_result) { sortable.push([value, chrome_result[value]]); }sortable.sort(function (a, b) { return b[1] - a[1]; }); this.sorted = sortable; this.details = details; this.result = sortable[0][0]; if (results == "result") { return sortable[0][0]; } else if (results == "details") { return chrome_result; } else if (results == "sorted") { return sortable; } } }; var checkChromeWeight = function checkChromeWeight() { var _ua = window.navigator.userAgent; try { chrome_weight.exec(); if (/Chrome\/([\d.])+\sSafari\/([\d.])+$/.test(_ua)) { return chrome_weight.result; } else {} } catch (e) { return; } }; module.exports.getChromeVersion = function () { var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./); return raw ? parseInt(raw[2], 10) : false; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "25e0cebb2e3d42787857": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "28ca786b072dc40c7e4b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__GiftMoneyTop_vue_vue_type_template_id_770fdd33_scoped_true___ = __webpack_require__("0927c7d6df6287c77814"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GiftMoneyTop_vue_vue_type_script_lang_js___ = __webpack_require__("9e4c2dea34add1526306"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__GiftMoneyTop_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__GiftMoneyTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__GiftMoneyTop_vue_vue_type_style_index_0_id_770fdd33_scoped_true_lang_less___ = __webpack_require__("b0295bcaad015de0c785"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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__GiftMoneyTop_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__GiftMoneyTop_vue_vue_type_template_id_770fdd33_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__GiftMoneyTop_vue_vue_type_template_id_770fdd33_scoped_true___["b" /* staticRenderFns */], false, null, "770fdd33", 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('770fdd33')) { api.createRecord('770fdd33', component.options) } else { api.reload('770fdd33', component.options) } module.hot.accept("./GiftMoneyTop.vue?vue&type=template&id=770fdd33&scoped=true&", function () { api.rerender('770fdd33', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/GiftMoneyTop.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "28e788fa96c9526d57e5": /***/ (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-pdd-act-bottom-qr" }, [ _c("div", { class: _vm.rnd > 0.5 ? "top" : "top top-2" }, [ _vm.rnd > 0.5 ? _c("img", { staticStyle: { width: "28px", height: "28px", "margin-left": "1px" }, attrs: { src: __webpack_require__("d4697eba6ac505e60559"), alt: "" } }) : _vm._e(), _vm._v(" "), _vm.rnd <= 0.5 ? _c("div", { staticStyle: { width: "9px" } }) : _vm._e(), _vm._v(" "), _c("span", { staticClass: "bold", staticStyle: { "margin-left": "4px" }, domProps: { innerHTML: _vm._s(_vm.text) } }), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.rnd > 0.5 ? _c("span", { staticClass: "circle" }, [_vm._v("领")]) : _vm._e(), _vm._v(" "), _vm.rnd <= 0.5 ? _c("img", { staticStyle: { width: "23px", height: "20px", "margin-right": "9px" }, attrs: { src: __webpack_require__("468535b5894053c41a55"), alt: "" } }) : _vm._e(), _vm._v(" "), _c( "div", { staticClass: "qr-area", style: _vm.needMouseOver ? "display: none" : "" }, [ _c("img", { staticStyle: { "margin-top": "8px" }, attrs: { src: _vm.qr, alt: "" } }), _vm._v(" "), _c( "div", { staticStyle: { "margin-top": "6px", "text-align": "center", "vertical-align": "middle", height: "14px", "line-height": "14px" } }, [ _c( "span", { staticStyle: { color: "#f4010a", "font-size": "14px", "font-weight": "bold" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#333333", "font-size": "12px" } }, [_vm._v(_vm._s(_vm.rnd > 0.5 ? "领券" : "抢购"))] ) ] ) ] ) ]) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "2b14a6ec322d5724c6b1": /***/ (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
" /***/ }), /***/ "2b6ed47fb40018872f18": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function (l) { var x = "0123456789qwertyuioplkjhgfdsazxcvbnm"; var tmp = ""; for (var i = 0; i < l; i++) { tmp += x.charAt(Math.ceil(Math.random() * 100000000) % x.length); } return tmp; }; /***/ }), /***/ "2b7dc049f5da0912d4f2": /***/ (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_PddActivityQr_vue_vue_type_style_index_0_id_984546bc_scoped_true_lang_less___ = __webpack_require__("4997413a8890416480d7"); /* 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_PddActivityQr_vue_vue_type_style_index_0_id_984546bc_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_PddActivityQr_vue_vue_type_style_index_0_id_984546bc_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_PddActivityQr_vue_vue_type_style_index_0_id_984546bc_scoped_true_lang_less____default.a); /***/ }), /***/ "2bc18901559a2d6a8c66": /***/ (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==" /***/ }), /***/ "2bf2a7edf97ee4557731": /***/ (function(module, exports) { module.exports = "\n" /***/ }), /***/ "2c7fa747888a567cd254": /***/ (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__("398e7c903a0cfb55f9a0"); /* 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); /***/ }), /***/ "2d4b8eb27024a4d711c9": /***/ (function(module, exports) { module.exports = "
\n \n 点此进入下一步\n \n
\n" /***/ }), /***/ "2d53f53e0179317f1fdf": /***/ (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__("7b3df266cd171136e29d"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CommonLogin_vue_vue_type_script_lang_js___ = __webpack_require__("aac1e6668367bfac2185"); /* 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__("d4471c1ebb687e8949a5"); /* 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__("5998ce42bfa5570c8c29"); /* 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__("2d6b5ab789900f0fec3a"); /* 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__("3d2b96fda42baaf44d48"); /* 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__("60eb72a5b7f6781306c9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "2d6b5ab789900f0fec3a": /***/ (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__("5fe051e2197cc54d1b43"); /* 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); /***/ }), /***/ "2da79097fdc184b40ede": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var utils = __webpack_require__("d54879e983a83d07f093"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); // const productMonitor = require('productMonitor') var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); // var vipSearch = require('vipSearch') var template = __webpack_require__("274e32dfd54a6b0d18a9"); // let log = require('log') // let cnzz = require('cnzz') var renderBottomBar = function renderBottomBar() { var perinfo = userData.get('permanent'); var hideClass = ''; if (perinfo.bottom_fold === '1') hideClass = 'b-hidden'; var html = __webpack_require__("21eec4aa13ef0038a0ea"); var refer = encodeURIComponent(document.location.href); var feedbackUrl = 'https://www.gwdang.com/brwext/suggest?refer=' + refer + '&from_device=' + deviceEncode(G.from_device); var settingUrl = undefined; if (!perinfo.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } $('body').append(template.compile(html)({ hidemod: hideClass, settingUrl: settingUrl, detailW: $(window).width(), f_url: feedbackUrl })); // if (G.site == 'lenovo') { // if ($('#container_buygroup').length > 0 && $('#container_buygroup').css('position') == 'fixed') { // $('#bjd_bottom_detail').css('bottom', '80px') // } // } }; var addBtBarEvent = function addBtBarEvent() { var perinfo = userData.get('permanent'); $('#gwdang-trend').on('mouseenter', function () { $('#gwdang-trend-detail').css('display', 'flex'); $('#gwdang-trend-detail .panel-wrap').css('flex', 1); $(document).trigger('renderAgain'); $(this).addClass('mshover'); }); $('#gwdang-trend, #gwdang-trend-detail').on('mouseleave', function () { // $('#gwdang-trend-detail').hide() $(this).removeClass('mshover'); }); $('#gwdang-setting').on('click', function () { utils.openTab(); }); $('.nbt-close-btn').on('click', function () { if (perinfo.bottom_fold !== '1') { $('.close-module').addClass('b-hidden'); $(this).addClass('b-hidden'); $('#bjd_bottom_detail').css('width', '94px'); $('.right-info').css('display', 'none'); perinfo.bottom_fold = '1'; } else { $('.close-module').removeClass('b-hidden'); $(this).removeClass('b-hidden'); $('#bjd_bottom_detail').css('width', 'auto'); $('.right-info').css('display', 'flex'); perinfo.bottom_fold = '0'; } // 用户设置插件之后需要保存 utils.setLocal('bottom_fold', perinfo.bottom_fold); utils.settings('set_p_fold', 'p_fold', perinfo.bottom_fold); }); }; module.exports.init2 = function (data) { if (G.IE6 && G.site == 'ccb') { return; } if (G.site === 'smzdm') { return; } // 加载本地插件UI renderBottomBar(); // require('lowestPrice').init(data.now) // // require('haoym').init() // // require('zhidemai').init(data.now.site_id) // require('compare').init(data) // require('topFavor').init() // 加载底部设置 __webpack_require__("7ffda7d29dfea4a64d16").init(); addBtBarEvent(); // priceTrend.init(G.where_buy_dps, G.now_dp_id, "bottom"); // taobaoCompare.init(data, "bottom"); // wishlist.init(data.share_good, data.now); // //加载促销活动 // promo.addPromo(promo.getPromoData(data)); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "2e185af694cfa8c5397c": /***/ (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_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___ = __webpack_require__("82410f902da08ba0a973"); /* 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_LongCoupon_vue_vue_type_template_id_5ccff421_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_LongCoupon_vue_vue_type_template_id_5ccff421_scoped_true___["b"]; }); /***/ }), /***/ "2e99c26f3c749e77922a": /***/ (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__("aa51cc982b2c1333cb43"); /* 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); /***/ }), /***/ "2eb8d6935e044e0d6d06": /***/ (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__("91f250ebeb8d5987491c").getCouponFromUrl(url).then(function (res) { cbrun = true; callback(res); }); setTimeout(function () { if (!cbrun) { callback(); } }, 3000); } else { __webpack_require__("91f250ebeb8d5987491c").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__("91f250ebeb8d5987491c").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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "2f77f5f9070b5907552e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, Vue) {// const getCoupon = require('common/getCoupon') var template = __webpack_require__("274e32dfd54a6b0d18a9"); var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var html = __webpack_require__("8e8507d71ff6e8b54aa2"); var request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var QRReloader = __webpack_require__("95b5a8392f3e95ca15b5"); var randomNum = undefined; var renderTop = function renderTop(data) { if (!data || data.code !== 200) { // require('tbHbQrcode').init() $('#gwdang-banner-ad2').show(); setTimeout(function () { __webpack_require__("12aab5fd482f5627ccd1").init(false); }, 3000); return; } data = data.data; if (data) { setTimeout(function () { __webpack_require__("12aab5fd482f5627ccd1").init(true); }, 3000); } else { setTimeout(function () { __webpack_require__("12aab5fd482f5627ccd1").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__("487014f393da302d31f6"); 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__("487014f393da302d31f6"); $('.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__("047b30291b8b83e043ed"); var renderMini = function renderMini(data) { if (!data || data && data.code !== 200) { if (G.runminiCoupon2) { $(document).trigger('runminiCoupon2'); } else { G.runminiCoup = '1'; } __webpack_require__("48e72e71ca8baf5916e2").init(); __webpack_require__("9c38beef5ff283e15bd2").setMet('coupon'); //renderRedPack() return; } __webpack_require__("9c38beef5ff283e15bd2").setMet('shopCouponGot', false); G.runminiCoup = '2'; data = data.data; data.pid = '30001'; if (navigator.userAgent.indexOf('Firefox') > -1) { data.pid = 'firefox-middle'; } __webpack_require__("9c38beef5ff283e15bd2").setMet('coupon', data.coupon.coupon_money); 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 = ""; } // new coupon var CommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc")['default']; new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'qr', icon: __webpack_require__("7c92b815f92d7fc350e4"), text: '当前商品领券立减' + data.coupon.coupon_money + '元', mainColor: '#fd0937', couponValue: data.coupon.coupon_money, takeBg: __webpack_require__("5c6fd9247ce2328b1c0e"), qrTitle: '领商品券', qrParams: newData } }); } }); // let views = template.compile(html)({ // data: data, // tle: tle, // isShowPic: isShowPic, // picUrl: 'xx', // useTaobao: false // }); // $('#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(() => { // require('global2').autoFixWidth(false) // }, 0) // let showQRcode // $('#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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "2f8dd37a70f60d60581b": /***/ (function(module, exports) { module.exports = "
\n \n 去结算\n \n
\n" /***/ }), /***/ "2fcb34d56f979fea4637": /***/ (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
" /***/ }), /***/ "314ddba7e03fe1fca042": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js___ = __webpack_require__("f3d02ced7d319b2030c9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_PromotionPlan_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "31565daf77a36862a767": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___ = __webpack_require__("4dbc4849707ea6484a05"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CouponArrow_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "31b428c6916433ff2380": /***/ (function(module, exports) { module.exports = "
\n
\n 浏览历史\n {{if his_size != 0}}\n 清空历史\n {{/if}}\n
\n
\n \n
暂无浏览历史
\n
\n \n
" /***/ }), /***/ "31d452087f8bb0fc12f2": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___ = __webpack_require__("0a3b1f8666118ebd3443"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_EpicTrend_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "323113ff2d32291051fe": /***/ (function(module, exports) { module.exports = "{{each data}}\n
  • \n
    \n ¥{{$value.price}}\n {{$value.site_name2 || $value.site_name}}\n
    \n
  • \n{{/each}}" /***/ }), /***/ "326c042b7a879d19324e": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, " #gwd_ht_main a{\n display: inline-block;\n }\n .gwd_haitao {\n font-size: 12px;\n font-family: 'Microsoft Yahei'\n }\n #gwd_ht_main .unit_price #ht_addcollect{\n border: 1px solid #f07860;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n text-align: center;\n width: 77px;\n border-radius: 12px;\n background-color: #fff;\n margin-bottom: 6px;\n margin-top: 4px;\n color: #f07860;\n }\n #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_adding{\n background-color: #f07860;\n color: #fff;\n }\n #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_added{\n background-color: #f07860;\n color: #fff;\n }\n .gwd_haitao .div_detail {\n display: none;\n position: absolute;\n width: 146px;\n border: 1px solid #e6e9eb;\n background-color: #fff;\n z-index: 99;\n line-height: 19px;\n font-size: 12px;\n color: #888;\n padding: 6px 6px 9px 6px;\n box-shadow: 2px 2px 12px 2px #e6e9eb;\n height: auto;\n }\n .gwd_haitao .content_default_left .weight_type_detail {\n top: 7px;\n left: 156px;\n position: absolute;\n width: 113px;\n height: 24px;\n line-height: 22px;\n padding: 0px 6px;\n }\n .pro_type_detail {\n top: 9px;\n left: 350px;\n }\n .gwd_haitao .pro_type_detail.div_detail {\n padding: 0 6px;\n width: 134px;\n }\n .size_detail {\n top: 130px;\n left: 350px;\n }\n .gwd_haitao .size_detail.div_detail {\n padding: 0px 6px;\n width: 110px;\n }\n .pro_type:hover,.mail_type:hover {\n cursor: text;\n }\n .gwd_haitao .ht_getprice:hover{\n text-decoration: none;\n color: #454A4D;\n }\n .gwd_haitao .content_default_left{\n height: 160px;\n width: 254px;\n border-right: 1px solid #e6e9eb;\n float: left;\n display: inline-block;\n }\n .gwd_haitao .ht_freight,.gwd_haitao .del_line{\n display: inline-block;\n text-align: left;\n font-size: 14px;\n margin-left: 12px;\n }\n a.ht_transport_btn span, .ht_tariff_btn span {\n display: inline-block;\n width: 60px;\n height: 40px;\n overflow: hidden;\n float: left;\n font-size: 12px;\n margin-right: 5px;\n }\n a.ht_transport_btn span:hover, .ht_tariff_btn span:hover {\n text-decoration: underline;\n }\n .gwd_haitao .content_default_right{\n display: inline-block;\n height: 160px;\n width: 119px;\n }\n .gwd_haitao .content_default_right a{\n width: 120px;\n height: 40px;\n line-height: 40px;\n color: #383835;\n border-bottom: 1px solid #e6e9eb;\n padding: 0 0 0 14px;\n text-decoration: none;\n }\n .gwd_haitao .content_default_right a span {\n font-size: 12px;\n margin-left: 7px;\n }\n .gwd_haitao .content_default_right a:hover{\n text-decoration: none;\n color: #383835;\n }\n #gwd_ht_main .size_help{\n cursor: pointer;\n border-bottom: none;\n }\n #gwd_ht_main .size_help span {\n text-decoration: none;\n color: #5aa4cc;\n }\n #gwd_ht_main .size_help span:hover {\n text-decoration: underline;\n }\n .gwd_haitao .content_default_right em{\n display: inline-block;\n width: 20px;\n height: 20px;\n position: relative;\n top: 5px;\n }\n .gwd_haitao .size_help em{\n background: url('https://s1.gwdang.com/images/extensions/haitao_sizeicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .ht_translate em{\n background: url('https://s1.gwdang.com/images/extensions/haitao_transicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .pro_type .ziying{\n background: url('https://s1.gwdang.com/images/extensions/haitao_ziyingicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .pro_type .sanfang{\n background: url('https://s1.gwdang.com/images/extensions/haitao_sanicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .mail_type .zhiyou{\n background: url('https://s1.gwdang.com/images/extensions/haitao_zhiicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .mail_type .feizhiyou{\n background: url('https://s1.gwdang.com/images/extensions/haitao_zhuanicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .same-style em {\n background: url('https://s1.gwdang.com/images/extensions/haitao_samestyle.png') 0px 0px no-repeat;\n }\n .gwd_haitao .vip_tle em {\n background: url('https://s1.gwdang.com/images/extensions/haitao_vipicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .gwd_wishlist_trend_detail_wrapper{\n float: left;\n }\n .gwd_haitao .ht_content{\n height: 162px;\n border-top: 1px solid #e6e9eb;\n position: relative;\n }\n .content_default {\n float: left;\n }\n .content_default:after, .gwd_haitao .content_default_right:after {\n content: \"\";\n display: block;\n clear: both;\n }\n #cate_select_box{\n text-align: center;\n margin-top: 4px;\n position: relative;\n }\n .gwd_haitao #cate_select_box input{\n height: 30px;\n width: 109px;\n background: url('https://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 89px 11px;\n background-size: 12px 7px;\n cursor: pointer;\n border: 1px solid #fff;\n box-shadow: none;\n box-sizing: border-box;\n padding: 3px 7px;\n border-radius: 4px;\n color: #9ca7ad;\n font-size: 12px;\n }\n .gwd_haitao #cate_select_box input.sel_info{\n background-color: #e1e1e1;\n }\n .gwd_haitao #cate_select_box input.input_hover{\n border-bottom: 1px solid #fff;\n color: #9ca7ad;\n }\n .gwd_haitao .cate_select_1{\n display: inline-block;\n float: left;\n margin-left: 22px;\n border: 1px solid #969899;\n border-radius: 4px;\n position: relative;\n }\n .gwd_haitao .cate_select_1.select_hover , .gwd_haitao .cate_select_2.select_hover{\n height: 218px;\n z-index: 9999;\n background-color: #fff;\n\n }\n .gwd_haitao .cate_select_2{\n margin-left: 16px;\n display: inline-block;\n border: 1px solid #969899;\n border-radius: 4px;\n position: relative;\n float: left;\n }\n .gwd_haitao .xialabox{\n display: none;\n background-color: #fff;\n overflow-y: scroll;\n overflow-x: hidden;\n height: 185px;\n text-align: left;\n border-top: none;\n position: absolute;\n width: 109px;\n font-size: 12px;\n }\n .ie_hack.gwd_haitao .xialabox {\n width: 111px;\n }\n .gwd_haitao #select_btn{\n display: inline-block;\n width: 60px;\n height: 24px;\n background-color: #47befe;\n border-radius: 12px;\n margin: 0 auto;\n color: #fff;\n text-align: center;\n line-height: 23px;\n cursor: pointer;\n position: absolute;\n top: 54px;\n left: 116px;\n }\n #transport_detail{\n position: fixed;\n width: 755px;\n height: 314px;\n border: 1px solid #e6e9eb;\n background-color: #fff;\n top: 400px;\n left: 400px;\n display: none;\n z-index: 99999;\n box-shadow: 0px 5px 19px 0px #d7d8d9;\n }\n #transport_detail *{\n box-sizing: border-box;\n }\n #transport_detail .trans_nav .span_0 {\n margin-left: 10px;\n }\n #transport_detail .trans_nav .span_1{\n text-align: left;\n width: 146px;\n margin-left: 17px;\n }\n #transport_detail .trans_nav .span_2{\n text-align: left;\n width: 147px;\n margin-left: 4px;\n }\n .ht_trans_detail .trans_head{\n height: 51px;\n border-bottom: 1px solid #e6e9eb;\n }\n .gwd_haitao .closebar{\n display: inline-block;\n text-align: center;\n font-size: 30px;\n position: absolute;\n top: 4px;\n right: 7px;\n color: #666;\n cursor: pointer;\n }\n .gwd_haitao .closebar.closebg {\n background: url(\"https://s1.gwdang.com/images/extensions/haitao_closeicon.png\") 6px 6px no-repeat;\n background-size: 9px 9px;\n height: 22px;\n width: 22px;\n top: 1px;\n right: 1px;\n }\n .gwd_haitao .closebar.closebg:hover {\n background: url(\"https://s1.gwdang.com/images/extensions/haitao_closehovericon.png\") 3px 3px no-repeat;\n background-size: 15px 15px;\n }\n\n .size_desc {\n color: #9f9f9f;\n line-height: 35px;\n }\n\n\n /* 尺码帮助 */\n #size_detail{\n width: 618px;\n height: 440px;\n position: fixed;\n top: 400px;\n left: 400px;\n display: none;\n text-align: left;\n z-index: 9999999;\n box-sizing: border-box;\n background-color: #fff;\n border: 1px solid #e6e9eb; \n box-shadow: 0px 5px 19px 0px #d7d8d9; \n }\n .ht_size_detail .shangyi, .tongzhuang0, .tongxie0{\n position: absolute;\n left: 38px;\n }\n .ht_size_detail .xiazhuang, .tongzhuang4, .tongxie4{\n position: absolute;\n top: 50px;\n left: 38px;\n }\n .ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n display: none;\n }\n .ht_size_detail span.shoes {\n position: absolute;\n top: 39px;\n left: 38px;\n color: #fff;\n background-color: #47befe;\n border: 1px solid #47befe;\n }\n .ht_size_detail .shangyi.size_hover,.ht_size_detail .xiazhuang.size_hover, .ht_size_detail .xiazhuang.size_hover, .ht_size_detail .tongzhuang.size_hover, .ht_size_detail .tongxie.size_hover{\n background-color: #47befe;\n border: 1px solid #47befe;\n color: #fff;\n }\n .ht_size_detail .shangyi,.ht_size_detail .xiazhuang,.ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n height: 30px;\n width: 60px;\n text-align: center;\n line-height: 30px;\n cursor: pointer;\n border-radius: 15px;\n border: 1px solid #969899;\n color: #8A9499;\n }\n .ht_size_detail .cloth_icon{\n position: absolute;\n top: 100px;\n left: 22px;\n }\n \n .ht_size_detail .manshangzhuang {\n background: url('https://s1.gwdang.com/images/extensions/man_shangzhuang.png') -4px 0px no-repeat;\n height: 191px;\n width: 93px;\n }\n .ht_size_detail .womanshangzhuang {\n background: url('https://s1.gwdang.com/images/extensions/woman_shangzhuang.png') 0px 0px no-repeat;\n height: 187px;\n width: 87px;\n }\n .ht_size_detail .kid0 {\n background: url('https://s1.gwdang.com/images/extensions/kids0_4.png') 0px 0px no-repeat;\n height: 187px;\n width: 87px;\n margin-left: 8px;\n }\n .ht_size_detail .kid4 {\n background: url('https://s1.gwdang.com/images/extensions/kids4_12.png') -2px 0px no-repeat;\n height: 187px;\n width: 87px;\n margin-left: 0px;\n }\n .ht_size_detail .manxiazhuang {\n background: url('https://s1.gwdang.com/images/extensions/man_xiazhuang.png') -17px 0px no-repeat;\n height: 216px;\n width: 63px;\n margin-left: 13px;\n }\n .ht_size_detail .womanxiazhuang {\n background: url('https://s1.gwdang.com/images/extensions/woman_xiazhuang.png') 0px 0px no-repeat;\n height: 220px;\n width: 66px;\n margin-left: 11px;\n }\n \n .ht_size_detail .ht_shoes.man_foot {\n background: url('https://s1.gwdang.com/images/extensions/man_foot.png') 4px 0px no-repeat;\n height: 170px;\n width: 111px;\n }\n .ht_size_detail .ht_shoes.woman_foot {\n background: url('https://s1.gwdang.com/images/extensions/woman_foot.png') 4px 0px no-repeat;\n height: 170px;\n width: 111px;\n }\n .ht_size_detail .ht_shoes.kids_foot {\n background: url('https://s1.gwdang.com/images/extensions/kid_shoes.png') 0px 0px no-repeat;\n height: 171px;\n width: 131px;\n left: 4px;\n }\n .ht_size_detail .clothes_nav{\n margin-top: 13px;\n line-height: 30px;\n height: 30px;\n width: 567px;\n margin-left: 55px;\n }\n .ht_size_detail .clothes_nav ul{\n padding: 0;\n margin: 0px;\n }\n .ht_size_detail .size_s{\n height: 40px;\n display: inline-block;\n border-right: 2px solid #e6e9eb;\n }\n .detail_left {\n float: left;\n width: 136px;\n height: 367px;\n position: relative;\n }\n .detail_left span {\n display: inline-block;\n }\n .ht_size_detail #size_item{\n height: 180px;\n width: 452px;\n overflow-y: scroll;\n border: 1px solid #e6e9eb;\n }\n .ht_size_detail .clothes_nav ul li{\n list-style: none;\n float: left;\n font-size: 16px;\n width: 32px;\n margin-right: 57px;\n color: #000;\n cursor: pointer;\n border-bottom: 3px solid #fff;\n }\n .ht_size_detail .clothes_nav ul li:hover {\n color: #47befe;\n }\n .ht_size_detail .clothes_nav ul li.select{\n border-bottom: 3px solid #47befe;\n color: #47befe;\n }\n .ht_size_detail .size_head{\n height: 60px;\n }\n .ht_size_detail .unit_desc{\n display: inline-block;\n float: right;\n margin-right: 27px;\n margin-top: 8px;\n position: relative;\n }\n .ht_size_detail .size_con{\n text-align: right;\n margin-top: 16px;\n margin-bottom: 11px;\n margin-right: 26px;\n color: #575e61;\n }\n .ht_size_detail .size_op{\n width: 440px;\n display: inline-block;\n position: relative;\n }\n\n .ht_size_detail .size_op input+input {\n margin-left: 0px; \n }\n #first_size+.first_xiala {\n position: absolute;\n right: 267px;\n }\n .ht_size_detail .size_op input{\n width: 100px;\n height: 31px;\n box-sizing: border-box;\n }\n #first_size, #second_size {\n border-radius: 4px;\n outline: none;\n padding: 0 7px;\n border: 1px solid #969899;\n box-shadow: none;\n }\n #first_size:focus, #second_size:focus {\n border-color: #47befe;\n }\n .ht_size_detail .size_xialabox {\n display: none;\n width: 60px;\n height: 190px;\n border: 1px solid #999;\n border-bottom: none;\n position: absolute;\n text-align: left;\n line-height: 19px;\n top: -189px;\n right: 267px;\n box-sizing: border-box;\n background-color: #fff;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n }\n #second_size+.second_xiala{\n position: absolute;\n right: -14px;\n }\n .ht_size_detail #second_size+input+.size_xialabox{\n right: -14px;\n }\n .ht_size_detail .size_xialabox a{\n display: block;\n padding-left: 7px;\n color: #5c6266;\n }\n .ht_size_detail .size_xialabox a:hover{\n text-decoration: underline;\n color: #47befe;\n }\n .ht_size_detail .size_op .size_xiala{\n width: 60px;\n border: 1px solid #999;\n padding-left: 7px;\n border-radius: 4px;\n color: #8a9499;\n }\n .ht_size_detail .size_op .size_xiala.msHover {\n border-radius: 0px;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n background: url('https://s1.gwdang.com/images/extensions/haitao_upgrayicon.png') no-repeat 42px 12px;\n background-size: 12px 7px;\n }\n .ht_size_detail .size_xiala{\n background: url('https://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 42px 12px;\n background-size: 12px 7px;\n cursor: pointer;\n }\n .ht_size_detail .conversion{\n margin: 0 30px 0 105px;\n }\n /* fanyi */\n .ht_fanyi{\n display: block;\n position: absolute;\n width: 200px;\n z-index: 99;\n background: #fff url('https://s1.gwdang.com/images/extensions/haitao_fanyi_icon.png') 0px 0px no-repeat;\n border: 1px solid #47befe;\n border-radius: 8px;\n min-height: 25px;\n color: #494b4d;\n text-indent: 32px;\n padding: 2px 12px;\n line-height: 19px;\n }\n .ht_fanyi a{\n display: block;\n width: 130px;\n text-decoration: none;\n color: #494b4d;\n }\n .ht_fanyi a:hover{\n text-decoration: none;\n color: #494b4d;\n }\n #ht_top{\n position: absolute;\n width: 0px;\n height: 0px;\n line-height: 0px;\n border-bottom: 8px solid #278ac9;\n border-left: 9px solid transparent;\n border-right: 9px solid transparent;\n left: 58px;\n top: -8px;\n }\n #ht_top:after {\n content: \"\";\n display: block;\n position: absolute;\n width: 0px;\n height: 0px;\n line-height: 0px;\n border-bottom: 7px solid #fff;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n left: -8px;\n top: 1px;\n }\n /* 滚动条样式 */\n .gwd_haitao ::-webkit-scrollbar {width:6px;height: 6px;}\n .gwd_haitao ::-webkit-scrollbar-track {background:#f0f0f0;}\n .gwd_haitao ::-webkit-scrollbar-thumb {\n background: #cdcdcd;\n border-radius: 4px;\n }\n #size_detail ::-webkit-scrollbar {width:2px;height: 6px;}\n /* 亚马逊遮挡 */\n div#actionPanelWrapper.burj {\n overflow: visible!important;\n }\n\n ", ""]); // exports /***/ }), /***/ "32b6293d44720736c8b0": /***/ (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
    " /***/ }), /***/ "32e21676b7e7687a50e8": /***/ (function(module, exports) { module.exports = "\n \"\"\n\n" /***/ }), /***/ "33f1e3efa95059924094": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _CouponLinkMixin = __webpack_require__("05dfce086a5faeee4991"); var _CouponLinkMixin2 = _interopRequireDefault(_CouponLinkMixin); exports["default"] = { mixins: [_CouponLinkMixin2["default"]] }; module.exports = exports["default"]; /***/ }), /***/ "355921d1b4aed281311d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".bjgou-subsidy-bar[data-v-53cb8bb8] {\n background: white;\n border-left: 1px solid #e6e9eb;\n border-right: 1px solid #e6e9eb;\n border-bottom: 1px solid #e6e9eb;\n width: 460px;\n display: inline-flex;\n align-items: center;\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\";\n height: 34px;\n}\n.bjgou-subsidy-bar .bjg-badge[data-v-53cb8bb8] {\n font-size: 0;\n margin-left: 12px;\n position: relative;\n text-align: center;\n}\n.bjgou-subsidy-bar .bjg-badge span[data-v-53cb8bb8] {\n position: absolute;\n left: 0;\n top: 0;\n width: 32px;\n height: 32px;\n display: block;\n line-height: 32px;\n font-size: 22px;\n color: white;\n transform: scale(0.5);\n transform-origin: top left;\n}\n.bjgou-subsidy-bar .bjg-bold[data-v-53cb8bb8] {\n font-size: 13px;\n font-weight: bold;\n color: #ff2d53;\n}\n.bjgou-subsidy-bar .bjg-take[data-v-53cb8bb8] {\n min-width: 87px;\n height: 22px;\n border: 1px solid #FF2D53;\n position: relative;\n display: flex;\n cursor: pointer;\n}\n.bjgou-subsidy-bar .bjg-take span[data-v-53cb8bb8] {\n font-size: 12px;\n text-align: center;\n line-height: 22px;\n}\n.bjgou-subsidy-bar .bjg-take .taker[data-v-53cb8bb8] {\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-53cb8bb8] {\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", ""]); // exports /***/ }), /***/ "3690f6d076b37bda66b7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var util = __webpack_require__("d54879e983a83d07f093"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var request = __webpack_require__("91f250ebeb8d5987491c"); var renderBar = function renderBar(permanent) { var fold, domName, showAd, showJHS, noCoupon, settingUrl, feedbackUrl, html, jdadUrl, config, c, t, jdadImg; return regeneratorRuntime.async(function renderBar$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: fold = permanent.top_fold; domName = G.dval.replace('#', ''); showAd = undefined, showJHS = undefined, noCoupon = undefined; if (G.site.indexOf('360buy') > -1 || G.site == 'zol' || G.site == 'douban') { showAd = true; } if (G.site.indexOf('taobao') > -1 || G.site == 'zol' || G.site == 'douban' || G.site == 'tmall') { showJHS = true; } if (G.site == 'zol' || G.site == 'douban') { noCoupon = true; } settingUrl = undefined; if (!permanent.setPage) { settingUrl = G.server + '/brwext/setting?from=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); } feedbackUrl = 'https://www.' + G.extName + '.com/brwext/suggest?refer=' + encodeURIComponent(document.location.href) + '&from_device=' + deviceEncode(G.from_device) + '&btype=' + (G.btype ? G.btype : ''); html = __webpack_require__("3ca15150d9511e1a5d50"); jdadUrl = "https://p.gouwuke.com/8Hjg3k"; $('body').append(template.compile(html)({ domName: domName, s_url: settingUrl, f_url: feedbackUrl, showAd: showAd, jdadUrl: jdadUrl, noCoupon: noCoupon, showJHS: showJHS, fold: fold })); $('.top-bar-setting').on('click', function () { util.openTab(); }); if (fold !== '1') { $('body').css('padding-top', '36px').addClass('gwd_unfold'); } __webpack_require__("cf8f469df8ae6c96f344")(); // 分享插件 __webpack_require__("98e571e6ad843edfcada").init(); if (!showAd) { context$1$0.next = 24; break; } context$1$0.next = 19; return regeneratorRuntime.awrap($.getJSON('https://cdn.bijiago.com/js/configs/activity-online.json')); case 19: config = context$1$0.sent; c = config.jdActivity; t = new Date(); jdadImg = 'https://cdn.bijiago.com/images/extensions/ad1111/bijiago_go.png'; if (t < new Date(c.end) && t > new Date(c.start)) { jdadUrl = c.top.link; jdadImg = c.top.img; $('#gwdang-banner-ad').attr('href', jdadUrl); $('#gwdang-banner-ad img:eq(0)').attr('src', jdadImg); $('#gwdang-banner-ad img:eq(0)').css('height', '32px'); $('#gwdang-banner-ad img:eq(1)').css('display', 'none'); } case 24: return context$1$0.abrupt('return', new Promise(function (resolve) { return resolve(); })); case 25: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.init = function callee$0$0() { var permanent, count, t; 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'); if (!(location.hostname.indexOf('smzdm.com') > -1)) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: context$1$0.next = 5; return regeneratorRuntime.awrap(renderBar(permanent)); case 5: count = 0; t = setInterval(function () { // 加载完成之后 做一个自动适配 避免屏幕宽度不够出现错位现象 __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); window.fixWidth = __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth; count++; if (count > 5) { clearInterval(t); } }, 1000); case 7: case 'end': return context$1$0.stop(); } }, null, _this); }; // 工具条上展示小banner AD // let redpack = await $.getJSON(`https://cdn.gwdang.com/js/configs/jdRedpack.json`) // if (redpack.url) { // jdadUrl = redpack.url // $('#gwdang-banner-ad').attr('href', jdadUrl) // } // 获取配置信息 比如插件是否折叠 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "379c1f0148813ff54069": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin); exports["default"] = { props: ['dpId'], mixins: [_commonComponentsMemberCouponMixin2["default"]], mounted: function mounted() { this.over(); } }; module.exports = exports["default"]; /***/ }), /***/ "3832d7e2010c4bcbbba2": /***/ (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__("c9085187c37fc1ab0e5e"), 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 /***/ }), /***/ "386e47e61222ba76fe18": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {/* product_id:12313, --产品Id product_name:"Nike耐克KD 8 Elite高帮男士篮球鞋", --产品名称 goods_id:12312, --商品Id(非精确匹配则给出的是最低价的商品Id) spec_name_desc:"颜色:红色 尺码:36", --商品规格描述 goods_original_price:1231, --商品官网原价 货币类型:官网货币 单位:分 currency:"USD", --货币类型(USD:美元,EUR:欧元,GBP:英镑,JPY:日元,KRW:日元,CNY:人民币) goods_price:69999, --商品剁手帮价格 货币类型:人民币 单位:分 official_original_postage:2000, --官网原运费 货币类型:人民币 单位:分 official_postage:2000, --官网邮费(剁手帮减免后) 货币类型:人民币 单位:分 official_postage_rule:"满500免邮", --官网邮费规则描述 international_original_postage:3000, --国际转运费 单位:分 单位:分 international_postage:3000, --国际转运费(剁手帮减免后) 单位:分 单位:分 tax_original_fee:1231, --应收税费 货币类型:人民币 单位:分 tax_fee:1231, --实收税费 货币类型:人民币 单位:分 weight:123, --重量 单位:克 max_buy_num:10 --限购最大购买数量 */ var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var globalObj = {}; globalObj['settime'] = 150; var priceDom = { amazon: ['#priceblock_dealprice span', '#priceblock_ourprice span .buyingPrice', '#priceblock_dealprice', '#priceblock_saleprice', '#priceblock_ourprice', '#price_feature_div .a-color-price'] }; var feeDom = { amazon: ['#priceBadging_feature_div .a-color-secondary', '#ourprice_shippingmessage .a-color-secondary'] }; var addMark = function addMark(url) { if (!url) return url; if (url.indexOf('?') > -1) { url = url + '&p_r=gouwudang&p_k=plug_' + G.style + '&outer_pid=8507'; } else { url = url + '?p_r=gouwudang&p_k=plug_' + G.style + '&outer_pid=8507'; } return url; }; var getPrice = function getPrice() { var price = 0, fee = 0; for (var i = 0; i < priceDom['amazon'].length; i++) { var item = priceDom['amazon'][i]; if ($(item).length > 0 && $(item).is(':visible')) { price = $(item).text().replace(/[¥$¥\s,]+/g, ''); if (price.indexOf('-') > -1) price = price.split('-')[0]; break; } } for (var i = 0; i < feeDom['amazon'].length; i++) { var item = feeDom['amazon'][i]; if ($(item).length > 0 && $(item).is(':visible')) { fee = $(item).text().match(/[0-9.]+/) && $(item).text().match(/[0-9.]+/)[1]; break; } } if (!fee) fee = 0; price = Number(price) + Number(fee); return price; }; var getInfo = function getInfo() { console.log('yjht get info'); var dp = G.dp; var price = dp.oldPrice; if (G.site === 'amazon') price = getPrice(); if (!price) price = dp.oldPrice || ''; if (!dp.url) dp.url = location.href; if (!dp.sku) dp.sku = dp.url.match(/(?:dp|product)\/([0-9a-zA-Z]+)/) && dp.url.match(/(?:dp|product)\/([0-9a-zA-Z]+)/)[1]; var price2 = (Number(price) * 100).toFixed(0); var url = G.server + '/api/haitao?price=' + price2 + '&url_crc=' + dp.sku + '&url=' + encodeURIComponent(dp.url); globalObj['requestUrl'] = url; globalObj['jumpinfo'] = 'url_crc=' + dp.sku + '&url=' + encodeURIComponent(dp.url); globalObj['fstTime'] = new Date().getTime(); request.get(url).done(function (data) { if (data && data.data.product_status === 1) { var obj = data.data.product_detail; obj.url = addMark(data.data.product_url); render(obj); } else if (data && (data.data.product_status === 2 || data.data.product_status === 3)) { var obj = undefined; if (data.data.product_detail_estimate) { obj = data.data.product_detail_estimate; obj.url = buildJumpUrl(); } else { obj = { goods_price: parseprice(price.toFixed(2)), url: 'javascript:void();', tle: "抱歉,该商品暂时无法一键海淘", noinfo: true }; } render(obj); } else { var tle = ""; if (data.data.product_status === 4) tle = "抱歉,由于相关法律或转运禁运的原因,该商品无法一键海淘。";else if (data.data.product_status === 5) tle = "抱歉,该商品已下架,无法一键海淘。"; var obj = { goods_price: parseprice(price).toFixed(2), url: 'javascript:void();', tle: tle, noinfo: true }; render(obj); } }); }; var calPrice = function calPrice(dp) { dp.goods_original_price = Number((dp.goods_original_price / 100).toFixed(2)); dp.goods_price = Number((dp.goods_price / 100).toFixed(2)); dp.official_original_postage = (dp.official_original_postage / 100).toFixed(2); dp.official_postage = Number((dp.official_postage / 100).toFixed(2)); dp.xm_official = Number(dp.official_original_postage) - dp.official_postage; dp.international_original_postage = Number((dp.international_original_postage / 100).toFixed(2)); dp.international_postage = Number((dp.international_postage / 100).toFixed(2)); dp.xm_international = dp.international_original_postage - dp.international_postage; dp.tax_original_fee = Number((dp.tax_original_fee / 100).toFixed(2)); dp.tax_fee = Number((dp.tax_fee / 100).toFixed(2)); dp.xm_fee = dp.tax_original_fee - dp.tax_fee; dp.purePrice = dp.goods_price + dp.official_postage + dp.international_postage + dp.tax_fee; dp.purePrice = dp.purePrice.toFixed(2); dp.goods_price = dp.goods_price.toFixed(2); for (var pattern in dp) { if (typeof dp[pattern] === 'number') { dp[pattern] = dp[pattern].toFixed(2); } } return dp; }; var renderMiniBar = function renderMiniBar(dp) { var d = new Date().getTime(); var t1 = getTimeStr(d + 24 * 3600 * 1000 * 20); var t2 = getTimeStr(d + 24 * 3600 * 1000 * 30); var timestr = t1 + '-' + t2; var htInfo = __webpack_require__("65cb632859494beda768").getHtInfo(); var html = __webpack_require__("46fef71c80ec1011c37c"); $('#yj_haitao').append(template.compile(html)({ data: dp, hosts: htInfo.HOST, timestr: timestr, protype: htInfo.protype, site: G.site == '6pm' ? '6PM' : '亚马逊' })).show(); }; var render = function render(dp) { if (!dp.noinfo) dp = calPrice(dp); globalObj['dpinfo'] = dp; renderMiniBar(dp); }; var getTimeStr = function getTimeStr(time) { 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; return y + '.' + m + '.' + d; }; var buildJumpUrl = function buildJumpUrl() { var url = 'https://www.gwdang.com/promotion/haitaomid?' + globalObj['jumpinfo'] + '&f_d=' + G.from_device; return url; }; module.exports.init = function () { if (location.host === 'www.amazon.de') return; getInfo(); // render() }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "3879e534af5afa81bdf4": /***/ (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" /***/ }), /***/ "38b9a004946728772bc4": /***/ (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 /***/ }), /***/ "38c3da6a2366a559454c": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___ = __webpack_require__("000bbf01d73ab546daa9"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkContact_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "398e7c903a0cfb55f9a0": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "3aa80349427b4df53881": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "3b20e893040e45bc8dd9": /***/ (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__("e081b2491b5c9b12b9da"); var exports = {}; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var viewB2cStore = __webpack_require__("d8451f9e6477c0bd7752"); var specialFilter = __webpack_require__("ce5673fceec6522bf6f5"); var calWidth = __webpack_require__("54be372a53153922dc13"); 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__("03dd60018ce5ed1344a1")('b2cCompare:fixedPrice:error'); return price; } return price; }; var transRate = function transRate(dp) { if (dp.price_rmb) return dp; var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); 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__("863c1f55a779c0593c30"); $('#' + 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "3bc49249739ef2a3c3f8": /***/ (function(module, exports) { module.exports = "\n" /***/ }), /***/ "3be7d467c6bac9354a1b": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-qr-login[data-v-6179ab9e] {\n position: fixed;\n bottom: 65px;\n left: 0;\n right: 0;\n}\n.gwd-qr-login .gwd-qr-box[data-v-6179ab9e] {\n margin-top: 6px;\n width: 190px;\n height: 217px;\n background: linear-gradient(180deg, #FFF9F6 0%, #FFF9F6 100%);\n opacity: 1;\n border: 1px solid #FF471A;\n}\n", ""]); // exports /***/ }), /***/ "3c102bca554f27879709": /***/ (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__("719962cffbaf4ac55086"); /* 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); /***/ }), /***/ "3c6362239b66cef1f39f": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-subsidy-top[data-v-770fdd33] {\n width: 194px;\n height: 32px;\n background: url(" + __webpack_require__("31392cf3d1f62c9e5859") + ");\n background-size: cover;\n display: inline-flex;\n align-items: center;\n position: relative;\n margin-top: 2px;\n cursor: pointer;\n}\n.gwd-subsidy-top span.value[data-v-770fdd33] {\n font-size: 13.5px;\n color: #fff1d8;\n margin-left: 124px;\n margin-top: -2px;\n font-weight: bold;\n}\n.gwd-subsidy-top .qrcode[data-v-770fdd33] {\n display: none;\n position: absolute;\n top: 33px;\n left: 25px;\n width: 144px;\n height: 167px;\n background: #FFF7F7;\n border: 1px solid #FF2D53;\n z-index: 9;\n}\n.gwd-subsidy-top:hover .qrcode[data-v-770fdd33] {\n display: flex;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "3ca15150d9511e1a5d50": /***/ (function(module, exports) { module.exports = "
      \n
      \n \n
      \n
      \n
      \n
      \n
      \n
      \n
      \n {{ if showAd}}\n \n \n \"\"\n \n {{/if}}\n
      \n\n\n\n \n
      \n
      \n
      \n \n \n
      \n
      \n
      \n\n" /***/ }), /***/ "3cd1d8e0961acbb3ac12": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); 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__("d54879e983a83d07f093").waitForConditionFn(function () { var t = $('[data-component=PurchaseButton] button')[0].innerText; return t === '立即购买' || t === '预购'; })); case 2: EpicTrend = __webpack_require__("04a1e812dbb979983ae6")['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__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "3d2b96fda42baaf44d48": /***/ (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__("b4e3fee31f1bbca1519d"); /* 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); /***/ }), /***/ "3dbec38a0e3472df70b7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var request = __webpack_require__("91f250ebeb8d5987491c"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var gwd_protocol = 'https:'; var timer, timer2, weight; var HOST; var noSale; var HT = {}; var htX, htY, mouseDownX; var country = 'us'; var cateDict, transDict; /*转换成厘对应比例*/ var sizeDict = { '米': 3000, '厘米': 30, '毫米': 3, '英尺': 914.4, '英寸': 76.2, '码': 2743.2, '尺': 1000, '寸': 100, '分': 10, '厘': 1 }; var weightDict = { 'g': 1, 'kg': 1000, 'ounces': 28.35, 'pounds': 453.60 }; var clothesDict = { 'shangyi': { 'us': { 'man': ['us_man_sz.jpg', 'us_man_sz2.jpg'], 'woman': ['us_woman_sz.jpg', 'us_woman_sz2.jpg'] }, 'uk': { 'man': ['uk_man_sz.jpg', 'uk_man_sz2.jpg'], 'woman': ['uk_woman_sz.jpg', 'uk_woman_sz2.jpg'] }, 'jp': { 'man': ['jp_man_sz.jpg', 'jp_man_sz2.jpg'], 'woman': ['jp_woman_sz.jpg', 'jp_woman_sz2.jpg'] } }, 'xiazhuang': { 'us': { 'man': ['us_man_xz.jpg', 'us_man_xz2.jpg'], 'woman': ['us_woman_xz.jpg', 'us_woman_xz2.jpg'] }, 'uk': { 'man': ['uk_man_xz.jpg', 'uk_man_xz2.jpg'], 'woman': ['uk_woman_xz.jpg', 'uk_woman_xz2.jpg'] }, 'jp': { 'man': ['jp_man_xz.jpg', 'jp_man_xz2.jpg'], 'woman': ['jp_woman_xz.jpg', 'jp_woman_xz2.png'] } }, 'kidscloth': { 'us': ['us_kids.jpg', 'us_kids2_0.jpg', 'us_kids2_4.jpg'], 'uk': ['uk_kids.jpg', 'uk_kids2_0.jpg', 'uk_kids2_4.jpg'], 'jp': ['jp_kids.jpg', 'jp_kids2_4.jpg', 'jp_kids2_4.jpg'] }, 'shoes': { 'man': ['woman_shoes_1.jpg', 'man_shoes2.jpg'], 'woman': ['woman_shoes_1.jpg', 'woman_shoes2.jpg'], 'kids': ['kids_shoes.jpg', 'kids_shoes2_0.jpg', 'kids_shoes2_4.jpg'] } }; var sitePattern = { 'www.amazon.com': { 'coun': 'us', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.co.jp': { 'coun': 'jp', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.de': { 'coun': 'uk', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.amazon.com.au': { 'coun': 'au', 'dom': ['#price_feature_div', '#unifiedPrice_feature_div'], 'position': 'after' }, 'www.6pm.com': { 'coun': 'us', 'dom': ['.mGIQz'], 'position': 'before' } }; var categoryDict1 = { 'coffee': '咖啡', 'snack': '饮料/保健品/其他食品', 'nut': '饮料/保健品/其他食品', 'pistachio': '饮料/保健品/其他食品', 'almond': '饮料/保健品/其他食品', 'chestnuts': '饮料/保健品/其他食品', 'walnut': '饮料/保健品/其他食品', 'hazelnut': '饮料/保健品/其他食品', 'pecan': '饮料/保健品/其他食品', 'cashew': '饮料/保健品/其他食品', 'peanut': '饮料/保健品/其他食品', 'chocolates': '饮料/保健品/其他食品', 'pastry': '饮料/保健品/其他食品', 'candy': '饮料/保健品/其他食品', 'condiment': '饮料/保健品/其他食品', 'ketchup': '饮料/保健品/其他食品', 'beverage': '饮料/保健品/其他食品', 'tea': '茶叶', 'coats': '外衣/衣服/冲锋衣', 'clothes': '外衣/衣服/冲锋衣', 'shirt': '外裤/裤子/衬衫/衬衣/T恤', 'sweaters': '外裤/裤子/衬衫/衬衣/T恤', 'lingerie': '内衣/内裤', 'tankinis': '内衣/内裤', 'bikinis': '内衣/内裤', 'loungewear': '内衣/内裤', 'underwear': '内衣/内裤', 'briefs': '内衣/内裤', 'swimsuit': '内衣/内裤', 'scarves': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'hats': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'scarf': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'tie': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'belt': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'gloves': '配饰(帽子/围巾/头巾/丝巾/领带/腰带/手套)', 'bedding': '毛毯/被子/床罩/睡袋', 'quilt': '毛毯/被子/床罩/睡袋', 'bedspread ': '毛毯/被子/床罩/睡袋', 'leather': '皮鞋', 'boots': '皮靴/靴子', 'outdoor': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'athletic': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'sports': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'wading': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'climbing': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'running': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'sandals': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'slippers': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'insoles': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'shoelaces': '运动鞋/徒步鞋/涉水鞋/登山鞋/远足鞋', 'suitcases': '箱/行李箱/旅行箱/手提箱', 'luggage': '箱/行李箱/旅行箱/手提箱', 'briefcases': '箱/行李箱/旅行箱/手提箱', 'travel': '箱/行李箱/旅行箱/手提箱', 'backpacks': '挎包/背包/邮差包/背包/单肩包/双肩包', 'satchel': '挎包/背包/邮差包/背包/单肩包/双肩包', 'bags': '挎包/背包/邮差包/背包/单肩包/双肩包', 'cases': '挎包/背包/邮差包/背包/单肩包/双肩包', 'handbags': '挎包/背包/邮差包/背包/单肩包/双肩包', 'clutches': '挎包/背包/邮差包/背包/单肩包/双肩包', 'wallet': '钱包/钥匙包', 'money': '钱包/钥匙包', 'key': '钱包/钥匙包', 'watches': '机械表', 'wrist': '机械表', 'dishwashers': '餐具/刀具', 'hoods': '餐具/刀具', 'drawers': '餐具/刀具', 'dath': '餐具/刀具', 'cutlery': '餐具/刀具', 'flatware': '餐具/刀具', 'kitchen & dining': '餐具/刀具', 'dining': '餐具/刀具', 'knife': '餐具/刀具', 'pot': '炊具/锅', 'cookware': '炊具/锅', 'kitchenware': '炊具/锅', 'cooktops': '炊具/锅', 'purifier': '净水器(含滤芯)', 'steamers': '电饭煲', 'ovens': '微波炉', 'juicer': '电动榨汁机', 'coffeemachine': '咖啡机', 'vacuums': '吸尘器', 'ceiling ': '电风扇', 'irons': '电熨斗', 'humidifiers': '增/除湿机/増除湿一体机', 'sewing': '电动缝纫机', 'refrigerators': '家电', 'freezers': '家电', 'compactors': '家电', 'washers': '家电', 'bulbs': '家电', 'shaver': '电动剃须刀', 'blood': '血压计/血糖计', 'glucose': '血压计/血糖计', 'dryer': '电吹风机', 'toothbrush': '电动牙刷', 'sunscreen': '防晒露/防晒霜/防嗮乳液', 'lotions': '防晒露/防晒霜/防嗮乳液', 'scream': '护手霜', 'lipstick': '唇膏', 'perfume': '香水', 'masks': '面膜', 'toner': '爽肤水', 'phones': '触屏式手机', 'cameras': '数码相机/卡片机/DC', 'canon': '数码相机/卡片机/DC', 'joystick': '游戏机遥控器/控制器/手柄/摇杆/方向盘', 'controller': '游戏机遥控器/控制器/手柄/摇杆/方向盘', 'recorder': '录音笔/录音机/收音机', 'radios': '录音笔/录音机/收音机', 'echo': '音箱(音响设备)', 'stereos': '音箱(音响设备)', 'laptop': '笔记本电脑/含平板电脑', 'memory': '内存条4G以上', 'cards': '功能卡/显卡/声卡等', 'card': '功能卡/显卡/声卡等', 'mice': '鼠标', 'keyboards': '键盘', 'input': '键盘', 'scanner': '投影仪', 'screens': '投影仪', 'disk': '移动硬盘1TB-2TB(含2TB)', 'toys': '玩具', 'mp3 players': 'MP3播放器', 'diapering': '婴儿用品' }; var categoryDict2 = { 'food': { 'tle': '食品', 'cate': 'cate1' }, 'clothing': { 'tle': '服饰', 'cate': 'cate2' }, 'packs': { 'tle': '鞋、箱包', 'cate': 'cate3' }, 'shoes': { 'tle': '鞋、箱包', 'cate': 'cate3' }, 'bags': { 'tle': '鞋、箱包', 'cate': 'cate3' }, 'kitchen & dining': { 'tle': '厨房、餐厅', 'cate': 'cate4' }, 'home & kitchen': { 'tle': '家电', 'cate': 'cate6' }, 'health & personal': { 'tle': '个人护理', 'cate': 'cate7' }, 'beauty ': { 'tle': '美容', 'cate': 'cate8' }, 'camera & photo ': { 'tle': '照相机、摄像机', 'cate': 'cate11' }, 'electronics': { 'tle': '电子数码', 'cate': 'cate12' }, 'cumputers': { 'tle': '个人电脑', 'cate': 'cate15' }, 'diapering': { 'tle': '婴儿用品', 'cate': 'cate18' } }; var searchCateDict = ['#wayfinding-breadcrumbs_feature_div .a-list-item .a-link-normal', '#SalesRank .zg_hrsr_ladder a']; var weightDom = { 'www.amazon.com': ['#detailBullets_feature_div .a-list-item .a-text-bold:contains(Weight) + span', '#technical-details-table td:contains(Weight)+td', '#detail-bullets ul li:contains(Weight)', '#technical-details_feature_div table.a-keyvalue th.a-nowrap:contains("Shipping Weight")+td'], 'www.amazon.de': ['#detail_bullets_id ul li:contains(Produktgewicht)', '#prodDetails .shipping-weight .value'], 'www.amazon.co.jp': ['#detail_bullets_id ul li:contains(発送重量)', '.shipping-weight .value'], 'www.6pm.com': ['#prdInfoText .measurements li:contains(Weight)'] }; /*初始化*/ function init() { if (G.IE6 || G.IE7 || G.IE8 || G.IE9) return; if (!isHaitaoPage()) return; getCountry(); getMessage(function () { insertHtml(); if ($('#gwd_ht_main').length == 0) return; render_size_detail(); render_trans_detail(); insertShop(); insertSize(clothesDict['shangyi'][country]['man'][0], clothesDict['shangyi'][country]['man'][1]); addEvent(); addSizeEvent(); fixPageCss(); getSelect(); searchCate(); showTransport(); changePrice(); listenPrice(); if (G.email) { check_favor(); } else { $(document).on('checkfavor', function () { check_favor(); }); } checkRemove(); }); } var checkTime = 0; var checkRemove = function checkRemove() { if (checkTime > 10) { clearTimeout(tt); return; } var tt = setTimeout(function () { if ($('#gwd_ht_main .ht_head .gwd_site_icon').length === 0) { $('#gwd_ht_main').remove(); init(); } else { checkTime++; checkRemove(); } }, 4000); }; function editCurrent(arr) { /*配置文件有一些不是人民币,需要转换*/ if (!arr) return []; /*参加活动的转运商家随机排序, 其他的放后面*/ var looparr = [], elsearr = []; for (var i = 0; i < arr.length; i++) { if (arr[i]['current'] && !arr[i]['asce']) { if (arr[i]['type']) { arr[i].firstW[1] = parseprice(arr[i].firstW[1], arr[i]['type']); arr[i].nextW[1] = parseprice(arr[i].nextW[1], arr[i]['type']); } else { arr[i].firstW[1] = parseprice(arr[i].firstW[1]); arr[i].nextW[1] = parseprice(arr[i].nextW[1]); } } if (arr[i].sale_tle) noSale = true; if (arr[i].cooper) looparr.push(arr[i]);else elsearr.push(arr[i]); /*有一些转运商家使用货币和当前网页使用的汇率不一致,需要再请求一次汇率*/ } arr = looparr.sort(function () { return Math.random() - 0.5; }).concat(elsearr); return arr; } function getMessage(callback) { var url = gwd_protocol + '//browser.' + G.extName + '.com/extension?ac=haitaoInfo'; request.get(url).done(function (data) { if (data && data.cate && data.trans) { cateDict = data.cate; transDict = data.trans; transDict[country] = editCurrent(transDict[country]); callback(); } }); } function isHaitaoPage() { /*判断是否是海淘页面*/ var host = location.host; for (var pattern in sitePattern) { if (host == pattern) return true; } return false; } function setTariff(t) { /*自动设置关税 --- 2级分类*/ $('.ht_tariff_btn span').text(t.slice(0, 5)); $('.ht_tariff_btn span').attr('title', t); $('#cate_small').val(t); $('.ht_tariff_cate').text(t); replaceStr('#cate_small'); replaceStr('.ht_tariff_cate', 'text', 4); for (var pattern in cateDict) { var len = cateDict[pattern].length; for (var i = 0; i < len; i++) { if (cateDict[pattern][i][1] == t) { var txt = $('#big_xiala a[cate="' + pattern + '"]').text(); $('#cate_big').val(txt); replaceStr('#cate_big'); insertCate(cateDict[pattern]); $('.ht_tariff .ht_tariff_num em').text(cateDict[pattern][i][0]); } } } } function setTariff2(p) { /*自动设置关税 --- 1级分类*/ var t = categoryDict2[p].tle; var cate = categoryDict2[p].cate; $('.ht_tariff_btn span').text(t.slice(0, 5)); $('.ht_tariff_btn span').attr('title', t); $('#cate_big').val(t); replaceStr('#cate_big'); $('#cate_small').val(cateDict[cate][cateDict[cate].length - 1][1]); $('.ht_tariff_cate').text(cateDict[cate][cateDict[cate].length - 1][1]); replaceStr('#cate_small'); replaceStr('.ht_tariff_cate', 'text', 4); insertCate(cateDict[cate]); $('.ht_tariff .ht_tariff_num em').text(cateDict[cate][cateDict[cate].length - 1][0]); } function matchCate(t) { /*匹配2级分类*/ for (var pattern in categoryDict1) { if (t.indexOf(pattern) > -1) { return categoryDict1[pattern]; } } /*二级分类未匹配到,匹配一级分类*/ for (var pattern in categoryDict2) { if (t.indexOf(pattern) > -1) { setTariff2(pattern); return; } } return false; } function getClothes(t, c) { switch (t) { case '男装': return clothesDict['shangyi'][c]['man']; case '女装': return clothesDict['shangyi'][c]['woman']; case '童装': return clothesDict['kidscloth'][c]; case '男鞋': return clothesDict['shoes']['man']; case '女鞋': return clothesDict['shoes']['woman']; case '童鞋': return clothesDict['shoes']['kids']; } } function searchCate() { /*查找分类关键词*/ for (var j = 0; j < searchCateDict.length; j++) { var dom = searchCateDict[j]; var len = $(dom).length; for (var i = len - 1; i >= 0; i--) { var txt = $(dom).eq(i).text().toLowerCase(); var m = matchCate(txt); if (m) { setTariff(m); return; } } } } function fixPageCss() { if (navigator.userAgent.toLowerCase().indexOf('chrome') == -1) { $('#gwd_ht_main').addClass('ie_hack'); $('#transport_detail').addClass('ie_hack'); $('#size_detail').addClass('ie_hack'); } if (HOST == 'www.6pm.com') { var width = $('#gwd_ht_main').parent().outerWidth(); var newwidth = width - 355; $('#gwd_ht_main').css('margin-left', newwidth / 2 + 'px'); } } function isZiying() { if (HOST == 'www.6pm.com') return 'ziying'; if ($('#merchant-info').length > 0) { if (HOST == 'www.amazon.com') { if ($('#merchant-info').text().indexOf('sold by Amazon') > -1) return 'ziying';else return 'sanfang'; } if (HOST == 'www.amazon.co.jp') { if ($('#merchant-info').text().indexOf('jp が販売') > -1) return 'ziying';else return 'sanfang'; } if (HOST == 'www.amazon.de') { if ($('#merchant-info').text().indexOf('Verkauf und Versand durch Amazon') > -1) return 'ziying';else if ($('#merchant-info').text().indexOf('Dispatched from and sold by Amazon') > -1) return 'ziying';else return 'sanfang'; } } else return 'sanfang'; } function isZhiyou() { if (HOST == 'www.amazon.de') { if ($('#ddmShippingMessage').text().indexOf('Dieser Artikel kann nach') > -1 && $('#ddmInlineAddressInfo').text().indexOf('China') > -1) return 'zhiyou';else return 'feizhiyou'; } if ($('#detail-bullets .content ul li:contains("International Shipping")').length > 0) return 'zhiyou'; if ($('.shipping-restrictions .label:contains("International")').length > 0) return 'zhiyou';else return 'feizhiyou'; } function insertHtml() { /*插入主界面*/ __webpack_require__("7c0aeff3c6420627d592"); var html = __webpack_require__("0e073d4aa47591176804"); var t = template.compile(html)({ data: { 'pageclass': addPageclass(), 'getprice': calPrice(), 'unit_price': getPrice(), 'protype': isZiying(), 'mailtype': isZhiyou(), 'he_weight': getWeight(), 'hosts': HOST, 'site': G.site == '6pm' ? '6PM' : '亚马逊', c_server: G.c_server } }); var dom, arr; arr = sitePattern[HOST]['dom']; for (var i = 0; i < arr.length; i++) { if ($(arr[i]).length > 0) dom = arr[i]; } if (!dom) return; switch (sitePattern[HOST]['position']) { case 'before': $(dom).before(t); break; case 'after': $(dom).after(t); break; } log('track:haitao:main'); cnzz.log('显示海淘主界面'); } function addPageclass() { var s = 'ht_' + HOST.split('.')[1]; return s; } function getCountry() { /*获取页面所属地区*/ var host = location.host; for (var pattern in sitePattern) { if (pattern == host) { country = sitePattern[pattern]['coun']; HOST = pattern; } } } function getWeightNum(t) { var p = t.match(/[0-9]+(?:\.|\,|)(?:[0-9]+|)/); if (p) p = p[0]; if (HOST == 'www.amazon.de') p = p.toString().replace(',', '.'); return p; } function getWeightType(t) { switch (HOST) { case 'www.amazon.com': if (t.indexOf('pounds') > -1) return 'pounds'; if (t.indexOf('ounces') > -1) return 'ounces'; break; case 'www.amazon.de': if (t.indexOf('Kg') > -1) return 'kg'; if (t.indexOf('g') > -1) return 'g'; break; case 'www.amazon.co.jp': if (t.indexOf('Kg') > -1) return 'kg'; if (t.indexOf('g') > -1) return 'g'; break; case 'www.6pm.com': if (t.indexOf('lb') > -1 && t.indexOf('oz') > -1) return 'lb_oz'; if (t.indexOf('lb') > -1) return 'pounds'; if (t.indexOf('oz') > -1) return 'ounces'; break; } } function getWeight(noCache) { if (HT.weight && !noCache) return HT.weight; var weight_1 = 0; var domarr = weightDom[HOST]; var len = domarr.length; for (var i = 0; i < len; i++) { var w = $(domarr[i]).text(); if (w != '') { var type = getWeightType(w); if (type == 'lb_oz') { var m = w.match(/[0-9]+/g); weight_1 = Math.round((weightDict['pounds'] / 1000 * parseInt(m[0]) + weightDict['ounces'] / 1000 * parseInt(m[1])) * 100) / 100; HT.weight = weight_1; return weight_1; } if (type != '') { weight_1 = Math.round(weightDict[type] / 1000 * getWeightNum(w) * 100) / 100; if (weight_1 !== 0 && !weight_1) weight_1 = 0; HT.weight = weight_1; return weight_1; } } } } function showTransport(noCache) { var weight_2 = getWeight(noCache); if (!weight_2 || weight_2 == 0) return; /*nocache为true时候,说明重量更新,需要重新设置重量*/ if (noCache) $('.ht_weight_num').val(weight_2); var minT = changeTransPrice(weight_2); var title = $('#trans_list li .trans_com').eq(minT.minindex).text(); if (title == '') return; if (minT.minprice == 99999999) return; $('.ht_freight_num').text('¥' + minT.minprice); $('.ht_transport_btn span').text(title); } function getPrice() { return G.dp.price || '0'; } function calPrice(p) { /*计算价格*/ var price = 0; if (p) price = p;else price = getPrice(); var transP = $('.ht_freight_num').text().match(/[0-9.]+/); if (transP) transP = transP[0]; var tariffP = $('.ht_tariff .ht_tariff_num em').text().match(/[0-9.]+/); if (tariffP) tariffP = tariffP[0]; if ($('.ht_tariff .ht_tariff_num') && $('.ht_tariff .ht_tariff_num').attr('data-price') == "0") { tariffP = 0; } if (!tariffP) tariffP = 0; if (!transP) transP = 0; price = Number((Number(price) + Number(transP) + Number(tariffP)).toLocaleString().replace(/,/g, '')); if (price.toString().match(/\.\d{3}/)) { price = price.toString().replace(/(\.\d{2})\d+/, '$1'); } return price; } function changeZiying() { /*价格变化可能是否是自营也会变化*/ setTimeout(function () { var ziying = isZiying(); $('.pro_type em').attr('class', ziying); if (ziying == 'ziying') { $('.pro_type .pro_t_tle').text('自营'); $('.pro_type_detail').text((G.site == '6pm' ? '6PM' : '亚马逊') + '直接销售。'); } else { $('.pro_type .pro_t_tle').text('第三方'); $('.pro_type_detail').text((G.site == '6pm' ? '6PM' : '亚马逊') + '第三方商家销售。'); } }, 1000); } function listenPrice() { /*监听价格变化*/ var priceDom = '#priceblock_ourprice'; var subdom = 'price_feature_div'; if (G.site == '6pm') { priceDom = '#priceSlot .price'; subdom = "productForm"; } var oldprice = $(priceDom).text(); var dom = document.getElementById(subdom); if (dom && dom.addEventListener) { dom.addEventListener('DOMSubtreeModified', function () { var pageprice = $(priceDom).text(); if (pageprice != oldprice && pageprice) { oldprice = pageprice; pageprice = parseprice(pageprice); $('.ht_content .price_num').text('¥' + pageprice); /*价格发生变化,说明用户改变了一些信息,重量 自营也会跟着改变*/ changePrice(pageprice); changeZiying(); setTimeout(function () { showTransport(true); }, 800); } }, false); } } function changePrice(p) { var price = '¥' + calPrice(p); $('.ht_getprice_num').text(price); } function calDetailPos() { var wWeight = ($(window).width() - 595) / 2; var wHeight = ($(window).height() - 420) / 2; return { 'posx': wWeight, 'posy': wHeight }; } function render_size_detail() { var html = __webpack_require__("32b6293d44720736c8b0"); $('body').append(template.compile(html)({ pos: calDetailPos() })); } function render_trans_detail() { var html = __webpack_require__("4db6641034f4006d7692"); $('body').append(template.compile(html)({ pos: calDetailPos(), 'ht_weight': getWeight(), c_server: G.c_server })); } function insertSize(headimg, itemimg) { /*插入尺码帮助内容*/ var Html = ''; $('.size_s').empty().append(template.compile(Html)({ 'imgurl': headimg })); $('.size_item_img').empty().append(template.compile(Html)({ 'imgurl': itemimg })); } function findShop(name) { if (!transDict) return null; var transdata = transDict[country]; for (var i = 0; i < transdata.length; i++) { if (name === transdata[i].shopId && transdata[i]['asce']) { var ascearr = transdata[i]['ascearr']; var current = transdata[i]['current']; return { 'ascearr': ascearr, 'current': current }; } } } /*改变运费值*/ function changeTransPrice(weight) { var minprice = 99999999; var minindex = 0; var dom = $('#trans_list li .trans_pr'); var len = $(dom).length; for (var i = 0; i < len; i++) { var fp = Number($(dom).eq(i).attr('data-fp')); var fw = Number($(dom).eq(i).attr('data-fw')); var sw = Number($(dom).eq(i).attr('data-sw')); var sp = Number($(dom).eq(i).attr('data-sp')); var name = $(dom).eq(i).attr('data-shopname'); if (name) { var shopInfo = findShop(name); if (!shopInfo) return; var price = calTrans2(weight, shopInfo['ascearr'], shopInfo['current']); } else { var price = calTrans(weight, [fp, fw, sp, sw]); } /*因为不考虑最便宜逻辑,随机选择,因为排列的随机的,所以这里就选择第一个*/ if (i == 0) { minprice = price; } $(dom).eq(i).text('¥' + price); } return { 'minindex': minindex, 'minprice': minprice }; } function conversionSize() { /*尺码转换*/ var first = $('.first_xiala').val(); var second = $('.second_xiala').val(); var num = $('#first_size').val(); if (num) num = Number(num); var n1 = sizeDict[first]; var n2 = sizeDict[second]; var n3 = num * n1 / n2; if (n3.toString().indexOf('.') > -1) n3 = n3.toFixed(2); $('#second_size').val(n3); } /*计算运费*/ function calTrans(weight, arr) { /*fp:首重价格 fw 首重的重量 sp 续重价格 sp 续重重量*/ var fp = arr[0], fw = arr[1], sp = arr[2], sw = arr[3]; var price; var pow = 1; if (sw.toString().indexOf('.') > -1) pow = sw.toString().match(/\.(\d+)/)[1].length; if (fp == "0") { price = weight / sw * sp; } else if (weight <= fw) { price = fp; } else { var weight2 = weight - fw; var weight3 = 0; if (weight2 * Math.pow(10, pow) % (sw * Math.pow(10, pow)) == 0) weight3 = weight2 / sw;else weight3 = parseInt(weight2 / sw) + 1; var price = fp + weight3 * sp; } return Number(price).toFixed(2); } /*针对梯度增长计费的转运公司计算运费*/ function calTrans2(weight, arr, rmb) { weight = Number(weight); for (var i = 0; i < arr.length; i++) { if (arr[i][0] > weight) { if (i == 0) i = 1; //如果是第一个就用第一个的数据 else if (arr[i - 1][0] < weight) i = i + 1; //如果大于前面一个重量, 说明在两者之间, 应该选择当前,所以+1 if (!rmb) { return Number(arr[i - 1][1]).toFixed(2); } else { return parseprice(arr[i - 1][1]).toFixed(2); } } } if (weight > arr[arr.length - 1][0]) { if (!rmb) { return Number(arr[arr.length - 1][1]).toFixed(2); } else { return parseprice(arr[arr.length - 1][1]).toFixed(2); } } } function changeFreight() { /*改变运费*/ var weight = Number($('.ht_weight .ht_weight_num').val()) || 0; var transShop = $('.ht_transport_btn span').attr('data-title'); var tsdata = transDict[country]; var first, next, asce, asceArr, current; //asce 判断是否为递增的运费计算方式 for (var i = 0; i < tsdata.length; i++) { if (tsdata[i]['shopname'] == transShop) { first = tsdata[i]['firstW']; next = tsdata[i]['nextW']; asce = tsdata[i]['asce']; asceArr = tsdata[i]['ascearr']; current = tsdata[i]['current']; } } if (asce) { var price = '¥' + calTrans2(weight, asceArr, current); } else { var price = '¥' + calTrans(weight, [first[1], first[0], next[1], next[0]]); } $('.ht_freight_num').text(price); } function insertShop() { /*插入转运商家*/ var trans = transDict[country]; var html = '{{each data}}\n
    • \n {{$value.shopname}}\n {{$value.warehouse}}\n {{$value.firstW[1]==0?"无首重":("¥"+$value.firstW[1])}}\n {{if $value.cooper}}{{$value.sale_tle}}{{/if}}\n
    • \n {{/each}}'; $('#trans_list').append(template.compile(html)({ data: trans })); changefirstW(); if (!noSale) $('#transport_detail').addClass('no_sale'); } function changefirstW() { var trans = transDict[country]; $('#trans_list li .trans_pr').each(function (index, e) { if ($(e).text() == "无首重") { for (var i = 0; i < trans.length; i++) { if (trans[i].shopId === $(e).attr('data-shopname')) { if (trans[i].current) $(e).text('¥' + Number(parseprice(trans[i].ascearr[0][1])).toFixed(2));else $(e).text('¥' + Number(trans[i].ascearr[0][1]).toFixed(2)); } } } else { var price = $(e).text().replace('¥', ''); price = '¥' + Number(price).toFixed(2); $(e).text(price); } }); } function transWeight(type, w) { if (type == 'LB') { w = Number(w) * 0.4536; } return w; } function addShopEvent() { /*重量输入框焦点事件*/ $('.trans_w input').on('keyup', function () { var txt = Number($(this).val()); var weight_type = $('.trans_w input+.weight_type').text(); var weight = transWeight(weight_type, txt); if (txt === 0) return;else if (!txt) { /*eslint-disable */ alert('请输入数字!'); /*eslint-enable */ } else { changeTransPrice(weight); } }); $('#trans_list li .sale_tle a').on('click', function () { log('click:haitao:sale_tle'); cnzz.log('海淘转运商家优惠政策点击情况'); }); $('#trans_list li .trans_com').on('click', function () { log('click:haitao:trans_com'); cnzz.log('海淘转运商家网站点击情况'); }); $('#trans_list li .lo_center, #trans_list li .trans_pr').on('click', function () { var txt = $(this).parent().find('.trans_com').text(); $('.ht_transport_btn span').text(txt.slice(0, 5)); $('.ht_transport_btn span').attr('data-title', txt); changeFreight(); changePrice(); $('#transport_detail').hide(); }); } function addSizeEvent() { /*添加尺码部分事件*/ $('.clothes_nav li').on('click', function () { $('.clothes_nav li').removeClass('select'); $(this).addClass('select'); var txt = $(this).text(); var c = getClothes(txt, country); if (txt.indexOf('鞋') > -1) { $('.unit_cm').css('display', 'none'); $('.unit_mm').css('display', 'inline-block'); $('#size_detail .detail_left span').hide(); $('.cloth_icon').css('display', 'inline-block'); $('#size_detail .shoes').css('display', 'inline-block'); if (txt.indexOf('男鞋') > -1) { $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes man_foot'); $('.detail_left .shoes').text(txt); } else if (txt.indexOf('女鞋') > -1) { $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes woman_foot'); $('.detail_left .shoes').text(txt); } else { $('#size_detail .shoes').hide(); $('.cloth_icon').css('display', 'inline-block'); $('.tongxie').css('display', 'inline-block'); $('.tongxie0').addClass('size_hover'); $('.tongxie4').removeClass('size_hover'); $('.cloth_icon').attr('class', '').addClass('cloth_icon ht_shoes kids_foot'); } } else if (txt.indexOf('童装') > -1) { $('.unit_mm').css('display', 'none'); $('.unit_cm').css('display', 'inline-block'); $('#size_detail .detail_left span').hide(); $('#size_detail .tongzhuang').css('display', 'inline-block'); $('.cloth_icon').css('display', 'inline-block'); $('.cloth_icon').attr('class', '').addClass('cloth_icon kid0'); $('.tongzhuang0').addClass('size_hover'); $('.tongzhuang4').removeClass('size_hover'); } else if (txt.indexOf('男装') > -1) { $('.unit_mm').css('display', 'none'); $('.unit_cm').css('display', 'inline-block'); $('#size_detail .detail_left span').hide(); $('.cloth_icon').css('display', 'inline-block'); $('#size_detail .shangyi').show(); $('#size_detail .xiazhuang').show(); $('.xiazhuang').removeClass('size_hover'); $('.shangyi').addClass('size_hover'); $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang'); } else { $('.unit_mm').css('display', 'none'); $('.unit_cm').css('display', 'inline-block'); $('#size_detail .detail_left span').hide(); $('.cloth_icon').css('display', 'inline-block'); $('#size_detail .shangyi').show(); $('#size_detail .xiazhuang').show(); $('.xiazhuang').removeClass('size_hover'); $('.shangyi').addClass('size_hover'); if (txt.indexOf('男装') > -1) $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang');else $('.cloth_icon').attr('class', '').addClass('cloth_icon womanshangzhuang'); } insertSize(c[0], c[1]); }); $('.shangyi').on('click', function () { if ($(this).attr('class').indexOf('size_hover') > -1) return; var txt = $('.clothes_nav li[class="select"]').text(); if (txt == "童装") return; if (txt == "男装") { $('.cloth_icon').attr('class', '').addClass('cloth_icon manshangzhuang'); } if (txt == "女装") { $('.cloth_icon').attr('class', '').addClass('cloth_icon womanshangzhuang'); } var c = getClothes(txt, country); insertSize(c[0], c[1]); $(this).addClass('size_hover'); $('.xiazhuang').removeClass('size_hover'); }); $('.xiazhuang').on('click', function () { if ($(this).attr('class').indexOf('size_hover') > -1) return; var txt = $('.clothes_nav li[class="select"]').text(); if (txt == "童装") return; if (txt == "男装") { var c = clothesDict['xiazhuang'][country]['man']; insertSize(c[0], c[1]); $('.cloth_icon').attr('class', '').addClass('cloth_icon manxiazhuang'); } if (txt == "女装") { var c = clothesDict['xiazhuang'][country]['woman']; insertSize(c[0], c[1]); $('.cloth_icon').attr('class', '').addClass('cloth_icon womanxiazhuang'); } $(this).addClass('size_hover'); $('.shangyi').removeClass('size_hover'); }); $('.tongzhuang0').on('click', function () { var c = getClothes('童装', country); insertSize(c[0], c[1]); $(this).addClass('size_hover'); $('.tongzhuang4').removeClass('size_hover'); $('.cloth_icon').attr('class', '').addClass('cloth_icon kid0'); }); $('.tongzhuang4').on('click', function () { var c = getClothes('童装', country); insertSize(c[0], c[2]); $(this).addClass('size_hover'); $('.tongzhuang0').removeClass('size_hover'); $('.cloth_icon').attr('class', '').addClass('cloth_icon kid4'); }); $('.tongxie0').on('click', function () { var c = getClothes('童鞋', country); insertSize(c[0], c[1]); $(this).addClass('size_hover'); $('.tongxie4').removeClass('size_hover'); }); $('.tongxie4').on('click', function () { var c = getClothes('童鞋', country); insertSize(c[0], c[2]); $(this).addClass('size_hover'); $('.tongxie0').removeClass('size_hover'); }); } var reqCollect = function reqCollect(url, callback) { request.get(url).done(function (data) { callback(data); }).fail(function () { $('#ht_addcollect').text('添加失败'); $('#ht_addcollect').removeClass('c_adding'); $('#ht_addcollect').addClass('c_added'); }); }; var check_favor = function check_favor() { var id = userData.get('other_info').now.dp_id; if (!G.email || !id) return; var url = G.c_server + '/brwext/check_collected?email=' + G.email + '&dp_id=' + id; request.get(url).done(function (data) { if (data && data.msg === true) { $('#ht_addcollect').text('已添加'); $('#ht_addcollect').addClass('c_added'); } }); }; function addCollect() { var pagedp = G.dp; var oinfo = userData.get('other_info'); var dp = oinfo.now; if (!dp.dp_id) { $('#ht_addcollect').text('暂不支持'); $('#ht_addcollect').unbind('click'); return; } $('#ht_addcollect').text('正在添加'); $('#ht_addcollect').addClass('c_adding'); dp.price = pagedp.oldPrice || oinfo['code-server'] && oinfo['code-server'].price; dp.title = pagedp.name || $('title').html(); dp.url = dp.url || location.href; dp.img = dp.img || pagedp.img; var url = G.c_server + '/collect/aj_add?dp_id= ' + dp.dp_id + '&url=' + encodeURIComponent(dp.url || G.dp.url) + '&img=' + encodeURIComponent(dp.img || G.dp.img) + '&title=' + encodeURIComponent(dp.title) + '&price=' + dp.price + '&site_id=' + dp.site_id + '&cat_id=' + G.dp.cat_id; reqCollect(url, function (data) { if (data.code == 100 || data.code <= 0) { var href = window.location.href.toString(); //这里进行特殊处理,标记来源的url,在页面返回的时候,自动收藏商品 if (href.indexOf('?') > -1) { href += '&gwd_add_favor_unique=true'; } else { href += "?gwd_add_favor_unique=true"; } window.location.href = G.c_server + "/user/login?from_url=" + encodeURIComponent(href); } else if (data.code == 1) { $('#ht_addcollect').text('已添加'); $('#ht_addcollect').removeClass('c_adding'); $('#ht_addcollect').addClass('c_added'); $("#ht_addcollect").unbind('click'); } else if (data.code == 2) { $('#ht_addcollect').text('添加过了'); $('#ht_addcollect').removeClass('c_adding'); $('#ht_addcollect').addClass('c_added'); $("#ht_addcollect").unbind('click'); } }); } function contentEvent() { /*主窗口事件*/ $('.ht_head .ht_getprice').on('mouseenter', function () { var dom = $('#ht_content_info'); if (!dom.is(':visible')) { $('.content_default').hide(); dom.show(); } }); /*关闭弹窗框*/ $('.closebar').on('click', function () { $(this).parent().hide(); }); /*添加划词翻译直邮第三方信息提示*/ $('.content_default_left .ht_tariff .del_line').on('mouseenter', function () { $('.tariff_remind_detail').show(); }); $('.content_default_left .ht_tariff .del_line').on('mouseleave', function () { $('.tariff_remind_detail').hide(); }); $('.ht_translate').on('mouseenter', function () { $('.translate_detail').show(); }); $('.ht_translate').on('mouseleave', function () { $('.translate_detail').hide(); }); $('.pro_type').on('mouseenter', function () { $('.pro_type_detail').show(); }).on('mouseleave', function () { $('.pro_type_detail').hide(); }); $('.mail_type').on('mouseenter', function () { $('.mail_type_detail').show(); }).on('mouseleave', function () { $('.mail_type_detail').hide(); }); $('.ht_transport_btn, .size_help, .ht_tariff_btn, #ht_addcollect').on('mouseenter', function () { $(this).find('.div_detail').show(); }).on('mouseleave', function () { $(this).find('.div_detail').hide(); }); $('.weight_type').on('mouseenter', function () { $('.weight_type_detail').show(); }).on('mouseleave', function () { $('.weight_type_detail').hide(); }); // 添加降价提醒 $('#ht_addcollect').on('click', function (event) { var dom = $('#altImages li img').eq(0); if (dom) G.collectInfo.img = dom.attr('src'); event.preventDefault(); addCollect(); }); // 重量单位选择 $('.ht_weight .weight_type').on('click', function () { var t = $(this).text(); if (t === 'LB') { weight = $('.ht_weight_num').val(); $(this).text('KG'); $('.ht_weight_num').val(Math.round(Number(weight) * 0.4535924 * 100) / 100); } else { $(this).text('LB'); if (weight) $('.ht_weight_num').val(weight); } }); // 是否选取关税 $('.del_line').on('click', function () { if ($(this).attr('data-del') === '1') { $(this).find('.ht_tariff_num').css('text-decoration', 'none'); $(this).attr('data-del', '0'); $(this).find('span').attr('data-price', $(this).find('span').text()); changePrice(); } else { $(this).find('.ht_tariff_num').css('text-decoration', 'line-through'); $(this).attr('data-del', '1'); $(this).find('span').attr('data-price', 0); changePrice(); } }); // 转运中国弹窗框 $('.ht_transport_btn').on('click', function () { $('#transport_detail').show(); log('click:haitao:transport'); cnzz.log('海淘转运商家点击情况'); }); /*尺寸转换*/ $('.size_help').on('click', function () { $('#size_detail').show(); log('click:haitao:size_help'); cnzz.log('点击尺码帮助'); }); $('.size_xiala').on('mouseenter', function () { $(this).next('.size_xialabox').show(); $(this).addClass('msHover'); }); $('.size_xiala').on('mouseleave', function () { var that = this; timer = setTimeout(function () { $(that).next('.size_xialabox').hide(); $(that).removeClass('msHover'); }, 100); }); $('.size_xialabox').on('mouseenter', function () { clearTimeout(timer); }); $('.size_xialabox').on('mouseleave', function () { $(this).hide(); }); $('.size_xialabox a').on('click', function () { var txt = $(this).text(); var c = $(this).parent().attr('data-size'); $('.' + c).val(txt); $(this).parent().hide(); conversionSize(); }); $('#first_size').on('keyup', function () { conversionSize(); }); } // function otherPageEvent() { // let arr = ['#variation_size_name', '#variation_configuration', '#variation_color_name', '#variation_style_name'] // let dom = ''; // for (let i=0; i0 && $(arr[i]).find('li').length > 0) // dom = arr[i] // } // $(dom).find('li').each(function() { // $(this).on('click', function() { // let txt = $(this).find('.a-size-mini').eq(0).text() // if (txt == '' || !txt) return; // let price = parseprice(txt) // $('.ht_content .price_num').text('¥' + price) // $('.ht_getprice_num').text('¥' + calPrice(price)); // }) // }) // } function addEvent() { contentEvent(); cateEvent(); addShopEvent(); // otherPageEvent() } function insertCate(c) { /*插入二级分类*/ var html = '{{each data}}{{$value[1]}}{{/each}}'; $('#cate_small').next('.xialabox').empty().append(template.compile(html)({ data: c })); /*插入数据之后修改input框样式*/ $('#cate_small').removeClass('sel_info'); addSmallCateEvent(); } function addSmallCateEvent() { /*添加二级分类事件*/ $('#small_xiala a').on('click', function () { var txt = $(this).text(); $('#cate_small').val(txt); $('.ht_tariff_cate').text(txt); $('.ht_tariff .ht_tariff_num em').text($(this).attr('tariff')); $('#tariff_detail .ht_tariff_num').text($(this).attr('tariff')); $('.ht_tariff_btn span').text($(this).text().slice(0, 5)); $('.ht_tariff_btn span').attr('title', $(this).text()); $('#small_xiala').hide(); replaceStr('#cate_small'); replaceStr('.ht_tariff_cate', 'text', 4); }); $('#select_btn').on('click', function () { changePrice(); $('#tariff_detail').hide(); }); } function replaceStr(obj, type, num) { /*字符串很长的做一下替换*/ num = num || 6; var txt; var l = 0; if (type == 'text') txt = $(obj).text();else txt = $(obj).val(); for (var i = 0; i < txt.length; i++) { var t = new RegExp('[a-z0-9/]').test(txt[i]); if (t) l += 0.5;else l += 1; if (l > num) { txt = txt.slice(0, i) + '...'; if (type == 'text') $(obj).text(txt);else $(obj).val(txt); return; } } } function cateEvent() { /*关税框弹出事件*/ $('.ht_tariff_btn').on('click', function () { $('#tariff_detail').show(); log('click:haitao:tariff'); cnzz.log('海淘关税点击'); }); /*分类选择*/ $('#cate_select_box input').on('mouseenter', function () { if ($(this).next('.xialabox').find('a').length > 0) { $(this).next('.xialabox').show(); $(this).parent().addClass('select_hover'); $(this).addClass('input_hover'); } }); $('#cate_select_box input').on('mouseleave', function () { var that = this; timer = setTimeout(function () { $(that).next('.xialabox').hide(); $(that).parent().removeClass('select_hover'); $(that).removeClass('input_hover'); }, 100); }); /*下拉列表*/ $('.xialabox').on('mouseenter', function () { clearTimeout(timer); }).on('mouseleave', function () { $(this).hide(); $(this).parent().removeClass('select_hover'); $(this).parent().find('input').removeClass('input_hover'); }); /*二级分类事件*/ addSmallCateEvent(); /*一级分类选项点击事件*/ $('#big_xiala a').on('click', function () { var txt = $(this).text(); $('#cate_big').val(txt); $('.ht_tariff_cate').text(txt); var cate = $(this).attr('cate'); insertCate(cateDict[cate]); $('#big_xiala').hide(); replaceStr('#cate_big'); replaceStr('.ht_tariff_cate', 'text', 4); }); } function baidufanyi(t, callback) { /*百度翻译接口*/ var url = location.protocol + ('//browser.' + G.extName + '.com/extension?ac=fanyi&string=') + t; request.get(url).done(function (data) { if (data.trans_result && !data.error_code) { var trans = []; for (var i = 0; i < data.trans_result.length; i++) { trans.push(data.trans_result[i].dst); } callback(trans); } else { callback([t]); } }); } function requestFanyi(t, callback) { /*请求翻译接口*/ baidufanyi(t, callback); log('request:haitao:fanyi'); cnzz.log('请求划词翻译'); } // function youdaofanyi(t, callback) { // /*有道翻译接口*/ // let doctype = 'jsonp'; // if (G.chrome_extension) // doctype = 'json' // var url = "https://fanyi.youdao.com/openapi.do?keyfrom=chrome&key=1361128838&type=data&doctype=" + doctype + "&version=1.1&q="+t; // request.getPure(url).done(function(data){ // if (data.basic && data.basic.explains && data.basic.explains.length >0) // callback(data.basic.explains) // else if( data.translation) // callback(data.translation) // else // callback([t]) // }) // } function insertFanyi(data) { /*插入翻译内容*/ data = data.join(''); $('.ht_fanyi').remove(); var html = '
      {{data}}
      '; var t = template.compile(html)({ data: data, 'htx': calPosition() + 'px', 'hty': htY + 'px' }); $('body').append(t); addFanyiEvent(); } function calPosition() { /*计算插入位置*/ var pos = 0; if (htX > mouseDownX) pos = htX - (htX - mouseDownX) / 2 - 65;else pos = htX + (mouseDownX - htX) / 2 - 65; return pos; } function editTxt(t) { requestFanyi(t, insertFanyi); } function addFanyiEvent() { $('.ht_fanyi').siblings().on('click', function () { $('.ht_fanyi').remove(); }); } function getSelect() { $('body').on('mousedown', function (e) { clearTimeout(timer2); mouseDownX = e.pageX; }); $('body').on('mouseup', function (e) { timer2 = setTimeout(function () { var txt = ''; htX = e.pageX; htY = e.pageY + 20; if (window.getSelection) { txt = window.getSelection().toString(); } else if (document.selection) { txt = document.selection.createRange().text; } if (txt == '') return;else editTxt(txt); }, 100); }); } module.exports._init = function () { var permanent = userData.get('permanent'); if (permanent && permanent.sethaitao === "0") return; init(); }; module.exports.isHaitao = isHaitaoPage; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "3e283580401dd2fcdc15": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var plugins = []; if (!G.plugins) G.plugins = []; G.plugins = G.plugins.concat(plugins); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "3e983ecbff4e1a29654c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { function _toArray(arr) { return Array.isArray(arr) ? arr : Array.from(arr); } 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); }); }; module.exports.getPageCookie = function () { return document.cookie.split('; ').reduce(function (prev, current) { var _current$split = current.split('='); var _current$split2 = _toArray(_current$split); var name = _current$split2[0]; var value = _current$split2.slice(1); prev[name] = value.join('='); return prev; }, {}); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "3fb8e5219d9e2232a6e9": /***/ (function(module, exports, __webpack_require__) { "use strict"; var DynamicDetails = __webpack_require__("f5b88856d10b03d040ca").DynamicDetails; var collectMovement = __webpack_require__("f5b88856d10b03d040ca").collectMovement; var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var Fingerprint2 = __webpack_require__("417dfc7154b0b46c50e9"); function readLocalStorage() { return new Promise(function (resolve) {}); } module.exports.init = function () { var details = new DynamicDetails(); try { (function () { var k = localStorage.getItem('gwdang-dfp-obj'); var r = JSON.parse(k); Object.keys(r).forEach(function (item) { details[item] = r[item]; }); })(); } catch (e) {} if (window.requestIdleCallback) { requestIdleCallback(function () { collectMovement(details); }); } else { setTimeout(function () { collectMovement(details); }, 500); } var fp = ''; Fingerprint2.get({ fonts: { extendedJsFonts: false }, excludes: { userAgent: true, enumerateDevices: true, pixelRatio: true, doNotTrack: true, fontsFlash: true } }, function (components) { var values = components.map(function (component) { return component.value; }); var murmur = Fingerprint2.x64hash128(values.join(''), 31); fp = murmur; communicate.trigger({ type: 'fp', value: fp }); localStorage.setItem('gwdang-fp', fp); }); var k = setInterval(function () { var collected = details.encode(); localStorage.setItem('gwdang-dfp-obj', JSON.stringify(details)); communicate.trigger({ type: 'fingerprint', value: collected }); localStorage.setItem('gwdang-dfp', collected); }, 2000); setTimeout(function () { clearInterval(k); }, 300000); }; /***/ }), /***/ "404ef3bf6016b988808a": /***/ (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__("62c93a90563418fef620"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GiftMoney_vue_vue_type_script_lang_js___ = __webpack_require__("4ef480fb546c7b1dff9d"); /* 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__("dceb596ed0648574118e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__GiftMoney_vue_vue_type_style_index_1_id_5b302872_scoped_true_lang_css___ = __webpack_require__("83e35fc844511575ba23"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "4185256a225ebafc807c": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "41e83fde2201068b50ba": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "4244f82d21040fd55aca": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "426d7c3d6bd989255c92": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _CouponArrow = __webpack_require__("9edc88f739fb33f2c091"); var _CouponArrow2 = _interopRequireDefault(_CouponArrow); var _commonComponentsQrError = __webpack_require__("d57cd728628c618acba9"); var _commonComponentsQrError2 = _interopRequireDefault(_commonComponentsQrError); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); exports['default'] = { props: ['type', // link, qr, 'href', 'text', 'icon', 'mainColor', 'secondColor', 'takeBg', 'couponValue', 'qrParams', 'qrTitle', 'qrUrl'], components: { CouponArrow: _CouponArrow2['default'], QRError: _commonComponentsQrError2['default'] }, data: function data() { return { loading: false, error: false, actualQr: '' }; }, methods: { over: function over() { var _this = this; this.$emit('over'); if (this.type !== 'qr' || this.loading) return; if (this.qrUrl) { this.actualQr = this.qrUrl; return; } this.loading = true; getQRCode(this.qrParams, '', function (res) { _this.loading = false; if (res[0].etag) { _this.error = true; } else { _this.error = false; _this.actualQr = res[0].imgSrc; } }); } } }; module.exports = exports['default']; /***/ }), /***/ "44e0d29f633dd5c5cbf0": /***/ (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 /***/ }), /***/ "44ec1a43cd1da4b91bfd": /***/ (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
      " /***/ }), /***/ "46f805cc74f8e0720fd0": /***/ (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__("991eba7004e4d466d958"), 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 /***/ }), /***/ "46fef71c80ec1011c37c": /***/ (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" /***/ }), /***/ "472a9b3fc8c8805a5dd7": /***/ (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__)); /***/ }), /***/ "472c3193857af11233c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) { var _this = this; var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userCenter = __webpack_require__("69afa85b8d7929dd88c5"); var request = __webpack_require__("91f250ebeb8d5987491c"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var utils = __webpack_require__("d54879e983a83d07f093"); var price_remind = __webpack_require__("51aadd1e1b65f329a862"); 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__("9c38beef5ff283e15bd2").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__("9c38beef5ff283e15bd2").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__("51aadd1e1b65f329a862").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__("69afa85b8d7929dd88c5").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__("9c38beef5ff283e15bd2").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__("9c38beef5ff283e15bd2").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__("9c38beef5ff283e15bd2").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; if (!allprice) allprice = 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__("eb9a43b0b9642a1cba50"); if (G.userLogin) { check_favor(other_info.now.dp_id); setTimeout(function () { $('#gwd_mini_remind').hover(function () { __webpack_require__("9c38beef5ff283e15bd2").setMet('collectionDetailAllowed'); }); $('#gwdang-trend').hover(function () { __webpack_require__("9c38beef5ff283e15bd2").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__("9bf6d059e9a265559f0c").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__("2d53f53e0179317f1fdf")['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 25: 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__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "4733a3dd803685ec596a": /***/ (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__("5e05e6f5fe79ccf5d009"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var detect = __webpack_require__("60624e018be49fb2d959"); var isbnTran = __webpack_require__("b15828ee7e842b4ea2fb"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); //返回单品页的标题信息 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 = ''; } } if (dp.price == '') dp.price = $('#priceblock_ourprice').text(); if (dp.price == '') dp.price = $('#priceblock_saleprice').text(); if (dp.price == '') dp.price = $('.offer-price:eq(0)').text(); if (dp.price == '') dp.price = $('#olp_feature_div .a-color-price').text(); if (dp.price == '') dp.price = $('.a-color-price:eq(0)').text(); if (dp.price == '') dp.price = $('#priceblock_saleprice').text(); if (dp.price == '') dp.price = $('#price_feature_div .a-color-price').text(); if (dp.price.indexOf('€') > -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:not(.dj-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:not(.dj-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 = $('.goods-name').text(); 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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "474327c68c691e577033": /***/ (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
      " /***/ }), /***/ "487014f393da302d31f6": /***/ (function(module, exports) { module.exports = "\n\n当前商品领券立减\n¥{{price}}\n\n{{if picUrl && isShowPic}}\n
      \n \n\n {{ useTaobao? '淘宝': '微信' }}扫码领券\n
      \n{{/if}}\n\n{{if isShowPic}}\n\n{{else}}\n\n{{/if}}\n{{if isBottom}}\n\n{{else}}\n\n{{/if}}\n\n\n{{if useTaobao}}\n\n{{/if}}\n
      " /***/ }), /***/ "48c7bf720f8190dd7cc2": /***/ (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__("74757817411a9c6f8278")(); } 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "48e72e71ca8baf5916e2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Vue) { var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports = { init: function init() { var g_config = window.g_config; var hasShopCoupon = false; setTimeout(function () { if (!hasShopCoupon) __webpack_require__("9c38beef5ff283e15bd2").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__("9c38beef5ff283e15bd2").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('
      '); // const ShopCouponMini = require('standard/module/components/MiniCoupon').default var ShopCouponTop = __webpack_require__("dc95a667ec8da7724e60")['default']; // new Vue({ // el: '#shopCouponMini', // render: h => h(ShopCouponMini, { // props: { // coupon: coupon, // tag: 6 // } // }) // }) $('.gwd-topbar-left').append('
      '); new Vue({ el: '#shopCouponTop', render: function render(h) { return h(ShopCouponTop, { props: { coupon: coupon, tag: 6 } }); } }); var CommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc")['default']; new Vue({ el: '#shopCouponMini', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', mainColor: '#ff6132', secondColor: '#ff7d38', icon: __webpack_require__("f91a94ff4014724ed642"), text: '当前商品可领店铺券,满' + coupon.limit + '减' + coupon.discount, href: 'https://tb.gwdang.com/extension/qrpage?dp_id=' + G.dp.dpId + '&tag=6&limit=' + coupon.limit + '&discount=' + coupon.discount } }); } }); }, 0); }); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "48ec1ca75857b9f279ea": /***/ (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_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less___ = __webpack_require__("babca2a4632382485f5f"); /* 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_QrError_vue_vue_type_style_index_0_id_29b33b2e_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_QrError_vue_vue_type_style_index_0_id_29b33b2e_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_QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less____default.a); /***/ }), /***/ "4997413a8890416480d7": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \n
    " /***/ }), /***/ "5b28fa11a0ec134d9ef1": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _QrErrorVue = __webpack_require__("d57cd728628c618acba9"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); var _GiftMoneyMixin = __webpack_require__("7bb864157b1329e994ad"); var _GiftMoneyMixin2 = _interopRequireDefault(_GiftMoneyMixin); exports['default'] = { name: "Subsidy", props: ['value', 'url', 'qr', 'price', 'oldPatch', 'tag'], components: { QrError: _QrErrorVue2['default'] }, mixins: [_GiftMoneyMixin2['default']] }; module.exports = exports['default']; /***/ }), /***/ "5bf35efcba140cc610bb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___ = __webpack_require__("f6604761a98ac98bbcec"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QrError_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "5d4f0e584bd9a3a675b3": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = { modules: {}, version: 1655777685152, browser: {}, debug: /gwdebug/.test(window.location.href), extend: function extend(obj) { for (var i in obj) { this[i] = obj[i]; } } }; /***/ }), /***/ "5da7ab7bd297c0f5dff1": /***/ (function(module, exports) { module.exports = "
    \n \n {{ text }}\n
    \n \n \n 立即领取\n
    \n \"\"\n \n 微信扫码\n 领红包\n \n
    \n
    \n
    \n" /***/ }), /***/ "5e05e6f5fe79ccf5d009": /***/ (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)://www\\.banggo\\.com/goods/[0-9A-Za-z]+':'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)://item\\.m\\.jd\\.com/product/\\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)://www\\.samsungeshop\\.com\\.cn/product/.*':'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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "5e0d66879d722b2ada2c": /***/ (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__("cd213fe85ccdbbfd4f71"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__AppDownload_vue_vue_type_script_lang_js___ = __webpack_require__("4d950d57537e1ffc4f4c"); /* 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__("18e29106b21ecba1b1f4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "5e5d42ad8219d8ecf3ea": /***/ (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__("ec0a6bfa62375c0fd07a"); /* 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); /***/ }), /***/ "5fe051e2197cc54d1b43": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \n {{if !isGwd}}\n \n {{else}}\n \n {{/if}}\n" /***/ }), /***/ "67e7ec3ad30622808c87": /***/ (function(module, exports) { module.exports = "\n \"\"\n {{ text }}\n\n" /***/ }), /***/ "6868b03b94b90a856624": /***/ (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; }; /***/ }), /***/ "6973d6984a148bf8a638": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var util = __webpack_require__("d54879e983a83d07f093"); 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__("e3646735df96d3e01927"); $('#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__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "697c3c62b588ebd6f1b3": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); module.exports.ready = function () { var arr = ['www.amazon.com', 'www.amazon.de', 'www.amazon.co.jp']; if (arr.indexOf(location.host) == -1) return; var info = { 'name': G.dp.name || '', 'price': G.dp.oldPrice || '0' }; communicate.trigger({ type: 'getAmazonPriceTrend', 'info': JSON.stringify(info) }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "69afa85b8d7929dd88c5": /***/ (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__("91f250ebeb8d5987491c"); var md5 = __webpack_require__("15199e08e6193aeacfa0"); var host = 'i.gwdang.com'; var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); 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: G.dp.promoPrice ? G.dp.promoPrice : 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "69b83ab67396df893d0b": /***/ (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__("d41b35f7ee52d5e46ec1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Normal_vue_vue_type_script_lang_js___ = __webpack_require__("216fab13e1b023587a5c"); /* 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__("7ba4684358f88bfd7a47"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "69d2748ae719d08ddeb9": /***/ (function(module, exports) { module.exports = "
    \n \n 点此完成订单\n \n
    \n" /***/ }), /***/ "6a6d60b5e4dc52d8b1ea": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//添加基本的参数配置和函数 __webpack_require__("caeb48377dbdbfe42966"); 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: '360server', 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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "6b5f3f4c7b5f37c1088e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); //嵌入位置设置 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__("7026a4b5462dc6da5555").getNewTime(); if (newTime - new Date().getTime() < 300000) { newTime = false; } var href = encodeURIComponent(document.location.href); var html = __webpack_require__("bb302187f0e95a99e59e"); 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__("6973d6984a148bf8a638").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__("3bc49249739ef2a3c3f8"); 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__("bab2599cd0670e2b19ff"); $('.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__("65cb632859494beda768").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__("3e983ecbff4e1a29654c").sleep(5000)); case 3: container = getContainer(); console.log('container:', container); if (container) { context$1$0.next = 14; break; } if (!renderDom) { renderDom = true; $("body").append($('
  • \n \n \n \n
    \n {{$value.title}}\n \n \n {{$value.newPrice}}\n 删除\n \n
    \n
  • \n{{/each}}\n" /***/ }), /***/ "7a162262fe305871f8d9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var codeOfs = 88; var utitle; try { utitle = ["t=" + $('title').html().substr(0, 250), "k=lxsx", "d=ls"]; } catch (err) { utitle = []; } var pageUrl = encodeURIComponent(location.href); var trendd = { zero: ["0", "00", "000", "0000", "00000", "000000", "0000000", "00000000"], strReverse: function strReverse(a) { var b, l, c = []; for (b = 0, l = a.length; b < l; b++) c[c.length] = a.charAt(b); return c.reverse().join(""); }, isString: function isString(a) { return "[object String]" === Object.prototype.toString.call(a); }, encrypt: function encrypt(a, b, e) { var f, l, g = []; if (!trendd.isString(a)) return ""; for (f = 0, l = a.length; f < l; f++) g[g.length] = trendd.to(a.charCodeAt(f), b); return e ? trendd.strReverse(g.join("")) : g.join(""); }, to: function to(a, c) { var e = "" + (a + codeOfs).toString(16), f = c - e.length; return f > 0 ? trendd.zero[f - 1] + e : e; }, decrypt: function decrypt(a, b, e) { if (!trendd.isString(a)) return ""; var f = []; e && (a = trendd.strReverse(a)); for (var g = 0, h = 0; g < a.length; g += b, h++) { var i = a.substring(g, g + b); f[h] = trendd.tranFormat(i, b); } return String.fromCharCode.apply(String, f); }, tranFormat: function tranFormat(a, c) { return a.length !== c ? 0 : parseInt(a.replace(/^0+/g, ""), 16) - codeOfs; }, genExtensionId: function genExtensionId() { if (window.localStorage['extensionid']) return window.localStorage['extensionid']; var guid = ""; for (var i = 1; i <= 32; ++i) { guid += Math.floor(Math.random() * 16.0).toString(16); if (i == 8 || i == 12 || i == 16 || i == 20) guid += "-"; } window.localStorage['extensionid'] = guid; return guid; } }; module.exports.init = function () { // 这是使用惠惠接口做的接口模拟参数生成模块 var gstr = ""; var ga = "//zhu", gb = "shou.huih", gc = "ui.cn/product", gd = "Sense?br", ge = "owser=chrome&ver", gf = "sion=4.2.9.6&vendor=chrom"; gstr = ga + gb + gc + gd + ge + gf; var extensionid = trendd.genExtensionId(); var trendK = trendd.encrypt(utitle.join("^&"), 4, !1); var z = trendd.encrypt(pageUrl, 2, !0), A = 1900 - z.length; trendK = trendK.length > A ? trendK.substr(0, A) : trendK; var url = location.protocol + gstr + "enew&av=3.0&ext" + "ensionid=" + extensionid + "&email=&pop=&k=" + trendK + "&nl=true&m=" + z; return url; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "7b3df266cd171136e29d": /***/ (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__("dccc180c0627890be6a3"); /* 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"]; }); /***/ }), /***/ "7ba4684358f88bfd7a47": /***/ (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__("fad7ead7228f616ec948"); /* 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); /***/ }), /***/ "7bb864157b1329e994ad": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); module.exports = { data: function data() { return { qrcode: '', error: false, logged: false, loading: false, site: location.hostname.indexOf('.jd.com') > -1 ? 'jd' : 'taobao', payload: {} }; }, methods: { goLink: function goLink() { if (this.qr) return; __webpack_require__("83271c7588396d2d5e59").log(this.site + 'GiftMoney:click'); if (this.url) { window.open(this.url); } }, over: function over() { var _this = this; if (!this.qr) return; if (this.qrcode) return; if (this.loading) return; this.loading = true; var payload = { id: G && G.dp ? G.dp.itemId : this.id, amount: this.value, title: '', _type: 'rebate' }; if (this.price) { payload.price = this.price; payload.tip = this.price; } if (this.tag) { payload._tag = this.tag; } this.payload = payload; getQRCode(payload, '', function (res) { if (res[0].etag) { _this.error = true; return; } else { _this.error = false; } _this.qrcode = res[0].imgSrc; if (!_this.logged) { __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:hover'); __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:-hover'); if (_this.oldPatch) { __webpack_require__("83271c7588396d2d5e59").log(_this.site + 'GiftMoney:hover-oldPatch'); } _this.logged = true; } }); } } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "7bc264230157b5cefc24": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts) { module.exports = function (data) { var highest = parseInt(data.msg.highest); var yAxisTitlex = 10; if (highest > 99) yAxisTitlex = 24; var obj = { chart: { renderTo: data.el, marginTop: 24, marginLeft: 78, marginRight: 24, backgroundColor: data.bg ? data.bg : "#394653", type: 'line', events: { load: function load() { this.yAxis[0].update({ tickInterval: parseInt((this.yAxis[0].dataMax - this.yAxis[0].dataMin) / 4) || 1 }); var xinterval = (this.xAxis[0].dataMax - this.xAxis[0].dataMin) / 86400000; xinterval = xinterval / 3; var tickIntervals = undefined; if (xinterval > 30) { xinterval = parseInt(xinterval / 30) + 1; tickIntervals = xinterval * 30 * 86400000; } else { tickIntervals = xinterval * 86400000; } if (!data.shortTime) this.xAxis[0].update({ tickInterval: tickIntervals }); } } }, credits: { enabled: false }, colors: ['#1e94f8'], title: { text: data.title || '', y: -20, style: { color: '#92ABC2' } }, xAxis: { type: 'datetime', labels: { style: { color: "#777777" } }, dateTimeLabelFormats: { day: '%m-%e', week: '%m-%e', month: '%y/%m', year: '%y/%m' }, tickLength: 0, lineColor: "#3E4C5A", gridLineWidth: 1, gridLineColor: '#555555' }, yAxis: { title: { text: data.unit ? data.unit : '价格(元)', rotation: 0, margin: 0, y: -92, x: yAxisTitlex, style: { color: "#555555" } }, labels: { style: { color: "#777777" }, formatter: function formatter() { return this.value.toFixed(2); } }, plotLines: [{ value: 0, width: 1, color: '#808080' }], gridLineColor: '#3E4C5A', tickPixelInterval: 50 }, tooltip: { xDateFormat: '%Y-%m-%d', shared: true, shape: 'square', useHTML: true, followPointer: false, width: 110, height: 52, borderWidth: G.site === 'epic' ? 0 : 1, style: { padding: 0 }, formatter: function formatter() { var x = new Date(this.x); var year = x.getFullYear(); var month = x.getMonth() + 1; var day = x.getDate(); if (month < 10) month = '0' + month.toString(); if (day < 10) day = '0' + day.toString(); var datestr = year + '.' + month + '.' + day; // let format = data.msg.formatted[this.x.toString()]; // let disc = format.discount // if (disc !== 0) // disc = '-' + disc.toString() + '%'; var price = undefined; if (this.y !== 0) price = this.y.toFixed(2);else price = '0'; var dom = '
    \n ' + datestr + '\n 价格: ¥' + price + '\n
    '; if (G.site === 'epic') { dom = '\n
    \n ' + datestr + '
    \n 价格: $' + price + '\n
    \n '; } return dom; }, backgroundColor: G.site === 'epic' ? '#000000' : 'rgba(20,37,55,0.94)' }, plotOptions: { series: { marker: { radius: 1, 'stroke-width': 0, stroke: '#1e94f8', lineColor: null }, shadow: false, states: { hover: { marker: { radius: 3, 'stroke-width': 0, stroke: '#1e94f8', lineColor: null }, halo: { size: 5 } } } } }, legend: { enabled: false, borderWidth: 0 }, series: [] }; if (data.title === undefined) obj.title.style.display = 'none'; var store = data.msg; try { obj.series[0] = { visible: true, name: store.name, color: "#61BBEF", lineWidth: 2, data: [] }; obj.series[0].visible = true; obj.series[0].pointStart = store.all_line_begin_time + 8 * 3600000; obj.series[0].pointInterval = store.all_equal_short ? 3600000 : 3600000 * 24; obj.series[0].data = store.all_line; // obj.xAxis.floor = store.all_line_begin_time; // obj.xAxis.max = store.all_line_begin_time + (obj.series[0].data.length - 1) * 3600000 * 24 if (obj.series[0].data.length === 1) { var k = obj.series[0].data[0]; //obj.series[0].data.unshift() } window.chart = new Highcharts.Chart(obj); } catch (e) {} }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("ff50e367dd130fa205e3"))) /***/ }), /***/ "7c0aeff3c6420627d592": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \n" /***/ }), /***/ "7d0cec30e0ac9c2cd304": /***/ (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 /***/ }), /***/ "7ffda7d29dfea4a64d16": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var deviceEncode = __webpack_require__("57981fc895e0110a4346"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); 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__("d71d6565d3ec2f523a79"); $('#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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "8003eafdb0b82057206c": /***/ (function(module, exports) { module.exports = "
    \n

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

    \n 点击验证\n \n
    " /***/ }), /***/ "817cf5489444460b05d0": /***/ (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-inline-row gwd-align gwd-jd-rank", class: _vm.additionalClass, style: "margin-top: " + _vm.mt + "px" }, [ _c("img", { staticClass: "gwd-icon-rank", attrs: { src: "https://cdn.gwdang.com/images/extensions/jdRanking/icon.svg", alt: "" } }), _vm._v(" "), _vm.additionalClass === "gwd-w217" ? _c("img", { staticStyle: { "margin-left": "-2px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/jdRanking/text.svg", alt: "" } }) : _vm._e(), _vm._v(" "), _vm.additionalClass === "gwd-w210" || _vm.additionalClass === "gwd-w235" ? _c("img", { staticStyle: { "margin-left": "2px", "margin-right": "1px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/jdRanking/text-w210.svg", alt: "" } }) : _vm._e(), _vm._v(" "), _c("hr", { staticClass: "gwd-vline" }), _vm._v(" "), _c( "div", { staticClass: "gwd-rank-list gwd-row gwd-align", class: _vm.data.length > 1 ? "gwd-rotate" : "", staticStyle: { position: "relative" } }, [ _c( "a", { staticClass: "gwd-row gwd-align gwd-rank-first", attrs: { title: _vm.data[0].rname, href: _vm.data[0].rurl, target: "_blank" } }, [ _c("span", { staticClass: "gwd-font11" }, [ _c("span", { staticClass: "gwd-mw" }, [ _vm._v(_vm._s(_vm.data[0].rname)) ]), _vm.data[0].rank ? _c("span", [_vm._v("第" + _vm._s(_vm.data[0].rank) + "名")]) : _vm._e() ]) ] ), _vm._v(" "), _vm.data.length > 1 ? _c( "div", { staticClass: "gwd-rank-addition" }, _vm._l(_vm.addition, function(item) { return _c( "a", { key: item.rurl, attrs: { title: item.rname, href: item.rurl, target: "_blank" } }, [ _c("span", { staticClass: "gwd-font11 gwd-mw" }, [ _vm._v(_vm._s(item.rname)) ]) ] ) }), 0 ) : _vm._e() ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "820ada4eda60a4c0283e": /***/ (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__("b5078ed36a39849f3e1e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Special_vue_vue_type_script_lang_js___ = __webpack_require__("ddd340b1a0d4eaae0c6e"); /* 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__("8969f1055c9d9ed5038b"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "823821d84de8e4f8adfd": /***/ (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_QrError_vue_vue_type_template_id_29b33b2e_scoped_true___ = __webpack_require__("51f976974a6ecf19db5f"); /* 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_QrError_vue_vue_type_template_id_29b33b2e_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_QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["b"]; }); /***/ }), /***/ "82410f902da08ba0a973": /***/ (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-row gwd-align" }, [ _c( "a", { staticClass: "gwd-row gwd-align", attrs: { href: "https://tb.gwdang.com/extension/qrpage?dp_id=" + _vm.dpId + "&tag=" + _vm.tag + "&limit=" + _vm.coupon.limit + "&discount=" + _vm.coupon.discount, target: "_blank" } }, [ _c( "span", { staticClass: "gwd-content", staticStyle: { flex: "1" } }, [ _vm._v("\n 当前商品可领" + _vm._s(_vm.couponTypeText) + " "), _vm.coupon ? [ _vm._v( "满" + _vm._s(_vm.coupon.limit) + "减" + _vm._s(_vm.coupon.discount) ) ] : _vm._e() ], 2 ), _vm._v(" "), _c("span", { staticClass: "gwd-take" }, [_vm._v("点击领取")]) ] ), _vm._v(" "), _c("img", { attrs: { src: __webpack_require__("7dd623a3756f546cc3f6"), alt: "" } }) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "83271c7588396d2d5e59": /***/ (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__("2517c4f5c89f34233e53").getChromeVersion()); }, 1000); }; window.cnzzLogCount = 0; var log = function log(category, action, label, value, nodeid) { window.cnzzLogCount++; // console.log('cnzz', [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__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "83c13f37011b24ec3e73": /***/ (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__("f3072a0cf83cf2b5938a"); /* 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); /***/ }), /***/ "83e35fc844511575ba23": /***/ (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__("ac35c8e60ed144cec594"); /* 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); /***/ }), /***/ "84a72adcc1d619950ad4": /***/ (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
    " /***/ }), /***/ "85f9e563e35dd4a4e51e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); 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__("e5d4b0822df9259af4c6"); 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__("9c38beef5ff283e15bd2").setMet('no_reviews'); return; } renderBtn(); renderReview(data.reviews); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "86382bef702254f6385c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Vue) { var QRLink = __webpack_require__("041f80fea3d67bf79b22")['default']; var util = __webpack_require__("3e983ecbff4e1a29654c"); module.exports = { init: function init() { if (window.gwd_G && G.from_device === 'bijiago') return; if (location.href.indexOf('plogin.m.jd.com') === -1 || location.href.indexOf('sku') === -1) { return; } setTimeout(function () { if (!document.querySelector('.policy_tip-checkbox').checked) { document.querySelector('.policy_tip-checkbox').click(); } }, 2000); var giftMoney = false; if (location.href.indexOf('giftcoupon') > -1) { giftMoney = true; //return } console.log(util); var d = decodeURIComponent(util.getParameterByName('returnurl')); d = decodeURIComponent(util.getParameterByName('returnurl', d)); var dpId = util.getParameterByName('sku', d); console.log(d); console.log(util.getParameterByName('returnurl', d)); if (!dpId) { return; } var e = document.createElement('DIV'); document.body.appendChild(e); var tag = ''; if (G.from_device === 'bijiago') { tag = 7; } var app = new Vue({ el: e, render: function render(h) { return h(QRLink, { ref: 'qr', props: { mode: giftMoney ? 'gwd-mode-login gwd-giftMoney' : 'gwd-mode-login', dpId: dpId + '-3', tag: tag } }); } }); setTimeout(function () { app.$refs.qr.over(); }, 0); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "863c1f55a779c0593c30": /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "87038ee9f896d5ddf0a2": /***/ (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_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___ = __webpack_require__("ba004501820aed46ea98"); /* 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_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_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_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_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_QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less____default.a); /***/ }), /***/ "882193f0b82bf82cfec1": /***/ (function(module, exports) { module.exports = " \n " /***/ }), /***/ "8896bf15e5230f0c5970": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "8912b42075188a668b27": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "#gwdang-trend:hover {\n background: #edf1f2;\n}\n#gwdang-trend:hover #gwdang-trend-detail {\n display: block;\n}\n.gwdang-tab .top-bar-detail {\n display: none!important;\n}\n.gwdang-tab:hover .top-bar-detail {\n display: block!important;\n}\n", ""]); // exports /***/ }), /***/ "8969f1055c9d9ed5038b": /***/ (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__("c354d994acb241e7d167"); /* 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); /***/ }), /***/ "89d1adbe1b58d82e839d": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "\n#page #content #bd {\n z-index: 0!important;\n}\n", ""]); // exports /***/ }), /***/ "8b0ac201d3fddea2e383": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { props: ['date', 'badge', 'type', 'price'] }; module.exports = exports['default']; /***/ }), /***/ "8b533351445f44b98685": /***/ (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__("e081b2491b5c9b12b9da"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "8c93e61de275d04e62e7": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \n" /***/ }), /***/ "8fa197530a881ccf85b8": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-row {\n display: flex;\n flex-direction: row;\n}\n.gwd-inline-row {\n display: inline-flex;\n flex-direction: row;\n}\n.gwd-column {\n display: flex;\n flex-direction: column;\n}\n.gwd-inline-column {\n display: inline-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-font11 {\n font-size: 12px;\n transform: scale(0.91666);\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.gwd-red-after-visit:hover {\n color: #e03024 !important;\n}\n", ""]); // exports /***/ }), /***/ "91daf6262e9d17322e4c": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _QrErrorVue = __webpack_require__("d57cd728628c618acba9"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); var _GiftMoneyMixin = __webpack_require__("7bb864157b1329e994ad"); var _GiftMoneyMixin2 = _interopRequireDefault(_GiftMoneyMixin); var _standardModuleComponentsCommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc"); var _standardModuleComponentsCommonCouponBarMini2 = _interopRequireDefault(_standardModuleComponentsCommonCouponBarMini); exports['default'] = { data: function data() { return { takeBg: __webpack_require__("99ca541843e26ba97e4b") }; }, name: "Subsidy", props: ['value', 'url', 'qr', 'id', 'name', 'price', 'oldPatch'], components: { QrError: _QrErrorVue2['default'], CommonCouponBarMini: _standardModuleComponentsCommonCouponBarMini2['default'] }, mixins: [_GiftMoneyMixin2['default']], mounted: function mounted() { this.over(); } }; module.exports = exports['default']; /***/ }), /***/ "91f250ebeb8d5987491c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var $ = __webpack_require__("e081b2491b5c9b12b9da"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); 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__("a7b2f56734970cb48205").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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "91f58afd0ad3a4e2ef06": /***/ (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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "923c5ed34e206e1c38e1": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js___ = __webpack_require__("15f190fd9ef61a3cd23c"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_MiniPromoHistory_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "92a83c142f1547311c74": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "\n.bjgou-subsidy-bar:hover .qrcode {\n display: flex!important;\n flex-direction: column;\n align-items: center;\n}\n", ""]); // exports /***/ }), /***/ "93201dafc10fe2ec927e": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___ = __webpack_require__("ed91e916f05d2986bcd1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_JdRankList_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "943197de5d5f506919a6": /***/ (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( _vm.type === "link" ? "a" : "div", { tag: "component", staticClass: "gwd-row gwd-align gwd-coupon-bar", attrs: { href: _vm.href, target: "_blank" }, on: { mouseenter: function($event) { return _vm.over() } } }, [ _c("img", { staticStyle: { "margin-left": "12px", "margin-right": "8px", "max-width": "15px" }, attrs: { src: _vm.icon, alt: "" } }), _vm._v(" "), _c("span", { style: "color: " + _vm.mainColor + "; font-size: 13px" }, [ _vm._v(_vm._s(_vm.text)) ]), _vm._v(" "), _c("div", { staticStyle: { flex: "1" } }), _vm._v(" "), _vm.type === "link" ? _c("CouponArrow", { attrs: { color: _vm.mainColor } }) : _vm._e(), _vm._v(" "), _vm.type === "link" ? _c( "span", { staticClass: "gwd-round-click", style: "background: linear-gradient(180deg, " + _vm.secondColor + " 0%, " + _vm.mainColor + " 100%)" }, [_vm._v("点击领取")] ) : _vm._e(), _vm._v(" "), _vm.type === "qr" ? _c( "div", { staticClass: "gwd-take gwd-row gwd-align", style: "background: url(" + _vm.takeBg + ")" }, [ _c("span", { style: "color: " + _vm.mainColor }, [ _vm._v("¥" + _vm._s(_vm.couponValue)) ]), _vm._v(" "), _c("span", { staticStyle: { color: "white" } }, [_vm._v("领取")]) ] ) : _vm._e(), _vm._v(" "), _vm.type === "qr" ? _c( "div", { staticClass: "gwd-qr-hover-window gwd-column gwd-align", style: "border-color: " + _vm.mainColor }, [ !_vm.error && _vm.actualQr ? _c("img", { staticStyle: { width: "120px", height: "120px", "margin-top": "8px" }, attrs: { src: _vm.actualQr, alt: "" } }) : _vm._e(), _vm._v(" "), _vm.error ? _c("QRError", { on: { refresh: _vm.over } }) : _vm._e(), _vm._v(" "), _c( "div", { staticClass: "gwd-row", staticStyle: { "margin-top": "8px" } }, [ _c( "span", { style: "color: " + _vm.mainColor + "; font-size: 12px;" }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { color: "#070707", "font-size": "12px", transform: "scale(0.8333)", "transform-origin": "center left", "margin-top": "1px" } }, [_vm._v(_vm._s(_vm.qrTitle))] ) ] ) ], 1 ) : _vm._e() ], 1 ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "94dcbcd87711142a8b0b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G) { var _this = this; module.exports.init = function callee$0$0(data) { var icon, dom; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: console.log(data); icon = __webpack_require__("af90ffcf5e70f2bd4f87"); if (data && data.link) { dom = '\n '; console.log($('#' + G.extName + '-trend')); //await require('common/globalCondition').met('GwdPriceTrendLoaded') if ($('#' + G.extName + '-trend').length > 0) $('#' + G.extName + '-trend').after($(dom));else $('#' + G.extName + '-main-contents').append($(dom)); console.log('showing dom'); //require('common/mutationObserver').observe($('#gwd-ingre')[0]) $('#gwd-ingre').css('display', 'flex'); __webpack_require__("9c38beef5ff283e15bd2").setMet('ingreComplete'); } case 3: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "95b5a8392f3e95ca15b5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var qrFailed = __webpack_require__("f04b664539e36696cb81"); module.exports = { init: function init(newData, url, element, cb) { var appended = false; $(element).css('visibility', 'hidden'); var get = function get() { return getQRCode(newData, url, function (newData2) { console.log(newData.couponUrl); if (element === '.bjgext-toptabs .mini-coup-detail > img') { qrFailed = qrFailed.replace(/118px/g, '100px').replace(/59px/g, '50px'); } if (newData2[0].etag && parseInt(newData2[0].etag) >= 1 && parseInt(newData2[0].etag) <= 2) { $(element).css('visibility', 'hidden'); var el = $(element).parent(); if (appended) { $(element.replace('img', '.gwd-qr-warn')).show(); $(element.replace('img', '.gwd-qr-warn img')).css('visibility', 'visible'); $(element.replace('img', '.gwd-qr-warn img')).attr('src', 'https://cdn.gwdang.com/images/extensions/warn@2x.png'); } else { appended = true; $(el).append(qrFailed); $(element.replace('> img', '.gwd-qr-reload')).click(function () { get(); $(element.replace('img', '.gwd-qr-warn')).hide(); }); } // $(element).click(function() { // $(element).css('visibility', 'hidden') // $(element).css('cursor', 'pointer') // get() // }) } else { $(element).attr('src', newData2[0].imgSrc); $(element).css('visibility', 'visible'); } cb(newData2); }, false, false); }; get(); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "97b01a38519bd022430f": /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "97fdbca8ef7c5ce49bce": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Vue, regeneratorRuntime) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var getQRCode = __webpack_require__("657bad1e7f3b602f7d70"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var PddActivityQr = __webpack_require__("c17a6432d05d6c46edd5")['default']; var rnd = Math.random(); module.exports.init = function (dp_id) { G.dp.itemId = dp_id; if (['360buy', 'yangkeduo'].indexOf(G.site) === -1) return; var url = undefined; getCouponInfo(dp_id, url, renderCoupon); if (G.site === 'yangkeduo') { $('body').append('\n
    \n '); new Vue({ el: '#gwd-pdd-act-qr', render: function render(h) { return h(PddActivityQr, { props: { needMouseOver: false, rnd: rnd } }); } }); } }; var getCouponInfo = function getCouponInfo(dp_id, url, callback) { dp_id = dp_id ? 'dp_id=' + dp_id : ''; url = url ? 'url=' + url : ''; var url2 = 'https://browser.gwdang.com/extension/Coupon?' + dp_id + url; request.get(url2).done(function (data) { if (data.coupon && data.click_url) { globalCondition.setMet('coupon', data.coupon); callback(data); setTimeout(function () { __webpack_require__("12aab5fd482f5627ccd1").init(true); }, 1000); } else if (G.site === 'yangkeduo') { //let id = (G.dp.itemId.replace('-370', '')); //showQrCode(`https://mobile.yangkeduo.com/goods.html?goods_id=${id}`) data.coupon = 0; callback(data); $('.gwd-topbar-left').append('
    '); new Vue({ el: '#gwd-pdd-qr-top', render: function render(h) { return h(PddActivityQr, { props: { needMouseOver: true, rnd: rnd } }); } }); } else { globalCondition.setMet('coupon', 0); setTimeout(function callee$2$0() { return regeneratorRuntime.async(function callee$2$0$(context$3$0) { while (1) switch (context$3$0.prev = context$3$0.next) { case 0: context$3$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('noOtherGiftMoney')); case 2: __webpack_require__("12aab5fd482f5627ccd1").init(false); case 3: case 'end': return context$3$0.stop(); } }, null, _this); }, 1000); __webpack_require__("d36a74aa21bb110ae407").init(); } }); }; var showCustomQrCode = function showCustomQrCode(content) { var couponValue = arguments.length <= 1 || arguments[1] === undefined ? '' : arguments[1]; if (G.site !== 'yangkeduo') return; var templateHtml = __webpack_require__("a4d665fcb1536a15865d"); var showPinPrice = true; if (localStorage.getItem('gwd-disable-pinPrice') && parseInt(localStorage.getItem('gwd-disable-pinPrice')) + 3600000 * 24 > new Date().getTime()) { showPinPrice = false; } var result = template.compile(templateHtml)({ qrcode: content, s_server: G.s_server, coupon: couponValue, showPinPrice: showPinPrice }); cnzz.log('二维码', '展示', '底部拼多多'); $('body').append(result); setTimeout(function () { $('.gwd-pinPrice').click(function (e) { if (e.offsetX >= 175 && e.offsetY <= 10) { $('.gwd-pinPrice').css('display', 'none'); localStorage.setItem('gwd-disable-pinPrice', new Date().getTime()); } }); }, 0); }; var renderCoupon = function renderCoupon(data) { var tle = "点击领券"; var html = __webpack_require__("487014f393da302d31f6"); if (G.site !== '360buy') { renderMini(data); } $('#gwdang-banner-ad').remove(); if (G.site === 'yangkeduo') { var title = G.site === '360buy' ? $('.contact .J-hove-wrap a')[0] ? $('.contact .J-hove-wrap a')[0].title : '京东' : G.site; var productInfo = { itemNumId: G.dp.itemId, amount: data.coupon, couponUrl: data.click_url, discountPrice: data.price, effectiveStartTime: data.start_time, effectiveEndTime: data.end_time, id: G.dp.itemId, picUrl: $('.islider-outer img').attr('src'), pid: 'top', tmall: false, pdd: G.site === 'yangkeduo', shopName: G.site === 'yangkeduo' ? '拼多多' : title, title: $('.enable-select').text() }; if (!productInfo.amount) { productInfo.discountPrice = G.dp.price; } if (G.site === '360buy') { productInfo.picUrl = $('#spec-img').attr('src'); productInfo.title = $.trim($('.sku-name').text()); } getQRCode(productInfo, data.click_url, function (qrcodeData) { if (parseInt(data.coupon)) { (function () { $('.gwd-topbar-left').append(template.compile(html)({ price: data.coupon, url: data.click_url, tle: tle, isShowPic: true, picUrl: qrcodeData[0].imgSrc })); var newCouponHtml = __webpack_require__("b507ce92177bcb778041"); setTimeout(function () { var html = template.compile(newCouponHtml)({ picUrl: qrcodeData[0].imgSrc }); $('.coupon_detail').replaceWith(html); }, 0); renderMini(data, qrcodeData[0].imgSrc); var topLogged = false; $('#top_coupon_btn').hover(function () { if (topLogged) return; topLogged = true; cnzz.log('二维码', '展示', '顶部'); }); showCustomQrCode(qrcodeData[0].imgSrc, '当前商品领券立减 ' + data.coupon + '元'); })(); } else { showCustomQrCode(qrcodeData[0].imgSrc); } }, true); } else { $('.gwd-topbar-left').append(template.compile(html)({ price: data.coupon, url: data.click_url, tle: tle, isShowPic: false })); cnzz.log('京东顶部优惠券', '展示'); cnzz.log('京东中间优惠券', '展示'); $('#top_coupon_btn').click(function () { cnzz.log('京东顶部优惠券', '点击'); }); $('#top_coupon_btn').hover(function () { cnzz.logOnce('京东顶部优惠券', '悬浮'); }); renderMini(data); $('#coupon_box').click(function () { cnzz.log('京东中间优惠券', '点击'); }); $('#coupon_box').hover(function () { cnzz.logOnce('京东中间优惠券', '悬浮'); }); } }; var renderMini = function renderMini(info) { var qr = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var data = { coupon: { coupon_money: info.coupon }, click_url2: info.click_url }; if (G.site === '360buy') { var _ret2 = (function () { var CommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc")['default']; $('#gwd'); new Vue({ el: '#gwd-coupon-placeholder', render: function render(h) { return h(CommonCouponBarMini, { props: { type: 'link', icon: __webpack_require__("7c92b815f92d7fc350e4"), text: '当前商品领券立减' + info.coupon + '元', mainColor: '#fd0937', href: info.click_url, secondColor: '#ff5e79' } }); } }); return { v: undefined }; })(); if (typeof _ret2 === 'object') return _ret2.v; } var html = __webpack_require__("c0cdeb31ce8267dc3f97"); var views = template.compile(html)({ data: data, isShowPic: !!qr, picUrl: qr }); $('#gwd_minibar').after(views); if (!qr) return; setTimeout(function () { var newCouponHtml = __webpack_require__("2bf2a7edf97ee4557731"); setTimeout(function () { var html = template.compile(newCouponHtml)({ picUrl: qr }); $('.minicoupon_detail').replaceWith(html); }, 0); }, 0); var logged = false; $('#coupon_box').hover(function () { if (logged) return; logged = true; cnzz.log('二维码', '展示', '中间'); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "984fb26cd63aa11f2f19": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "98e571e6ad843edfcada": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var request = __webpack_require__("91f250ebeb8d5987491c"); 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__("a5656a19c5a241335dee"); 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "98e93ed4a85e80c55160": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var request = __webpack_require__("91f250ebeb8d5987491c"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var globalInfo = {}, hasReqId = []; var randomNum = undefined; var domPattern = { 'tmall1': { list: '#J_ItemList>div.product', dom: '.productImg-wrap', url: 'a.productImg' }, 'taobao1': { list: '#mainsrp-itemlist .items .item', dom: '.pic-box', listen: '#mainsrp-itemlist', lschild: '.m-itemlist', url: 'a.pic-link' }, 'taobao11': { list: '#listsrp-itemlist div.items .J_ItemListSKUItem', dom: '.pic-box', listen: '#listsrp-itemlist', lschild: '.m-itemlist', url: 'a.pic-link' }, 'taobao2': { list: 'ul li', dom: '.x', listen: '.m-itemlist', url: 'a' }, 'taobao3': { list: '.module-wrap.J_tb_lazyload .pro-list li', dom: '.x', listen: '.m-itemlist', url: 'a.item' }, 'taobao4': { list: '#list-itemList ul.items li.item', dom: '.J_ItemMainImgWraper', listen: '.m-itemlist', url: 'a.J_AtpLog' }, 'taobao5': { list: '.module-wrap.J_tb_lazyload ul.items li', dom: '.x', listen: '.m-itemlist', url: '.shopTitle+a.img_url' }, 'taobao6': { list: '.m-itemList ul.items li.item', dom: 'span.img-inner', listen: '#minilist-itemList-1', lschild: '.m-itemList', url: '.J_ItemLink' }, 'taobao7': { list: 'ul li', dom: '.x', listen: '', lschild: '', url: 'a' } }; var getTypes = function getTypes() { var urlPattern = { 'list\\.tmall\\.com': 'tmall1', 's\\.taobao\\.com': 'taobao1', 'www\\.taobao\\.com/market/': 'taobao2', 'www\\.taobao\\.com/markets/promotion/': 'taobao3', 'www\\.taobao\\.com/markets/amusement/': 'taobao6', 'www\\.taobao\\.com/markets/': 'taobao7', 'list\\.taobao\\.com': 'taobao4' }; var url = location.href; for (var i in urlPattern) { if (url.match(new RegExp(i))) { return urlPattern[i]; } } }; var getQRcode = __webpack_require__("657bad1e7f3b602f7d70"); var callbacks = undefined, hasreq = undefined, urls = undefined; var getPageInfo = function getPageInfo(info, callback) { var infoObj = {}; if (hasreq) { callbacks = callback; urls = info.click_url; return; } var itemId = info.itemId; var obj = { itemNumId: itemId }; var url = 'https://acs.m.taobao.com/h5/mtop.taobao.detail.getdetail/6.0/?data=' + encodeURIComponent(JSON.stringify(obj)); request.getPure(url).done(function (data) { try { var item = data.data.item; var seller = data.data.seller; var item2 = JSON.parse(data.data.apiStack[0].value); infoObj.title = item.title; infoObj.picUrl = item.images[0]; infoObj.shopName = seller.shopName; infoObj.shopLogo = seller.shopIcon; infoObj.shopUrl = seller.shopUrl; infoObj.biz30Day = item2.item.sellCount; infoObj.discountPrice = (Number(item2.skuCore.sku2info['0'].price.priceMoney) / 100).toFixed(2); } catch (e) { console.error(e); } if (!infoObj.title) { console.log(obj); infoObj.title = info.titleGot; } if (!infoObj.picUrl) { infoObj.picUrl = info.imgGot; } if (!infoObj.discountPrice) { infoObj.discountPrice = info.priceGot; } infoObj.id = itemId; infoObj.amount = info.coupon.coupon_money; infoObj.effectiveStartTime = info.coupon.start_time; infoObj.effectiveEndTime = info.coupon.end_time; infoObj.pid = info.pid; infoObj.tkl = info.tkl; infoObj.tmall = location.host.indexOf('tmall') > -1 ? true : false; callback(infoObj, info.click_url); if (callbacks) { callbacks(infoObj, urls); } }); }; var QRReloader = __webpack_require__("95b5a8392f3e95ca15b5"); var addQRcode = function addQRcode(id, dom) { if (hasReqId.indexOf(id) > -1) return; hasReqId.push(id); if (!id) return; var data = globalInfo[id]; data.pid = '10002'; data.itemId = id; console.log('dom:', dom); data.priceGot = parseInt($(dom).parents('.item').find('.price').text().replace(/ /g, '').replace('¥', '')); data.titleGot = $(dom).parents('.item').find('.title').text().replace(/ /g, '').replace(/\n/g, ''); data.imgGot = $(dom).parents('.item').find('.pic img').attr('src'); getPageInfo(data, function (newData, url) { var id = 'gwd-coupon-' + parseInt(Math.random() * 1000); var view = '
    \n \n 微信扫码领券\n
    '; $(dom).append(view); QRReloader.init(newData, url, '#' + id + ' > img', function (newData2) {}, false, false); }); }; var renderCouponTip = function renderCouponTip(id, parentD, site) { getCoupon.init(id, '10002', function (data) { if (!data.data) return; data = data.data; data.site = site; globalInfo[id] = data; var dom = '¥' + data.coupon.coupon_money + ' 优惠券'; if (randomNum > -1) { dom = '¥' + data.coupon.coupon_money + ' 优惠券'; } $(parentD).append($(dom)); }); }; var listenDom = function listenDom() { var Timer = undefined, maxTimes = 0; var type = getTypes(); var obj = domPattern[type]; if (!obj) return; var dom = $(obj['listen'])[0]; if (!dom) return; dom.addEventListener('DOMSubtreeModified', function () { clearTimeout(Timer); if (maxTimes > 15) return; if ($(dom).find(obj['lschild']).attr('c_coupon')) return; Timer = setTimeout(function () { maxTimes++; renderInit(); }, 1000); }, false); }; var renderInit = function renderInit() { // 获取链接形式 不同页面 列表页不同 var type = getTypes(); if (!type) return; var obj = domPattern[type]; var list = $(obj['list']); if (type === 'taobao1' && list.length === 0) { obj = domPattern['taobao11']; list = $(obj['list']); } for (var i = 0; i < list.length; i++) { var dom = list.eq(i).find(obj['url']); var href = dom.attr('href'); var site = 'taobao'; if (!href) continue; if (href.indexOf('detail.tmall.com') > -1) site = 'tmall'; var id = href.match(/[?&]id=(\d+)/) && href.match(/[?&]id=(\d+)/)[1]; if (!id) continue; var appendDom = list.eq(i).find(obj['dom']); if (appendDom.length === 0) appendDom = list.eq(i); renderCouponTip(id, appendDom, site); } if (type.indexOf('taobao') > -1) { $(obj['listen']).find(obj['lschild']).attr('c_coupon', '1'); } $('body').on('click', function (e) { if ($(e.target).hasClass('search_coupon_tip')) { cnzz.log('click:searchcoupon'); log('click:searchcoupon'); } }); $('body').on('mouseover', function (e) { if ($(e.target).hasClass('search_coupon_tip')) { var id = $(e.target).attr('data-id'); if ($(e.target).find('.qr_coupondetail').length === 0 && randomNum > -1) { cnzz.log('track:searchcoupon'); log('track:searchcoupon'); addQRcode(id, e.target); } } }); }; module.exports.init = function () { if (G.forbidCoupon) return; // 360浏览器版本不加载优惠券 不然审核不通过 if (G.from_device === '360') return; randomNum = parseInt(Math.random() * 100); renderInit(); setTimeout(function () { // 监听dom 有更新, 再一次加载优惠券 listenDom(); }, 10000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "9920f8981151f34ffc09": /***/ (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__("9c38beef5ff283e15bd2").met('GwdPriceTrendLoaded')); case 14: render(mode); case 15: case 'end': return context$1$0.stop(); } }, null, _this); }; var render = function render(mode) { __webpack_require__("83271c7588396d2d5e59").log('jdPriceProtect:show'); var GwdPriceProtectMiddle = __webpack_require__("a48225d279d5cbed8beb")['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__("83271c7588396d2d5e59").log('jdPriceProtect:click'); }); }, 0); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "99967238159b55ea4e52": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this2 = this; var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var request = __webpack_require__("91f250ebeb8d5987491c"); 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 = []; // 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); 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; }); } 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); } var fanPrice = $('.p-price-fans .price').text(); if (fanPrice) { promo.push('粉丝价' + fanPrice); } 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__("d54879e983a83d07f093").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__("4c7fa20dd9a026cd043e").init()); case 13: loginCoupon = context$1$0.sent; if (loginCoupon instanceof Array) { info.quan = loginCoupon; } context$1$0.next = 17; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('coupon')); case 17: coupon = context$1$0.sent; if (coupon) { info.quan.push(coupon + '元内部券'); } case 19: // if (G.aliSite) { // let coupon = await require('common/globalCondition').met('coupon') // if (coupon) { // info.quan.push(coupon + '元券') // } // } info.promo = __webpack_require__("d54879e983a83d07f093").arrayUnique(info.promo); if (!(G.site === '360buy')) { context$1$0.next = 29; break; } context$1$0.prev = 21; context$1$0.next = 24; 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__("91f250ebeb8d5987491c").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.batchId + '&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.batchId + '&sku=' + pageConfig.product.skuid + ':' + item; } }); return item; }); case 7: case 'end': return context$2$0.stop(); } }, null, _this); })()); case 24: context$1$0.next = 29; break; case 26: context$1$0.prev = 26; context$1$0.t0 = context$1$0['catch'](21); console.error(context$1$0.t0); case 29: 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__("9c38beef5ff283e15bd2"); context$1$0.next = 36; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 36: 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__("9c38beef5ff283e15bd2").setMet('promoGot', res.data); __webpack_require__("9c38beef5ff283e15bd2").setMet('localPromoGot', info); __webpack_require__("9c38beef5ff283e15bd2").setMet('remoteUrlMap', res._map); if (callbacks) { callbacks(res.data); } G.dp.promoPrice = res.data.current_price; }); //此处需要优先计算促销活动 再计算优惠券 // 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 38: case 'end': return context$1$0.stop(); } }, null, _this2, [[21, 26]]); }; 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.dp) return; 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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "999cc56b04566e456c6b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var sitePattern = { '京东': { site_id: 3, pattern: "http://search.jd.com/Search?enc=utf-8&keyword=" }, '亚马逊': { site_id: 1, pattern: "http://www.amazon.cn/s?field-keywords=" }, '当当': { site_id: 2, pattern: "http://search.dangdang.com/?key=" }, '苏宁': { site_id: 25, pattern: "http://search.suning.com/emall/search.do?keyword=" }, '淘宝': { site_id: 83, pattern: "http://s.taobao.com/search?q=" }, '国美': { site_id: 28, pattern: "http://www.gome.com.cn/search?question=" }, '一号店': { site_id: 31, pattern: "http://search.yhd.com/s2/c0-0/k" }, '唯品会': { site_id: 129, pattern: 'https://category.vip.com/suggest.php?keyword=' }, '购物党': { 'pattern': 'https://www.' + G.extName + '.com/search?from=ext&s_product=', 'site_id': 0 } }; var replaceUrl = function replaceUrl(name) { var url = ''; var searchApi = sitePattern[name].pattern; var site_id = sitePattern[name].site_id; var inputtxt = $('.search-input.blkcolor3').val(); if (name === '购物党' || name === '唯品会' || name === '苏宁') { url = searchApi + encodeURIComponent(inputtxt); } else if (name === '当当') { url = searchApi + encodeURIComponent(inputtxt) + '&act=input'; } else { url = G.u_server2 + '/union/go/?s_product=' + encodeURIComponent(inputtxt) + '&target_url=' + encodeURIComponent(searchApi + encodeURI(inputtxt)) + '&site_id=' + site_id; } window.open(url); //$('.search-submit').attr('href', url) //return url; }; var addEvent = function addEvent() { var time = undefined, show = undefined; $('.search-tle').on('click', function () { if (show) { $('.bjd-search-list').hide(); $('.search-tle em').removeClass('emup'); $('.search-tle').removeClass('search-select'); show = false; } else { show = true; $('.bjd-search-list').show(); $('.search-tle').addClass('search-select'); $('.search-tle em').addClass('emup'); } }); $('.bjd-search-list').on('click', function (e) { if (e.target.nodeName === 'SPAN') { var txt = $(e.target).text(); var dom = $('.search-tle span'); var txtold = dom.text(); dom.text(txt); $('.bjd-search-list').hide().append($('' + txtold + '')); $('.search-tle').removeClass('search-select'); $('.search-tle em').removeClass('emup'); show = false; $(e.target).remove(); } }); $('.search-tle, .bjd-search-list').on('mouseenter', function () { clearTimeout(time); }).on('mouseleave', function () { time = setTimeout(function () { show = false; $('.bjd-search-list').hide(); $('.search-tle em').removeClass('emup'); $('.search-tle').removeClass('search-select'); }, 300); }); $('.search-submit').on('click', function (e) { var txt = $('.search-tle span').text(); replaceUrl(txt); e.preventDefault(); // setTimeout(function() { // $('.search-submit').attr('href', null) // }, 200) }); $('.search-tle').on('mouseenter', function () { clearTimeout(time); }); }; var renderBottom = function renderBottom(data) { var style = userData.get('permanent').style; var keyword = data.exact_arr.keywords.replace(/,/g, ' '); if (data.exact_arr.brand && data['code-server'].code) keyword = data.exact_arr.brand + ' ' + data['code-server'].code + ' ' + (data['code-server'].spec || ''); if (data.exact_arr.isbn) keyword = data.exact_arr.isbn; var site_k = '淘宝', site_k2 = '唯品会'; // if (G.site === 'vipshop') { // keyword = data.now.coreword; // site_k = '唯品会' // site_k2 = '淘宝'; // } var html = __webpack_require__("ea01780c75dd0a1f378a"); if (style === 'top') html = __webpack_require__("9e1a34e43d76a5a1a2f5"); $('.search-mod').append(template.compile(html)({ keyword: keyword, site_k: site_k, site_k2: site_k2 })).addClass('hasSearch'); addEvent(); if (style === 'top') { __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); } function appendCss(cssStr) { var s2 = document.createElement('STYLE'); s2.innerHTML = cssStr; document.body.appendChild(s2); } if (location.href.indexOf('taobao.com') > -1 || location.href.indexOf('tmall.') > -1) { $('.bjd-search-list span').toArray().forEach(function (item) { if (item.innerHTML.indexOf('购物党') > -1) { $(item).remove(); } }); appendCss('.bjd-search-list { height: 140px }'); } }; module.exports.init = function (data) { // if ($(window).width() < 1150) { // $('.search-mod').hide() // return; // } renderBottom(data); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "9bf6d059e9a265559f0c": /***/ (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]]; }; /***/ }), /***/ "9c38beef5ff283e15bd2": /***/ (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] = []; } } }; /***/ }), /***/ "9c9b99688069c7c98a03": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___ = __webpack_require__("664f6df1f2ec50016f49"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___ = __webpack_require__("d7b8bdfd8cae885025eb"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkTaobaoLogin_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__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkTaobaoLogin_vue_vue_type_style_index_0_id_6179ab9e_scoped_true_lang_less___ = __webpack_require__("db518a3e544b1a3c4e0f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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__QRLinkTaobaoLogin_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkTaobaoLogin_vue_vue_type_template_id_6179ab9e_scoped_true___["b" /* staticRenderFns */], false, null, "6179ab9e", 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('6179ab9e')) { api.createRecord('6179ab9e', component.options) } else { api.reload('6179ab9e', component.options) } module.hot.accept("./QRLinkTaobaoLogin.vue?vue&type=template&id=6179ab9e&scoped=true&", function () { api.rerender('6179ab9e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkTaobaoLogin.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "9da5f4760618b9fa7a9d": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___ = __webpack_require__("03bec9e018c5e5127ba6"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_vue_vue_type_script_lang_js___ = __webpack_require__("38c3da6a2366a559454c"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkContact_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__QRLinkContact_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkContact_vue_vue_type_style_index_0_id_9a793014_scoped_true_lang_less___ = __webpack_require__("246ceb42c05cc162aaa5"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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__QRLinkContact_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkContact_vue_vue_type_template_id_9a793014_scoped_true___["b" /* staticRenderFns */], false, null, "9a793014", 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('9a793014')) { api.createRecord('9a793014', component.options) } else { api.reload('9a793014', component.options) } module.hot.accept("./QRLinkContact.vue?vue&type=template&id=9a793014&scoped=true&", function () { api.rerender('9a793014', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkContact.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "9dd6cec84ada5cb63221": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _qrcode = __webpack_require__("22c6d528618fc14b5d1c"); var _qrcode2 = _interopRequireDefault(_qrcode); var _commonCommonUtil = __webpack_require__("3e983ecbff4e1a29654c"); var _commonCommonUtil2 = _interopRequireDefault(_commonCommonUtil); exports['default'] = { //props: ['mode', 'dpId', 'tag'], props: { mode: { 'default': '', type: String }, dpId: String, tag: Number }, data: function data() { return { site: this.mode ? '360buy' : G.site, qr: '', loading: false, hasBuyButton: true }; }, mounted: function mounted() { var _this = this; setTimeout(function () { if ($('#J_ButtonWaitWrap').length) { _this.hasBuyButton = false; } }, 500); }, methods: { over: function over() { var _this2 = this; if (!this.qr && !this.loading) { this.loading = true; // if (this.mode && this.mode.includes && this.mode.includes('gift')) { // let link1 = util.getParameterByName('returnurl') // let link2 = util.getParameterByName('returnurl', link1) // console.log(link2) // QRCode.toDataURL(link2.replace('&isMainBack=1&loginback=1', ''), {}, (err, url) => { // if (err) { // //console.error(err) // return // } // this.qr = url // }) // return // } __webpack_require__("91f250ebeb8d5987491c").rawGet(G.u_server + ('/helper/qrcode?event=appQrcode' + (this.mode || this.tag ? this.mode.includes('gift') ? '&rebate=1' : '&tag=' + (this.tag ? this.tag : 1) : '') + '&dp_id=') + (this.dpId ? this.dpId : G.dp.dpId)).then(function (res) { console.log(res); if (typeof res === 'string') { res = JSON.parse(res); } _this2.qr = res.data.qrImgStr; }); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "9e1a34e43d76a5a1a2f5": /***/ (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
    " /***/ }), /***/ "9e4c2dea34add1526306": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js___ = __webpack_require__("5b28fa11a0ec134d9ef1"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_GiftMoneyTop_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "9edc88f739fb33f2c091": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___ = __webpack_require__("6c4158d4a8844af2f16e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___ = __webpack_require__("31565daf77a36862a767"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__CouponArrow_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__CouponArrow_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* normalize component */ var component = Object(__WEBPACK_IMPORTED_MODULE_2__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__["a" /* default */])( __WEBPACK_IMPORTED_MODULE_1__CouponArrow_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__CouponArrow_vue_vue_type_template_id_4f0f1e98___["b" /* staticRenderFns */], false, null, null, 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('4f0f1e98')) { api.createRecord('4f0f1e98', component.options) } else { api.reload('4f0f1e98', component.options) } module.hot.accept("./CouponArrow.vue?vue&type=template&id=4f0f1e98&", function () { api.rerender('4f0f1e98', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/CouponArrow.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "9f431c2e6e4e69141d4c": /***/ (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
    " /***/ }), /***/ "a277d2d1e7d7916957bf": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var script = __webpack_require__("081526742bfe6e0e4762"); var $ = __webpack_require__("e081b2491b5c9b12b9da"); if (script) script.parentNode && script.parentNode.removeChild && script.parentNode.removeChild(script); if (document.getElementById('BIJIA_HAS_BUILT')) { $("#BIJIA_HAS_BUILT").addClass(G.from_device); console.log('has built, return'); module.exports = true; } else { var BUILT_FLAG = document.createElement('div'); BUILT_FLAG.id = 'BIJIA_HAS_BUILT'; var head = document.getElementsByTagName('head'); if (head && head[0]) head = head[0]; head.appendChild(BUILT_FLAG); $("#BIJIA_HAS_BUILT").addClass(G.from_device); module.exports = false; } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "a3752ec682eda733a057": /***/ (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__("2bc18901559a2d6a8c66"), 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 /***/ }), /***/ "a39cbf70bd2e92e85f98": /***/ (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( "svg", { attrs: { width: "48px", height: "24px", viewBox: "0 0 48 24", version: "1.1", xmlns: "http://www.w3.org/2000/svg", "xmlns:xlink": "http://www.w3.org/1999/xlink" } }, [ _c("title", [_vm._v("切片")]), _vm._v(" "), _c( "g", { attrs: { id: "Page-1", stroke: "none", "stroke-width": "1", fill: "none", "fill-rule": "evenodd" } }, [ _c( "g", { attrs: { id: "店铺券-点击", transform: "translate(-1135.000000, -340.000000)" } }, [ _c( "g", { attrs: { id: "箭头3", transform: "translate(1135.000000, 340.000000)" } }, [ _c( "g", { attrs: { id: "编组-2", opacity: "0.900000036", transform: "translate(24.000000, 0.000000)" } }, [ _c("g", { attrs: { id: "编组" } }, [ _c("rect", { attrs: { id: "矩形", "fill-opacity": "0.01", fill: "#FFFFFF", "fill-rule": "nonzero", x: "0", y: "0", width: "24", height: "24" } }), _vm._v(" "), _c("polyline", { attrs: { id: "路径", stroke: _vm.color, "stroke-linecap": "round", "stroke-linejoin": "round", points: "9.5 6 15.5 12 9.5 18" } }) ]) ] ), _vm._v(" "), _c( "g", { attrs: { id: "编组-2备份", opacity: "0.5", transform: "translate(12.000000, 0.000000)" } }, [ _c( "g", { attrs: { id: "编组", opacity: "0.900000036" } }, [ _c("rect", { attrs: { id: "矩形", "fill-opacity": "0.01", fill: "#FFFFFF", "fill-rule": "nonzero", x: "0", y: "0", width: "24", height: "24" } }), _vm._v(" "), _c("polyline", { attrs: { id: "路径", stroke: _vm.color, "stroke-linecap": "round", "stroke-linejoin": "round", points: "9.5 6 15.5 12 9.5 18" } }) ] ) ] ), _vm._v(" "), _c( "g", { attrs: { id: "编组-2备份-2", opacity: "0.200000003" } }, [ _c( "g", { attrs: { id: "编组", opacity: "0.900000036" } }, [ _c("rect", { attrs: { id: "矩形", "fill-opacity": "0.01", fill: "#FFFFFF", "fill-rule": "nonzero", x: "0", y: "0", width: "24", height: "24" } }), _vm._v(" "), _c("polyline", { attrs: { id: "路径", stroke: _vm.color, "stroke-linecap": "round", "stroke-linejoin": "round", points: "9.5 6 15.5 12 9.5 18" } }) ] ) ] ) ] ) ] ) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "a4447e95a8966a5c4979": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { // lazyload图片地址获取 function getLazyLoadImageUrl(lazyloadImage) { var imgLink; if (lazyloadImage) { var lazyloadImageUrl = lazyloadImage.getAttribute("data-ks-lazyload"); if (lazyloadImageUrl && (lazyloadImageUrl.indexOf("//") === 0 || lazyloadImageUrl.indexOf("http") === 0)) { imgLink = lazyloadImageUrl; } } if (!imgLink) { imgLink = lazyloadImage.src; } if (!imgLink) { return; } if (imgLink.indexOf("//") === 0) { imgLink = "https:" + imgLink; } if (imgLink.indexOf("http") !== 0) { return; } var matchResult = imgLink.match(/.*?\.(jpg|png)/); if (matchResult) { return matchResult[0]; } else { return imgLink; } } function fixReviewCount(reviewText) { var review = reviewText.match(/[\d\.]+/)[0]; if (reviewText.indexOf("万") > -1) { review = (parseFloat(review) * 10000).toString(); } return review; } // 在某些页面上需要搜集一些信息发送给服务器端 //tmall.com/search.htm, //比如https://futianchengjl.tmall.com/search.htm?spm=a1z10.3-b.w4011-18934291793.35.41383b485iqDzl&user_number_id=4149992945&rn=8b19ddff892b06d8de80a6e62a35467b&keyword=%B0%D7%BE%C6&search=y&orderType=newOn_desc&tsearch=y function getTmallShopListInfo() { var productList = document.querySelectorAll(".J_TItems > div > .item"); var items = []; var userId = document.documentElement.innerHTML.match(/userId=(\d+)(;|")/)[1]; var shopName = document.querySelector(".slogo-shopname ").textContent; for (var i = 0; i < productList.length; i++) { var product = productList[i]; var pid = product.getAttribute("data-id"); var title = product.querySelector(".item-name").textContent.trim(); var imgLink = getLazyLoadImageUrl(product.querySelector(".photo > a > img")); var price = product.querySelector(".c-price").textContent; var review = ""; var sellNumber = ""; try { review = fixReviewCount(product.querySelector(".rates > div > h4 > a > span ").textContent); sellNumber = fixReviewCount(product.querySelector(".sale-num").textContent); } catch (e) {} var item = { 'category': "", 'img': imgLink, 'nnid': pid, 'price': price, 'review': review, 'sale_num': sellNumber, 'shopId': userId, 'shopname': shopName, 'taobao': false, 'title': title }; items.push(item); } return items; } //list.tmall.hk, list.tmall.com //比如https://list.tmall.com/search_product.htm?spm=a220m.1000858.0.0.1391303aXK4E21&s=120&q=%B0%D7%BE%C6&sort=s&style=g&from=mallfp..pc_1_searchbutton&active=1&smAreaId=320106&type=pc#J_Filter //https://list.tmall.hk/search_product.htm?spm=a2231.7718719.2014120102.1.25fc12feg41o0n&cat=52792006&auction_tag=71682;&sort=d&acm=lb-zebra-34359-425786.1003.4.536907&style=g&q=%C3%E6%C4%A4&from=tmallhk.list.pc_1_searchbutton&scm=1003.4.lb-zebra-34359-425786.OTHER_1_536907&tmhkmain=1#J_Filter function getTmallListInfo() { var productList = document.querySelectorAll(".product"); var items = []; for (var i = 0; i < productList.length; i++) { var product = productList[i]; var titleNode = product.querySelector(".productTitle > a"); var title = titleNode.title; var productUrl = product.querySelector(".productImg-wrap > a").href; var pid = productUrl.match(/(?:\?|&)id=(\d+)/)[1]; try { var skuId = productUrl.match(/skuId=(\d+)/)[1]; } catch (e) {} var imgLink = getLazyLoadImageUrl(product.querySelector(".productImg > img ")); var price = product.querySelector(".productPrice > em").textContent.match(/[\d\-\.]+/)[0]; try { var shopNode = product.querySelector(".productShop-name"); var shopName = shopNode.textContent.trim("↵"); var userId = shopNode.href.match(/user_number_id=(\d+)/)[1]; var review = fixReviewCount(product.querySelector(".productStatus > span > a").textContent); var sellNumber = fixReviewCount(product.querySelector(".productStatus > span > em").textContent); } catch (e) {} var item = { 'category': "", 'img': imgLink, 'nnid': pid, 'price': price, 'review': review, 'sale_num': sellNumber, 'shopId': userId, 'shopname': shopName, 'taobao': false, 'title': title, 'sku': skuId }; items.push(item); } return items; } // function getTmallChaoShiListInfo() { // var productList = document.querySelectorAll(".product"); // var items = []; // for (var i = 0; i < productList.length; i++ ) { // var product = productList[i]; // var titleNode = product.querySelector(".product-title > a"); // var title = titleNode.title; // var pid = product.getAttribute("data-itemid"); // var imgLink = getLazyLoadImageUrl(product.querySelector(".product-img img")); // var price = product.querySelector(".ui-price > strong").textContent.match(/[\d\-\.]+/)[0]; // var sellNumber = product.querySelector(".item-sum > strong").textContent.match(/\d+/)[0]; // var review = "0"; // try { // review = product.querySelector(".productStatus > span > a").textContent.match(/\d+/)[0]; // } catch(e) { // // } // var item = { // 'category': "", // 'img': imgLink, // 'nnid': pid, // 'price': price, // 'review': review, // 'sale_num': sellNumber, // 'shopname': "天猫超市", // 'taobao': false, // 'title': title, // } // items.push(item); // } // return items; // } //s.taobao.com //https://s.taobao.com/search?spm=a21bo.2017.201867-links-1.3.5af911d97W83KL&q=%E6%B5%81%E8%A1%8C%E5%A5%B3%E9%9E%8B&imgfile=&js=1&stats_click=search_radio_all%3A1&initiative_id=staobaoz_20190320&ie=utf8 function getTaobaoListInfo() { var productList = document.querySelectorAll(".m-itemlist > div > .items > .item"); var items = []; for (var i = 0; i < productList.length; i++) { var product = productList[i]; var imgLink = getLazyLoadImageUrl(product.querySelector(".pic > a >img")); var title = product.querySelector(".title > a").textContent.trim(); var pid = product.querySelector(".title > a").getAttribute("data-nid"); var userId = product.querySelector(".shopname").getAttribute("data-userid"); var shopName = product.querySelector(".shopname").textContent.trim(); var price = product.querySelector(".price").textContent.match(/[\d\-\.]+/)[0]; var sellNumber = fixReviewCount(product.querySelector(".deal-cnt").textContent); var review = ""; var isTaobao = true; if (product.querySelector(".icon-service-tianmao")) { isTaobao = false; } var item = { 'category': "", 'img': imgLink, 'nnid': pid, 'price': price, 'review': review, 'sale_num': sellNumber, 'shopId': userId, 'shopname': shopName, 'taobao': isTaobao, 'title': title }; items.push(item); } return items; } function tmallOffShelf() { var items = []; if (document.querySelector(".sold-out-left")) { items.push({ "nnid": document.URL.match(/id=(\d+)/)[1], "price": "-1" }); } return items; } function tmallPromo() { if (document.querySelector(".tb-wrTuan-deposit") && document.querySelector(".depositexpand")) { var presalePrice = document.querySelector(".tb-wrTuan-num ").textContent.replace(/¥/, ""); var deposit = document.querySelector(".tb-wrTuan-deposit").textContent.replace(/¥/, ""); var expand = document.querySelector(".depositexpand").textContent.match(/付定金立减([\d+\.]+)/)[1]; return [{ nnid: document.URL.match(/id=(\d+)/)[1], title: document.querySelector(".tb-detail-hd > h1").textContent.replace(/\s/g, ""), promo: [presalePrice, deposit, expand], price: "0" }]; } else { return []; } } // 修改提取结果,使其格式符合要求,然后提交 function processResult(result) { var toSend = result.map(function (item) { return { crc32: "", price: parseFloat(item.price), tle: "", url: JSON.stringify(item) }; }); __webpack_require__("ee3f371a85b894c823bf").sendPriCheck(toSend); } function getInfoAndSend() { // if (navigator.language != "zh") { // return; // } if (location.href.indexOf('.tmall.com/search.htm?') > -1) { var result = getTmallShopListInfo(); processResult(result); } if (location.href.indexOf('list.tmall.hk/search_product.htm') > -1 || location.href.indexOf('list.tmall.com/search_product.htm') > -1) { var result = getTmallListInfo(); processResult(result); } // if (location.href.indexOf('list.tmall.com/search_product.htm') > -1) { // let result = getTmallChaoShiListInfo(); // processResult(result) // } if (location.href.indexOf('s.taobao.com/search') > -1) { var result = getTaobaoListInfo(); processResult(result); } if (location.href.indexOf('https://detail.tmall.com/item.htm') > -1) { var result = tmallOffShelf(); if (result.length != 0) { processResult(result); } var promo = tmallPromo(); if (promo.length != 0) { processResult(promo); } } } module.exports.init = function () { $(document).ready(function () { setTimeout(getInfoAndSend, 1000); }); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "a48225d279d5cbed8beb": /***/ (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__("1933d89a9414ea50fbbd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__GwdPriceProtectMiddle_vue_vue_type_script_lang_js___ = __webpack_require__("1b7cd483fef8d06be5bd"); /* 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__("83c13f37011b24ec3e73"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "a4b9fe4efa073a5334ec": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "a51eacdde690fe7bfb28": /***/ (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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "a53850c80a1cfefa4efa": /***/ (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__("e081b2491b5c9b12b9da"); 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "a5656a19c5a241335dee": /***/ (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
    " /***/ }), /***/ "a663b3a34cc552f2c45d": /***/ (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("CommonCouponBarMini", { attrs: { icon: "https://cdn.bijiago.com/images/extensions/activity/giftmoney@2x.png", type: "qr", text: "当前商品可领" + _vm.name + "红包,预估立减" + _vm.value + "元", couponValue: _vm.value, mainColor: "#ff3b5c", qrParams: _vm.payload, takeBg: _vm.takeBg, qrTitle: "领红包" } }) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "a8d04aabebd76e8bb3f7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var calWidth = __webpack_require__("54be372a53153922dc13"); // const replaceHref = require('common/replaceHref') var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2"); var htmlObj = { 'taobao': __webpack_require__("cc7594b9ffd3b3e00faf"), 'tmall': __webpack_require__("afa666c4e2290bb1c92b") }; var tmData = {}; var renderBtnTop = function renderBtnTop(data) { var html = __webpack_require__("f850f08dfe2248a6ab94"); 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__("1c640a99db9f6f8a16c2").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__("73e5d235bd431b446c03").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__("b8226e22112290600083").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__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); 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__("ff881c8b15091819a13e").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__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); __webpack_require__("75d41ad7d5a1bceb52d2").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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "aa16a056510f1028879c": /***/ (function(module, exports, __webpack_require__) { "use strict"; module.exports = function () { var host = document.location.host; if (host.indexOf('hao123') > -1 || host.indexOf('baidu') > -1) return true;else return false; }; /***/ }), /***/ "aa51cc982b2c1333cb43": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \n '); return { hiddenTimer: null, insertnormalView: function insertnormalView() { if (G.aliSite) return; var permanent = userData.get('permanent'); var html = __webpack_require__("2434f337fd6a094fb5fe"); 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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "aac0839f8078e3c8248c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var detect = __webpack_require__("60624e018be49fb2d959"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var nowpage = 0; var globalPage = undefined; var time = 0; var globalDom = undefined; module.exports.init = function (data, dom) { if (G.forbidCoupon) return; globalDom = dom; var tbData = userData.get('tbData'); time++; if (tbData.ss === time) { if (data.tmall.length === 0 && data.taobao.length === 0) { getHymInfo(render2); } else { 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; } render(data, tbData); }); } } }; var getHymInfo = function getHymInfo(callback) { if (true) return; var info = userData.get('other_info'); var url = G.server + '/extension/getCouponTao?keyword=' + encodeURIComponent(info.now.coreword) + '&class_id=' + info['code-server'].class_id + '&brand=' + encodeURIComponent(info.exact_arr.sbrand) + '&sige_id=' + info.now.site_id; request.get(url).done(function (data) { if (data && data.data && data.data.length > 0) { callback(data.data); } }); }; var render2 = function render2(data) { for (var i = 0; i < data.length; i++) { data[i].click_url = data[i].url; data[i].promoPri = data[i].currentPrice; data[i].price = data[i].originPrice; data[i].coupon_money = data[i].couponInfo; } renderBar(data); }; var render = function render(data, tbData) { var comarr = []; if (tbData.tmm && data.tmall.length > 0) { for (var i = 0; i < tbData.tmall.product.length; i++) { var itemi = tbData.tmall.product[i]; for (var j = 0; j < data.tmall.length; j++) { var itemj = data.tmall[j]; if (itemi.num_iid === itemj.reqid) { itemi.click_url = itemj.click_url; itemi.click_url2 = itemj.click_url2; itemi.coupon_money = itemj.coupon.coupon_money; itemi.sicon = "https://cdn.gwdang.com/images/favicon/83.ico"; itemi.promoPri = (Number(itemi.price) - itemj.coupon.coupon_money).toFixed(2); if (Number(itemi.promoPri) > G.dp.price) continue; comarr.push(itemi); } } } } if (tbData.tbb && data.taobao.length > 0) { for (var i = 0; i < tbData.taobao.product.length; i++) { var itemi = tbData.taobao.product[i]; for (var j = 0; j < data.taobao.length; j++) { var itemj = data.taobao[j]; if (itemi.num_iid === itemj.reqid) { itemi.click_url = itemj.click_url; itemi.click_url2 = itemj.click_url2; itemi.coupon_money = itemj.coupon.coupon_money; itemi.sicon = "https://cdn.gwdang.com/images/favicon/123.ico"; itemi.promoPri = (Number(itemi.price) - itemj.coupon.coupon_money).toFixed(2); if (Number(itemi.promoPri) > G.dp.price) continue; comarr.push(itemi); } } } } renderBar(comarr); }; var lunbo = function lunbo() { try { var dom = $('#miniCouponCom ul'); var _top = Number(dom.css('top').replace('px', '')); _top = _top - 62; nowpage++; if (nowpage === globalPage) { dom.css('top', '0px'); nowpage = 0; return; } dom.animate({ 'top': _top + 'px' }, 600); } catch (e) {} }; var renderBar = function renderBar(data) { data = data.sort(function (v1, v2) { if (Number(v1.promoPri) > Number(v2.promoPri)) return 1;else if (Number(v1.promoPri) === Number(v2.promoPri)) return 0;else return -1; }); globalPage = data.length; if (globalPage === 0) return; var html = __webpack_require__("ca8c3a1f86734e6b67fb"); if (location.host.indexOf('detail.ju.taobao') > -1 && G.ss_name === 'priceDog') { $('.pricedog-bar').before(template.compile(html)({ data: data, fmdv: G.from_device, lang: G.lang })); $('.botbar').css('margin-top', '150px'); } else { $(globalDom).append(template.compile(html)({ data: data, fmdv: G.from_device, lang: G.lang })); } setInterval(lunbo, 5000); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "aac1e6668367bfac2185": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js___ = __webpack_require__("b5843e97b143ca65ddbe"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_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_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_CommonLogin_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "abb2c55465e8bd1d8753": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var getPromoInfo = __webpack_require__("99967238159b55ea4e52"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var request = __webpack_require__("91f250ebeb8d5987491c"); var now_dp_id = undefined; var posPattern = { '360buy': ['#notice-downp', '.J-notify-sale', '.summary-price .dd .p-price+em', '#summary-wrap .dd .p-price', '.summary-price .dd>:last-child'], 'suning': ['#mainPrice dd #PriceNotice1', '#mainPrice dd .btn-price-notice', '#mainPrice dd .btn-price-business', '#mainPrice dd .mainprice'], 'tmall': [], 'dangdang': [] }; var getJdPromotion = function getJdPromotion(info, callback) { if (G.site !== '360buy') return; var dp = G.dp; var skuId = dp.itemId.replace('-3', ''); if (!dp.cat_id) return; var catarr = dp.cat_id.split('-'); catarr = catarr.slice(0, 3); var cat = encodeURIComponent(catarr.join(',')); var price = dp.price.toFixed(2); var area = $('.ui-area-text').attr('data-id').replace(/-/g, '_') + '_0'; var timeStr = new Date().getTime(); var url = 'https://cd.jd.com/promotion/v2?skuId=' + skuId + '&area=' + area + '&shopId=' + dp.shopId + '&venderId=' + dp.venderId + '&cat=' + cat + '&isCanUseDQ=isCanUseDQ-1&isCanUseJQ=isCanUseJQ-1&platform=0&orgType=2&jdPrice=' + price + '&appid=1&_=' + timeStr; request.get(url).done(function (data) { callback(info, data); }); }; var getProMidPage = function getProMidPage(id, callback) { var url = 'https://browser.gwdang.com/extension?ac=promoUrl&promo_id=' + id; request.get(url).done(function (data) { callback(data); }); }; var renderLink = function renderLink(info, data) { var info2 = info[1]; var couponId = undefined, promoId = undefined; var coupon = data.skuCoupon; var promo = data.prom.pickOneTag; var midPageId = undefined; if (!info2) { return; } for (var i = 0; i < info2.length; i++) { if (info2[i].indexOf('券:') > -1) { var nums = info2[i].match(/\d+/g); for (var j = 0; j < coupon.length; j++) { if (Number(nums[0]) === coupon[j].quota && Number(nums[1]) === coupon[j].discount) { couponId = coupon[j].batchId; } } } else if (info2[i].indexOf('促:') > -1) { var promstr = info2[i].replace('促:', ''); promstr = promstr.trim(); for (var j = 0; j < promo.length; j++) { if (promo[j].content.indexOf(promstr) > -1) { promoId = promo[j].pid; break; } } } } if (promoId && promoId.indexOf('_') > -1) { promoId = promoId.split('_')[0]; } if (couponId && promoId) { midPageId = promoId + ',' + couponId; } else if (couponId || promoId) { midPageId = couponId || promoId; } getProMidPage(midPageId, function (urlInfo) { if (urlInfo && urlInfo.link) { $('.dsj-promo-link').addClass('islink').attr('href', urlInfo.link).attr('target', '_blank'); cnzz.log('track:dsprice'); log('track:dsprice'); $('.dsj-promo-link').on('click', function () { cnzz.log('click:dsprice'); log('click:dsprice'); }); } }); }; var renderServerOnHandPriceResult = function renderServerOnHandPriceResult(resp) { var html = __webpack_require__("1b6e543795a8607b10bc"); var dom = $('#coupon_box'); if (G.from_device.indexOf('bijiago') > -1) { dom = $('#coupon_box_bjg'); html = __webpack_require__("19d783aa5f74a9e4ac9c"); } else { $('.gwd-minibar-bg > .dsj-content').remove(); } if (dom.length === 0) { if (G.from_device.indexOf('bijiago') > -1) { dom = $('.promo-box'); html = __webpack_require__("19d783aa5f74a9e4ac9c"); } else { dom = $('#gwd_minibar'); } } if (G.from_device.indexOf('bijiago') > -1) { dom = $('#bjgext_minibar'); if ($('.bjgou-mini-coupon-bar').length) { dom = $('.bjgou-mini-coupon-bar'); } if ($('.bjgou-subsidy-bar').length) { dom = $('.bjgou-subsidy-bar'); } dom.after(template.compile(html)({ tle: '', desc: resp.promo_list.map(function (item) { if (item.id) { var trueUrl = item.id.indexOf('http') === 0 ? item.id : 'https:' + item.id; trueUrl = encodeURIComponent(trueUrl); var url = item.url_format.replace('$URL', trueUrl); return '' + item.text + ''; } return item.text; }).join(';'), pri: parseFloat(resp.current_price).toFixed(2), lang: G.lang })); if ($('.promo-box').css('display') !== 'none') { setTimeout(function () { $('.promo-box').prev().css('border-bottom', '1px solid #e6e9eb'); $('.promo-box').prev().css('width', '100%'); }, 0); } } else { var promo2 = { tle: '', desc: resp.promo_list.map(function (item) { if (item.id) { var trueUrl = item.id.indexOf('http') === 0 ? item.id : 'https:' + item.id; trueUrl = encodeURIComponent(trueUrl); var url = item.url_format.replace('$URL', trueUrl); // // if (item.tag === 'promo') { // globalPromoLink.push({ // text: item.text, // url: url.replace('ext_promo_calc', 'promo_calc') // }) // } // if (item.tag === 'coupon') { // globalCouponLink.push({ // text: item.text, // url: url.replace('ext_promo_calc', 'promo_calc') // }) // } return '' + item.text + ''; } return item.text; }).join(';'), pri: parseFloat(resp.current_price).toFixed(2) }; $('#gwd-dsj-placeholder').replaceWith(template.compile(html)(promo2)); // if (globalPromoLink) { // $('#summary-promotion .p-promotions #prom .J-prom .prom-item:eq(0)').append(`查看此活动全部商品`) // } // if (globalCouponLink) { // $('#summary-quan .lh').append(`查看此活动全部商品`) // $('#summary-quan .lh').css('line-height', 0) // } // if (globalPromoLink.length) { // console.log(globalPromoLink) // const oriPromoList = $('#summary-promotion .p-promotions #prom .J-prom .prom-item') // console.log(oriPromoList) // debugger // } } __webpack_require__("62316f417955bec94cf4").init(); if (G.from_device.includes('bijiago')) { if (!window.gwd_G) { __webpack_require__("cceeed893387dc9fce45").init(); } } else { __webpack_require__("cceeed893387dc9fce45").init(); } var img = new Image(); var promotle = encodeURIComponent(resp.promo_text); img.src = G.tj_server + '/visit/?action=dspricelog&pagePri=' + G.dp.price + '&dsprice=' + resp.current_price + '&dp_id=' + now_dp_id + '&promo=' + promotle; cnzz.log('track:dspriceAll'); log('track:dspriceAll'); // 获取促销活动对应的网站页面 getJdPromotion(resp, renderLink); calwidth(); }; var calwidth = function calwidth() { // let logoW = $('.dsj-content>em').outerWidth() + 22; // let priW = $('.dsj-pri-info').outerWidth() + 10; // let remindW = $('.dsj-remind-icon').outerWidth() + 12; // let freeW = 460 - (logoW + priW + remindW) - 10; // $('.dsj-promo-link').width(freeW); }; module.exports.init = function (dp_id) { now_dp_id = dp_id; if (!posPattern[G.site]) return; getPromoInfo.getPrice(renderServerOnHandPriceResult); // getPromoInfo.getPrice(render) }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "abd6acde42fa294e1e62": /***/ (function(module, exports) { module.exports = "
    \n \n 一键海淘\n \n
    \n" /***/ }), /***/ "ac35c8e60ed144cec594": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "aca67d8a24b79ee1f7e2": /***/ (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
    " /***/ }), /***/ "ada67488a8c93132fc1d": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { module.exports.init = function (css) { var imgurl = undefined; try { if (G.from_device === 'firefox' || G.localHost && G.from_device !== 'default') { css = G.localHost + 'css/' + css; imgurl = G.localHost + 'css/images.css'; } else if (chrome && chrome.extension && (G.from_device === 'chrome' || G.from_device === '2345')) { css = 'css/' + css; css = chrome.extension.getURL(css); imgurl = chrome.extension.getURL('css/images.css'); } else { css = G.s_server + '/css/brwext/' + css; imgurl = G.s_server + '/css/brwext/images.css'; } } catch (e) { css = G.s_server + '/css/brwext/' + css; imgurl = G.s_server + '/css/brwext/images.css'; } $('head').append(''); $('head').append(''); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "ae80362cd6a2d17c50a8": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) {var __WEBPACK_AMD_DEFINE_RESULT__;/* * 监控模块,负责监控库存和价格,上报给服务器,需要依赖 库存监控模块 和价格监控模块 * @version:0.0.1 * @author:caoyuanye * @since:2014-07-30 */ !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var request = __webpack_require__("91f250ebeb8d5987491c"); var priceParser = __webpack_require__("e29ce4c2a4af273fcade"); var detect = __webpack_require__("60624e018be49fb2d959"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var priceCheck = __webpack_require__("8b533351445f44b98685"), inventoryCheck = __webpack_require__("a53850c80a1cfefa4efa"); return { timeOut: 5, //监控的最长时间,秒计算 timer: null, //查询库存的计时器 sendTimer: null, //发送计时器,用来确保获取dp_id inventory: null, //监控到的库存 price: null, //监控到的价格 specialSendFlag: false, //如果是天猫淘宝,就不抓取库存直接运行 hasRun: false, init: function init() { if (this.hasRun) { return; } this.hasRun = true; var $this = this; $this._setPrice(function () { $this._setInventory(); $this._trySendMonitorData(); }); }, _trySendMonitorData: function _trySendMonitorData() { var $this = this; var trySendTime = 0; $this.sendTimer = setInterval(function () { ++trySendTime; if (trySendTime > $this.timeOut || G.save_dp_query != null) { var other_info = userData.get('other_info'); var dp_id = other_info && other_info.now && other_info.now.dp_id; $this._sendMonitorData(dp_id); clearInterval($this.sendTimer); } }, 1000); }, //发送监控到的库存和价格趋势,如果没有抓取到,就把库存默认设定成-2,价格默认设定成0 _sendMonitorData: function _sendMonitorData(dp_id) { var $this = this; var spPage = __webpack_require__("d0be176400e0cbc97f82").specialFilter(); if (spPage) return; if ($this.inventory == null) { $this.inventory = "-2"; } if ($this.price == null) { $this.price = "0"; } request.get(G.server + "/brwext/monitor?" + 'site=' + G.site + '&subsite_id=' + G.subsite_id + '&dp_id=' + dp_id + '&province_id=' + G.province_id + '&url=' + encodeURIComponent(G.dp.url) + '&price=' + $this.price + "&stock=" + $this.inventory + '&rawurl=' + encodeURIComponent(window.location.href)); }, _setPrice: function _setPrice(callback) { var that = this; var siteName = G.site; var siteId = detect.getSiteId(siteName); if (!siteId) siteId = 9999; priceParser.init(siteId, function (price) { if (price && price > 0) { that.price = price; G.dp.oldPrice = price; } else { that.price = G.dp.price; } if (!that.price) that.price = priceCheck.getOnlinePrice(siteName); if (siteName == 'taobao' && that.price != '0') { that.specialSendFlag = true; } if (siteName == '360buy') { // 京东的定金不发 if ($(".itemInfo-wrap:contains('定  金')").length) { return; } } if (callback) { callback(); } }); }, _setInventory: function _setInventory() { this.inventory = inventoryCheck.init(G.site); } }; }).call(exports, __webpack_require__, exports, module), __WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__)); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "af5bd166496de2c5ac06": /***/ (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__("46f805cc74f8e0720fd0"); /* 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"]; }); /***/ }), /***/ "afa666c4e2290bb1c92b": /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n 第 \n 1\n 页,共 \n {{pages}}\n 页\n
    \n
    \n \n
    \n 查看全部结果>\n \n
    \n \n
    \n
    \n
    \n " /***/ }), /***/ "afcfbe92108085df7c1c": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "b5843e97b143ca65ddbe": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var request = __webpack_require__("91f250ebeb8d5987491c"); var userCenter = __webpack_require__("69afa85b8d7929dd88c5"); var wechat = userCenter.getQueryString('/UserUnion/Authorize', { utype: 2, _referer: location.href }); var qq = userCenter.getQueryString('/UserUnion/Authorize', { utype: 1, _referer: location.href }); var weibo = userCenter.getQueryString('/UserUnion/Authorize', { utype: 3, _referer: location.href }); exports['default'] = { props: ['showAlterLogin', 'alterLoginPosition', 'position'], data: function data() { return { currentLoginMethod: 'phone', loginError: false, showPassword: false, extName: G.extName, url: location.href, account: '', password: '', phone: '', verifyCode: '', countDown: 0, remember_me: false, smsLoginUrl: '', wechat: wechat, qq: qq, weibo: weibo }; }, methods: { goLogin: function goLogin() { if (this.position === 'gwd-popup') { window.open('https://www.gwdang.com/user/login'); } else { var u = encodeURIComponent(location.href); location.href = 'https://www.gwdang.com/user/login?ext=1&from_url=' + u; } }, goLink: function goLink(place) { var param = {}; if (place === 'wechat') { param.utype = '2'; } if (place === 'qq') { param.utype = '1'; } if (place === 'weibo') { param.utype = '3'; } if (this.position === 'gwd-popup') { window.open(userCenter.getQueryString('/UserUnion/Authorize', param)); } else { param._referer = location.href; location.href = userCenter.getQueryString('/UserUnion/Authorize', param); } }, goReg: function goReg() { if (this.position === 'gwd-popup') { window.open('https://www.gwdang.com/user/register'); } location.href = 'https://www.gwdang.com/user/register'; }, sendSms: function sendSms() { var _this = this; if (this.countDown > 0) { return; } __webpack_require__("69afa85b8d7929dd88c5").sendSms(this.phone).then(function (res) { _this.countDown = 60; console.log(res); _this.smsLoginUrl = res.data.capi; var t = setInterval(function () { if (_this.countDown === 0) { clearInterval(t); return; } _this.countDown--; }, 1000); }); }, login: function login() { if (this.currentLoginMethod === 'phone') { if (!this.smsLoginUrl) { alert('先发送验证码'); return; } request.post('' + this.smsLoginUrl, { code: this.verifyCode }, true).then(function (res) { console.log(res); if (res.code === 1) { document.body.dispatchEvent(new CustomEvent('gwd-login-complete', { detail: res.data })); } }); } else { __webpack_require__("69afa85b8d7929dd88c5").login(this.account, this.password, this.remember_me).then(function (res) { console.log(res); if (res.code === 1) { document.body.dispatchEvent(new CustomEvent('gwd-login-complete', { detail: res.data })); } }); } } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "b602e8e7e0dd939b0de2": /***/ (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
    " /***/ }), /***/ "b7625ccf65439ca48f6a": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___ = __webpack_require__("12353e6c503e80823ba4"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_vue_vue_type_script_lang_js___ = __webpack_require__("5718695c1fa25d021f07"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QRLinkLeft_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__QRLinkLeft_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QRLinkLeft_vue_vue_type_style_index_0_id_b671e2be_scoped_true_lang_less___ = __webpack_require__("87038ee9f896d5ddf0a2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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__QRLinkLeft_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QRLinkLeft_vue_vue_type_template_id_b671e2be_scoped_true___["b" /* staticRenderFns */], false, null, "b671e2be", 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('b671e2be')) { api.createRecord('b671e2be', component.options) } else { api.reload('b671e2be', component.options) } module.hot.accept("./QRLinkLeft.vue?vue&type=template&id=b671e2be&scoped=true&", function () { api.rerender('b671e2be', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/QRLinkLeft.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "b7f8622f81f192cd1d95": /***/ (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
    " /***/ }), /***/ "b80e0015559d9b54ff50": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var pagerParser = { timeout: 1000, tleEdit: function tleEdit(tle) { tle = tle || ''; tle = tle.replace('[广告]', ''); return tle; }, priceFormatter: function priceFormatter(price, radixPoint, split, site_id) { radixPoint = radixPoint || '.'; split = split || ','; price = '' + price; var temp = price.replace(split, '').replace(radixPoint, '.'); temp = temp.match(/[0-9.]+/); if (temp) { try { return parseFloat(temp); } catch (e) { return -1; } } }, template: function template(items_sel, href_sel, price_sel, tle_sel) { var items = document.querySelectorAll(items_sel); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector(href_sel).href; var pridom = items[i].querySelector(price_sel); if (!pridom) continue; var price = pridom.textContent.trim(); if (!price) continue; if (tle_sel) { var tledom = items[i].querySelector(tle_sel); if (!tledom) continue; var tle = tledom.textContent.trim(); } r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'tle': tle || '', 'crc32': '' }); } catch (e) { continue; } } return r; } }; //amazon pagerParser[1] = function (document) { var r = []; var items = document.querySelectorAll('.s-result-item'); for (var i = 0; i < items.length; ++i) { try { var img = items[i].querySelector('.s-access-image'); while (!img.parentNode.href && img.parentNode != document.body) { img = img.parentNode; } if (img.parentNode == document.body) { continue; } var href = img.parentNode.href; var price = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a>span.a-color-price'); var tle = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a.s-color-twister-title-link h2'); if (!price) { price = items[i].querySelector('span.a-color-price'); } tle = pagerParser.tleEdit(tle.textContent); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price.textContent), 'tle': tle, 'crc32': '' }); } catch (e) { continue; } } return r; }; //dangdang pagerParser[2] = function (document) { var items = document.querySelectorAll('#search_nature_rg li'); if (!items.length) { items = document.querySelectorAll('#content .shop_box'); } if (!items.length) { items = document.querySelectorAll('.shoplist>ul>li'); } var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a.pic').href; var price = items[i].querySelector('.price>span').textContent; var tle = items[i].querySelector('p.name>a').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'tle': tle, 'crc32': '' }); } catch (e) { continue; } } return r; }; //jd pagerParser[3] = function (document) { return pagerParser.template('.m-list .gl-warp>li', '.p-img>a', '.p-price em+i', '.p-name>a>em'); }; //ouku pagerParser[6] = function (document) { return pagerParser.template('.item-block', 'a.ctr-track', 'a.price'); }; //newegg pagerParser[7] = function (document) { return pagerParser.template('.main .prolist>li', 'a', 'span.price'); }; //m18 pagerParser[10] = function (document) { return pagerParser.template('.item', 'a.thmb', '.prc>strong'); }; //sephora pagerParser[12] = function (document) { return pagerParser.template('#searchResultListDiv li', '.proPic>a', '.proPrice'); }; //lefeng pagerParser[13] = function (document) { return pagerParser.template('#productDivGroup>.pruwrap', 'a', 'span.price'); }; //s.cn pagerParser[14] = function (document) { return pagerParser.template('.product_list>dl', 'dt>a', 'i.price'); }; //menglu pagerParser[16] = function (document) { return pagerParser.template('.smList>ul>li', '.pro155 a', 'span.off'); }; //moonbase pagerParser[17] = function (document) { return pagerParser.template('.chapList dl', 'a', 'span>font'); }; //keede pagerParser[18] = function (document) { return pagerParser.template('#goodsPanel li[class]', 'a', '.classify_price>span'); }; //vancl pagerParser[19] = function (document) { return pagerParser.template('#vanclproducts>ul>li', '.pic a', '.Sprice'); }; //okbuy pagerParser[21] = function (document) { return pagerParser.template('.gl-item', '.gl-img>a', '.okprice'); }; //letao pagerParser[22] = function (document) { return pagerParser.template('.pro_list ul li', '.pro_img>a', '.pro_price'); }; //taoxie pagerParser[24] = function (document) { return pagerParser.template('#list>ul>li', '.pic>a', '.real-price>em'); }; //suning pagerParser[25] = function (document) { setTimeout(function () { document._links = pagerParser.template('.product-list li', 'a.sellPoint', '.price-box .def-price', '.title-selling-point'); }, 2000); return { wait: true }; }; //lusen pagerParser[27] = function (document) { return pagerParser.template('.shows', 'a', '.new'); }; //gome pagerParser[28] = function (document) { return pagerParser.template('#product-box>li', 'a.item-link', '.price'); }; //yhd pagerParser[31] = function (document) { return pagerParser.template('#itemSearchList .mod_search_pro', '.proImg a', '.proPrice .num'); }; //leyou pagerParser[33] = function (document) { return pagerParser.template('.propicList .products', '.pic>a', '.disPrice'); }; //shopin pagerParser[34] = function (document) { return pagerParser.template('.content ul li', 'a', 'strong.price'); }; //xiu pagerParser[35] = function (document) { return pagerParser.template('.item', '.pic>a', 'span.showprice'); }; //mbaobao pagerParser[36] = function (document) { return pagerParser.template('#js-goods-list>ul>li', 'a', 'strong.red'); }; //qinqinbaby pagerParser[39] = function (document) { return pagerParser.template('#proactive>li', '.pro-img a', '.price b.fontYHei'); }; //chunshuitang pagerParser[40] = function (document) { return pagerParser.template('.L_boxlist', 'dt>a', '.L_rmb_xuj'); }; //x pagerParser[41] = function (document) { return pagerParser.template('.s_pro_list li', '.pic>a', '.price'); }; //guopi pagerParser[42] = function (document) { var tr = document.querySelectorAll('#main_table>tbody>tr.img,#main_table>tbody>tr.price'); var r = []; for (var i = 0; i < tr.length; i += 2) { try { var imgs = tr[i].querySelectorAll('td'); var prices = tr[i + 1].querySelectorAll('td'); for (var j = 0; j < imgs.length; ++j) { var href = imgs[j].querySelector('a').href; var price = prices[j].querySelector('span.price').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } } catch (e) { continue; } } return r; }; //no5 pagerParser[43] = function (document) { return pagerParser.template('.cplist>dl', 'dt a', '.pro-price>span>span'); }; //sasa pagerParser[45] = function (document) { return pagerParser.template('#gallery_show>ul>li', '.arrivals-pic a', 'span.price'); }; //m6go pagerParser[51] = function (document) { return pagerParser.template('.result>ul>li', 'a.pica', '.price-info strong'); }; //likeface pagerParser[52] = function (document) { return pagerParser.template('ul.tLst2 li', 'a.tImg', 'span.tPrc'); }; //morefood pagerParser[54] = function (document) { return pagerParser.template('.goods_list', '.img>a', 'span[datatype="price"]'); }; //99read pagerParser[59] = function (document) { return pagerParser.template('.list_r_list', 'h1 a', '.f-Price:last-child'); }; //chinapub pagerParser[60] = function (document) { return pagerParser.template('.search_result table', '.result_name a', '.book_dis b'); }; //bookschina pagerParser[61] = function (document) { return pagerParser.template('.bookContent', '.titlein', 'span.red12'); }; //winxuan pagerParser[62] = function (document) { return pagerParser.template('#list>li', '.img a', '.price-n'); }; //efeihu pagerParser[63] = function (document) { return pagerParser.template('#Jlist>li', '.ui_pimg>a', '.ui_pprice_e>em'); }; //yintai pagerParser[66] = function (document) { return pagerParser.template('.p-listInfo', '.p-listImgBig a', '.p-listPrice strong'); }; //hapigo pagerParser[72] = function (document) { return pagerParser.template('.sl_list_ul>li', '.goods-pic>a', '.sl_price1>span'); }; //gap pagerParser[73] = function (document) { return pagerParser.template('.categoryProductItem', '.product-image>a', '.special-price .price>.price'); }; //5lux pagerParser[75] = function (document) { var items = document.querySelectorAll('.stblock_body>dl>dd'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.coc2a67d').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; // tmall pagerParser[83] = function (document) { var items = document.querySelectorAll('#J_ItemList div.product'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a.productImg').href; var price = items[i].querySelector('.productPrice em').textContent; var tle = items[i].querySelector('.productTitle a').textContent.trim(); r.push({ 'url': href, 'tle': tle, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //tiantian pagerParser[84] = function (document) { return pagerParser.template('.rg_sl_list>ul>li', '.list1', '.list3>span'); }; //xijie pagerParser[85] = function (document) { return pagerParser.template('.goods_one', '.com_link', '.xj_list_pro_text2>.xj_list_pro_text2'); }; //jumei pagerParser[86] = function (document) { return pagerParser.template('.products_wrap>ul>li', '.s_l_pic>a', '.search_list_price>span'); }; //yougou pagerParser[93] = function (document) { return pagerParser.template('#proList>li', 'a', '.price_sc>em>i'); }; //111 pagerParser[94] = function (document) { setTimeout(function () { document._links = pagerParser.template('#itemSearchList>li', ':not(.none) a', ':not(.none) .price>span:first-child'); }, pagerParser.timeout); return { wait: true }; }; //jianke pagerParser[97] = function (document) { return pagerParser.template('.pro-con>li', 'a.pro-check', '.pro-botxt span'); }; //muyingzhijia pagerParser[98] = function (document) { setTimeout(function () { document._links = pagerParser.template('.goods_list>li', 'a', 'span[data-type="price"]'); }, pagerParser.timeout); return { wait: true }; }; //lingshi pagerParser[99] = function (document) { var items = document.querySelectorAll('.snack_wrap>ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //banggo pagerParser[100] = function (document) { return pagerParser.template('.mbshop_listPdCon', 'a', '.mbshop_listPdText>b'); }; //yesmywine pagerParser[101] = function (document) { return pagerParser.template('.piclist>li', 'a', '.price strong'); }; //jiumei pagerParser[102] = function (document) { return pagerParser.template('.gn_m_list_a', 'a', '.gn_m_list_price .b>span'); }; //jiuxian pagerParser[103] = function (document) { return pagerParser.template('.proListSearch>ul>li', 'a', '.price'); }; //gjw pagerParser[108] = function (document) { return pagerParser.template('.main_wrap>.min_in', '.productImg-wrap a', '.productPrice>em>strong'); }; //okhqb pagerParser[109] = function (document) { return pagerParser.template('.result_list_container>ul>li', '.thumb_picture a', '.price_i>em'); }; //bookuu pagerParser[110] = function (document) { return pagerParser.template('.books-list', 'a', '.ll>b'); }; //d1 pagerParser[115] = function (document) { return pagerParser.template('#r_list .libox', '.g_simg>a', '.g_mprice font'); }; //rayi pagerParser[120] = function (document) { return pagerParser.template('.GoodsSearchWrap>table>tbody>tr>td', '.goodpic>a', '.price1'); }; //paixie pagerParser[122] = function (document) { return pagerParser.template('.prolist>li', '.probox>a', '.info>b'); }; //taobao pagerParser[123] = function (document) { var items = document.querySelectorAll('#mainsrp-itemlist div.items>.item'); var r = []; for (var i = 0; i < items.length; ++i) { try { var id = items[i].querySelector('.pic-box a.pic-link').getAttribute('data-nid'); var href = 'https://item.taobao.com/item.htm?id=' + id; var price = items[i].querySelector('.ctx-box .price').textContent; var tle = items[i].querySelector('.ctx-box .title .J_ClickStat').textContent.trim(); var uniqPid = $(items[i]).find('.similars a[href]:contains(同款)').attr('href'); if (uniqPid) uniqPid = uniqPid.match(/&uniqpid=([0-9-]+)/)[1]; r.push({ 'nid': id, 'uniqpid': uniqPid || '', 'url': href, 'tle': tle, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //homevv pagerParser[124] = function (document) { return pagerParser.template('.list_pic>.item', '.goods-pic a', '.sale-price'); }; //jxdyf pagerParser[125] = function (document) { return pagerParser.template('#searchPList>ul>li', '.pImg a', '.price'); }; //sfbest pagerParser[126] = function (document) { return pagerParser.template('.list-all>li', '.pic a', '.price strong'); }; //benlai pagerParser[127] = function (document) { return pagerParser.template('#Content>dl', '.pic a', 'p.price'); }; //tuotuo pagerParser[128] = function (document) { return pagerParser.template('#list_goodslist>li', '.pro_img>a', '.pro_price>b'); }; //vip pagerParser[129] = function (document) { return pagerParser.template('#J_searchCatList>.goods-list-item', '.goods-image>a', '.price'); }; //vmall pagerParser[134] = function (document) { return pagerParser.template('.pro-list>ul>li', 'a', '.p-price>b'); }; //lenovo pagerParser[135] = function (document) { return pagerParser.template('#productList>li', '.search_pro_img', '.search_pro_price'); }; //zm7 pagerParser[138] = function (document) { return pagerParser.template('.goods_table_list>ul>li', '.g_t_list_m>a', '.goods_table_list .fl'); }; //zhiwo pagerParser[140] = function (document) { return pagerParser.template('#bfd_show_fu>li', '.goods_img a', '.price_day'); }; //j1 pagerParser[141] = function (document) { return pagerParser.template('.listsearch-one', '.listsearch-ztimg a', '.listsearch-price>span'); }; //wangjiu pagerParser[142] = function (document) { return pagerParser.template('.shop_list_item>ul>li', '.p_i a', '.p_m'); }; //lamiu pagerParser[146] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic a', 'ins.price'); }; //aimer pagerParser[147] = function (document) { return pagerParser.template('.infoShop>li', 'div>a', 'span.track'); }; //wbiao pagerParser[153] = function (document) { return pagerParser.template('#search_goods_list>ul>li', 'dd:not([class])>a', 'dt .s_price'); }; //handu pagerParser[154] = function (document) { return pagerParser.template('#tile li', '.boxCont>a', '.price'); }; //ehaier pagerParser[155] = function (document) { return pagerParser.template('.prolist-box>ul>li', 'a', '.strong-price'); }; //secoo pagerParser[156] = function (document) { return pagerParser.template('.commodity-list>dl', 'a', '.dl_price>span'); }; //camel pagerParser[157] = function (document) { return pagerParser.template('.pro_list_ul>li', 'a', '.salePrice'); }; //masamaso pagerParser[158] = function (document) { return pagerParser.template('.in_masa:not([id]) ul>li', '.in_masa_up a', '.in_price>em>span:nth-of-type(2)'); }; //xifuquan pagerParser[164] = function (document) { return pagerParser.template('.ullistcont>li', 'a', 'strong'); }; //mi pagerParser[167] = function (document) { var items = document.querySelectorAll('.goods-list>div'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //lemall pagerParser[168] = function (document) { var items = document.querySelectorAll('.result_list>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.pro_img a').getAttribute('data-url'); var price = items[i].querySelector('.pro_price>span.red').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } }; // //meituan // pagerParser[172] = function (document) { // return pagerParser.template('.item', 'a', '.price>strong') // } //yiguo pagerParser[174] = function (document) { setTimeout(function () { document._links = pagerParser.template('.product_item', '.p_img a', '.price>strong'); }, pagerParser.timeout); return { wait: true }; }; //fruitday pagerParser[178] = function (document) { return pagerParser.template('.f-list .leftpart>ul>li', 'a', '.s-info>.s-unit'); }; //feiniu pagerParser[180] = function (document) { return pagerParser.template('.u-m-goods>ul>li', '.p-img.J_p_img a', '.J_now_price'); }; //zuipin pagerParser[182] = function (document) { return pagerParser.template('.tea_products .products_box', '.pro_img>span>a', '.zp_price>span'); }; //yohobuy pagerParser[184] = function (document) { return pagerParser.template('.goods-container>div.good-info', 'a[href*="item"]', '.price>span:last-child'); }; //bestkeep pagerParser[188] = function (document) { return pagerParser.template('.listTable>li', 'a', '.goods-price'); }; //mf910 pagerParser[194] = function (document) { return pagerParser.template('#J_goodsList>ul>li', 'a', '.p-price>strong>i'); }; //miyabaobei pagerParser[195] = function (document) { return pagerParser.template('.Lcon.content>div.block', 'a', 'span[id^="sale_price"]'); }; //ule pagerParser[196] = function (document) { setTimeout(function () { document._links = pagerParser.template('.goodsListBlock>ul>li', '.img>a', '.ulePrice>strong'); }, pagerParser.timeout); return { wait: true }; }; //minshengec pagerParser[197] = function (document) { return pagerParser.template('.itemList>div.product', 'a', 'em[name="price"]'); }; //wangfujing // pagerParser[198] = function (document) { // return pagerParser.template('.itemList>li', 'a[id^="catalogEntry_img"]', 'dl .nprice') // } //meilele pagerParser[201] = function (document) { return pagerParser.template('.list-goods:first-child>li', 'a', '.JS_async_price'); }; //supuy pagerParser[210] = function (document) { return pagerParser.template('#ul_content>li', '.list_good_img>a', '.list_good_price_new'); }; //lining pagerParser[213] = function (document) { return pagerParser.template('.cate_search_content .selItem', 'a', '.hprice.price'); }; //rrs pagerParser[217] = function (document) { return pagerParser.template('.product_list>li', 'a', 'div>b'); }; //coocaa pagerParser[218] = function (document) { var items = document.querySelectorAll('#tv_list>ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href.replace('get', 'goodsDetailBuy'); var price = items[i].querySelector('.product_show_right_price').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //lifevc pagerParser[220] = function (document) { return pagerParser.template('.productPic', 'a.proPic', '.productPrice'); }; //kzj365 pagerParser[222] = function (document) { var items = document.querySelectorAll('.goodsItem>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //kaola pagerParser[223] = function (document) { return pagerParser.template('#result>li', 'a', '.cur'); }; //ymatou pagerParser[224] = function (document) { return pagerParser.template('#product-list >li', 'a.product-img', '.price'); }; //metao pagerParser[225] = function (document) { if (document.querySelectorAll('.special-ul').length) { return pagerParser.template('.special-ul>li', 'a', '.s-product-sale-price'); } var items = document.querySelectorAll('.prod-list.prod-cols3-list:first-child>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //kjt pagerParser[226] = function (document) { return pagerParser.template('.prolist.listhover>li', '.img a', '.price.price16'); }; //logitech pagerParser[227] = function (document) { return pagerParser.template('.productList-list-ul>li', '.p-img a', '.price>strong'); }; //amazon_us pagerParser[228] = pagerParser[1]; //amazon_jp pagerParser[229] = pagerParser[1]; //xiji pagerParser[232] = function (document) { return pagerParser.template('.gallery-grid ul>li', 'a', '.goods-price ins.price'); }; //nike pagerParser[233] = function (document) { return pagerParser.template('.grid-item', '.grid-item-image a', '.prices>.local'); }; //360kad pagerParser[234] = function (document) { return pagerParser.template('.Productlist>li', '.pic>a', '.pri'); }; //lbxcn pagerParser[235] = function (document) { return pagerParser.template('.search_cholist>ul>li', '.ucol_p_img>a', '.ucol_p_wod span:nth-child(1)'); }; //meici pagerParser[236] = function (document) { return pagerParser.template('#product-list>ul>li', 'a', '.product_p .c_purple, .product_p .product_active'); }; //beibei pagerParser[237] = function (document) { var items = document.querySelectorAll('.view-ItemListItem'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = [items[i].querySelector('.price-int').textContent.trim(), items[i].querySelector('.price-decimal').textContent.trim()].join(''); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //6pm pagerParser[238] = function (document) { // return pagerParser.template('#searchResults>a','','.price-6pm') var items = document.querySelectorAll('#searchResults>a'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].href; var price = items[i].querySelector('.price-6pm').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //shopbop pagerParser[241] = function (document) { return pagerParser.template('.product-list>ul>li', 'a.photo', '.retail-price'); }; //amazon_de pagerParser[246] = function (document) { var r = []; var items = document.querySelectorAll('.s-result-item'); for (var i = 0; i < items.length; ++i) { try { var img = items[i].querySelector('.s-access-image'); while (!img.parentNode.href && img.parentNode != document.body) { img = img.parentNode; } if (img.parentNode == document.body) { continue; } var href = img.parentNode.href; var price = items[i].querySelector('div>.a-spacing-mini>.a-spacing-none>a>span'); if (!price) { price = items[i].querySelector('span.a-color-price'); } r.push({ 'url': href, 'price': pagerParser.priceFormatter(price.textContent, ',', '.', 246), 'crc32': '' }); } catch (e) { continue; } } return r; }; //ashford pagerParser[247] = function (document) { return pagerParser.template('.automaticScrollProductsList>div', 'a', '.product-price'); }; //lookfantastic pagerParser[248] = function (document) { return pagerParser.template('#divSearchResults>div>div', '.product-image>a:first-child', '.item_price'); }; //vsigo pagerParser[252] = function (document) { return pagerParser.template('.search_lst>ul>li', '.Npro_img>a', '.sigoprice'); }; //100yue pagerParser[256] = function (document) { return pagerParser.template('.cont-gd>li', 'a', '.new-price>span:first-child'); }; //amazon_uk pagerParser[266] = function (document) { return pagerParser.template('#resultsCol ul.s-result-list>li', 'a.a-link-normal', '.a-color-price'); }; //daling pagerParser[267] = function (document) { return pagerParser.template('.searchlist>ul>li', 'a', '.now-price'); }; //fengqu pagerParser[268] = function (document) { return pagerParser.template('.product-1-list>li', 'a', 'strong'); }; //mei pagerParser[269] = function (document) { return pagerParser.template('#contentDiv>div.listproduct', 'a', 'span.red'); }; //showjoy pagerParser[270] = function (document) { return pagerParser.template('.widget-brick-item', '.brick-pic', '.price'); }; //ocj pagerParser[271] = function (document) { if (document.querySelectorAll('.pv_shop_list_content.normal_list').length) { return pagerParser.template('.pv_shop_list_content>div.item1', 'a', '.price>em'); } return pagerParser.template('.item1', '.image a', '.price>em'); }; //sundan pagerParser[272] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic>a', '.price'); }; //easeeyes pagerParser[273] = function (document) { return pagerParser.template('.itemSearchResult.box-items-result>ul>li', '.images a', '.price>strong'); }; //yunhou pagerParser[274] = function (document) { return pagerParser.template('.goods-lists>div', 'a.goods-img', '.p-normal'); }; //haituncun pagerParser[275] = function (document) { return pagerParser.template('.products-grid>li', 'a.product-image', '.regular-price'); }; //walmart pagerParser[276] = function (document) { return pagerParser.template('#tile-container>div', '.js-product-title', '.price-display'); }; //vmei pagerParser[277] = function (document) { return pagerParser.template('.product_list.product_list_v2>ul>li', '.pic', '.price>strong'); }; //51din pagerParser[279] = function (document) { return pagerParser.template('#result>ul', 'a.img_figure', '.boutique_price'); }; //aidai pagerParser[280] = function (document) { var items = document.querySelectorAll('#proNum>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a[href^="/Pro"]').href; var price = items[i].querySelector('.proprice'); price = price.childNodes[price.childNodes.length - 1].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //boqii pagerParser[281] = function (document) { return pagerParser.template('.product_list>li', 'a', 'strong[id^="priceat"]'); }; //spider pagerParser[284] = function (document) { if (document.querySelectorAll('.rsltAll').length) { return pagerParser.template('.rsltAll>ul>li', 'a', '.red2'); } if (document.querySelectorAll('.produclb_cp1').length) { return pagerParser.template('.produclb_cp>.produclb_cp1', 'a', '.font14_red'); } //http://www.spider.com.cn/461970-323-100120.html return pagerParser.template('.prstgdlist>li', 'a', '.f18'); }; //jiae pagerParser[286] = function (document) { return pagerParser.template('.j-item-list-li', '.a-pic', '.item-price'); }; //zazhipu pagerParser[287] = function (document) { return pagerParser.template('#itemList>li', 'a', '.mod_price:first-child'); }; //xgdq pagerParser[288] = function (document) { return pagerParser.template('#gallery_show ul>li', 'a', '.goods-price ins'); }; //xtep pagerParser[289] = function (document) { var doc = document.querySelector('iframe#m').contentWindow.document; var items = doc.querySelectorAll('.pro_list>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.pro_img').href; var price = items[i].querySelector('.pro_price>span>b').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //midea pagerParser[290] = function (document) { return pagerParser.template('.hproduct', 'a', '.price>em'); }; //staples pagerParser[291] = function (document) { return pagerParser.template('.cg_mainContent>div.cg_pro', 'a', '.pro_price>strong'); }; //efotile pagerParser[292] = function (document) { return pagerParser.template('.result>ul>li', 'a', '.item-price'); }; //lovo pagerParser[294] = function (document) { return pagerParser.template('.prolistitems', '.ad-image-wrapper a', 'big.jiacu'); }; //hua pagerParser[295] = function (document) { return pagerParser.template('.grid-item', '.img-box a', '.price-num'); }; //tuhu pagerParser[299] = function (document) { return pagerParser.template('.List tr', 'a.DisplayName', '.price>strong'); }; //taqu pagerParser[313] = function (document) { return pagerParser.template('.p-list>li.p-item', '.p-pic a', '.p-price-current'); }; //bl pagerParser[347] = function (document) { return pagerParser.template('.pro-class>li', '.pro-img>a', '.money-fl'); }; //bestinfoods pagerParser[348] = function (document) { return pagerParser.template('.items-gallery', 'a', '.price1'); }; //163 pagerParser[349] = function (document) { return pagerParser.template('#j-searchList>li', '.hd>a', '.price>span'); }; //guojimami pagerParser[351] = function (document) { return pagerParser.template('.gmg', 'a', '.shop_prices'); }; //baiyangwang pagerParser[352] = function (document) { return pagerParser.template('.g-d-ul>li', '.pic', 'span[id^="JgoodsPrice"]'); }; //tao3c /* pagerParser[111] = function(document) { return pagerParser.merge( pagerParser.slice.call(document.querySelectorAll('#plist a>img')) .map(function(v){ return v.parentNode.href }) , pagerParser.slice.call(document.querySelectorAll('#plist .pd4>span')) .map(function(v) {return v.textContent }) ) } */ //feifei pagerParser[181] = function (document) { var items = document.querySelectorAll('.sku-ul>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('a').href; var price = items[i].querySelector('.wsl-price.j-wsl-price').childNodes[0].textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //purcotton pagerParser[364] = function (document) { var items = document.querySelectorAll('#productResultList>li'); var r = []; var MallPath = 'http://www.purcotton.com'; for (var i = 0; i < items.length; ++i) { try { var a = items[i].querySelector('a[onclick^="toDetail"]'); var prodNo = a.getAttribute('onclick').match(/[\d-]+/)[0]; var number = prodNo.substr(prodNo.length - 3); var href = MallPath + "/detail/" + number + "/" + prodNo + ".html"; var price = items[i].querySelector('.aprice').textContent; r.push({ 'url': href, 'price': pagerParser.priceFormatter(price), 'crc32': '' }); } catch (e) { continue; } } return r; }; //amazon_fr pagerParser[365] = function (document) { var items = document.querySelectorAll('#s-results-list-atf>li'); var r = []; for (var i = 0; i < items.length; ++i) { try { var href = items[i].querySelector('.a-link-normal').href; var price = items[i].querySelector('.a-color-price').textContent.trim(); r.push({ 'url': href, 'price': pagerParser.priceFormatter(price, ',', '.'), 'crc32': '' }); } catch (e) { continue; } } return r; }; //amazon_ca pagerParser[366] = pagerParser[1]; //wstx pagerParser[367] = function (document) { return pagerParser.template('.goods-item', '.figure-img>a', '.price>b'); }; //hisense pagerParser[368] = function (document) { return pagerParser.template('.product-list>ul>li', 'a', '.price>.red'); }; //zhongjiu pagerParser[369] = function (document) { return pagerParser.template('.list-h>li', '.p-img>a', '.p-price>strong'); }; //kaluli pagerParser[370] = function (document) { return pagerParser.template('.p-l-grid>ul>li', 'a', '.price .red'); }; //to8to pagerParser[371] = function (document) { return pagerParser.template('#goodsList:first-child>li', 'a', '.cur_pric .pri_msg .f_arial'); }; //opposhop pagerParser[372] = function (document) { return pagerParser.template('.grid-special>.box', 'a', '.box-price strong'); }; //baobeigezi pagerParser[373] = function (document) { return pagerParser.template('#main_list > .pro_item', '.pro_infor_img', '.pro_price'); }; //yao123 pagerParser[374] = function (document) { return pagerParser.template('.product-list>ul>li', '.items>a:nth-child(1)', '.opr'); }; //gionee pagerParser[376] = function (document) { return pagerParser.template('ul#JmobileList>li', 'a.ui_pimg', '.ui_pprice'); }; //suanjuzi pagerParser[377] = function (document) { return pagerParser.template('#gallery_show ul>li', '.goods-pic>a', 'ins.price'); }; //aomygod pagerParser[378] = function (document) { return pagerParser.template('.goods-lists>div', 'a.goods-img', '.goods-price>.p-normal'); }; //luolai pagerParser[379] = function (document) { return pagerParser.template('.gallery-grid>ul>li', '.goods-pic>a', 'ins.price'); }; //vivo pagerParser[380] = function (document) { return pagerParser.template('.prod-list>li', 'a', 'p'); }; //dixintong pagerParser[381] = function (document) { return pagerParser.template('.GoodsList>li', 'a', '.goodsprice>span'); }; //coolpad pagerParser[382] = function (document) { return pagerParser.template('.goods-ul-box li', 'a', '.price'); }; //skg pagerParser[383] = function (document) { return pagerParser.template('.goods_list.clearfix>li', 'a.gimg', 'p.gprice'); }; //aolaigo pagerParser[385] = function (document) { return pagerParser.template('.pro>ul>li', 'dl>dd:nth-child(1)>a', '.valc-n>span:nth-child(2)'); }; module.exports = pagerParser; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "b8226e22112290600083": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime) { var _this = this; var getCoupon = __webpack_require__("2eb8d6935e044e0d6d06"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); 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__("aac0839f8078e3c8248c").init(globalData, '.gwd-minibar-bg'); } else if (!G.runminiCoup) { G.runminiCoupon2 = true; $(document).on('runminiCoupon2', function () { __webpack_require__("aac0839f8078e3c8248c").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) < 0) continue; if (Number(lastP) < minPriceObj[type] && lastP > 0) { 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) < 0) continue; 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "b99206afdb5411c58b0e": /***/ (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}}" /***/ }), /***/ "ba004501820aed46ea98": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \n\n" /***/ }), /***/ "babca2a4632382485f5f": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "be3ebc245c70ce8744cc": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "c05bbcb58c86deadc879": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, ".gwd-coupon-bar[data-v-3fdd510a] {\n font-family: \"Microsoft YaHei\", \"Arial\", \"SimSun\", serif;\n font-size: 12px;\n background: white;\n position: relative;\n border: 1px solid #e8e8e8;\n border-top: none;\n width: 462px;\n box-sizing: border-box;\n height: 38px;\n}\n.gwd-coupon-bar .gwd-round-click[data-v-3fdd510a] {\n margin-left: 24px;\n margin-right: 12px;\n display: block;\n width: 68px;\n height: 20px;\n text-align: center;\n border-radius: 12px;\n color: white;\n font-weight: bold;\n}\n.gwd-coupon-bar .gwd-take[data-v-3fdd510a] {\n margin-right: 12px;\n width: 74px;\n height: 20px;\n font-size: 12px;\n}\n.gwd-coupon-bar .gwd-take span[data-v-3fdd510a] {\n flex: 1;\n text-align: center;\n}\n.gwd-coupon-bar .gwd-qr-hover-window[data-v-3fdd510a] {\n width: 136px;\n height: 160px;\n background: #fff9f6;\n position: absolute;\n box-sizing: border-box;\n border-width: 1px;\n border-style: solid;\n top: 37px;\n left: 345px;\n display: none;\n z-index: 99;\n}\n.gwd-coupon-bar[data-v-3fdd510a]:hover {\n text-decoration: none;\n}\n.gwd-coupon-bar:hover .gwd-qr-hover-window[data-v-3fdd510a] {\n display: flex;\n}\n", ""]); // exports /***/ }), /***/ "c094100594c9871487c2": /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n
    \n \n \n \n \n
    \n
    \n \n {{data.trendMsg}}\n
    \n
    \n
    \n
    \n
    \n \n
    \n
    \n 每日成交行情\n 房源历史报价\n \n

    扫码关注撸房价

    \n
    \n
    \n {{if data.maxPrice == data.minPrice}}\n 现价:{{data.maxPrice}}万\n {{else}}\n 最高价:{{data.maxPrice}}万\n 最低价:{{data.minPrice}}万\n {{/if}}\n
    \n
    \n
    " /***/ }), /***/ "c0cdeb31ce8267dc3f97": /***/ (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
    " /***/ }), /***/ "c129828bb87b012afcd6": /***/ (function(module, exports) { module.exports = "
    \n 访问异常\n
    \n 去验证\n
    \n
    \n" /***/ }), /***/ "c17a6432d05d6c46edd5": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__PddActivityQr_vue_vue_type_template_id_984546bc_scoped_true___ = __webpack_require__("0d422131ba03d315b596"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__PddActivityQr_vue_vue_type_script_lang_js___ = __webpack_require__("c93b98f87f58a7165cac"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__PddActivityQr_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__PddActivityQr_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__PddActivityQr_vue_vue_type_style_index_0_id_984546bc_scoped_true_lang_less___ = __webpack_require__("2b7dc049f5da0912d4f2"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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__PddActivityQr_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__PddActivityQr_vue_vue_type_template_id_984546bc_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__PddActivityQr_vue_vue_type_template_id_984546bc_scoped_true___["b" /* staticRenderFns */], false, null, "984546bc", 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('984546bc')) { api.createRecord('984546bc', component.options) } else { api.reload('984546bc', component.options) } module.hot.accept("./PddActivityQr.vue?vue&type=template&id=984546bc&scoped=true&", function () { api.rerender('984546bc', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/PddActivityQr.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "c285b98bebfd87c77a38": /***/ (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_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less___ = __webpack_require__("62fe80c9218a9dbf937f"); /* 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_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_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_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_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_CommonCouponBarMini_vue_vue_type_style_index_0_id_3fdd510a_scoped_true_lang_less____default.a); /***/ }), /***/ "c34de72f35aa6a6171dd": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _assetsPddQrLqPng = __webpack_require__("8c07915b3c5bbc30a2f4"); var _assetsPddQrLqPng2 = _interopRequireDefault(_assetsPddQrLqPng); var _assetsPddQr19Png = __webpack_require__("b6a175f435f78f280146"); var _assetsPddQr19Png2 = _interopRequireDefault(_assetsPddQr19Png); exports['default'] = { props: ['needMouseOver', 'rnd'], computed: { text: function text() { return this.rnd > 0.5 ? '先领券   再下单' : '全场1.9元低价包邮'; }, qr: function qr() { return this.rnd > 0.5 ? _assetsPddQrLqPng2['default'] : _assetsPddQr19Png2['default']; } } }; module.exports = exports['default']; /***/ }), /***/ "c354d994acb241e7d167": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \n" /***/ }), /***/ "ca8c3a1f86734e6b67fb": /***/ (function(module, exports) { module.exports = "
    \n \n \n
    " /***/ }), /***/ "cae84e5667e41452a15d": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var specialFilter = __webpack_require__("ce5673fceec6522bf6f5"); var calWidth = __webpack_require__("54be372a53153922dc13"); var replaceHref = __webpack_require__("dba9674cb89e2f226ce4"); 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__("b8226e22112290600083").init(mm.tmall.product, 'tmall'); __webpack_require__("b8226e22112290600083").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__("afa666c4e2290bb1c92b"); 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(); $('#' + 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__("cc7594b9ffd3b3e00faf"); 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__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); 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__("ff881c8b15091819a13e").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__("cc45d932d8dbdb86f2f3"); msg = buildTaobaoUrl.buildCommon(msg); if (G.btype == 'luyou') { callback(msg); return; } __webpack_require__("75d41ad7d5a1bceb52d2").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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "caeb48377dbdbfe42966": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {//添加基本的参数配置和函数 var protocol = location.protocol === 'https:' ? 'https:' : 'http:'; G.extend({ /** 接口请求的服务器端地址 */ server: 'https://browser.gwdang.com', /** 购物党网站地址 */ c_server: 'https://www.gwdang.com', /** 静态文件地址 */ s_server: protocol + '//cdn.gwdang.com', v_server: 'http://v.gwdang.com', u_server: 'https://u.gwdang.com', u_server2: 'https://u.gwdang.com', //避免冲突 u_house: protocol + '//api.lufangjia.com', tj_server: protocol + '//v.gwdang.com', specialUnion: protocol + "//u.smartlinkclick.com/union/go/", img_server: 'http://f67dfe7ee7e63.cdn.sohucs.com', img64_server: 'http://645568b71d6b6.cdn.sohucs.com', product_keyword: protocol + '//keyword.gwdang.com', toMobileUrl: protocol + '//m.gwdang.com', imgHost: 'https://cdn.gwdang.com/images/', noImg: protocol + '//cdn.gwdang.com/images/extensions/gwd-noimg.png', imgLoad: protocol + '//cdn.gwdang.com/images/extensions/newbar/120.gif', u_key: 'gwdang', dval: '#tbsb-notifiers', mbar: 'gwdang-main', wishdom: 'bjd_plt_bg', wishdom2: 'gwd_wishlist_div', p_k: 'pingluntuan12345', domain: 'browser' }); if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1 || location.host.indexOf('1688') > -1) { var str = 'abcdefghijklmnopqrstuvwxyz'; var str2 = '#'; for (var i = 0; i < 8; i++) { str2 += str[parseInt(Math.random() * 26)]; } G.dval = str2; G.wishdom = str2.replace('#', '') + '_bg'; var browserName = navigator.userAgent.toLowerCase(); var safari = /webkit/i.test(browserName) && !(/chrome/i.test(browserName) && /webkit/i.test(browserName) && /mozilla/i.test(browserName)); if (browserName.indexOf('maxthon') > -1 || browserName.indexOf('2345explorer') > -1 || safari) { G.wishdom2 = 'max_gwd_wishlist_div'; G.mbar = 'max_gwdang-main'; } } /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cb0906562effcf1b0e6c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var request = __webpack_require__("91f250ebeb8d5987491c"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); 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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cc45d932d8dbdb86f2f3": /***/ (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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "cc7594b9ffd3b3e00faf": /***/ (function(module, exports) { module.exports = "
    \n
    \n
    \n 第 \n 1\n 页,共 \n {{pages}}\n 页\n
    \n
    \n \n
    \n 查看全部结果>\n \n
    \n \n
    \n
    \n
    \n " /***/ }), /***/ "ccd952a0cd9003e1d392": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $) { var _this = this; 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__("91f250ebeb8d5987491c"); var cachedRes = {}; var process = function process(list) { var result; return regeneratorRuntime.async(function process$(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.post(G.server + '/extension/CouponMulti', { ids: list.join(','), site_id: 3 }, true, false)); case 2: result = context$1$0.sent; render(result); cachedRes = _extends({}, result, cachedRes); case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; var render = function render(result) { Object.keys(result).map(function (key) { if (result[key]) { var d = result[key]; if ($('li[data-sku=' + key + '] .p-img .search_coupon_tip').length) { return; } $('li[data-sku=' + key + '] .p-img').append('\n ¥' + d.coupon + ' 优惠券\n '); } }); }; module.exports.init = function callee$0$0() { var list, url, dom; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: list = $('ul.gl-warp li.gl-item').toArray().map(function (item) { return item.dataset.sku; }); process(list); url = location.href; dom = $('#J_main')[0]; if (dom) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: dom.addEventListener('DOMSubtreeModified', function () { var newList = $('ul.gl-warp li.gl-item').toArray().map(function (item) { return item.dataset.sku; }); newList = newList.filter(function (x) { return list.indexOf(x) === -1; }); if (newList.length > 0) { console.log(newList); process(newList); list = list.concat(newList); } else if (location.href !== url) { setTimeout(function () { render(cachedRes); }, 1000); } url = location.href; }, false); case 7: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "cceeed893387dc9fce45": /***/ (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__("9c38beef5ff283e15bd2"); 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__("077190fa6c9d23369f6d"); case 17: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "cd213fe85ccdbbfd4f71": /***/ (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__("7d0cec30e0ac9c2cd304"); /* 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"]; }); /***/ }), /***/ "cde79cb5670e8bdeb4fb": /***/ (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; }; /***/ }), /***/ "ce5673fceec6522bf6f5": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); 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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "ce95798c8fdc497ef7dd": /***/ (function(module, exports) { module.exports = "
    \n

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

    \n 点击验证\n \n \n
    " /***/ }), /***/ "cf06668231ef5128ea91": /***/ (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_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less___ = __webpack_require__("8c93e61de275d04e62e7"); /* 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_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_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_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_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_LongCoupon_vue_vue_type_style_index_0_id_5ccff421_scoped_true_lang_less____default.a); /***/ }), /***/ "cf8f469df8ae6c96f344": /***/ (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__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "d090c1e762d2e495b00c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($) { var log = __webpack_require__("03dd60018ce5ed1344a1"); var sitePattern = { 'cart\\.jd\\.com/addToCart\\.html': 'addcart_success_page:360buy', 'cart\\.gome\\.com\\.cn/addsuccess': 'addcart_success_page:gome', 'shopping\\.suning\\.com/addToCart\\.do': 'addcart_success_page:suning', 'cart\\.jd\\.com/cart\\.action': 'cart_page_visit:360buy', 'shopping\\.suning\\.com/cart\\.do': 'cart_page_visit:suning', 'cart\\.gome\\.com\\.cn/shopping': 'orderwrite_page_visit:gome', 'cart\\.gome\\.com\\.cn': 'cart_page_visit:gome', 'cart\\.taobao\\.com/cart\\.htm': 'cart_page_visit:tmall', 'cart\\.tmall\\.com': 'cart_page_visit:tmall', 'trade\\.jd\\.com/shopping/order/getOrderInfo\\.action': 'orderwrite_page_visit:360buy', 'shopping\\.suning\\.com/order\\.do': 'orderwrite_page_visit:suning', 'buy\\.tmall\\.com/order/confirm_order\\.htm': 'orderwrite_page_visit:tmall', 'buy\\.tmall\\.com/order/confirmOrder\\.htm': 'orderwrite_page_visit:tmall', 'cashier\\.jd\\.com': 'ordersuccess_page_visit:360buy', 'payment\\.suning\\.com': 'ordersuccess_page_visit:suning', 'gpay\\.gome\\.com\\.cn/cashier/default\\.dhtml': 'ordersuccess_page_visit:gome', 'cashierzth\\.alipay\\.com': 'ordersuccess_page_visit:tmall', 'cashierzui\\.alipay\\.com': 'ordersuccess_page_visit:tmall', 'vip\\.jd\\.com': 'vip_page_visit:360buy', 'vip\\.suning\\.com': 'vip_page_visit:suning', 'v\\.gome\\.com\\.cn': 'vip_page_visit:gome', 'vip\\.tmall\\.com': 'vip_page_visit:tmall' }; var whiteList = ['jd', 'suning', 'taobao', 'tmall', 'gome']; /*收藏事件dom*/ var collectEventDicts = { '360buy': '#choose-btn-coll', 'gome': '#collect', 'suning': '#inerestBox', 'tmall': '#J_AddFavorite' }; var getInfo = function getInfo(site) { var type = __webpack_require__("5e05e6f5fe79ccf5d009").isProductPage(document.referrer); type = type ? 'product' : 'other'; var href = location.href; for (var pattern in sitePattern) { if (href.match(new RegExp(pattern))) { log(type + sitePattern[pattern]); return; } } }; var collectProduct = function collectProduct(site) { if (!collectEventDicts[site]) return; $(collectEventDicts[site]).on('click', function () { log('click:collection_click:' + site); }); }; module.exports.init = function () { getInfo(); for (var i = 0; i < whiteList.length; i++) { if (location.host.indexOf(whiteList[i]) > -1) { var site = whiteList[i]; if (site === 'jd') site = '360buy'; collectProduct(site); return; } } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "d0bc5d0317e34c96fd68": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "d0be176400e0cbc97f82": /***/ (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__("a53850c80a1cfefa4efa"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); // 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__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d0de61a729123238553b": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, Highcharts, $, Vue, regeneratorRuntime) {var __WEBPACK_AMD_DEFINE_RESULT__; var _this = this; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { var today = new Date(); var chart = undefined; var viewTest = __webpack_require__("f6ab27a2ba363b04ef1f"); var parsePrice = __webpack_require__("cb0906562effcf1b0e6c"); var getMidDay = __webpack_require__("f86fbf95570d4916afe7"); var $ = __webpack_require__("e081b2491b5c9b12b9da"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var util = __webpack_require__("d54879e983a83d07f093"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var chartBox = '#biggraph_' + G.from_device; var oneDay = 3600 * 24 * 1000; var needFold = false; var foldValue = undefined; // 折叠后的原价线Y轴坐标 var foldChange = undefined; // Y轴坐标与实际原价之差 var coudanSeries = undefined; var toolTipDom = undefined, moneyInfo = undefined; var discountInfo = {}, discountInfo2 = {}; var nopuzzlePpromo = undefined, lowHighInfoObj = {}, hideCoudanManage = {}; var noTbTrend = undefined; var halfYearExist = false; // highcharts的tooltip并没有消失时的onHide选项,给它加上 Highcharts.wrap(Highcharts.Tooltip.prototype, 'hide', function (proceed) { proceed && proceed.apply && proceed.apply(this); this.chart.tooltip.options.onHide && this.chart.tooltip.options.onHide.apply && this.chart.tooltip.options.onHide.apply(this); }); var currentSymbol = { folded: 'smallRect', extended: 'rect' }; if (G.IE7 || G.IE8) { currentSymbol.folded = 'circle'; currentSymbol.extended = 'circle'; } var currentShowing = 'plotAll'; var showingCenter = false; // 控制商城的显示 var showingManager = (function () { var showList = []; return { inList: function inList(name) { return showList.indexOf(name) > -1; }, add: function add(name) { if (showList.indexOf(name) > -1) { return; } else { showList.push(name); } }, remove: function remove(name) { var pos = showList.indexOf(name); if (pos > -1) { showList.splice(pos, 1); } }, clear: function clear() { showList = []; } }; })(); // 用于为商城分配颜色 var generateColorForStore = (function () { var colorList = {}; colorList['评论数'] = '#ca60a6'; var availableColors = ['#5ACFFB', '#eb46eb', '#ffad06', '#21c1db', '#b88ae6', '#b37036', '#b9db0f', '#ffd91c']; var i = 0; return function (storeName) { if (colorList[storeName]) { return colorList[storeName]; } else { if (i < availableColors.length) { colorList[storeName] = availableColors[i++]; return colorList[storeName]; } else { colorList[storeName] = '#' + parseInt(Math.random() * 256 * 256 * 256).toString(16); return colorList[storeName]; } } }; })(); // qrcode log var doLog = (function () { var hasLogged = false; return function () { if (!hasLogged) { hasLogged = true; cnzz.log('trend-qrcode-show'); log('trend-qrcode-show'); } }; })(); var copy = function copy(origin) { return JSON.parse(JSON.stringify(origin)); }; var originPrice = 0; var showHour = false; var store = undefined; var currentTime = undefined; var originData = undefined; var currentLineShowing = undefined; var plotWidth = undefined; originPrice = __webpack_require__("5632ccfc7463a4bc9012"); // 原始的价格数据大多是一天一个数据的,但是如果数据点过少,鼠标滑动时就会有卡顿感,因此绘制走势图时需要增大数据点的数目 // 填充好数据后,由于走势图上的点是连续的,和原始数据并不一致 // 例如3天的价格分别为1、2、3,走势图上第一天和第二天之间的数据为1.5,但是实际上并不存在这个价格,鼠标移到该位置时在tooltip中应该显示为1 // 此函数用于从实际走势图中的位置找到对应的原始价格 var getNearestPriceFromOriginData = function getNearestPriceFromOriginData(name, price, position, time) { var store = originData.store.filter(function (i) { return i.name === name; })[0]; if (store == undefined) { return price; } var arr = store[currentLineShowing]; if (!arr) { return price; } if (!store.all_equal_short && currentLineShowing !== 'short_day_line' && time) { var firstDay = undefined, days = undefined; switch (currentLineShowing) { case 'all_line': firstDay = store.all_line_begin_time; break; case 'half_year_line': firstDay = store.half_year_line_time; break; case 'month_line': firstDay = store.month_line_time; break; } firstDay = new Date(firstDay - 8 * 3600000); firstDay = new Date(firstDay.getYear() + 1900, firstDay.getMonth(), firstDay.getDate()); days = time - firstDay.getTime(); return arr[parseInt(days / oneDay)]; } //return arr[diff.indexOf(minVal)]; var intPos = parseInt(arr.length * position - 1); if (intPos < 0) { intPos += 1; } var toSelect = undefined; if (intPos >= 1) { toSelect = [arr[intPos - 1], arr[intPos], arr[intPos + 1]]; } else { toSelect = [arr[intPos], arr[intPos + 1]]; } toSelect = toSelect.filter(function (x) { return x !== undefined; }); var diff = toSelect.map(function (i) { return Math.abs(i - price); }); var p = diff.indexOf(Math.min.apply(null, diff)); return toSelect[p]; }; var mousePosition = { x: 0, y: 0 }; Highcharts.setOptions({ global: { timezoneOffset: 8 } }); // Highcharts选项 var obj = { chart: { renderTo: 'plotArea_' + G.from_device, type: 'line', animation: false, marginRight: 290, marginLeft: 70, events: { load: function load() { var firstSeries = this.series[0]; var pointStart = this.xAxis[0].max - oneDay * 5; if (firstSeries.options.pointStart > pointStart) { pointStart = firstSeries.options.pointStart; } var waterMarkSrc = showingCenter ? 'https://cdn.gwdang.com/images/extensions/logoMarkBigCenter@2x.png' : 'https://cdn.gwdang.com/images/extensions/logoMarkBigTop@2x.png'; var img = this.renderer.image(waterMarkSrc, '50%', this.xAxis[0].top + 45, showingCenter ? 210 : 300, showingCenter ? 64 : 91); img.add(); if (showingCenter) { img.attr({ transform: 'translate(-105, 0)' }); } else { img.attr({ transform: 'translate(-150, 0)' }); } var series = this.series; // 让一个外部变量可访问,方便控制显示隐藏 if (series && series[1] && series[1].name === '凑单到手价') { coudanSeries = series[1]; } plotWidth = this.plotWidth; var theData = series[0].data; // theData.forEach((i) => { // if (i.y !== originPrice) { // originSeriesShouldShow = true; // } // }); var days = 0; switch (currentShowing) { case 'plotYear': days = 180; break; case 'plotMonth': days = 30; break; case 'plot5Day': days = 5; break; } if (currentShowing !== 'plotAll' && !showingCenter) { this.xAxis[0].update({ min: currentTime - days * oneDay, max: currentTime }); } var currentShowingSeries = series.filter(function (item) { return item.visible && item.name !== 'max' && item.name !== 'min'; }); if (currentShowingSeries.length === 0) { return; } var arr = currentShowingSeries.map(function (i) { return i.options.pointStart; }).filter(function (i) { return i; }); var minStart = Math.min.apply(null, arr); if (currentShowing !== 'plotAll' && !showingCenter) { minStart = currentTime - days * oneDay; } for (var i = 0; i < series.length; i++) { if (series[i].data.length) { theData = series[i].data; break; } } var lastPoint = theData[theData.length - 1]; this.xAxis[0].update({ min: minStart, max: lastPoint ? lastPoint.x : today.getTime() }); var lmin = undefined, lmax = undefined; lmin = Math.floor(this.yAxis[0].dataMin); lmax = Math.ceil(this.yAxis[0].dataMax); var interv2 = Math.pow(10, lmin.toString().length - 2); var tkinterv = undefined; if (this.yAxis[0].dataMax < 1) { lmin = this.yAxis[0].dataMin; lmax = this.yAxis[0].dataMax; tkinterv = (lmax - lmin) / 2; } else if (this.yAxis[0].dataMin === this.yAxis[0].dataMax) { lmin = Math.floor(lmin / interv2) * interv2; lmax = lmin * 2; lmin = 0; tkinterv = parseInt((lmax - lmin) / 2); } else { lmin = Math.floor(lmin / interv2) * interv2; lmax = Math.ceil(lmax / interv2) * interv2; tkinterv = parseInt((lmax - lmin) / 5); } // 调整最大最小值 使曲线看起来分布均匀 var tkinterv2 = Math.pow(10, parseInt(tkinterv).toString().length - 1); if (tkinterv < 1) { tkinterv2 = tkinterv; } tkinterv = Math.ceil(tkinterv / tkinterv2) * tkinterv2; this.yAxis[0].update({ min: lmin, max: lmax, tickInterval: tkinterv || 1 }); // if (this.yAxis.length > 1) { // if (this.yAxis[0].dataMin == this.yAxis[0].dataMax) { // let interv = parseInt(this.yAxis[0].dataMin * 0.2); // if (interv > 100) { // interv = Math.round(interv / 100) * 100 // } // this.yAxis[0].update({ // min: parseInt(this.yAxis[0].dataMin * 0.5), // max: parseInt(this.yAxis[0].dataMin * 1.5), // tickInterval: interv // }); // } // this.yAxis[1].update({ // min: this.yAxis[1].dataMin, // max: this.yAxis[1].dataMax, // tickInterval: parseInt(this.yAxis[1].dataMax / 5) || 1 // }); // this.xAxis[0].update({ // min: this.series[1].data[0].category // }); // } } } }, credits: { enabled: false }, title: { text: null, style: { fontWeight: 'bold', fontFamily: 'Microsoft YaHei', fontSize: 16 } }, xAxis: { offset: 0, type: 'datetime', dateTimeLabelFormats: { minute: '%m/%d', hour: '%m/%d', day: '%m/%d', week: '%m/%d', month: '%y/%m' }, crosshair: { dashStyle: 'ShortDash', snap: false, zIndex: 999, color: '#444' }, minorGridLineColor: '#dfdfdf', labels: { rotation: 0, y: 30, style: { fontSize: '12px', fontFamily: 'Helvetica', color: '#969899' }, align: 'center' }, gridLineColor: '#e6e9eb', lineColor: '#e6e9eb', gridLineWidth: 1, tickLength: 0, minTickInterval: oneDay, startOnTick: false, tickPositioner: function tickPositioner() { var positions = []; var min = this.min; var max = this.max; var minDate = new Date(min); var tick = 0; var mode = undefined; var months = 1; if (max - min > 300 * oneDay) { var s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2); tick = s.getTime(); var widthPerMonth = plotWidth / ((max - min) / (30 * oneDay)); while (months * widthPerMonth < 100) { months++; } mode = 'nmonth'; } else if (max - min > 64 * oneDay) { var s = new Date(1900 + minDate.getYear(), minDate.getMonth() + 1, 2); tick = s.getTime(); mode = 'month'; } else if (max - min > 10 * oneDay) { tick = min; mode = 'day'; } else { var s = new Date(1900 + minDate.getYear(), minDate.getMonth(), minDate.getDate() + 1); tick = s.getTime(); mode = 'hour'; } while (tick - 3600000 * 15 <= max) { positions.push(tick - 3600000 * 15); switch (mode) { case 'month': var s = new Date(tick); var s1 = new Date(1900 + s.getYear(), s.getMonth() + 1, 2); tick = s1.getTime(); break; case 'day': tick += 5 * oneDay; break; case 'hour': tick += oneDay; break; case 'nmonth': s = new Date(tick); s1 = new Date(1900 + s.getYear(), s.getMonth() + months, 2); tick = s1.getTime(); break; } } if (showingCenter) { var i = 0; while (positions[i] < this.min) i++; positions = [positions[i], positions[positions.length - 1]]; } switch (mode) { case 'month': case 'nmonth': positions.info = { unitName: 'month', higherRanks: {} }; break; default: positions.info = { unitName: 'day', higherRanks: {} }; } // positions.forEach((i) => { // // }); return positions; } }, yAxis: { offset: 0, labels: { align: 'right', style: { fontSize: '12px', fontFamily: 'Helvetica', color: '#969899' }, formatter: function formatter() { var valStr = undefined; if (!needFold || this.value < foldValue) { valStr = Highcharts.numberFormat(this.value, 2); } else { valStr = Highcharts.numberFormat(this.value + foldChange, 2); } // if (valStr[valStr.length - 1] === '.') { // valStr += '00'; // } valStr = valStr.replace(',', ''); if (Number(valStr) > 9999) { valStr = Number(valStr); } else if (Number(valStr) > 10) { valStr = parseInt(valStr); } var min = this.axis.tickPositions[0]; if (this.axis.tickInterval === 1 && min === parseInt(min)) { valStr = valStr.toString().replace('.00', ''); } // let valNum = Number(valStr.replace(/,/g, '')) // if (valNum/100000 > 1) { // valStr = valNum/10000 + '万' // } return valStr; } }, align: 'high', gridLineColor: '#e6e9eb', minorGridLineWidth: 0, title: { text: null, rotation: 0, y: -20, x: -13, align: 'high', offset: 0, style: { fontFamily: 'Microsoft YaHei', fontSize: 12, color: '#969899' } } }, legend: { enabled: false }, plotOptions: { series: { turboThreshold: 0, states: { hover: { enabled: true, halo: { size: 0 } } }, marker: { enabled: false }, dataGrouping: { enabled: false }, animation: false }, line: { states: { hover: { enabled: true, lineWidth: 1 } } } }, tooltip: { shadow: false, shared: true, valueSuffix: '元', hideDelay: 0, shape: 'square', followPointer: false, dateTimeLabelFormats: { day: '%Y/%m/%e', minute: '%Y/%m/%e', second: '%Y/%m/%e', hour: '%Y/%m/%e %H:%M' }, useHTML: true, positioner: function positioner(boxWidth, boxHeight, point) { if (point.plotX + boxWidth > this.chart.plotWidth + 12) { return { x: point.plotX - boxWidth + this.chart.plotLeft, y: this.chart.plotHeight / 2 - boxHeight / 2 + 45 }; } return { x: point.plotX + this.chart.plotLeft, y: this.chart.plotHeight / 2 - boxHeight / 2 + 45 }; }, onHide: function onHide() { renderTooltip('hide'); }, formatter: function formatter() { var tipObj = {}; tipObj.x = this.x; var x = new Date(this.x - 3600000 * 8); var year = x.getFullYear(); var month = x.getMonth() + 1; var day = x.getDate(); var hour = x.getHours(); var hasdiscount = undefined; if (month < 10) month = '0' + month; if (day < 10) day = '0' + day; //showHour = true; var timeStr = year + '/' + month + '/' + day + (showHour ? ' ' + hour + ':00' : ''); tipObj.time = timeStr.replace(/\//g, '.'); var result1 = ""; var filtered = this.points.sort(function (a, b) { var s = getNearestPriceFromOriginData(b.series.name, b.y, (b.point.index + 1) / b.series.data.length, b.x - 8 * 3600000) - getNearestPriceFromOriginData(a.series.name, a.y, (a.point.index + 1) / a.series.data.length, b.x - 8 * 3600000); return s; }).filter(function (item) { if (item.series.name === 'max' || item.series.name === 'min') { return false; } return true; }); if (filtered.length === 0) { return false; } filtered.forEach(function (i, index) { var showName = i.point.series.name; var showPrice = getNearestPriceFromOriginData(showName, i.point.y, (i.point.index + 1) / i.point.series.data.length, i.point.x - 8 * 3600000); showPrice = Highcharts.numberFormat(showPrice, 2); if (showPrice[showPrice.length - 1] === '.') { showPrice += '00'; } if (showName == '页面价') { tipObj.pagePrice = showPrice.replace(/,/g, ''); } else if (showName == '凑单到手价') { tipObj.addpro = showPrice.replace(/,/g, ''); } if (showName === "凑单到手价" && i.y === filtered[0].y && i.y === Number(tipObj.pagePrice)) { result1 += ""; } else { if (showName === "凑单到手价") hasdiscount = true; } }); if (hasdiscount) { var promoObj = discountInfo[(this.points[0].x - 3600000 * 19).toString()]; var promotion = promoObj && promoObj["promotion"] || ""; var quan = promoObj && promoObj["coupon"] && promoObj["coupon"].replace("领券:", ""); var promoStr = ""; if (quan) { if (quan.match(/\d+-\d+/)) { var quanarr = quan.split('-'); promoStr += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { promoStr += '券: ' + quan + ' '; } } if (promotion) { promoStr += '促: ' + promotion; } tipObj.promo1 = promoStr; } if (noTbTrend) { var time = util.getTimeNumber(new Date().getTime(), '5'); // 不用highchart默认的tooltip 使用自定义的 if (timeStr === time) { renderTooltip(null, tipObj); } else { renderTooltip('hide'); } } else { renderTooltip(null, tipObj); } return; }, backgroundColor: 'rgba(255,255,255,0.94)', borderColor: '#d5d5d5', borderWidth: 1, style: { padding: 0 } }, series: [] }; if (G.IE7 || G.IE8) { obj.tooltip.style = { width: '400px' }; } var getEarlistDay = function getEarlistDay(store) { if (!store.length) { return false; } if (store.length === 1) { return store[0].all_line_begin_time; } return store.reduce(function (prev, next) { if (typeof prev == 'number') { return Math.min(prev, next.all_line_begin_time); } else { return Math.min(prev.all_line_begin_time, next.all_line_begin_time); } }); }; var seriesList = { plotAll: [], plotYear: [], plotMonth: [], plot5Day: [], plotSpecial: [], days180: [] }; var setXAxisMinInterval = function setXAxisMinInterval(x) { obj.xAxis.minTickInterval = x; }; var qrlogged = false; var showSeries = function showSeries(series, isCenter, obj, minibar) { if (isCenter === undefined) isCenter = false; if (!seriesList[series] || !seriesList[series].length) { var k = Object.keys(seriesList).filter(function (x) { return seriesList[x].length; }); series = k[0]; } $('#gwd-topText').hide(); $('.gwd-blurLayer').removeClass('gwd-blurLayer'); var series2 = series; showingCenter = isCenter; if (hideCoudanManage && hideCoudanManage[series]) { $('#mini_price_history_detail_btn').addClass('no-review'); $('.discount-price-re').hide(); $('#bar_trend_legend_btn').addClass('no-review'); } else if (hideCoudanManage) { $('#mini_price_history_detail_btn').removeClass('no-review'); $('.discount-price-re').show(); $('#bar_trend_legend_btn').removeClass('no-review'); } if (series === 'center') { series = 'plotAll'; } if (series !== 'days180') { // 加载概况 最高最低等信息 renderBarTrendInfo(series); } obj.series = seriesList[series]; if (series === 'days180') series = 'plotAll'; $('.floatButtons>a').removeClass('activePlot'); $('.floatButtons>#' + series).addClass('activePlot'); //new Highcharts.Chart(obj); var theSeries = seriesList[series2]; if (series === 'plot5Day') { setXAxisMinInterval(oneDay); showHour = true; currentLineShowing = 'short_day_line'; } else { showHour = false; } if (series === 'plotMonth') { setXAxisMinInterval(5 * oneDay); currentLineShowing = 'month_line'; } $('.gwd-not-login').removeClass('gwd-not-login'); if (series === 'plotAll') { if (minibar) { obj.chart.marginBottom = 23; } var dayLength = Math.max.apply(null, theSeries.map(function (i) { return i.data.length; })); if (!G.email) { // $('.max-min-priinfo').addClass('gwd-not-login') $('.barTrendInfoBox').addClass('gwd-not-login'); } else { $('.gwd-not-login').removeClass('gwd-not-login'); } //在非淘宝天猫网站上,如果全部的时间超过180天,需要登陆 if (store[0].half_year_line) { halfYearExist = true; } if (G.site !== 'tmall' && G.site !== 'taobao' && halfYearExist) { if (theSeries[0].pointStart < new Date().getTime() - 180 * 24 * 3600000 && !G.email) { (function () { $('#gwd-topText').show(); if (__webpack_require__("2517c4f5c89f34233e53").getChromeVersion() < 53) { $('#gwd-topText').css('background', 'white'); } var LoginBox = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-trend-login', render: function render(h) { return h(LoginBox); } }); $('#plotArea_' + G.from_device).addClass('gwd-blurLayer'); })(); } } if (dayLength > 30) { setXAxisMinInterval(30 * oneDay); } else if (dayLength > 5) { setXAxisMinInterval(5 * oneDay); } else { setXAxisMinInterval(oneDay); } currentLineShowing = 'all_line'; if (store[0].all_equal_short || store[0].all_line.length < 5 && store.length == 1) { currentLineShowing = 'short_day_line'; showHour = true; if (store[0].all_line.length < 5 && store.length == 1) { obj.series[0].pointStart = today.getTime() + 8 * 3600000 - (store[0].all_line.length - 1) * oneDay; } } } if (series === 'plotYear') { setXAxisMinInterval(30 * oneDay); currentLineShowing = 'half_year_line'; } if (isCenter) { //currentShowing = 'center'; } else { currentShowing = series; } chart = new Highcharts.Chart(obj); window.gwd_chart = chart; if (isCenter) { var s = chart.series[0].data; var lastPoint = s[s.length - 1]; if (chart.series.length > 1) { s = chart.series[1].data; if (s[s.length - 1].plotX === lastPoint.plotX && s[s.length - 1].plotY !== lastPoint.plotY) { lastPoint = s[s.length - 1]; } } globalCondition.setMet('lastPointPos', lastPoint); } }; var enablePlot = function enablePlot(plotName) { $('.floatButtons>' + plotName).removeClass('bjd-hidden'); }; var doBind = function doBind() { $('.floatButtons').on('click', 'a', function (e) { showSeries(e.target.id, false, util.deepCopy(obj)); }); }; var doMainBind = function doMainBind() { var hidecoudanBar = undefined; $('#bar_trend_legend_btn').on('click', function (e) { var id = $(e.target).attr('data-id'); if (!id) id = $(e.target).parent().attr('data-id'); if (id === 'plotSpecial') { if (!hidecoudanBar) { hidecoudanBar = true; coudanSeries.hide(); $('#bar_trend_legend_btn').addClass('hideserires'); } else { coudanSeries.show(); hidecoudanBar = false; $('#bar_trend_legend_btn').removeClass('hideserires'); } } }); }; var doMiniBind = function doMiniBind() { var hidecoudan = undefined; $('#mini_price_history_detail_btn').on('click', function (e) { var id = $(e.target).attr('data-id'); if (!id) id = $(e.target).parent().attr('data-id'); if (id === 'plotSpecial') { if (!hidecoudan) { hidecoudan = true; coudanSeries.hide(); $('#mini_price_history_detail_btn').addClass('hideserires'); } else { coudanSeries.show(); hidecoudan = false; $('#mini_price_history_detail_btn').removeClass('hideserires'); } } }); }; var resetData = function resetData(i) { return { y: i, marker: { enabled: false } }; }; // 加载价格走势最高最低信息 var renderBarTrendInfo = function renderBarTrendInfo(series) { var showcoudan = undefined; var obj1 = lowHighInfoObj[series + '0']; if (!obj1) { obj1 = Object.keys(lowHighInfoObj)[0]; obj1 = lowHighInfoObj[obj1]; } if (typeof obj1.lowestDate === 'number') obj1.lowestDate = util.getTimeNumber(obj1.lowestDate); var obj2 = lowHighInfoObj[series + '1']; if (obj2) { if (obj2.Plowest < obj1.Plowest) showcoudan = true; if (typeof obj2.lowestDate === 'number') obj2.lowestDate = util.getTimeNumber(obj2.lowestDate); if (moneyInfo) { obj2.display_nowprice = obj2.nowprice ? moneyInfo[0] + obj2.nowprice : obj2.nowprice; obj2.display_Phighest = obj2.Phighest ? moneyInfo[0] + obj2.Phighest : obj2.Phighest; obj2.display_Plowest = obj2.Plowest ? moneyInfo[0] + obj2.Plowest : obj2.Plowest; } else { obj2.display_nowprice = '¥' + obj2.nowprice; obj2.display_Phighest = '¥' + obj2.Phighest; obj2.display_Plowest = '¥' + obj2.Plowest; } } if (moneyInfo) { obj1.display_nowprice = obj1.nowprice ? moneyInfo[0] + obj1.nowprice : obj1.nowprice; obj1.display_Phighest = obj1.Phighest ? moneyInfo[0] + obj1.Phighest : obj1.Phighest; obj1.display_Plowest = obj1.Plowest ? moneyInfo[0] + obj1.Plowest : obj1.Plowest; } else { obj1.display_nowprice = '¥' + obj1.nowprice; obj1.display_Phighest = '¥' + obj1.Phighest; obj1.display_Plowest = '¥' + obj1.Plowest; } var html = __webpack_require__("3879e534af5afa81bdf4"); $('.barTrendInfoBox').remove(); var lowtle = '最低(单   件):'; if (G.aliSite) { lowtle = '最低:'; } else if (!hideCoudanManage || !obj2) { lowtle = '最低(单件):'; } var oinfo = userData.get('other_info'); var dp_id = oinfo && oinfo.now && oinfo.now.dp_id; var promoUrl = undefined; if (dp_id) { promoUrl = 'https://www.gwdang.com/trend/' + dp_id + '.html?static=true'; } if (obj1 && obj2 && obj1.Plowest === obj2.Plowest && obj1.lowestDate === obj2.lowestDate) { obj2 = null; } if (!G.h_nopuzzle_promo) { promoUrl = null; } $('#gwdang-pri-trend-chart').append(template.compile(html)({ d1: obj1, d2: obj2, aliSite: G.aliSite, promoUrl: promoUrl, lowtle: lowtle, showcoudan: showcoudan })); globalCondition.setMet('promoUrl', promoUrl); setTimeout(function () { // 为了上下对齐, 需要手动计算一次上面的距离给下面 var ppiW = $('#gwdang-trend-detail .opi-sp1').outerWidth() + $('#gwdang-trend-detail .opi-sp2').outerWidth(); $('#gwdang-trend-detail .ppi-sp1').width(Math.ceil(ppiW) + 2); }, 100); }; var getLowestDate2 = function getLowestDate2(ki, data) { var store = data.store[ki]; if (ki === 1) { var origin_st = data.store[0].all_line; if (store.all_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotAll', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo); if (store.half_year_line && store.half_year_line.length > 0) { if (ki === 1) { var origin_st = data.store[0].half_year_line; if (store.half_year_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotYear', ki, store.half_year_line, store.all_equal_short, store.half_year_line_time, data.promo); } var newStsize = store.all_line.length; if (newStsize > 180) { newStsize = store.all_line.length; var newSt = store.all_line.slice(newStsize - 180); if (ki === 1) { var origin_st = data.store[0].all_line.slice(newStsize - 180); if (newSt.join("") === origin_st.join("")) { return; } } var pointStart = store.all_line_begin_time + 86400000 * (newStsize - 180); getLowestDate('days180', ki, newSt, store.all_equal_short, pointStart, data.promo); } else { if (ki === 1) { var origin_st = data.store[0].all_line; if (store.all_line.join("") === origin_st.join("")) { return; } } getLowestDate('days180', ki, store.all_line, store.all_equal_short, store.all_line_begin_time, data.promo); } if (store.month_line && store.month_line.length > 0) { if (ki === 1) { var origin_st = data.store[0].month_line; if (store.month_line.join("") === origin_st.join("")) { return; } } getLowestDate('plotMonth', ki, store.month_line, store.all_equal_short, store.month_line_time, data.promo); } }; var getLowestDate = function getLowestDate(id, ki, newSt, all_equal_short, pointStart, promo) { // 计算最低最高点 以及最低点对应的时间 id = id + ki.toString(); lowHighInfoObj[id] = {}; var Plowest = undefined, Phighest = undefined; var lowestDate = undefined; var lowestPromo = undefined, lowestPromoPprice = undefined, lowestCoupon = undefined; Plowest = Math.min.apply(Math, newSt); Phighest = Math.max.apply(Math, newSt); var low_index = newSt.lastIndexOf(Plowest); var low_index2 = low_index; var point_interval = 86400000; if (all_equal_short) point_interval = 3600000; lowestDate = pointStart + point_interval * low_index; if (ki == 1) { for (var k = low_index2; k > 0; k--) { if (newSt[k] === newSt[low_index2]) { var str = (pointStart + point_interval * k - 3600000 * 8).toString(); if (Number(discountInfo2[str] && discountInfo2[str].price) == Plowest) { lowestDate = Number(str) + 3600000 * 8; break; } } } for (var i = 0; i < promo.length; i++) { // 获取最低点对应的促销活动 if (promo[i].time * 1000 === lowestDate - 3600000 * 8) { lowestPromo = promo[i].msg.promotion; lowestCoupon = promo[i].msg.coupon && promo[i].msg.coupon.replace("领券:", ""); lowestPromoPprice = (promo[i].ori_price / 100).toFixed(2); } } } lowHighInfoObj[id].lowestDate = lowestDate; lowHighInfoObj[id].Plowest = Number(Plowest).toFixed(2); lowHighInfoObj[id].Phighest = Number(Phighest).toFixed(2); if (lowHighInfoObj[id].Phighest === lowHighInfoObj[id].Plowest) { lowHighInfoObj[id].nowprice = lowHighInfoObj[id].Plowest; } if (lowestPromo || lowestCoupon) { var str = ''; str += '页面价' + lowestPromoPprice + '  '; if (lowestCoupon) { if (lowestCoupon.match(/\d+-\d+/)) { var quanarr = lowestCoupon.split('-'); str += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { str += '券: ' + lowestCoupon + ' '; } } if (lowestPromo) str = str + '促: ' + lowestPromo.replace(/,/g, ','); lowHighInfoObj[id].lowestPromo = str; lowHighInfoObj[id].lowestPromoPprice = lowestPromoPprice; } }; var pageLow = {}; // 在走势图上加label标签 var addSeriesDataLabels = function addSeriesDataLabels(data, nopuzzle_promo, key) { var addpromo = undefined; if (data.name === '页面价' && nopuzzle_promo) { addpromo = true; } var obj = { enabled: true, borderColor: '#f2f2f2', borderWidth: 1, padding: 3, backgroundColor: 'rgba(255, 255, 255, 0.7)', shadow: false, borderRadius: 2, style: { fontWeight: 'normal', fontFamily: 'Helvetica', fontSize: '13px' }, y: -3, formatter: function formatter() { return '¥' + this.y.toString().replace(',', ''); } }; var list = data.data; var lowestIndex = 0; var highestIndex = 0; var low = list[0].y || 9999999; var high = list[0].y || 0; var allNull = true; for (var i = 0; i < list.length; i++) { if (i != 0 && i != list.length - 1 && list[i].y) { allNull = false; } if (addpromo) { for (var j = 0; j < nopuzzle_promo.length; j++) { if (data.pointStart + data.pointInterval * i - 3600000 * 19 === nopuzzle_promo[j].time * 1000) { if (nopuzzle_promo[j].showCircle) { list[i].marker = { enabled: true, fillColor: '#fff', lineColor: '#5ACFFB', radius: 2.5, lineWidth: 1, symbol: "circle" }; } } } } if (list[i].y && list[i].y >= high) { high = list[i].y; highestIndex = i; } if (list[i].y && list[i].y <= low) { low = list[i].y; lowestIndex = i; } } if (data.name === '页面价') { pageLow[key] = list[lowestIndex].y; } if (allNull && data.name === '凑单到手价' && hideCoudanManage) { hideCoudanManage[key] = true; return; } if ((!list[lowestIndex - 1] || list[lowestIndex - 1].y === null) && (!list[lowestIndex + 1] || list[lowestIndex + 1].y === null)) { return; } if (data.name === '凑单到手价' && pageLow[key] === list[lowestIndex].y) { return; } if (highestIndex === lowestIndex) { obj.color = '#3FC0F0'; // list[highestIndex].dataLabels = obj; } else { obj.color = '#E4393C'; if (data.name === '页面价') { // list[highestIndex].dataLabels = obj; list[highestIndex].marker = { enabled: true, fillColor: 'rgba(228,57,60,1)', lineColor: 'rgba(228,57,60,0.3233)', radius: 2.5, lineWidth: 4, symbol: "circle" }; } var obj2 = JSON.parse(JSON.stringify(obj)); obj2.color = '#35BD68'; var fillColor = 'rgba(53,189,104,1)'; var lineColor = 'rgba(53,189,104,0.3233)'; if (data.name === '凑单到手价') { obj2.color = '#FFC06D'; fillColor = 'rgba(255,166,0,1)'; lineColor = 'rgba(255,166,0,0.3233)'; } // list[lowestIndex].dataLabels = obj2; list[lowestIndex].marker = { enabled: true, fillColor: fillColor, lineColor: lineColor, radius: 2.5, lineWidth: 4, symbol: "circle" }; } if (noTbTrend) { list[list.length - 1].marker = { enabled: true, fillColor: '#5ACFFB', radius: 2.5, lineWidth: 0, symbol: "circle" }; } }; var renderTooltip = function renderTooltip(ishide, data) { if (ishide) { $(toolTipDom).hide(); return; } $(toolTipDom).show(); if (data.addpro === data.pagePrice) data.addpro = null; if (nopuzzlePpromo) { for (var i = 0; i < nopuzzlePpromo.length; i++) { if (data.x - 3600000 * 19 === nopuzzlePpromo[i].time * 1000) { var str = ''; if (nopuzzlePpromo[i].msg.coupon) { var coupon = nopuzzlePpromo[i].msg.coupon; if (coupon.match(/\d+-\d+/)) { var quanarr = coupon.split('-'); str += '券: 满' + quanarr[0] + '减' + quanarr[1] + ' '; } else { str += '券: ' + coupon + ' '; } } if (nopuzzlePpromo[i].msg.promotion) { str = str + '促: ' + nopuzzlePpromo[i].msg.promotion + ' '; } data.directpro = (nopuzzlePpromo[i].price / 100).toFixed(2); data.promo2 = str; data.pagePrice = (nopuzzlePpromo[i].ori_price / 100).toFixed(2); } } } var html = __webpack_require__("f310ed98be534b8c4bd0"); if (toolTipDom !== '#big_tooltip') { html = __webpack_require__("2b14a6ec322d5724c6b1"); } var domclass = ''; if (data.directpro) domclass += 'directpro '; if (data.addpro) domclass += 'addpro '; if (data.addpro || data.directpro) { $(toolTipDom).addClass('bigheight'); } else { $(toolTipDom).removeClass('bigheight'); } if (moneyInfo) { var np = parsePrice(data.pagePrice, moneyInfo[2]); data.pagePrice = moneyInfo[0] + data.pagePrice + ('(¥' + np + ')'); } else { data.pagePrice = '¥' + data.pagePrice; } $(toolTipDom).empty().append(template.compile(html)({ data: data, domclass: domclass, aliSite: false })); }; // 两条线相同点部分去掉 避免重叠造成颜色污染 var sliceData = function sliceData(data) { for (var pattern in data) { if (data[pattern].length && data[pattern].length > 1 && data[pattern][1].name === "凑单到手价") { var size = data[pattern][0].data.length; for (var i = 2; i < size; i++) { var a1 = data[pattern][0].data; var a2 = data[pattern][1].data; if (a1[i].y === a2[i].y && a1[i - 1].y === a2[i - 1].y && (a1[i - 2].y === a2[i - 2].y || a2[i - 2].y === null)) { a2[i - 1].y = null; } } } } }; exports = { init: function init(data) { var currentPage = arguments.length <= 1 || arguments[1] === undefined ? 'dpPage' : arguments[1]; var target = arguments.length <= 2 || arguments[2] === undefined ? false : arguments[2]; var plotLinesHideStatus = arguments.length <= 3 || arguments[3] === undefined ? false : arguments[3]; var renderMiniTrendInfo, biggraphState, renderMiniTrend; return regeneratorRuntime.async(function init$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: // 评论走势 //renderReviewData(data) currentShowing = 'plotAll'; seriesList = { plotAll: [], plotYear: [], plotMonth: [], plot5Day: [], plotSpecial: [], days180: [] }; originPrice = 0; renderMiniTrendInfo = undefined; // 加载货币配置 获取当前网站货币符号 moneyInfo = countryConfig.getMoneyInfo(G.logsite); if (data.taobaoNoTrend) noTbTrend = true; if (!(data.store && data.store[0] && data.store[0].all_line.length === 0)) { context$2$0.next = 8; break; } return context$2$0.abrupt('return'); case 8: $('body').append('
    '); $(chartBox).append(template.compile(viewTest)({ extBrand: G.extBrand, from_device: G.from_device, s_server: G.s_server })); biggraphState = ''; doBind(); if (target) { $(target).append($(chartBox)); } // 顶部 $('#' + G.extName + '-trend').hover(function () { toolTipDom = '#big_tooltip_top'; obj.chart.marginRight = 30; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; if (moneyInfo) { obj.yAxis.title.text = moneyInfo[1]; obj.yAxis.title.y = 176; } var num = parseInt(lowHighInfoObj['plotAll0'].Phighest).toString().length; obj.chart.marginLeft = 29 + 9 + parseInt(num * 6.8); obj.yAxis.labels.x = -9; obj.yAxis.title.x = -(9 + parseInt(num * 6.8) - 24); $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); if (biggraphState === 'trend') return; var chartArea = $('#' + G.extName + '-pri-trend-chart'); chartArea.append($(chartBox)); biggraphState = 'trend'; $('.floatButtons').show(); $('#bjd-qrcode-trend').show(); if ($('#bjd-qrcode-trend').length) { doLog(); } $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { var width1 = $('.floatButtons').width(); $('#bar_trend_legend_btn').css('right', width1 + 50 + 'px'); showSeries(currentShowing, false, util.deepCopy(obj)); var width = $('#' + G.extName + '-pri-trend-chart').width(); chart.setSize(width, 182); plotWidth = chart.plotWidth; chart.axes[0].update(obj.xAxis); $(chartBox).css({ visibility: 'visible' }); doMainBind(); }, 0); }); renderMiniTrend = function renderMiniTrend(detail) { toolTipDom = '#big_tooltip'; var lowest_obj = lowHighInfoObj['days1800']; var lowest_obj2 = undefined, lowestDate = undefined, lowestDate2 = undefined; if (data.store[1] && data.store[1].name === '凑单到手价') { lowest_obj2 = lowHighInfoObj['days1801']; lowestDate2 = lowest_obj2 && lowest_obj2.lowestDate; lowestDate2 = lowestDate2 && util.getTimeNumber(lowestDate2); } lowestDate = lowest_obj.lowestDate; if (G.aliSite && data.lowestTime) lowestDate = new Date(data.lowestTime).getTime(); lowestDate = lowestDate - 3600000 * 8; lowestDate = util.getTimeNumber(lowestDate); if (!renderMiniTrendInfo) { var oinfo = userData.get('other_info'); var dp_id = oinfo && oinfo.now && oinfo.now.dp_id; var promoUrl = undefined; if (dp_id) { promoUrl = 'https://www.gwdang.com/trend/' + dp_id + '.html?static=true'; } var infohtml = __webpack_require__("b99206afdb5411c58b0e"); var lowtle = '最低(单   件):'; if (G.aliSite) { lowtle = '最低:'; } else if (!hideCoudanManage || !lowestDate2) { lowtle = '最低(单件):'; } if (lowest_obj && lowest_obj2 && lowest_obj.Plowest === lowest_obj2.Plowest && lowest_obj.lowestDate === lowest_obj2.lowestDate) { lowest_obj2 = null; } if (!G.h_nopuzzle_promo) { promoUrl = null; } if ($('.orign-pri-info').length) { $('.orign-pri-info').remove(); } if ($('.mini-share-product').length) { $('.mini-share-product').remove(); $('#mini-share-btn').remove(); } $('.max-min-priinfo').append(template.compile(infohtml)({ lowtle: lowtle, aliSite: G.aliSite, lowest_obj: lowest_obj, lowestDate: lowestDate, lowestDate2: lowestDate2, promoUrl: promoUrl, lowest_obj2: lowest_obj2, currency: moneyInfo ? moneyInfo[0] : '¥' })); globalCondition.setMet('promoUrl', promoUrl); // 分享商品 // require('shareProduct').init(data.price_status) if (!lowest_obj2) { $('#mini_price_history').removeClass('coudanpri'); } setTimeout(function () { var ppiW = $('.opi-sp1').outerWidth() + $('.opi-sp2').outerWidth(); $('.promo-pri-info .ppi-sp1').width(Math.ceil(ppiW) + 2); }, 100); renderMiniTrendInfo = true; } if (moneyInfo) { $('#mini_price_history .ht-mm-max').text(moneyInfo[0] + lowest_obj.Phighest); $('#mini_price_history .ht-mm-min').text(moneyInfo[0] + lowest_obj.Plowest); $('#big_tooltip').addClass('ht_tip'); } obj.title.x = 0; obj.chart.marginRight = 16; obj.chart.marginTop = 5; obj.yAxis.title.text = null; obj.xAxis.labels.y = 20; obj.yAxis.title.y = -26; if (moneyInfo) { obj.chart.marginTop = 4; var num = parseInt(lowest_obj.Phighest).toString().length; obj.chart.marginRight = 2; obj.chart.marginLeft = Math.ceil(num * 6.8 + 11); obj.chart.marginBottom = 24; // obj.yAxis.labels.x = -Math.ceil(num * 6.8 + 11); obj.yAxis.labels.x = -14; obj.yAxis.title.x = -(Math.ceil(num * 6.8 + 11) - 24); //25 title长度 obj.yAxis.title.text = moneyInfo[1]; // obj.yAxis.title.y = 162; obj.yAxis.title.y = -12; } else { var num = parseInt(lowest_obj.Phighest).toString().length; obj.chart.marginLeft = 16 + 14 + parseInt(num * 6.8); obj.yAxis.labels.x = -14; } if (lowest_obj.Phighest < 1) { obj.chart.marginLeft = 16 + 14 + parseInt(4 * 6.8); } if (G.site === 'amazon') { obj.chart.marginLeft = 50; } $('.floatButtons').hide(); $('#bjd-qrcode-trend').hide(); // yhd.com $('#detailPromotion').css({ zIndex: 0 }); $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); if (biggraphState === 'btn') return; $(detail).append($(chartBox)); doMiniBind(); biggraphState = 'btn'; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { originPrice = 0; // if (data.store[0].all_line.length > 31 && !data.store[0].all_equal_short) { // showSeries('plotMonth', true); // } else { // showSeries('plotAll', true); // } // debugger var toShow = 'days180'; if (store[0].all_line.length < 180) { toShow = currentShowing; } if (store[0].half_year_line) { halfYearExist = true; } showSeries(toShow, true, util.deepCopy(obj), true); var width1 = $('#bdext_mini_trendbox').width(); var height1 = 182; if (!width1) { width1 = 460; } // if (G.site == 'amazon' || G.site == '6pm') { // width1 = 402; // height1 = 172; // } if (width1 && width1 > 0) { chart.setSize(width1, height1, false); } $(chartBox).css({ visibility: 'visible' }); }, 25); }; // 中间 $('#mini_price_history').hover(function () { var doms = '#mini_price_history_detail_chart'; // if (G.site == 'amazon' || G.site == '6pm') { // doms = '#mini_ht_detail_chart' // } renderMiniTrend(doms); }); // yhd.com $('#mini_price_history_detail').mouseleave(function () { $('#detailPromotion').css({ zIndex: 15 }); }); // 底部 $('#gwd-trend').hover(function () { // obj.yAxis.title.text = foreignTitle if (biggraphState === 'gwd') return; obj.chart.marginRight = 60; obj.chart.marginBottom = 23; obj.chart.marginTop = 4; obj.xAxis.labels.y = 22; $(chartBox).css({ left: 0, top: 0, bottom: 0, right: 0 }); $('#gwd-trend-chart').append($(chartBox)); biggraphState = 'gwd'; $(chartBox).css({ visibility: 'hidden' }); window.setTimeout(function () { showSeries(currentShowing, false, util.deepCopy(obj)); chart.reflow(); $(chartBox).css({ visibility: 'visible' }); $('#gwd-trend-chart').show(); doMainBind(); }, 0); $('.floatButtons').show(); $('#bjd-qrcode-trend').show(); if ($('#bjd-qrcode-trend').length) { doLog(); } $('#bjd-qrcode-trend').css('bottom', '9px'); }); $('#plotArea_' + G.from_device).css({ maxWidth: document.body.clientWidth - 280 + 'px' }); $('#plotArea_' + G.from_device).mousemove(function (e) { mousePosition.x = e.pageX; mousePosition.y = e.pageY; }); $('#plotArea_' + G.from_device).click(function () { return false; }); if (data) { (function () { store = data.store; getLowestDate2(0, data); if (data.store[1] && data.store[1].name === "凑单到手价" && data.promo) { // 如果有凑单到手价同时有对应的促销活动 把促销活动信息给一个全局变量方便取用 for (var i = 0; i < data.promo.length; i++) { discountInfo[(data.promo[i].time * 1000).toString()] = data.promo[i].msg; discountInfo2[(data.promo[i].time * 1000).toString()] = { price: data.promo[i].price, info: data.promo[i].msg.promotion }; } // 计算最低最高价和时间 getLowestDate2(1, data); $(".discount-price-re").show(); $('#mini_price_history').addClass('coudanpri'); } else { hideCoudanManage = null; $('#bar_trend_legend_btn').addClass('no-review'); $('#mini_price_history_detail_btn').addClass('no-review'); } if (data.nopuzzle_promo) { G.h_nopuzzle_promo = true; } // if (G.aliSite) { // $('#bar_trend_legend_btn').remove() // $('#mini_price_history_detail_btn').addClass('aliSite') // } originData = data; var earlistDay = Math.min(data.store[0] && data.store[0].all_line_begin_time, getEarlistDay(store)); var currentDay = data.now_day; currentTime = data.now_day; var seriesConfig = [{ plot: 'plotAll', start: 'all_line_begin_time', minDay: 0.1, data: 'all_line' }, { plot: 'plotMonth', start: 'month_line_time', minDay: 30, data: 'month_line' }, { plot: 'plotYear', start: 'half_year_line_time', minDay: 0.1, data: 'half_year_line' }, { plot: 'days180', start: 'all_line_begin_time', minDay: 0.1, data: 'all_line' }]; enablePlot('#plotAll'); // if (store[0].name.indexOf('(当前)') === -1) { // store[0].name += '(当前)'; // } store[0].name = "页面价"; var storeLimit = 18; if (currentPage === 'zhidemai') { storeLimit = 1; } if (currentPage === 'priceHistory') { storeLimit = 20; } var allDays = parseInt((currentDay - earlistDay) / oneDay); for (var i = 0; i < Math.min(store.length, storeLimit); i++) { if (store[i].all_line.length === 0) continue; // if (store[i].promo && store[i].promo.length > 0) { // promotionData[store[i].name] = store[i].promo[0].desc; // } if (store[i].all_equal_short && store.length !== 1) { store[i].all_line = []; for (var j = 0; j < store[i].short_day_line.length; j += 24) { store[i].all_line.push(store[i].short_day_line[j]); } store[i].all_line_begin_time = data.now_day - 5 * oneDay; store[i].all_equal_short = false; } for (var k = 0; k < seriesConfig.length; k++) { var j = seriesConfig[k]; if (getMidDay(currentDay) - getMidDay(earlistDay) >= j.minDay * oneDay) { if (!store[i][j.data]) { continue; } if (j.start !== 'short_day_line_begin_time') { store[i][j.start] = getMidDay(store[i][j.start]); } if (store[i].all_equal_short && j.start === 'all_line_begin_time') { store[i][j.start] = store[i].short_day_line_begin_time; } enablePlot('#' + j.plot); var newSeries = { color: generateColorForStore(store[i].name), name: store[i].name, pointStart: store[i][j.start], pointInterval: oneDay, legendIndex: 1, connectNulls: false, lineWidth: 1, zIndex: 500 - i * 500 - 1, marker: { //symbol: 'rect', symbol: currentSymbol.extended, states: { hover: { enabled: false } } }, states: { hover: { enabled: false, halo: { size: 0 } } }, data: store[i][j.data] }; if (store[i].name === '凑单到手价') { newSeries.color = "#FFC06D"; } if (noTbTrend) { newSeries.dashStyle = "Dash"; } if (j.plot === 'plot5Day') { //newSeries.pointStart -= 5*oneDay; newSeries.pointInterval = 3600000; if (newSeries.pointInterval * newSeries.data.length + newSeries.pointStart > currentTime) { currentTime = newSeries.pointInterval * newSeries.data.length + newSeries.pointStart; } } if (j.plot === 'plotAll' && newSeries.data.length < 30) { newSeries.pointInterval = oneDay; setXAxisMinInterval(oneDay); } if ((j.plot === 'plotAll' || j.plot === 'days180') && store[i].all_equal_short) { if (i === 0) { newSeries.pointInterval = 3600000; //all_equal_short = true; } else { var s = new Date(newSeries.pointStart); var s2 = new Date(s.getYear() + 1900, s.getMonth(), s.getDate(), 8); newSeries.pointStart = s2.getTime(); newSeries.pointInterval = oneDay; var tmpData = []; for (var _i = 0; _i < newSeries.data.length; _i += 24) { tmpData.push(newSeries.data[_i]); } newSeries.data = tmpData; } } // 增大点的密度,使移动平滑 newSeries.addPointTimes = 1; while (newSeries.data && newSeries.data.length < 100) { if (j.plot === 'plotAll') { break; } var newData = []; for (var _k = 0; _k < newSeries.data.length; _k++) { newData.push(newSeries.data[_k]); if (_k + 1 === newSeries.data.length) break; newData.push(newSeries.data[_k]); } newSeries.data = newData; newSeries.pointInterval = newSeries.pointInterval / 2; newSeries.addPointTimes = newSeries.addPointTimes * 2; } newSeries.data = newSeries.data ? newSeries.data.map(resetData) : null; if (newSeries.data != null) { seriesList[j.plot].push(newSeries); } } } } if (seriesList['plotAll'].length === 1) { var series = seriesList['plotAll'][0]; series.data = series.data.map(function (i) { return i.y; }); while (series.data.length < 100) { var newData = []; for (var k = 0; k < series.data.length; k++) { newData.push(series.data[k]); if (k + 1 === series.data.length) break; newData.push(series.data[k]); } series.data = newData; series.pointInterval = series.pointInterval / 2; } series.data = series.data.map(function (i) { return { y: i, marker: { enabled: false } }; }); } // 和原始数据重合的点 去掉 sliceData(seriesList); if (!store[0].all_equal_short) { $('#plotAll').html('全部' + store[0].all_line.length + '天'); if (store[0].all_line.length > 180) { currentShowing = 'plotYear'; } } else { allDays++; $('#plotAll').html('全部(' + allDays + '天)'); } showingManager.clear(); // 默认显示原始价格和当前商品 if (originPrice && currentPage !== 'zhidemai') { showingManager.add('当前商城原始价格'); } showingManager.add(store[0].name); // data copy start var mergeSeries = function mergeSeries(a, b) { var bList = b.map(function (item) { return item.name; }); return a.map(function (item) { if (bList.indexOf(item.name) === -1) { return item; } else { var toMerge = b.filter(function (j) { return j.name === item.name; })[0]; var tmp = copy(item); tmp.data = toMerge.data; tmp.pointStart = toMerge.pointStart; tmp.pointInterval = toMerge.pointInterval; return tmp; } }); }; var fillSeries = function fillSeries(seriesList) { var pointIntervalList = seriesList.map(function (i) { return i.pointInterval; }); var minInterval = Math.min.apply(null, pointIntervalList); seriesList.forEach(function (series) { while (series.pointInterval > minInterval) { var newData = []; for (var i = 0; i < series.data.length; i++) { newData.push(series.data[i]); if (i + 1 === series.data.length) break; var newPoint = { marker: series.data[i].marker, y: (series.data[i + 1].y + series.data[i].y) / 2 }; newData.push(newPoint); } series.pointInterval = series.pointInterval / 2; series.data = newData; } }); }; ['plotMonth', 'plotYear'].forEach(function (i) { if (!$('#' + i).hasClass('bjd-hidden')) { var allSeries = seriesList['plotAll']; var thisSeries = seriesList[i]; var toAdd = mergeSeries(allSeries, thisSeries); seriesList[i] = toAdd; fillSeries(seriesList[i]); } }); fillSeries(seriesList['plotAll']); var days180_size = seriesList['days180'][0] && seriesList['days180'][0].data.length; if (days180_size && days180_size > 180) { for (var k = 0; k < seriesList['days180'].length; k++) { seriesList['days180'][k].data.splice(0, days180_size - 180); seriesList['days180'][k]['pointStart'] = seriesList['days180'][k]['pointStart'] + seriesList['days180'][k]['pointInterval'] * (days180_size - 180); } } for (var spattern in seriesList) { if (seriesList[spattern].length) { for (var di = 0; di < seriesList[spattern].length; di++) { addSeriesDataLabels(seriesList[spattern][di], data.nopuzzle_promo, spattern); nopuzzlePpromo = data.nopuzzle_promo; } } } // showSeries('plotAll', false, util.deepCopy(obj)); //chart.reflow(); })(); }; if (G.IE7 || G.IE8 || G.IE9 || G.IE10 || G.IE11) { $('#mini_price_history_detail_chart').css({ width: '460px' }); $('#mini_price_history_detail').css({ 'width': '569px' }); } if ((G.IE9 || G.IE10) && (G.site === 'vip' || G.site === 'vipshop')) { $('#mini_price_history_detail_chart').css({ width: '390px' }); } case 25: case 'end': return context$2$0.stop(); } }, null, _this); } }; 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("ff50e367dd130fa205e3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "d2d3ab541b56105275c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _QrErrorVue = __webpack_require__("d57cd728628c618acba9"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); var _GiftMoneyMixin = __webpack_require__("7bb864157b1329e994ad"); var _GiftMoneyMixin2 = _interopRequireDefault(_GiftMoneyMixin); var _standardModuleComponentsCommonCouponBarMini = __webpack_require__("bf749102803a6e48eddc"); var _standardModuleComponentsCommonCouponBarMini2 = _interopRequireDefault(_standardModuleComponentsCommonCouponBarMini); exports['default'] = { data: function data() { return { takeBg: __webpack_require__("99ca541843e26ba97e4b") }; }, name: "Subsidy", props: ['value', 'url', 'qr', 'id', 'price', 'tag'], components: { QrError: _QrErrorVue2['default'], CommonCouponBarMini: _standardModuleComponentsCommonCouponBarMini2['default'] }, mixins: [_GiftMoneyMixin2['default']], mounted: function mounted() { this.over(); } }; module.exports = exports['default']; /***/ }), /***/ "d36a74aa21bb110ae407": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, $, Vue) {// 京东礼金 var _this2 = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); 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__("9920f8981151f34ffc09").init('qr'); return context$1$0.abrupt('return'); case 6: context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").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__("9920f8981151f34ffc09").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__("9920f8981151f34ffc09").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__("83271c7588396d2d5e59").log('jdGiftMoney:show'); if (res._jump === 'qrcode') { __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:needScanQr'); __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:-needScanQr'); } else if (res._jump === 'link') { __webpack_require__("83271c7588396d2d5e59").log('jdGiftMoney:needClickLink'); } var GiftMoney = __webpack_require__("404ef3bf6016b988808a")['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__("28ca786b072dc40c7e4b")['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__("9920f8981151f34ffc09").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__("9920f8981151f34ffc09").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__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "d3d380331153e0305d39": /***/ (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
    " /***/ }), /***/ "d41b35f7ee52d5e46ec1": /***/ (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__("44e0d29f633dd5c5cbf0"); /* 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"]; }); /***/ }), /***/ "d4471c1ebb687e8949a5": /***/ (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__("4e366ddd2c78a7851cca"); /* 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); /***/ }), /***/ "d54879e983a83d07f093": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); 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__("91f250ebeb8d5987491c"); 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "d57cd728628c618acba9": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___ = __webpack_require__("823821d84de8e4f8adfd"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QrError_vue_vue_type_script_lang_js___ = __webpack_require__("5bf35efcba140cc610bb"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__QrError_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__QrError_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__QrError_vue_vue_type_style_index_0_id_29b33b2e_scoped_true_lang_less___ = __webpack_require__("48ec1ca75857b9f279ea"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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__QrError_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__QrError_vue_vue_type_template_id_29b33b2e_scoped_true___["b" /* staticRenderFns */], false, null, "29b33b2e", 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('29b33b2e')) { api.createRecord('29b33b2e', component.options) } else { api.reload('29b33b2e', component.options) } module.hot.accept("./QrError.vue?vue&type=template&id=29b33b2e&scoped=true&", function () { api.rerender('29b33b2e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/QrError.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "d71d6565d3ec2f523a79": /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "d7b8bdfd8cae885025eb": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___ = __webpack_require__("379c1f0148813ff54069"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLinkTaobaoLogin_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "d7eaa71b9b34f70e568b": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___ = __webpack_require__("33f1e3efa95059924094"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js____default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_0__node_modules_5_4_2_babel_loader_index_js_node_modules_1_0_3_if_loader_index_js_ref_4_1_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_LongCoupon_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "d8288de0519bc4245cd3": /***/ (function(module, exports) { module.exports = "
    \n

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

    \n 点击验证\n \n \n
    " /***/ }), /***/ "d82c9248d08dbd7e46d4": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var browsertype = __webpack_require__("1b62f754a85a57168a27"); var minibrowser = browsertype.getBrowser(); var globalObj = {}; var haslog = undefined; var renderInfo = function renderInfo(info) { if (!info) return; if (!G.site) return; if (haslog) return; if (info.type === 'user_extension_id') { haslog = true; __webpack_require__("03dd60018ce5ed1344a1")('browser_user:' + G.logsite + ':extType:' + getExtType()); } }; var getExtType = function getExtType() { var type = ''; if (G.from_device === 'default') type = minibrowser.utype;else type = G.from_device; return type; }; module.exports.init = function () { if (G.userid) { renderInfo({ type: 'user_extension_id' }); return; } communicate.trigger({ type: 'user_extension_id' }); communicate.on(function (info) { try { if (info && info.type === 'browser_setinfo') { if (info.value && info.value instanceof Object) { for (var p in info.value) { globalObj[p] = info.value[p]; } } } else if (info.type) { globalObj[info.type] = info.value; renderInfo(info); } } catch (e) {} }); }; module.exports.getInfo = function (type) { return globalObj[type]; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "d8451f9e6477c0bd7752": /***/ (function(module, exports) { module.exports = "" /***/ }), /***/ "d8d0a82c2d012f5f4a3d": /***/ (function(module, exports) { module.exports = "
    \n {{status_tle}}\n \n \n
    " /***/ }), /***/ "d98e58cfc5180294bd6a": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \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" /***/ }), /***/ "e3916f328c1834810f25": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, regeneratorRuntime) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var sendData = function sendData(data) { var toSend = __webpack_require__("61191ae0f0390d21295c").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, price: window.g_config.price, //promotion: window.g_config.promotion, soldQuantity: window.g_config.soldQuantity, couponActivity: window.g_config.couponActivity, 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "e3aad1ff685fc198354a": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var promoQuanDetail = __webpack_require__("aca67d8a24b79ee1f7e2"); var gwdAd = __webpack_require__("4aae9ae08bf571fe3b41"); var request = __webpack_require__("91f250ebeb8d5987491c"); var detect = __webpack_require__("60624e018be49fb2d959"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var style = undefined; var addEm = function addEm(data) { for (var i = 0; i < data.length; i++) { data[i].puretle = data[i].title; data[i].title = data[i].title.replace(/\b([0-9.]+)\b/g, '$1'); } return data; }; var addEvent = function addEvent() { var timer = undefined; var btn = $('#promo_quan_btn'), addC = "", detail = $('#promo_quan_detail'); if (style == 'bottom') { btn = $('#' + G.extBrand + '-hui'); addC = G.extBrand + '-compare-item-hover'; } btn.on('mouseenter', function () { detail.show(); btn.addClass('msHover'); btn.find('a').addClass(addC); var left = btn.offset().left - 1; if (detail.width() + left > $(window).width()) { detail.css('right', '0px'); } else { detail.css('left', parseInt(left) + 'px'); } }); btn.on('mouseleave', function () { timer = setTimeout(function () { detail.hide(); btn.removeClass('msHover'); btn.find('a').removeClass(addC); }, 100); }); detail.on('mouseenter', function () { clearTimeout(timer); }); detail.on('mouseleave', function () { detail.hide(); btn.removeClass('msHover'); btn.find('a').removeClass(addC); }); }; var renderDetailTop = function renderDetailTop(dom, data, now) { if (!now) now = { site_name: data.site_name }; var promo_site = now.site_name || data.site_name; var quan_site = now.site_name || data.site_name; var promo_url = data.promotion.url; var quan_url = data.quan && data.quan.url; if (!data.promotion.site_has_promo) { promo_site = "全网最新"; } if (data.promotion.promos.length == 1) { promo_url = data.promotion.promos[0].url; } if (data.quan && !data.quan.site_has_quan) { quan_site = "全网最受关注"; } $(dom).append(template.compile(promoQuanDetail)({ promo_site: promo_site, quan_site: quan_site, promos: addEm(data.promotion.promos.slice(0, 4)), promo_url: promo_url, quans: addEm(data.quan && data.quan.quans.slice(0, 4) || []), quan_url: quan_url, s_server: G.s_server, new_extension: G.new_extension, style: style })); addEvent(); }; var renderDetail = function renderDetail(now, data) { if (style == 'top') renderDetailTop('.gwd-topbar-left', data, now);else if (style == 'bottom') renderDetailTop(G.dval, data, now); }; var renderAd = function renderAd(data) { if (!data) return; if (data.promo.length === 0) return; var size = 1; if (data.promo.length === 1) size = 0; var promo = data.promo[size]; var html = __webpack_require__("84a72adcc1d619950ad4"); $('.detail_right').append(template.compile(html)({ item: promo })); $('.detail_right').show(); }; var renderBtnTop = function renderBtnTop() { var dom = '
    \n \n \n 促销优惠券\n \n
    '; if ($('.gwd-topbar-left').length > 0) { $('.gwd-topbar-left').append($(dom)); } else { $('#' + G.extName + '-main-contents').append($(dom)); } $('#promo_quan_btn').show(); __webpack_require__("1c640a99db9f6f8a16c2").autoFixWidth(); }; var renderBtnBottom = function renderBtnBottom() {}; var renderBtn = function renderBtn() { if (style == 'top') renderBtnTop();else if (style == 'bottom') renderBtnBottom(); }; var getPromoInfo = function getPromoInfo(obj, callback) { var url = G.server + '/extension?ac=promotion&site_id=' + obj.site_id + '&class_id=' + obj.class_id + '&style=' + style; request.get(url).done(function (data) { if (data) { callback(data); } }); }; // const renderZol = (obj, data) => { // gwdAd.init({ // class_id: obj.class_id, // keyword: obj.keyword // }, (msg) => { // if (msg.promo.length > 0) { // msg.promo[0].puretle = msg.promo[0].title; // data.promotion.promos = msg.promo.concat(data.promotion.promos); // } // let html = require('raw-loader!../views/zolpromo.html') // $('.wrapper .breadcrumb').eq(0).after(template.compile(html)({ // data: data.promotion.promos.slice(0, 3) // })) // }) // } module.exports.renderSearch = function () { if (G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1 || G.site == '1688') { $('#' + G.extBrand + '-hui').hide(); return; } var siteId = detect.getSiteId(G.site); if (!siteId) return; var obj = {}; obj.site_id = siteId; getPromoInfo(obj, function (msg) { renderDetail(null, msg); }); }; module.exports.init = function callee$0$0(data) { var d, code_info, cate, keyword, siteId, obj; 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__("9c38beef5ff283e15bd2").met('dp_query_latest_complete')); case 2: d = context$1$0.sent; if (!d.ingre) { context$1$0.next = 8; break; } context$1$0.next = 6; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('no_reviews')); case 6: context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('ingreComplete')); case 8: if (!(G.site.indexOf('taobao') > -1 || G.site.indexOf('tmall') > -1 || G.site == '1688')) { context$1$0.next = 11; break; } $('#' + G.extBrand + '-hui').hide(); return context$1$0.abrupt('return'); case 11: style = userData.get('permanent').style; renderBtn(); code_info = data['code-server']; cate = code_info && code_info.class_id; keyword = data.now.coreword; siteId = data.now.site_id; if (siteId === '0') siteId = detect.getSiteId(G.site); obj = {}; obj.keyword = keyword; obj.site_id = siteId; obj.class_id = data.now.class_id; obj.brand_id = data.exact_arr.brand_id; getPromoInfo(obj, function (msg) { renderDetail(data.now, msg); // if (G.site === 'zol') { // renderZol(obj, msg) // } gwdAd.init({ class_id: cate, keyword: keyword }, renderAd); }); case 24: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "e5d4b0822df9259af4c6": /***/ (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
    " /***/ }), /***/ "e6521b4ea881581e5851": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var priceCheck = __webpack_require__("8b533351445f44b98685"); var monitor = __webpack_require__("ae80362cd6a2d17c50a8"); var inventoryCheck = __webpack_require__("a53850c80a1cfefa4efa"); var tbCompare2 = __webpack_require__("a8d04aabebd76e8bb3f7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var loadCss = __webpack_require__("ada67488a8c93132fc1d"); var utils = __webpack_require__("d54879e983a83d07f093"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); __webpack_require__("fcdd97987c010877a5a5"); var perInfo = undefined, percallback = undefined, hasReq = undefined; var getPermanInfo = function getPermanInfo(callback) { if (perInfo) { callback(perInfo); return; } if (hasReq) { percallback = callback; return; } hasReq = true; var url = G.server + '/brwext/permanent_id?version=2&default_style=bottom&referrer=' + encodeURIComponent(document.referrer); request.get(url).then(function (data) { if (data) { perInfo = data; if (data.email && data.email.indexOf('%') > -1) { data.email = decodeURIComponent(data.email); } G.email = data.email; G.show_app = data.show_app; G.force = data.force; callback(data); if (percallback) percallback(data); } }); }; var editData = function editData(style, data) { if (G.aliSite) return data; if (data.b2c && data.b2c.length !== 0) { if (style === 'top') { var storeLen = data.b2c.store.length; for (var i = storeLen - 1; i >= 0; i--) { if (data.b2c.store[i].is_third && data.b2c.store[i].shop_name) { data.b2c.store[i].site_name2 = data.b2c.store[i].site_name; data.b2c.store[i].site_name = data.b2c.store[i].site_name.replace("第三方", "") + '-' + data.b2c.store[i].shop_name; } data.b2c.store[i].price = (Number(data.b2c.store[i].price) / 100).toFixed(2); data.b2c.store[i].price2 = data.b2c.store[i].price; if (!data.b2c.store[i].title || !data.b2c.store[i].img_url) { data.b2c.store.splice(i, 1); } } data.b2c.store2 = data.b2c.store.slice(0, 6); var productLen = data.b2c.product.length; for (var i = productLen - 1; i >= 0; i--) { if (data.b2c.product[i].is_third && data.b2c.product[i].shop_name) { data.b2c.product[i].site_name2 = data.b2c.product[i].site_name; data.b2c.product[i].site_name = data.b2c.product[i].site_name.replace("第三方", "") + '-' + data.b2c.product[i].shop_name; } var pitem = data.b2c.product[i]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } data.b2c.product[i].price = (Number(data.b2c.product[i].price) / 100).toFixed(2); if (!data.b2c.product[i].title || !data.b2c.product[i].img_url) { data.b2c.product.splice(i, 1); } } data.b2c.min_price = (Number(data.b2c.min_price) / 100).toFixed(2); } else { var storeLen = data.b2c.store.length; for (var i = storeLen - 1; i >= 0; i--) { if (!data.b2c.store[i].product) continue; var productiLen = data.b2c.store[i].product.length; for (var j = productiLen - 1; j >= 0; j--) { if (data.b2c.store[i].product[j].is_third && data.b2c.store[i].product[j].shop_name) { data.b2c.store[i].product[j].site_name2 = data.b2c.store[i].product[j].site_name; data.b2c.store[i].product[j].site_name = data.b2c.store[i].product[j].site_name.replace("第三方", "") + '-' + data.b2c.store[i].product[j].shop_name; } data.b2c.store[i].product[j].price = (Number(data.b2c.store[i].product[j].price) / 100).toFixed(2); data.b2c.store[i].product[j].l_price = (Number(data.b2c.store[i].product[j].l_price) / 100).toFixed(2); var pitem = data.b2c.store[i].product[j]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } if (!data.b2c.store[i].product[j].title || !data.b2c.store[i].product[j].img_url) { data.b2c.store[i].product.splice(j, 1); } } } } } else if (data.b2c_fuzzy && data.b2c_fuzzy.length !== 0) { var productLen = data.b2c_fuzzy.product.length; for (var i = productLen - 1; i >= 0; i--) { if (data.b2c_fuzzy.product[i].is_third && data.b2c_fuzzy.product[i].shop_name) { data.b2c_fuzzy.product[i].site_name2 = data.b2c_fuzzy.product[i].site_name; data.b2c_fuzzy.product[i].site_name = data.b2c_fuzzy.product[i].site_name.replace("第三方", "") + '-' + data.b2c_fuzzy.product[i].shop_name; } var pitem = data.b2c_fuzzy.product[i]; if (pitem.promotions && pitem.fee && pitem.fee.indexOf('缺货') === -1) { pitem.promo2 = []; pitem.coupon2 = []; pitem.yushou2 = []; for (var k = 0; k < pitem.promotions.length; k++) { if (pitem.promotions[k].type === "promo") { if (pitem.promotions[k].tag === '预售') { pitem.yushou2.push(pitem.promotions[k].text); } else { pitem.promo2.push(pitem.promotions[k].text); } } else { pitem.coupon2.push(pitem.promotions[k].text); } } if (pitem.promo2.length === 0) pitem.promo2 = null; if (pitem.coupon2.length === 0) pitem.coupon2 = null; if (pitem.yushou2.length === 0) pitem.yushou2 = null; } data.b2c_fuzzy.product[i].price = (Number(data.b2c_fuzzy.product[i].price) / 100).toFixed(2); data.b2c_fuzzy.product[i].img_url2 = data.b2c_fuzzy.product[i].img_url && data.b2c_fuzzy.product[i].img_url.replace('s100x100', 's140x140'); if (!data.b2c_fuzzy.product[i].title || !data.b2c_fuzzy.product[i].img_url) { data.b2c_fuzzy.product.splice(i, 1); } } data.b2c_fuzzy.min_price = (Number(data.b2c_fuzzy.min_price) / 100).toFixed(2); } return data; }; var times = 0; var renderMiniFavor = function renderMiniFavor() { times++; if (times > 1) { console.log('getPermanInfo B'); getPermanInfo(function () { // require('miniFavor').init() // require('topFavor').init() }); } }; var getProductInfo = function getProductInfo(style, callback) { console.log('getproductinfo start'); G.province_id = priceCheck.getSubStationId(G.dp.site); var debugData = G.debug ? '&debug=1' : ''; if (G.noRealPrice) { G.dp.price = 0; } G.dp.inventory = inventoryCheck.init(G.site); var url = encodeURIComponent(G.dp.url); var name = encodeURIComponent(G.dp.name); var keyword = encodeURIComponent(G.dp.keyword); var skeyword = encodeURIComponent(G.dp.skeyword); var cat_id = typeof G.dp.cat_id != 'undefined' ? G.dp.cat_id : ''; var pic = typeof G.dp.pic != 'undefined' ? encodeURIComponent(G.dp.pic) : ''; var cat_name = encodeURIComponent(G.dp.cat_name); var brand_string = encodeURIComponent(G.dp.brand_string); var dp_interfavce_url = G.server + '/brwext/dp_query_latest?permanent_id=' + G.p_id + '&union=' + G.union + '&url=' + url + '&site=' + G.dp.site + '&isbn=' + G.dp.isbn + '&name=' + name + '&keyword=' + keyword + '&skeyword=' + skeyword + '&id=' + G.dp.id + '&price=' + G.dp.price + '&stock=' + G.dp.inventory + '&province_id=' + G.province_id + '&subsite_id=' + G.subsite_id + '&cat_id=' + cat_id + '&pic=' + pic + '&userid=' + G.dp.userid + '&shop_name=' + G.dp.shop_name + '&shop_addres=' + G.dp.shop_addres + '&cat_name=' + cat_name + '&brand_string=' + brand_string + debugData + '&style=' + style + '&ingre=1'; var other_info_url = G.server + '/brwext/prepare?permanent_id=' + G.p_id + '&union=' + G.union + '&url=' + url + '&site=' + G.dp.site + '&isbn=' + G.dp.isbn + '&name=' + name + '&keyword=' + keyword + '&skeyword=' + skeyword + '&id=' + G.dp.id + '&price=' + G.dp.price + '&stock=' + G.dp.inventory + '&province_id=' + G.province_id + '&subsite_id=' + G.subsite_id + '&cat_id=' + cat_id + '&pic=' + pic + '&userid=' + G.dp.userid + '&shop_name=' + G.dp.shop_name + '&shop_addres=' + G.dp.shop_addres + '&cat_name=' + cat_name + '&brand_string=' + brand_string + debugData; request.get(dp_interfavce_url).then(function (data) { __webpack_require__("9c38beef5ff283e15bd2").setMet('dp_query_latest_complete', data); __webpack_require__("94dcbcd87711142a8b0b").init(data.ingre); G.dp.dpId = data.dp.dp_id; data = editData(style, data); userData.set('dp_query', data); console.log('dp_query set'); __webpack_require__("9c38beef5ff283e15bd2").setMet('dp_query_set'); renderMiniFavor(); callback(data); })['catch'](function () { callback(null); }); request.get(other_info_url).done(function (data) { G.dp.dpId = data.now.dp_id; if (G.dp && G.dp.dpId) { console.log('start checking'); __webpack_require__("69afa85b8d7929dd88c5").checked(G.dp.dpId).then(function (res) { if (res.data && res.data.qr_api) { G.qrApi = res.data.qr_api; } console.log('checked data', res); if (res.code === 0 || res.error_code === 1000) { /** 用户是否登录 */ G.userLogin = false; utils.setLocal('userLogin', null); } else if (res.code !== undefined) { /** 商品收藏状态 */ G.productChecked = res.data; console.log('setting product checked'); G.userLogin = true; G.email = 1; utils.setLocal('userLogin', true); __webpack_require__("51aadd1e1b65f329a862").renderAgain(); $(document).trigger('checkfavor'); } globalCondition.setMet('userLoginChecked'); __webpack_require__("9c38beef5ff283e15bd2").setMet('checked_data_got'); // 加载中间部分收藏降价提醒 __webpack_require__("39c432bd7bb3fe587696").init(); __webpack_require__("472c3193857af11233c9").init(); // 加载顶部 __webpack_require__("6b8303d96ee13d08f335").init(); $(document).trigger('checkfavor'); }); } userData.set('other_info', data); tbCompare2.init(); __webpack_require__("e3aad1ff685fc198354a").init(data); __webpack_require__("999cc56b04566e456c6b").init(data); __webpack_require__("0f10f0b54cd641a49a27").init(); renderMiniFavor(); __webpack_require__("85f9e563e35dd4a4e51e").init(); __webpack_require__("bb230b042f0d058f8c66").init(); __webpack_require__("b222cbd907f0b4aea97f").init(data.now.dp_id); __webpack_require__("c72145693e59d4fc8fe3").show(data.exact_arr.isbn, style); __webpack_require__("abb2c55465e8bd1d8753").init(data.now.dp_id); $(document).trigger('minicom'); __webpack_require__("9c38beef5ff283e15bd2").setMet('GwdDpIdGot', data.now.dp_id); log('category:' + G.logsite + ':' + data.now.dp_id + '/' + data['code-server'].class_id + '/'); /*eslint-disable */ if (G.debug && window.console) { console.log(data); } /*eslint-enable */ }).fail(function () { __webpack_require__("85f9e563e35dd4a4e51e").init(); }); }; var renderCss = function renderCss(style) { $('html').addClass('gwd_' + G.site); $('html').addClass('gwd_' + style); $('html').addClass('' + G.from_device); G.instanceId = parseInt(Math.random() * 10000); $('html').attr('data-gwd-id', G.instanceId); if (style === 'top') { loadCss.init('gwdang-notifier-new6.css'); } else if (style === 'bottom') { loadCss.init('gwdang-notifier-bottom-new6.css'); } }; var renderMainBar = function renderMainBar(style) { if (G.site === "steampowered") return; if (style === 'top') { __webpack_require__("3690f6d076b37bda66b7").init(); } else if (style === 'bottom') { __webpack_require__("2da79097fdc184b40ede").init2(); } }; var getLocalPermanInfo = function getLocalPermanInfo(callback) { var runcallback = undefined; communicate.on(function (data) { if (typeof data === 'string') { data = JSON.parse(data); } if (data.type === 'browser_setinfo') { data = data.value; G.allowBackgroundRequest = !!data.allowBackgroundRequest; G.canUseLocalLoginCheck = !!data.canUseLocalLoginCheck; if (G.allowBackgroundRequest) { setTimeout(function () { __webpack_require__("e3916f328c1834810f25").init(); }, 3000); } data.style = data.setStyle || 'top'; // data.top_fold = data.top_fold || '1'; // data.bottom_fold = data.bottom_fold || '0'; if (!runcallback) { if (runcallback) return; runcallback = true; userData.set('permanent', data); callback(data); // console.log('getPermanentInfo A') // getPermanInfo(function(info) { // data.top_fold = data.top_fold || info.p_fold || '0'; // data.setWishlist = data.setWishlist || info.show_wishlist || '0'; // data.setShowPromo = data.setShowPromo || info.show_promo || '0'; // data.bottom_fold = data.bottom_fold || info.p_fold || '0'; // if (data.localHost) // G.localHost = data.localHost; // if (data.user_extension_id) // G.userid = data.user_extension_id; // if (data.version) // G.ext_v = data.version; // userData.set('permanent', data) // callback(data) // // }) } } else if (data.type === 'user_extension_id') { G.userid = data.value; } else if (data.type === 'get_local_host') { G.localHost = data.value; } else if (data.type === 'get_local_img') { G.localImg = data.value; if (G.from_device === 'firefox') { G.noImg = data.value + 'default_load_image.png'; G.imgLoad = data.value + '120.gif'; } } }); setTimeout(function () { if (!runcallback) { (function () { var data = { 'style': 'bottom' }; console.log('getPermanent C'); getPermanInfo(function (info) { if (runcallback) return; data.top_fold = data.top_fold || info.p_fold || '0'; data.bottom_fold = data.bottom_fold || info.p_fold || '0'; data.setWishlist = data.setWishlist || info.show_wishlist || '0'; data.setShowPromo = data.setShowPromo || info.show_promo || '0'; data.style = info.style || 'top'; data.setTip = info.show_tip || '1'; data.sethaitao = info.show_haitao || '1'; userData.set('permanent', data); callback(data); runcallback = true; }); // userData.set('permanent', data) // callback(data) // runcallback = true })(); } }, 180); communicate.trigger({ 'type': 'user_extension_id' }); communicate.trigger({ 'type': 'browser_setinfo' }); communicate.trigger({ 'type': 'get_local_host' }); communicate.trigger({ 'type': 'get_local_img' }); }; var renderModule = function renderModule(style) { console.log('renderModule start'); __webpack_require__("5864b02248792e9a51fc").init(); getProductInfo(style, function (data) { __webpack_require__("c912948d535762b7172f").init(style, data); __webpack_require__("4b0daa953481b86e6349").init('b2c', data); if (data && data.dp) { __webpack_require__("97fdbca8ef7c5ce49bce").init(data.dp.dp_id); } // if (userData.get('other_info')) { // require('./miniBar').renderMiniCom(data) // } else { // $(document).on('minicom', function() { // require('./miniBar').renderMiniCom(data) // }) // } if (location.host.indexOf('.jd.com') > -1 || location.host.indexOf('suning') > -1) __webpack_require__("2f77f5f9070b5907552e").init2();else if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) __webpack_require__("2f77f5f9070b5907552e").init(); setTimeout(function () { __webpack_require__("d0be176400e0cbc97f82").init(); }, 2500); __webpack_require__("238322f76284ba9e93e3").init(); __webpack_require__("7026a4b5462dc6da5555").init(); monitor.init(); }); }; var backgroundReqReady = function backgroundReqReady() { if (G.site === 'tmall' || G.site === 'taobao-95095' || G.site === 'ai-taobao' || G.site === 'taobao') { __webpack_require__("1f677ede70b4f8bcb282").init2(); __webpack_require__("75d41ad7d5a1bceb52d2").init(); } if (location.host.indexOf('amazon') > -1 && location.host !== 'www.amazon.cn') { __webpack_require__("697c3c62b588ebd6f1b3").ready(); } __webpack_require__("ff881c8b15091819a13e").ready(); if (G.site === "aliexpress") __webpack_require__("fa297f213d29eb497c63").init(); }; var urltimes = 0; var listenUrlChange = function listenUrlChange() { if (urltimes > 99999) return; urltimes++; var url = location.href; var k = setInterval(function () { if (url !== location.href) { //location.reload(); window.gwd_G = false; $('.gwd-minibar-bg').remove(); $('#gwdang_main').remove(); $('#bjd_bottom_detail').remove(); $(G.dval).remove(); url = location.href; var fromDevice = G.from_device; G = __webpack_require__("5d4f0e584bd9a3a675b3"); __webpack_require__("2471c34a1449a65b6e88").clear(); if (window.gwdActivity) { window.gwdActivity = false; } if (fromDevice === '360server') { __webpack_require__("6a6d60b5e4dc52d8b1ea"); } else { __webpack_require__("b1cae3a1887fb97c6c83"); } __webpack_require__("5e05e6f5fe79ccf5d009").init(); if (location.host === 'm.fine3q.com') __webpack_require__("bf822aacfeba494ced92").init(); __webpack_require__("cb0906562effcf1b0e6c").getRate(function () { __webpack_require__("edb006a6bdc87dceab2d").common(function (data) { if (data && data.result.address.indexOf('北京') > -1) { G.forbidGiftMoney = true; } __webpack_require__("4733a3dd803685ec596a").get(function () { var cnzz = __webpack_require__("83271c7588396d2d5e59"); if (cnzz) cnzz.init(G.gwd_cnzz); __webpack_require__("e6521b4ea881581e5851").init(); }); }); }); clearInterval(k); } }, 200); }; module.exports.init = function () { __webpack_require__("86382bef702254f6385c").init(); __webpack_require__("f2b706dcdb3731e0de2c").init(); console.log('start from monkey'); if (G.site === '6pm' || G.site === 'amazon' || G.site === 'lining' || G.site === 'tmall') { setTimeout(listenUrlChange, 2000); } getLocalPermanInfo(function (data) { if (window.gwd_G) return; window.gwd_G = G; request.get("https://cdn.gwdang.com/js/configs/specialContent.json").then(function (res) { if (res.html) { setTimeout(function () { var template = __webpack_require__("274e32dfd54a6b0d18a9"); var html = template.compile(res.html, { escape: false })(); $('body').append(html); }, 0); } }); log("page_view:" + G.logsite); renderCss(data.style); var pInfo = G.pageInfo; if (pInfo.type === 1) { __webpack_require__("6eb6300b1093d4b652fb").init(); __webpack_require__("c815d6a749e99fa1daa5").init(); if (location.host.indexOf('taobao') > -1 || location.host.indexOf('tmall') > -1) { __webpack_require__("98e93ed4a85e80c55160").init(); } if (location.host.indexOf('search.jd.com') > -1) { __webpack_require__("ccd952a0cd9003e1d392").init(); } __webpack_require__("ee3f371a85b894c823bf").init(); __webpack_require__("a4447e95a8966a5c4979").init(); getPermanInfo(function () { __webpack_require__("ea576a0e729bc2bff522")(); }); } else if (pInfo.type === 2) { renderMainBar(data.style); renderModule(data.style); __webpack_require__("6b5f3f4c7b5f37c1088e").init(); __webpack_require__("1c640a99db9f6f8a16c2").listenBar(data.style); backgroundReqReady(); if (location.host === 'www.amazon.com' || location.host === 'www.amazon.co.jp' || G.site === '6pm') __webpack_require__("386e47e61222ba76fe18").init(); log('product_page_visit:' + G.logsite); __webpack_require__("99967238159b55ea4e52").init(); } __webpack_require__("c4adb5832af3824ff1c6").init(); __webpack_require__("636389e3a752a8309f94").init(pInfo.type); }); window.disable_gwd_privacy = function () { communicate.trigger({ type: 'disable_gwd_privacy' }); }; window.enable_gwd_privacy = function () { communicate.trigger({ type: 'enable_gwd_privacy' }); }; }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "e6554ddc4b944c4a3224": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // 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 /***/ }), /***/ "e756d69fbda7cdc8ade7": /***/ (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__("c9085187c37fc1ab0e5e"), 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 /***/ }), /***/ "e97d380adaf6122c0aa9": /***/ (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__("91f250ebeb8d5987491c"); var yixunImg = __webpack_require__("a51eacdde690fe7bfb28"); 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__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "ea01780c75dd0a1f378a": /***/ (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
    " /***/ }), /***/ "ea576a0e729bc2bff522": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var union_url = G.u_server + "/union/go"; var util = __webpack_require__("d54879e983a83d07f093"); if (!G.isMobile) union_url = G.specialUnion; var firstClick = true; var forbidDict; var dict = { 'dangdang': 2, 'prescriptives': 5, 'perryellis': 6, 'newegg': 7, 'originalpenguin': 9, 'm18': 10, 'naturalizer': 11, 'sephoracps': 12, 'lefeng': 13, 's': 14, '51buy': 15, 'moonbasa': 17, 'keede': 18, 'kede': 18, 'vancl': 19, 'luisaviaroma': 20, 'letao': 22, 'giorgioarmanibeauty-usa': 23, 'taoxie': 24, 'suning': 25, 'coo8': 26, 'caudalie': 26, 'gome': 28, 'gome-rushbuy': 28, 'gomehigo': 28, 'murad': 29, 'betseyjohnson': 30, 'yihaodian': 31, 'yihaodian-tuan': 31, 'womai': 32, 'leyou': 33, 'shopin': 34, 'xiu': 35, 'mbaobao': 36, 'thebodyshop': 37, 'hampdenclothing': 38, 'youpin-mi': 39, 'chunshuitang': 40, 'x': 41, 'no5': 43, 'anthropologie': 44, 'sasa': 45, 'armani': 47, 'ecco-us': 48, '360kxr': 50, 'm6go': 51, 'bananarepublic-gap': 53, 'morefood': 54, 'loft': 55, '99read': 59, 'china-pub': 60, 'bookschina': 61, 'winxuan': 62, 'efeihu': 63, 'shuuemura-usa': 65, 'yintai': 66, 'strawberrynet': 69, 'happigo': 72, 'gap': 73, 'therealreal': 74, 'c21stores': 76, 'ctshirts': 78, 'superjeweler': 79, 'jimmychoo': 82, 'tmall': 83, 'tiantian': 84, 'fwrd': 85, 'jumei': 86, "aveda": 87, "na-kd": 88, "nancymeyer": 92, 'yougou': 93, '111': 94, 'jianke': 97, 'muyingzhijia': 98, 'lingshi': 99, 'banggo': 100, 'yesmywine': 101, 'jiumei': 102, 'winenice': 102, 'jiuxian': 103, "baublebar": 105, "elevenparis": 106, 'goujiuwang': 108, 'okhqb': 109, 'bookuu': 110, "lindtusa": 111, "narscosmetics": 112, 'd1': 115, "jackrabbit": 116, "macmall": 117, "champssports": 120, "dji": 121, "bodenusa": 122, 'paixie': 122, 's8': 123, "crazy8": 124, 'homevv': 124, 'jxdyf': 125, 'jinxiang': 125, 'sfbest': 126, 'benlai': 127, 'tootoo': 128, 'vipshop': 129, 'fclub': 130, "moltonbrown": 130, "needsupply": 131, 'ihush': 131, "solesociety": 132, 'vmall': 134, 'lenovo': 135, 'apple': 136, 'zm7': 138, 'miqi': 139, "childrensplace": 139, 'zhiwo': 140, 'j1': 141, 'wangjiu': 142, 'liebo': 144, 'esprit': 145, 'lamiu': 146, 'aimer': 147, 'kadang': 148, "sigmabeauty": 148, 'lizi': 149, 'metromall': 150, "adidas": 150, 'pba': 151, 'shangpin': 152, 'wbiao': 153, 'handuyishe': 154, 'ehaier': 155, 'secoo': 156, 'camel': 157, 'masamaso': 158, "veronicabeard": 158, "cross": 159, 'nop': 159, 'naruku': 160, "monsterproducts": 161, 'gaojie': 161, 'zhenpin': 162, 'sportica': 163, 'xifuquan': 164, "theoutnet": 165, 'milier': 165, // 'xiaomi': 167, 'lemall': 168, "clarisonic": 170, 'dianping': 171, 'ctrip': 173, 'yiguo': 174, 'yummy77': 175, "dermadoctor": 175, 'fruitday': 178, 'jumeiglobal': 179, 'feiniu': 180, "solsticesunglasses": 181, 'feifei': 181, 'zuipin': 182, "pixiemarket": 183, 'yohobuy': 184, 'lvmama': 185, 'ikjtao': 188, 'speedo': 189, "yunifang": 190, "globalwinner": 191, "biotherm-usa": 193, 'mf910': 194, 'markmall': 194, 'miyabaobei': 195, 'ule': 196, 'mingshengec': 197, "jomalone": 198, 'wangfujing': 198, 'nuomi': 199, 'qunar': 200, 'meilishuo': 202, 'mogujie': 203, '55tuan': 204, 'jinjianginns': 205, 'elong': 206, '500': 209, 'supuy': 210, 'lv': 211, 'caipiao': 212, 'lining': 213, 'koolearn': 214, 'springtour': 215, '228': 216, 'rrs': 217, 'coocaa': 218, 'lifevc': 220, 'niubia': 221, 'kzj365': 222, 'kaola': 223, 'ymatou': 224, 'metao': 225, "yvesrocherusa": 225, 'kjt': 226, 'logitech': 227, 'ebay': 230, 'aliexpress': 231, 'xiji': 232, 'nike': 233, '360kad': 234, 'lbxcn': 235, 'meici': 236, 'beibei': 237, '6pm': 238, "mountainhardwear": 240, 'shopbop': 241, 'sierratradingpost': 243, 'ashford': 243, 'newegg-us': 244, 'lookfantastic-com': 248, 'iherb': 250, 'vsigo': 252, '100yue': 256, 'haitaocheng': 258, 'joesnewbalanceoutlet': 259, 'daling': 267, 'sfht': 268, 'fengqu': 268, 'mei': 269, 'showjoy': 270, 'ocj': 271, 'sundan': 272, 'easeeyes': 273, 'yunhou': 274, 'haituncun': 275, 'walmart': 276, 'vmei': 277, 'jgb': 278, "boscovs": 278, "putmeinthestory": 279, '51din': 279, 'aidai': 280, 'boqii': 281, 'toursforfun': 282, 'lulutrip': 283, 'spider': 284, 'microsoftstore': 285, 'jiae': 286, 'zazhipu': 287, 'xgdq': 288, 'xtep': 289, 'midea': 290, 'staples': 291, 'efotile': 292, 'bestcake': 293, 'lovo': 294, 'hua': 295, 'zhe800': 296, 'bftv': 297, 'tujia': 298, 'tuhu': 299, 'htc': 300, 'roseonly': 301, 'rong360': 302, 'niwodai': 303, 'cosme': 304, 'diapers': 305, 'windeln': 306, 'babyneo': 307, 'escentual': 308, 'thewatchery': 309, 'saksfifthavenue': 310, 'esteelauder': 311, 'biccamera': 312, "petit-bateau": 313, 'taqu': 313, 'qyer': 314, 'axmall ': 315, 'muji': 316, 'gmarket': 317, '11st': 318, 'smartbargains': 319, 'yahooshop': 320, 'bloomingdales': 321, 'mikihouse': 322, 'toysrus': 323, 'comfortfirst': 324, 'gymboree': 325, 'albeebaby': 326, 'babymarkt': 327, 'uggaustralia': 328, 'neimanmarcus': 329, 'shoebuy-elevtd': 330, 'szul': 331, 'timex': 332, 'kay': 333, 'ewatches': 334, 'swarovski': 335, 'worldofwatches': 336, 'danielwellington': 337, 'beautybay': 338, 'beauty': 339, "striderite": 339, "bcbg": 340, 'beautybar': 340, 'skinstore': 341, 'laneige': 342, 'bose': 343, 'bestbuy': 344, 'bhphotovideo': 345, 'sony': 346, 'bl': 347, 'bestinfoods': 348, "marissacollections": 348, 'you163': 349, 'jinjiang': 350, 'guojimami': 351, 'baiyangwang': 352, 'royyoungchemist': 354, 'medihealshop': 355, '1001pharmacies': 356, 'lookfantastic-cn': 357, 'oneplus': 358, 'kaixinbao': 359, 'juanpi': 360, 'booking': 361, 'pharmacyonline': 362, 'bodyguardapotheke': 363, 'purcotton': 364, 'wstx': 367, 'hisense': 368, 'zhongjiu': 369, 'kaluli': 370, 'yangkeduo': 370, 'to8to': 371, 'opposhop': 372, 'baobeigezi': 373, 'yao123': 374, 'baicheng': 375, 'gionee': 376, 'suanjuzi': 377, 'aomygod': 378, 'luolai': 379, 'vivo': 380, 'dixintong': 381, 'coolpad': 382, 'skg': 383, 'iqiyi': 384, 'aolaigo': 385, 'missfresh': 386, 'pushenkuajing': 387, 'feelunique': 388, 'chemistdirect': 389, 'netpharmacy': 390, "chineselaundry": 390, 'pharmacy4less': 391, 'pharmacydirect': 392, 'amcal': 393, 'laredoute': 394, 'unserekleineapotheke': 395, 'erwinmueller': 396, 'kiwidiscovery': 397, "ylang23": 397, "thewalkingcompany": 398, 'springlane': 398, 'jako-o': 399, 'easytoys': 400, 'tlcpharmacy': 401, 'bienmanger': 402, 'dewaren': 403, 'discount-apotheke': 404, 'holland-at-home': 405, 'youyu': 406, 'kiwistarcare': 407, 'lenovomobile': 408, 'motorola': 408, 'kiehls': 409, 'zappos': 410, 'coach': 411, 'yoox': 412, '11street': 413, '51taouk': 414, 'hqhair': 415, 'katespade': 416, 'vitafy': 417, 'lotte': 418, 'carrefour': 419, 'tea7': 420, 'puzeyf': 421, 'kohls': 422, 'bodybuilding': 423, 'nordstrom': 424, 'costco': 425, 'target': 426, 'kmart': 427, 'overstock': 428, 'sears': 429, 'shoprobam': 430, 'goumin': 431, 'flyco': 432, 'opplestore': 433, 'syshop': 434, 'yfdyf': 435, 'hotels': 436, 'aihuishou': 437, 'thebeastshop': 438, 'jomooshop': 439, 'septwolves': 440, 'lianjia': 441, '5i5j': 442, 'home6': 443, '800pharm': 444, 'ujipin': 445, 'mmb': 446, 'ihaveu': 447, 'ikang': 448, 'wyn88': 449, 'mcake': 450, 'xmeise': 451, 'lecake': 452, 'jd100': 453, 'jinghua': 454, 'taohwu': 455, 'zbird': 456, 'km1818': 457, 'zocai': 458, 'taoshu': 459, 'aizhigu': 460, 'tieyou': 461, 'fieldschina': 462, 'wdmcake': 463, 'lqxshop': 464, 'usashopcn': 467, 'wine9': 468, 'qipaimall': 469, 'yododo': 470, '1688': 471, 'yoger': 472, 'dapu': 473, 'winona': 474, 'wl': 475, 'shanmai': 476, 'zgshoes': 477, 'maichawang': 478, 'uemall': 489, "perfumania": 479, '51you': 480, 'beifabook': 481, 'jpeen': 482, 'huatuoyf': 483, 'fengbuy': 484, 'uiyi': 485, 'hecha': 486, 't10': 487, 'qw': 488, 'miutour': 489, 'ehaoyao': 490, 'idx': 491, 'uya100': 492, 'ssnewyork': 493, 'clinique': 494, 'hxepawn': 495, 'brooksbrothers': 496, 'omtao': 497, 'ep365': 498, 'columbiasports': 499, 'bstapp': 500, 'newbalance': 501, 'wjike': 502, 'bally': 503, '1hai': 504, 'jialich': 505, 'takeya': 506, 'forever21': 507, 'modernavenue': 508, 'muniao': 509, 'zuihuiyou': 510, 'centanet': 511, 'bobbibrowncosmetics': 512, 'super-in': 513, 'hangowa': 514, 'levi': 515, 'fila': 516, 'converse': 517, 'nextdirect': 518, 'itrip': 519, 'lashou': 520, 'liufeng': 521, 'trt': 522, 'wodinghua': 523, 'wuliwuli': 524, 'forestfood': 525, 'bonjourhk': 526, 'vitagou': 527, 'kinhom': 528, '360lj': 529, 'changba': 530, 'oakley': 531, 'jpyoo': 532, 'clarksusa': 533, 'starwoodhotels': 534, 'marriott': 535, 'yesstyle': 536, 'evisu': 537, 'lifeseasy': 538, 'ccxpet': 539, 'x0061': 540, 'kkguan': 541, 'style-oclock': 542, 'peikua': 543, 'airfrance': 544, 'accorhotels': 545, 'spacenk': 546, 'haichufang': 547, 'wconcept': 548, 'gant': 549, 'catfootwear': 550, 'saucony': 551, 'zaozuo': 552, 'littleswan': 553, 'can': 554, 'ssrj': 555, "underarmour": 555, 'guess': 556, 'etihad': 557, 'fiil': 558, 'mianshui365': 559, 'tegoushe': 560, 'wiggle': 561, 'mdreams': 562, 'ecovacs': 563, 'calvinklein': 564, 'memebox': 565, 'hilton': 566, 'revolve': 567, 'shiseido': 568, 'clarinsusa': 569, 'starbucks': 570, 'ray-ban': 571, 'puma': 572, 'nautica': 573, 'cremedelamer': 574, 'kipling-usa': 575, 'jurlique': 576, 'hushpuppies': 577, 'origins': 578, 'follifollie': 779, 'loccitane': 580, 'hpstore': 582, '01home': 584, 'healthpost': 588, 'imengxiang': 590, 'hysj': 591, 'saohuo7': 592, 'repai': 593, 'mayi': 594, 'yinpiao': 595, 'ihome-ins': 596, 'incake': 597, 'kuwo': 598, 'ywart': 599, 'cct': 600, 'ansgo': 601, 'pilibaba': 602, 'xiaoniu88': 603, 'ahava': 604, '5-fifth': 605, 'thewatchhut': 606, 'babyhaven': 607, 'cosme-de': 608, 'getthelabel': 609, 'matsuya': 610, 'timberland': 611, 'topman': 612, 'homeaway': 613, 'beautyexpert': 614, 'haimi': 615, 'mankind': 616, 'thehut': 617, 'topshop': 618, 'mamaladen': 619, 'traveler-store': 620, 'travelzoo': 621, 'umishoes': 622, 'ferrari': 624, 'willerexpress': 625, 'unineed': 626, 'acnestudios': 627, 'aeropostale': 628, 'agoda': 629, 'albamoda': 630, 'allbeauty': 631, 'allsaints': 632, "bestgymequipment": 632, 'allsole': 633, 'urbanoutfitters': 634, 'vitabiotics': 635, 'bellemaison': 636, 'benefitcosmetics': 637, 'bhcosmetics': 638, 'bjmylikes': 639, "thesportsedit": 639, 'vitaminbay': 640, 'waitrose': 641, 'wolfordshop': 642, 'boohoo': 643, 'boots': 644, 'britishcornershop': 645, 'yirendai': 646, 'ys7': 647, 'coggles': 648, 'corsetdeal': 649, 'cottonon': 650, 'crocs': 651, 'cruisefashion': 652, 'dell': 653, 'dermstore': 654, 'disneystore': 655, 'dorothyperkins': 656, 'doudoukang': 657, 'dujiake': 658, 'dunelondon': 659, 'eastbay': 660, 'eastdane': 661, 'zaful': 662, 'zavvi': 663, 'feinkeit': 664, 'eibmarkt': 665, 'belluna': 666, "emirates": 667, 'ems': 668, 'eterna': 669, 'eurail': 670, 'exantediet': 671, 'expedia': 672, 'falke': 673, 'famousfootwear': 674, 'foreo': 676, 'wangxinlicai': 677, 'foreverunique': 678, 'forzieri': 679, 'freecountry': 680, "treds": 681, 'frenchconnection': 682, 'gift-land': 683, 'growgorgeous': 687, 'hotel': 690, 'houseoffraser': 691, 'huizuche': 692, 'iwantoneofthose': 695, 'jjglobal': 696, 'juicycouture': 699, 'kenko': 700, 'kikocosmetics': 702, 'lancerskincare': 703, 'lego': 704, 'lordandtaylor': 706, 'maizhi': 711, 'matchesfashion': 712, 'matsukiyo': 713, 'microsoft': 715, 'mioskincare': 716, 'missselfridge': 717, 'mountaingear': 718, 'mybag': 720, 'myprotein': 721, 'myvitamins': 723, 'net-a-porter': 724, 'newbalance-uk': 725, 'ddky': 726, 'newlook': 727, 'chinaacc': 728, 'bmai': 729, 'nike-hk': 730, 'nike-br': 731, 'inke': 732, "toryburch-uk": 732, 'nyandcompany': 733, 'oasis-stores': 734, 'orbitz': 735, 'orchira': 736, 'origins-uk': 737, 'petsmart': 738, 'junrongdai': 739, 'napai': 740, 'gree': 741, 'probikekit': 742, 'qatarairways': 743, 'radley': 744, 'allianz': 745, 'ralphlauren': 746, 'rebeccaminkoff': 747, 'youmi': 748, '21cake': 749, 'rentalcars': 750, 'ricaud': 751, 'rockport': 752, 'ruelala': 753, '56ren': 754, 'saksoff5th': 755, 'anantara': 756, 'sc24': 757, 'chesudi': 758, 'shoes': 759, 'shopspring': 760, 'simplysupplements': 761, 'ehmall': 762, 'farfetch': 763, 'ssense': 764, 'stevemadden': 765, 'freepeople': 766, 'gaosouyi': 767, 'imomoko': 768, 'taodo': 769, 'michaelkors': 770, 'ttcj': 771, 'uf-club': 772, 'zhaidou': 773, '163yun': 774, 'apo': 775, 'jimu': 776, 'hao24': 777, 'seagoor': 778, 'wannar': 779, 'caihang': 780, 'csmall': 781, 'kuajing': 782, 'millenniumhotels': 783, 'reebonz': 784, 'wemakeprice': 785, 'wzhouhui': 786, 'huijiayou': 787, 'melimelo': 788, '91xcm': 789, 'ashford-zh': 790, 'cjonmart': 791, 'cnyto': 792, 'granddfs': 793, 'officedepot': 794, 'tianhong': 795, 'yilingshop': 796, 'klook': 797, 'charm-color': 798, 'felissimo': 799, 'surfstitch': 800, 'lornajane': 801, 'reiss': 802, 'gzl': 803, '9drug': 804, 'yungoubs': 805, 'yencity': 806, 'hujiang': 807, 'meituan-iphx': 808, 'svgouwu': 809, 'hqwx': 811, 'tcl': 812, 'maimaicn': 813, 'tyfo': 814, 'tthigo': 816, 'mayn': 817, 'harrods': 819, 'theundone': 820, 'perfumesclub': 821, 'godaddy': 822, 'mytheresa': 823, 'backcountry': 824, 'marriott-cn': 825, 'swarovski-en': 826, 'mrporter': 827, 'priceline': 828, 'ctrip-en': 829, 'monnierfreres': 830, 'myprotein-com': 831, 'toryburch-com': 826, 'italist': 832, 'askderm': 833, 'tatcha': 834, 'hollandandbarrett': 835, 'ninewest': 836, 'bergdorfgoodman': 837, 'ihg': 838, 'footlocker': 839, 'rodial': 840, 'feelunique-cn': 841, 'jackwills': 842, 'kidsroom': 843, 'dod': 844, 'karenmillen': 845, 'illicopharma': 846, 'tedbaker': 847, 'b-glowing': 848, 'adiexpress': 849, 'fragrancex': 850, 'peterthomasroth': 851, 'gap-com': 852, 'cecile': 853, 'barneys': 854, 'debuycn': 855, 'smashbox': 856, 'lastcall': 857, 'superdrug': 858, 'libertylondon': 859, 'chemistdirect-uk': 860, 'skincarerx': 861, 'haba': 862, 'panasonic': 863, 'beautifiedyou': 864, 'nba': 865, 'elfcosmetics': 866, 'uniqlo': 867, 'colehaan': 868, 'carters': 869, 'sportsdirect': 870, 'adorama': 871, 'ae': 872, 'amorepacific': 873, 'anntaylor': 874, 'asics': 875, 'asos': 876, 'aveneusa': 877, 'barneyswarehouse': 878, 'bensherman': 879, 'blissworld': 880, 'blueandcream': 881, 'bonds': 882, 'cookieskids': 883, 'cosmeland': 884, 'crabtree-evelyn': 885, 'crocs-ca': 886, 'darphin': 887, 'davidscookies': 888, 'dickiesstore': 889, 'dockers': 890, 'easyspirit': 891, 'ebags': 892, 'echemist': 893, 'eddiebauer': 894, 'elemis': 895, 'elizabetharden': 896, 'ena': 897, 'evitamins': 898, 'fashionesta': 899, 'figleaves': 900, 'folica': 901, 'fragrancenet': 902, 'glamglow-uk': 903, 'godivachocolates': 904, 'goldsmiths': 905, 'growgorgeous-uk': 906, 'happysocks': 907, 'harveynichols': 908, 'hatley': 909, 'herbspro': 910, 'houseofholland': 911, 'jayjays': 912, 'jetairways': 913, 'journeys': 914, 'karmaloop': 915, 'keds': 916, 'labseries': 917, 'leejeans': 918, 'livingsocial': 919, 'wkzuche': 920, 'uzise': 921, 'laiyifen': 922, 'avast': 923, 'kaspersky': 924, 'steepandcheap': 925, 'glamglow-com': 926, 'cledepeaubeaute': 927, 'kicksusa': 928, 'lacoste': 929, 'perriconemd': 930, 'gemvara': 931, 'bluenile': 932, 'modaoperandi': 933, 'parrot': 934, 'fashionbunker': 935, 'final-score': 936, 'dkny': 937, 'mango': 938, 'charlottetilbury': 939, 'vmware': 940, 'avira': 941, 'jewelry': 942, 'eset': 943, 'norton': 944, 'jimmyjazz': 945, 'roxy': 946, 'nastygal': 947, 'marcjacobs': 948, 'beastsmode': 949, 'theapollobox': 950, 'yamibuy': 951, 'hbx': 952, 'horchow': 953, 'bluefly': 954, 'swansonvitamins': 955, 'jcrew': 956, 'bebe': 957, 'mucfc': 958, 'only': 959, 'veromoda': 960, 'jackjones': 961, 'selected': 962, 'hanes': 963, 'algenist': 964, 'jcrew-factory': 965, 'lolewomen': 966, 'underarmour-com': 967, 'theory': 968, 'intimina': 969, 'nydj': 970, 'jny': 971, 'bonobos': 972, 'alphaindustries': 973, 'venuekings': 974, 'goop': 975, 'silkyscents': 976, 'shopsky': 977, 'vitaminworld': 978, 'bumbleandbumble': 979, 'mattandnat': 980, 'ladyfootlocker': 981, 'aliceandolivia': 982, 'lancome-usa': 983, 'sk-ii': 984, 'beautifulhalo': 985, 'footaction': 986, 'vitaminshoppe': 987, 'reebok': 988, 'jet': 989, 'burtsbeesbaby': 990, 'yoins': 991, 'skechers': 992, 'toofaced': 993, 'shoebuy': 994, 'katvondbeauty': 995, 'mountainsteals': 996, 'tours4fun': 997, 'jewelryaffairs': 998, 'perfume': 999, 'tgw': 1000 }; function makeUrl(pre, url) { if (url.indexOf("http") != 0) { if (url.indexOf("javascript") == 0) { pre = ""; url = ""; } else if (url.indexOf("//") == 0) { pre = "http:"; } else if (url.indexOf("/") == 0) { pre = pre.replace(/(http:\/\/[^\/]+).*/ig, '$1'); if (G.site === 'youpin-mi') { return pre + url.replace('/', ''); } } else { var head = pre.substr(0, pre.indexOf("//") + 2); pre = pre.substr(pre.indexOf("//") + 2); var pre_arr = pre.split("/"); var pre_len = pre_arr.length - 1; if (url.indexOf("./") == 0) { url = url.substr(2); } else if (url.indexOf("../") == 0) { while (url.indexOf("../") == 0) { url = url.substr(3); pre_len--; } } pre = head; for (var i = 0; i < pre_len; i++) { pre += pre_arr[i] + "/"; } } url = pre + url; } return url; } function makeSite() { var site = G.site; if (G.site == 'yhd') site = 'yihaodian'; if (G.site == 'vip') site = 'vipshop'; return site; } function addSpecialDicts() { if (G.from_device == 'baidu' || G.from_device == 'mi_new' || G.from_device == 'njck' || G.from_device == 'bjlt' || G.new_extension) { dict['360buy'] = 3; } } // function specialEdit() { // /*pc端所有版本去掉唯品会的dicts*/ // if (G.site == 'vipshop' && location.host != 'm.vip.com') // delete dict['vipshop']; // } // 返回false表示数组为空或者没有匹配到元素 var matchDict = function matchDict(site, forceArr) { var d1 = dict[site]; if (forceArr.length === 0 || !(forceArr instanceof Array)) return false; for (var i = 0; i < forceArr.length; i++) { var item = forceArr[i]; item = Number(item); if (item === d1) return true; } return false; }; var specialReplaceUrl = function specialReplaceUrl(site, url) { if (dict[site] === 173) { url = 'https://click.linktech.cn/?m=xiecheng&a=A100098459&l=99999&l_cd1=0&l_cd2=1&tu=https%3A%2F%2Fhotels.ctrip.com/international%2FSingapore73#ctm_ref=ssc_hp_htl_sni_pro_1'; } else if (dict[site] === 214) { url = 'http://un.koolearn.com/alliance/clickword?userid=28267eeb6a904424a152dfec2324dcfa&kid=86919c8addb545bbb384e6c2a4cafac4'; } else if (dict[site] === 728) { url = 'http://union.chinaacc.com/union/interface/spread.shtm?agentID=3163&siteID=1'; } else if (dict[site] === 384) { if (G.cooperation || G.from_device === 'bijiago') { url = 'https://c.duomai.com/track.php?k=mLwlmdGJTJGJTJBNTJzBHd0hWP0ZSPklWdlZCMyczM9QWahZCNxEzM50DZp9VZ0l2cmYiJs1Gdo5yYwNnetdnRyUibvlGdv12byBVau5WQoRnbp5WZyBnRyUSbvNmLplXaxl'; } } return url; }; var init = function init(site) { addSpecialDicts(); var pageUrl = location.href; if (pageUrl.indexOf('order') > -1 || pageUrl.indexOf('cart') > -1) return; if (!G.set_force) return; // || $.inArray(Number( dict[site]), G.force) >= 0 try { if (dict[site] && matchDict(site, G.force)) { return; } $('body').delegate('a', 'mouseenter mouseleave mouseover', function (event) { var ct = $(this).attr('ct'); if (event.type != "mouseover" && ct) { $(this).attr('href', ct).removeAttr('ct').attr('cted', '1'); } }); var listeningElement = 'a'; if (site === 'youpin-mi') { listeningElement = '.m-goods-item-container'; } $('body').delegate(listeningElement, 'click', function (event) { if ($.inArray("" + dict[site] + "", G.force) >= 0) { return; } if (forbidDict) return; if ($(this).attr('cted') === '1' && !G.isMobile) { return; } if (firstClick && !G.isMobile && (G.from_device == 'jsdx' && G.secondShow || G.from_device == 'tlxs' && G.secondShow || G.from_device == 'hndx' || G.from_device == 'xdjf' && G.secondShow || G.from_device == 'hagw' && G.secondShow || G.from_device == 'mi_new')) { firstClick = false; return; } if (dict[site]) { var url = $(this).attr('href'); if (site === 'youpin-mi') { url = $(this).attr('data-src'); } if (!url || url.indexOf('order') > -1 || url.indexOf('cart') > -1) return; var classList = $(this).attr('class') || ''; url = makeUrl(G.href, url); if (url.indexOf('http') == 0 && url.indexOf('' + G.extName) < 0 && classList.indexOf(G.extName + '_link') == -1) { //if (G.site === '1688') { // if (G.force_1688_time && parseInt(G.force_1688_time) + 3600000*24 > (new Date).getTime()) { // return // } // util.settings('force_1688_time', 'force_1688_time', (new Date).getTime()) // return // if (localStorage.getItem('gwd-link') && parseInt(localStorage.getItem('gwd-link')) + 3600000*24 > (new Date).getTime()) { // return // } // localStorage.setItem('gwd-link', (new Date).getTime()) //} url = union_url + "?site_id=" + dict[site] + "&target_url=" + encodeURIComponent(url) + "&from=ct&column=dicts&union=" + G.union.replace('union_', ''); url = specialReplaceUrl(site, url); $(this).attr('ct', $(this).attr('href')); $(this).attr('href', url); if (site === 'youpin-mi') { $(this).attr('data-src', url); } forbidDict = true; $.ajax({ 'url': G.server + '/brwext/permanent_id/', 'dataType': 'jsonp', 'jsonp': 'callback', 'async': true, 'data': 'version=2&op=set_force&type=' + dict[site] + '&union=' + G.union, 'success': function success(msg) { G.force = msg.force; }, 'error': function error(a, b, c) { return; } }); } } }); } catch (e) { if (G.debug) { throw e; } } }; module.exports = function () { var site = makeSite(); if (site === 'kaola') { setTimeout(function () { init(site); }, 2000); } else { init(site); } }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "eb9a43b0b9642a1cba50": /***/ (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
    " /***/ }), /***/ "ec0a6bfa62375c0fd07a": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "f07a854b46071e85aa67": /***/ (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__("3832d7e2010c4bcbbba2"); /* 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"]; }); /***/ }), /***/ "f2b706dcdb3731e0de2c": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, Vue) { var _this = this; function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _componentsQRLinkTaobaoLogin = __webpack_require__("9c9b99688069c7c98a03"); var _componentsQRLinkTaobaoLogin2 = _interopRequireDefault(_componentsQRLinkTaobaoLogin); var request = __webpack_require__("91f250ebeb8d5987491c"); module.exports.init = function callee$0$0() { var redirectUrl, res, div; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: redirectUrl = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('redirectURL'); if (!(location.hostname !== 'login.m.taobao.com' || !redirectUrl)) { context$1$0.next = 3; break; } return context$1$0.abrupt('return'); case 3: if (!redirectUrl.includes('taolijin')) { context$1$0.next = 5; break; } return context$1$0.abrupt('return'); case 5: context$1$0.next = 7; return regeneratorRuntime.awrap(request.rawGet('https://www.gwdang.com/api/uland_to_dpid?u=' + encodeURIComponent(redirectUrl))); case 7: res = context$1$0.sent; $('.fm-agreement input').click(); div = document.createElement('DIV'); document.body.appendChild(div); new Vue({ el: div, render: function render(h) { return h(_componentsQRLinkTaobaoLogin2['default'], { props: { tag: 5, dpId: res.dp_id } }); } }); case 12: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "f3072a0cf83cf2b5938a": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a " /***/ }), /***/ "f333ae8f44dcbbc0596f": /***/ (function(module, exports) { module.exports = "
    \n

    该商品支持直邮中国

    \n

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

    \n

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

    \n
    \n" /***/ }), /***/ "f37a41a323a3e8d8897a": /***/ (function(module, exports) { module.exports = "
    \n \"\"\n
    \n \"\"\n \n 微信扫码\n 领红包\n \n
    \n
    \n" /***/ }), /***/ "f3d02ced7d319b2030c9": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _MemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _MemberCouponMixin2 = _interopRequireDefault(_MemberCouponMixin); exports['default'] = { mixins: [_MemberCouponMixin2['default']], props: ['data'], data: function data() { return { G: G }; }, computed: {}, methods: { link: function link(u, src) { if (src.indexOf('//') === 0) { return u.replace('$URL', encodeURIComponent('https:' + src)).replace('ext_promo_plan', 'promo_calc_plan'); } return u.replace('$URL', encodeURIComponent(src)).replace('ext_promo_plan', 'promo_calc_all'); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "f48ba811c1b2ba7ef0c9": /***/ (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__("4b9a1dffc80dda59b7be"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__QRLinkContactTmall_vue_vue_type_script_lang_js___ = __webpack_require__("c62f444e95d32876714d"); /* 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__("2c7fa747888a567cd254"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__node_modules_15_9_3_vue_loader_lib_runtime_componentNormalizer_js__ = __webpack_require__("9d0a4e2aa6ff804219fc"); /* 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); /***/ }), /***/ "f5273d7ea7d204de1d23": /***/ (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-subsidy-top gwd-component", on: { mouseover: _vm.over, click: _vm.goLink } }, [ _c("span", { staticClass: "value" }, [_vm._v(_vm._s(_vm.value) + "元")]), _vm._v(" "), _vm.qr ? _c( "div", { staticClass: "qrcode gwd-align" }, [ _c("img", { staticStyle: { "margin-top": "7px", width: "130px", height: "130px" }, 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(0) ], 1 ) : _vm._e() ] ) } var staticRenderFns = [ 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: "#f40f0f", "font-size": "14px" } }, [_vm._v("微信扫码")] ), _vm._v(" "), _c( "span", { staticStyle: { "margin-left": "4px", color: "#070707", "font-size": "12px" } }, [_vm._v("领红包")] ) ] ) } ] render._withStripped = true /***/ }), /***/ "f5b88856d10b03d040ca": /***/ (function(module, exports, __webpack_require__) { "use strict"; //https://github.com/javascript-obfuscator/javascript-obfuscator Object.defineProperty(exports, '__esModule', { value: true }); 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 _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })(); exports.parseMovementText = parseMovementText; exports.collectMovement = collectMovement; exports.packStaticFeatureValue = packStaticFeatureValue; exports.unpackStaticFeatureValue = unpackStaticFeatureValue; function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } } var DynamicDetails = (function () { function DynamicDetails() { _classCallCheck(this, DynamicDetails); this.touchPosition = { x: 0, y: 0 }; this.touchEventTrusted = false; this.mouseEventCount = 0; this.mousePosition = { x: 0, y: 0 }; this.mouseDownCount = 0; this.mouseClickPosition = { x: 0, y: 0 }; this.mouseEventTrusted = false; this.keyDownCount = 0; this.scrollCount = 0; this.windowBlur = false; this.windowFocus = false; this.consoleWindowOpened = false; this.ip = 0; //webrtc ipv4 address this.batteryLevel = 127; this.deviceOrientationExists = false; this.features = packStaticFeatureValue(); this.checkConsoleLoopHandle = 0; } _createClass(DynamicDetails, [{ key: 'touchStartFn', value: function touchStartFn(e) { this.touchEventTrusted = e.isTrusted; this.mouseEventCount++; var t = e.touches[0]; this.touchPosition.x = t.clientX | 0; this.touchPosition.y = t.clientY | 0; } }, { key: 'touchMoveFn', value: function touchMoveFn(e) { this.touchEventTrusted = e.isTrusted; this.mouseEventCount++; } }, { key: 'mouseMoveFn', value: function mouseMoveFn(e) { this.mouseEventTrusted = e.isTrusted; this.mouseEventCount++; } }, { key: 'mouseDownFn', value: function mouseDownFn(e) { //数值是不是0, 同时移动没有过界,window.outerHeight跟documentElement.clientHeight 或者document.body.clientHeight是否相等 this.mouseEventTrusted = e.isTrusted; this.mouseEventCount++; this.mousePosition.x = e.clientX; this.mousePosition.y = e.clientY; this.mouseDownCount++; } }, { key: 'mouseClickFn', value: function mouseClickFn(e) { this.mouseEventTrusted = e.isTrusted; this.mouseEventCount++; this.mouseClickPosition.x = e.clientX; this.mouseClickPosition.y = e.clientY; } }, { key: 'keyDownFn', value: function keyDownFn(e) { this.keyDownCount++; } }, { key: 'scrollFn', value: function scrollFn(e) { this.scrollCount++; } }, { key: 'focusFn', value: function focusFn(e) { this.windowFocus = true; this.windowBlur = false; } }, { key: 'blurFn', value: function blurFn(e) { this.windowBlur = true; } }, { key: 'devtoolsCb', value: function devtoolsCb() { var details = this; var element = new Image(); Object.defineProperty(element, 'id', { get: function get() { details.consoleWindowOpened = true; clearInterval(details.checkConsoleLoopHandle); } }); //console.log('%c', element); } }, { key: 'consoleCheckLoop', value: function consoleCheckLoop() { var func = this.devtoolsCb.bind(this); func(); this.checkConsoleLoopHandle = setInterval(function (e) { func(); }, 5e3); } }, { key: 'getBatteryStatus', value: function getBatteryStatus(details) { if (!navigator.getBattery) { return; } navigator.getBattery().then(function (battery) { if (battery) { details.batteryLevel = battery.level * 100 | 0; } }); } }, { key: 'getDeviceOrientation', value: function getDeviceOrientation(details) { function cb(event) { if (event.gamma) { details.deviceOrientationExists = true; } document.removeEventListener("deviceorientation", cb, false); } window.addEventListener('deviceorientation', cb, false); } }, { key: 'getWebRTCIP', value: function getWebRTCIP(details) { var t = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection; if (!t) details.ip = 0; var i = { optional: [{ "RtpDataChannels": !0 }] }; var r = { iceServers: [{ urls: "stun:stun.services.mozilla.com" }], sdpSemantics: "plan-b" }; try { var a = new t(r, i); setTimeout(function (n) { try { a.close(); } catch (t) {} }, 5e3); a.onicecandidate = function (t) { var i = t.candidate; if (!i) details.ip = 0; r = extractIPFromWebRTCCandidate(i.candidate); if (null != r) { details.ip = r; } a.onicecandidate = null; }; a.createDataChannel(""); a.createOffer().then(function (n) { a.setLocalDescription(n, function () {}, function () {}); })["catch"](function (t) { details.ip = 0; }); } catch (e) { details.ip = 0; } } }, { key: 'pack', value: function pack() { var group1 = this.touchPosition.x + ',' + this.touchPosition.y + ',' + (this.touchEventTrusted ? 1 : 0); var group2 = this.mouseEventCount + ',' + this.mousePosition.x + ',' + this.mousePosition.y + ',' + this.mouseClickPosition.x + ',' + this.mouseClickPosition.y + ',' + this.mouseDownCount + ',' + (this.mouseEventTrusted ? 1 : 0); var group3 = this.keyDownCount + ',' + this.scrollCount + ',' + (this.windowBlur ? 1 : 0) + ',' + (this.windowFocus ? 1 : 0); var group4 = (this.consoleWindowOpened ? 1 : 0) + ',' + numberToHex(this.ip) + ',' + this.batteryLevel + ',' + (this.deviceOrientationExists ? 1 : 0); var group5 = '' + numberToHex(this.features); var all = group1 + ';' + group2 + ';' + group3 + ';' + group4 + ';' + group5; return all; } }, { key: 'encode', value: function encode() { return Base64.encode(this.pack()); } }]); return DynamicDetails; })(); exports.DynamicDetails = DynamicDetails; ; function parseMovementText(text) { var _text$split = text.split(";"); var _text$split2 = _slicedToArray(_text$split, 5); var group1 = _text$split2[0]; var group2 = _text$split2[1]; var group3 = _text$split2[2]; var group4 = _text$split2[3]; var group5 = _text$split2[4]; var details = new DynamicDetails(); var _group1$split = group1.split(","); var _group1$split2 = _slicedToArray(_group1$split, 3); details.touchPosition.x = _group1$split2[0]; details.touchPosition.y = _group1$split2[1]; details.touchEventTrusted = _group1$split2[2]; details.touchEventTrusted = !!parseInt(details.touchEventTrusted); var _group2$split = group2.split(","); var _group2$split2 = _slicedToArray(_group2$split, 7); details.mouseEventCount = _group2$split2[0]; details.mousePosition.x = _group2$split2[1]; details.mousePosition.y = _group2$split2[2]; details.mouseClickPosition.x = _group2$split2[3]; details.mouseClickPosition.y = _group2$split2[4]; details.mouseDownCount = _group2$split2[5]; details.mouseEventTrusted = _group2$split2[6]; details.mouseEventTrusted = !!parseInt(details.mouseEventTrusted); var _group3$split = group3.split(","); var _group3$split2 = _slicedToArray(_group3$split, 4); details.keyDownCount = _group3$split2[0]; details.scrollCount = _group3$split2[1]; details.windowBlur = _group3$split2[2]; details.windowFocus = _group3$split2[3]; details.windowBlur = !!parseInt(details.windowBlur); details.windowFocus = !!parseInt(details.windowFocus); var _group4$split = group4.split(","); var _group4$split2 = _slicedToArray(_group4$split, 4); details.consoleWindowOpened = _group4$split2[0]; details.ip = _group4$split2[1]; details.batteryLevel = _group4$split2[2]; details.deviceOrientationExists = _group4$split2[3]; details.consoleWindowOpened = !!parseInt(details.consoleWindowOpened); details.deviceOrientationExists = !!parseInt(details.deviceOrientationExists); details.ip = int2ip(parseInt(details.ip, 16)); return [details, group5]; } function collectMovement(details) { var b = document.body; if ("ontouchmove" in document) { document.addEventListener("touchmove", details.touchMoveFn.bind(details), true); } b.addEventListener("touchstart", details.touchStartFn.bind(details), true); b.addEventListener("mousemove", details.mouseMoveFn.bind(details), true); b.addEventListener("mousedown", details.mouseDownFn.bind(details), true); b.addEventListener("click", details.mouseClickFn.bind(details), true); b.addEventListener("keydown", details.keyDownFn.bind(details), true); b.addEventListener("wheel", details.scrollFn.bind(details), true); window.addEventListener("focus", details.focusFn.bind(details), true); window.addEventListener("blur", details.blurFn.bind(details), true); details.getWebRTCIP(details); details.getDeviceOrientation(details); details.getBatteryStatus(details); details.consoleCheckLoop(); } function extractIPFromWebRTCCandidate(n) { var t = /(\d+)\.(\d+)\.(\d+)\.(\d+)\D/.exec(n); return t ? (+t[1] << 24 | +t[2] << 16 | +t[3] << 8 | +t[4]) >>> 0 : null; } function int2ip(ipInt) { return (ipInt >>> 24) + '.' + (ipInt >> 16 & 255) + '.' + (ipInt >> 8 & 255) + '.' + (ipInt & 255); } function numberToHex(number) { return parseInt(number).toString(16); } function isNativeObject(o) { return !!/native code/.test(o.toString.toString()) && !!/native code/.test(o.toString()); } function isPhantomjs() { var err = ""; try { null[0](); } catch (e) { err = e; } return err.stack.indexOf("phantomjs") > -1; } function IsSupportWebGL() { try { var canvasElement = document.createElement("canvas"); var webglContext = canvasElement.getContext("webgl"); if (webglContext) { var i = webglContext.getExtension("WEBGL_lose_context"); if (i) { i.loseContext(); } } return !!webglContext; } catch (e) { return false; } } function IsSupportLocalStorage() { try { localStorage.a = "b"; return localStorage.a === "b"; } catch (e) { return false; } } var headStyle = document.head.style; var isChrome = window.chrome !== undefined; var isIE = ("ActiveXObject" in window); var hasWeakMap = "WeakMap" in window.WeakMap && new window.WeakMap(); var ua = navigator.userAgent; //收集立刻能返回的标志, 通过bit set, 打包进一个interger var checkFunctions = { _1: function _1() { //chrome return isChrome; }, _2: function _2() { //firefox return "mozRTCIceCandidate" in window || "mozInnerScreenY" in window; }, _3: function _3() { //safari return "safari" in window; }, _4: function _4() { //IE return isIE; }, _5: function _5() { //IE doesn't support maxHeight return isIE && !("maxHeight" in headStyle); }, _6: function _6() { //IE 8 return isIE && !document.addEventListener; }, _7: function _7() { //IE 9 return isIE && !window.atob; }, _8: function _8() { //IE >= 10 return isIE && isNativeObject(window.Uint8Array); }, _9: function _9() { //IE >= 11 return isIE && hasWeakMap && isNativeObject(window.WeakMap); }, _10: function _10() { //chrome return "Google Inc." === navigator.vendor; }, _11: function _11() { //safari return "Apple Computer, Inc." === navigator.vendor; }, _12: function _12() { //chrome headless return window.innerWidth === 800 && window.innerHeight === 600 && window.outerWidth === 0 && window.outerHeight === 0 || navigator.languages == "" || /Headless/i.test(ua); }, _13: function _13() { //phantomjs return "callPhantom" in window || /PhantomJS/i.test(ua) || isPhantomjs(); }, _14: function _14() { //python return (/python/i.test(navigator.appVersion) ); }, _15: function _15() { return IsSupportLocalStorage(); }, _16: function _16() { return (/Maxthon/i.test(navigator.vendor) ); }, _17: function _17() { //opera return "opr" in window || "opera" in window; }, _18: function _18() { //chromium based browsers return isChrome && /BIDUBrowser/i.test(ua); }, _19: function _19() { return isChrome && /LBBROWSER/i.test(ua); }, _20: function _20() { return isChrome && /QQBrowser/.test(ua); }, _21: function _21() { return isChrome && /UBrowser/i.test(ua); }, _22: function _22() { return isChrome && /2345Explorer/.test(ua); }, _23: function _23() { return isChrome && /TheWorld/.test(ua); }, _24: function _24() { //Not Chrome, it's the Edge browser return isChrome && "MSGesture" in window; }, _25: function _25() { return isNativeObject(Object.getOwnPropertyDescriptor) && Object.getOwnPropertyDescriptor(navigator) != undefined; }, _26: function _26() { //webdriver return "$cdc_asdjflasutopfhvcZLmcfl_" in window || navigator.webdriver; }, _27: function _27() { //document is hidden return document.hidden; }, _28: function _28() { //chinese return (/zh-cn/i.test(navigator.language || navigator.systemLanguage) ); }, _29: function _29() { //beijing timezone return -480 === new Date().getTimezoneOffset(); }, _30: function _30() { return IsSupportWebGL(); }, _31: function _31() { //document size compare //IE8 不支持outerWidth, 同时如果成立表示, 没有显示滚动条 return window.outerWidth !== null && (window.outerWidth === document.documentElement.clientWidth || document.body.clientWidth); } }; exports.checkFunctions = checkFunctions; function packStaticFeatureValue() { var value = 0; for (var i in checkFunctions) { var shift = parseInt(i.split("_")[1]) - 1; var set = 0; try { set = checkFunctions[i]() ? 1 : 0; } catch (e) {} value |= set << shift; } return value; } function unpackStaticFeatureValue(value) { var number = parseInt(value, 16); var statuses = []; for (var i = 0; i < 31; i++) { var _status = (number & 1 << i) > 0; statuses.push(_status); } return statuses; } //用js实现, 打乱码表 var Base64 = { // private property _keyStr: "ZLHUPIO4tAok06E/caWCmSFfKusy3nrjJRzDTvBgY7wdMlXp82NViGq=+Qheb91x5", // public method for encoding encode: function encode(input) { var output = ""; var chr1, chr2, chr3, enc1, enc2, enc3, enc4; var i = 0; input = Base64._utf8_encode(input); while (i < input.length) { chr1 = input.charCodeAt(i++); chr2 = input.charCodeAt(i++); chr3 = input.charCodeAt(i++); enc1 = chr1 >> 2; enc2 = (chr1 & 3) << 4 | chr2 >> 4; enc3 = (chr2 & 15) << 2 | chr3 >> 6; enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } output = output + this._keyStr.charAt(enc1) + this._keyStr.charAt(enc2) + this._keyStr.charAt(enc3) + this._keyStr.charAt(enc4); } return output; }, // public method for decoding decode: function decode(input) { var output = ""; var chr1, chr2, chr3; var enc1, enc2, enc3, enc4; var i = 0; input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ""); while (i < input.length) { enc1 = this._keyStr.indexOf(input.charAt(i++)); enc2 = this._keyStr.indexOf(input.charAt(i++)); enc3 = this._keyStr.indexOf(input.charAt(i++)); enc4 = this._keyStr.indexOf(input.charAt(i++)); chr1 = enc1 << 2 | enc2 >> 4; chr2 = (enc2 & 15) << 4 | enc3 >> 2; chr3 = (enc3 & 3) << 6 | enc4; output = output + String.fromCharCode(chr1); if (enc3 != 64) { output = output + String.fromCharCode(chr2); } if (enc4 != 64) { output = output + String.fromCharCode(chr3); } } output = Base64._utf8_decode(output); return output; }, // private method for UTF-8 encoding _utf8_encode: function _utf8_encode(string) { string = string.replace(/\r\n/g, "\n"); var utftext = ""; for (var n = 0; n < string.length; n++) { var c = string.charCodeAt(n); if (c < 128) { utftext += String.fromCharCode(c); } else if (c > 127 && c < 2048) { utftext += String.fromCharCode(c >> 6 | 192); utftext += String.fromCharCode(c & 63 | 128); } else { utftext += String.fromCharCode(c >> 12 | 224); utftext += String.fromCharCode(c >> 6 & 63 | 128); utftext += String.fromCharCode(c & 63 | 128); } } return utftext; }, // private method for UTF-8 decoding _utf8_decode: function _utf8_decode(utftext) { var string = ""; var i = 0; var c = 0; var c2 = 0; var c3 = 0; while (i < utftext.length) { c = utftext.charCodeAt(i); if (c < 128) { string += String.fromCharCode(c); i++; } else if (c > 191 && c < 224) { c2 = utftext.charCodeAt(i + 1); string += String.fromCharCode((c & 31) << 6 | c2 & 63); i += 2; } else { c2 = utftext.charCodeAt(i + 1); c3 = utftext.charCodeAt(i + 2); string += String.fromCharCode((c & 15) << 12 | (c2 & 63) << 6 | c3 & 63); i += 3; } } return string; } }; exports.Base64 = Base64; /***/ }), /***/ "f6604761a98ac98bbcec": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); exports['default'] = { methods: { click: function click() { this.$emit('refresh'); } } }; module.exports = exports['default']; /***/ }), /***/ "f6ab27a2ba363b04ef1f": /***/ (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" /***/ }), /***/ "f7871f42b02e673352d0": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, "a[data-v-5ccff421] {\n background: url(" + __webpack_require__("7085b088614fbdb590cb") + ");\n width: 256px;\n height: 30px;\n}\na span[data-v-5ccff421] {\n text-align: center;\n}\na .gwd-content[data-v-5ccff421] {\n color: white;\n font-size: 12px;\n}\na .gwd-take[data-v-5ccff421] {\n display: inline-block;\n font-size: 12px;\n color: white;\n width: 70px;\n}\na[data-v-5ccff421]:hover {\n text-decoration: none;\n}\n", ""]); // exports /***/ }), /***/ "f850f08dfe2248a6ab94": /***/ (function(module, exports) { module.exports = "\n \n {{store_tle}}\n ¥{{min_price}}\n" /***/ }), /***/ "f86fbf95570d4916afe7": /***/ (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__)); /***/ }), /***/ "fa297f213d29eb497c63": /***/ (function(module, exports, __webpack_require__) { "use strict"; var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); 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; }; /***/ }), /***/ "fad7ead7228f616ec948": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a \n\n
    \n456\n\n
    " /***/ }), /***/ "fd9897c729ad65b271df": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G) { (function () { 'use strict'; //判断是否为重复加载,如果为重复加载,直接结束脚本 if (__webpack_require__("a277d2d1e7d7916957bf")) return; /*IE在淘宝天猫不出插件*/ var IE = __webpack_require__("1529c418281de0d4e4b2")(); if (IE && location.host.match(/(?:taobao|tmall|yao\.95095|1688\.com|aliexpress\.com|ieframe\.dll)/)) return; // 京东移动端触摸模拟 if (location.href.indexOf('plogin.m.jd.com') > -1) { __webpack_require__("165a6a29b755ef153829").init(); } __webpack_require__("b1cae3a1887fb97c6c83"); __webpack_require__("3fb8e5219d9e2232a6e9").init(); __webpack_require__("5e05e6f5fe79ccf5d009").init(); __webpack_require__("d82c9248d08dbd7e46d4").init(); var cnzz = __webpack_require__("83271c7588396d2d5e59"); if (cnzz) cnzz.init(G.gwd_cnzz); if (location.host === 'm.fine3q.com') __webpack_require__("bf822aacfeba494ced92").init(); if (G.pageInfo.type === 0) return; //hao123和百度域名全部不加载任何内容 __webpack_require__("d090c1e762d2e495b00c").init(); if (__webpack_require__("aa16a056510f1028879c")()) return; __webpack_require__("edd40abc3cca37fc4610"); __webpack_require__("1f2fc6d8a8045863aace"); G.logoName = __webpack_require__("2b6ed47fb40018872f18")(8); //检查当前网页是否在插件收录范围内 if (navigator.userAgent.indexOf('Maxthon') > -1) { // if (location.host.indexOf('tmall') > -1 || location.host.indexOf('95095') > -1) { // G.maxthon_tmall = true // } } G.plugins = [__webpack_require__("3dbec38a0e3472df70b7"), __webpack_require__("1f677ede70b4f8bcb282")]; __webpack_require__("3e283580401dd2fcdc15"); __webpack_require__("be85ec117a8e337ebbac")(); __webpack_require__("edb006a6bdc87dceab2d").common(function (data) { var dictsArr = ['booking', 'elong', 'wbiao', 'agoda', 'hotels', '228', 'roseonly', 'feelunique', "nike", 'kaola', 'vipshop', 'hujiang', '1688', 'opposhop', 'vsigo', 'keede', 'zazhipu', 'banggo', 'discount-apotheke', 'bl', '1hai', 'pharmacydirect', 'flyco', 'takeya', 'xgdq', 'guojimami', 'shoprobam', 'staples', 'boqii', 'mei', 'tuhu', 'hangowa', 'lookfantastic-cn', 'lookfantastic-com', 'iherb', 'shopbop', 'yoox', 'skinstore', 'ctrip', 'koolearn', 'chinaacc', 'youpin-mi', 'opposhop', 'oneplus']; var blockCityList = ['北京', '上海', '广州', '深圳', '杭州', '南京']; // let blockCityList = ['北京', '上海', '广州', '深圳', '杭州']; var blockCity = false; blockCityList.forEach(function (city) { if (data && data.result && !(data.result instanceof Array) && data.result.address.indexOf(city) > -1) { blockCity = true; } }); if (data && data.result && !(data.result instanceof Array) && !blockCity) { if (dictsArr.indexOf) { if (dictsArr.indexOf(G.site) > -1) { G.set_force = true; } } G.forbidAd = true; } else if (data && data.result.address.indexOf('南京') == -1) { G.forbidAd = true; } if (data && data.result.address.indexOf('北京') > -1) { G.forbidMinibar = true; G.forbidGiftMoney = true; } if (data && data.result && data.result instanceof Array) { G.forbidCoupon = true; } if (data && data.result && !(data.result instanceof Array) && (data.result.address.indexOf('北京') > -1 || data.result.address.indexOf('杭州') > -1)) { G.forbidCoupon = true; } G.isMonkey = true; __webpack_require__("cb0906562effcf1b0e6c").getRate(function () { __webpack_require__("4733a3dd803685ec596a").get(function () { console.log('monkey-1229'); __webpack_require__("e6521b4ea881581e5851").init(); }); }); }); })(); /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "fe07faa726be683793d3": /***/ (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__("62487f75eaef2f9d0c30"); /* 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); /***/ }), /***/ "fe179e544c8fafeea4a2": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _this = this; module.exports.init = function callee$0$0() { var cnzz, request, dpId, payload, params, res, GiftMoney, GiftMoneyTop; return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: cnzz = __webpack_require__("83271c7588396d2d5e59"); if (!$('.bjgou-subsidy-bar').length) { context$1$0.next = 3; break; } return context$1$0.abrupt('return', false); case 3: console.log('tb giftmoney start'); request = __webpack_require__("91f250ebeb8d5987491c"); dpId = __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('id'); if (location.hostname.indexOf('tmall') > -1) { dpId = dpId + '-83'; } else { dpId = dpId + '-123'; } payload = { rebate: 1, dp_id: dpId, rate: 0.1 }; if (G.dp.price) { payload.price = G.dp.price; } params = Object.keys(payload).map(function (k) { return k + '=' + encodeURIComponent(payload[k]); }).join('&'); context$1$0.next = 12; return regeneratorRuntime.awrap(request.get('https://browser.gwdang.com/extension/Coupon?' + params)); case 12: res = context$1$0.sent; console.log(res); if (res.rebate) { context$1$0.next = 16; break; } return context$1$0.abrupt('return', false); case 16: GiftMoney = __webpack_require__("52391b2828a974c3b885")['default']; $('#gwd-coupon-placeholder').replaceWith('
    '); if (!$('.bjgou-subsidy-bar').length) { context$1$0.next = 20; break; } return context$1$0.abrupt('return', false); case 20: cnzz.logOnce('taobaoGiftMoney:show'); cnzz.logOnce('taobaoGiftMoney:-show'); new Vue({ el: '#gwd-giftmoney', render: function render(h) { return h(GiftMoney, { props: { value: res.rebate, qr: res._jump === 'qrcode', url: res.url, id: dpId, name: '购物党', price: res.price } }); } }); GiftMoneyTop = __webpack_require__("28ca786b072dc40c7e4b")['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, id: dpId, price: res.price, name: '购物党' } }); } }); return context$1$0.abrupt('return', true); case 27: case 'end': return context$1$0.stop(); } }, null, _this); }; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "ff881c8b15091819a13e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $) { var communicate = __webpack_require__("91f58afd0ad3a4e2ef06"); var buildTaobaoUrl = __webpack_require__("cc45d932d8dbdb86f2f3"); var dataShare = __webpack_require__("cde79cb5670e8bdeb4fb"); 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__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "ff8d16a23118d8d9618f": /***/ (function(module, exports, __webpack_require__) { exports = module.exports = __webpack_require__("e51604a168fd9d6c615d")(); // imports // module exports.push([module.i, " #gwd_ht_main a{\n display: inline-block;\n }\n .gwd_haitao {\n font-size: 12px;\n font-family: 'Microsoft Yahei'\n }\n #gwd_ht_main{\n width: 376px;\n height: 198px;\n font-size: 13px;\n display: inline-block;\n border: 1px solid #e6e9eb;\n border-radius: 18px;\n box-shadow: 0px 5px 19px 0px #d7d8d9;\n }\n #gwd_ht_load img {\n position: relative;\n top: 91px;\n left: 74px;\n }\n .ht_6pm{\n position: relative;\n margin: 0 auto;\n }\n #gwd_ht_main .ht_head{\n height: 36px;\n position: relative;\n }\n #gwd_ht_main .gwd_site_icon{\n display: inline-block;\n background: url('http://s1.gwdang.com/images/extensions/haitao_siteicon.png') 13px 7px no-repeat;\n background-size: 24px 22px;\n height: 36px;\n width: 52px;\n float: left;\n cursor: pointer;\n }\n #gwd_ht_main .unit_price #ht_addcollect{\n border: 1px solid #f07860;\n cursor: pointer;\n height: 24px;\n line-height: 24px;\n text-align: center;\n width: 77px;\n border-radius: 12px;\n background-color: #fff;\n margin-bottom: 6px;\n margin-top: 4px;\n color: #f07860;\n }\n #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_adding{\n background-color: #f07860;\n color: #fff;\n }\n #gwd_ht_main .unit_price #ht_addcollect.trend_wait.c_added{\n background-color: #f07860;\n color: #fff;\n }\n .unit_price > span {\n font-size: 14px;\n }\n .price_tle {\n margin-left: 12px;\n }\n #gwd_ht_main .unit_price #ht_addcollect:hover {\n text-decoration: none;\n }\n #gwd_ht_main .unit_price #ht_addcollect:hover span {\n text-decoration: underline;\n }\n .gwd_haitao .price_num{\n color: #778e99;\n display: inline-block;\n width: 89px;\n font-weight: bold;\n font-size: 16px;\n margin-left: 10px;\n }\n .gwd_haitao .ht_getprice{\n width: 322px;\n height: 35px;\n line-height: 35px;\n font-size: 16px;\n text-align: center;\n float: left;\n color: #454A4D;\n border-left: 1px solid #e6e9eb;\n }\n .fontf_Arial {\n font-family: \"Arial\";\n font-weight: bold;\n }\n .ht_getprice_num {\n font-weight: bold;\n color: #EB2F2F;\n font-size: 18px;\n }\n .unit_price{\n text-align: left;\n }\n .on_Or_Off {\n position: absolute;\n top: 52px;\n right: 0px;\n height: 20px;\n line-height: 20px;\n width: 20px;\n color: red;\n }\n .translate_detail {\n top: 64px;\n left: 350px;\n }\n a.trans_help {\n color: #40ace6;\n font-size: 14px;\n margin-left: 40px;\n margin-right: 330px;\n }\n .trans_help:hover {\n color: #2b7299;\n text-decoration: none;\n }\n .gwd_haitao .content_default_left .tariff_remind_detail {\n right: 247px;\n height: 90px;\n top: -27px;\n }\n .gwd_haitao .div_detail {\n display: none;\n position: absolute;\n width: 146px;\n border: 1px solid #e6e9eb;\n background-color: #fff;\n z-index: 99;\n line-height: 19px;\n font-size: 12px;\n color: #888;\n padding: 6px 6px 9px 6px;\n box-shadow: 2px 2px 12px 2px #e6e9eb;\n height: auto;\n }\n .gwd_haitao .content_default_left .weight_type_detail {\n top: 7px;\n left: 156px;\n position: absolute;\n width: 113px;\n height: 24px;\n line-height: 22px;\n padding: 0px 6px;\n }\n .collect_detail {\n top: -7px;\n left: 244px;\n text-align: left;\n }\n .gwd_haitao .transport_remind_detail {\n padding: 0px 6px;\n top: 9px;\n left: 241px;\n width: 112px;\n }\n .gwd_haitao .tariff_info_detail {\n padding: 0 6px;\n width: 110px;\n top: 9px;\n left: 241px;\n }\n .pro_type_detail {\n top: 9px;\n left: 350px;\n }\n .gwd_haitao .pro_type_detail.div_detail {\n padding: 0 6px;\n width: 134px;\n }\n .mail_type_detail {\n top: 33px;\n left: 350px;\n }\n #ht_trans_input{\n position: relative;\n top: 8px;\n cursor: pointer;\n }\n .size_detail {\n top: 130px;\n left: 350px;\n }\n .gwd_haitao .size_detail.div_detail {\n padding: 0px 6px;\n width: 110px;\n }\n .trans_label{\n height: 30px;\n line-height: 30px;\n font-weight: normal;\n }\n .ht_translate:hover {\n cursor: text;\n }\n .ht_translate,.pro_type,.mail_type{\n text-align: left;\n }\n .pro_type:hover,.mail_type:hover {\n cursor: text;\n }\n .gwd_haitao .ht_getprice:hover{\n text-decoration: none;\n color: #454A4D;\n }\n .gwd_haitao .ht_weight_num{\n height: 20px;\n width: 54px;\n float: left;\n border-radius: inherit;\n border-bottom-left-radius: 4px;\n border-top-left-radius: 4px;\n border-right: none;\n position: relative;\n margin-top: 9px;\n margin-left: 15px;\n padding: 0 3px;\n display: inline-block;\n border: 1px solid #47befe;\n box-sizing: initial;\n font-size: 12px;\n }\n .gwd_haitao .weight_type{\n display: inline-block;\n height: 22px;\n width: 24px;\n background-color: #47befe;\n color: #fff;\n text-align: center;\n line-height: 22px;\n position: relative;\n margin-top: 9px;\n border-top-right-radius: 4px;\n cursor: pointer;\n border-bottom-right-radius: 4px;\n }\n .gwd_haitao .content_default_left{\n height: 160px;\n width: 254px;\n border-right: 1px solid #e6e9eb;\n float: left;\n display: inline-block;\n }\n .gwd_haitao .ht_weight span {\n float: left;\n font-size: 14px;\n }\n .ht_weight .weight_tle {\n margin-left: 12px;\n } \n .content_default_left div{\n height: 40px;\n line-height: 40px;\n color: #373737;\n position: relative;\n border-bottom: 1px solid #e6e9eb\n }\n .gwd_haitao .content_default_left div.ht_tariff {\n border-bottom: none;\n }\n .gwd_haitao .ht_transport_btn,.gwd_haitao .ht_tariff_btn{\n float: right;\n margin-right: 15px;\n cursor: pointer;\n color: #40ace6;\n }\n .gwd_haitao .ht_transport_btn:hover,.ht_tariff_btn:hover{\n text-decoration: none;\n color: #40ace6;\n }\n .gwd_haitao .ht_freight_num{\n display: inline-block;\n width: 42px;\n color: #778e99;\n font-size: 14px;\n }\n .gwd_haitao .ht_freight,.gwd_haitao .del_line{\n display: inline-block;\n text-align: left;\n font-size: 14px;\n margin-left: 12px;\n }\n a.ht_transport_btn span, .ht_tariff_btn span {\n display: inline-block;\n width: 60px;\n height: 40px;\n overflow: hidden;\n float: left;\n font-size: 12px;\n margin-right: 5px;\n }\n a.ht_transport_btn span:hover, .ht_tariff_btn span:hover {\n text-decoration: underline;\n }\n .gwd_haitao .point_icon{\n background: url('http://s1.gwdang.com/images/extensions/haitao_downblueicon.png') 0px 0px no-repeat;\n background-size: 9px 6px;\n display: inline-block;\n height: 9px;\n width: 10px;\n position: relative;\n top: 1px;\n }\n .gwd_haitao .del_line{\n cursor: pointer;\n display: inline-block;\n width: 98px;\n }\n .gwd_haitao .del_line .ht_tariff_num {\n text-decoration: line-through;\n color: #778e99;\n font-size: 14px;\n }\n .gwd_haitao .del_line .ht_tariff_num em {\n font-style: normal;\n }\n .gwd_haitao .content_default_right{\n display: inline-block;\n height: 160px;\n width: 119px;\n }\n .gwd_haitao .content_default_right a{\n width: 120px;\n height: 40px;\n line-height: 40px;\n color: #383835;\n border-bottom: 1px solid #e6e9eb;\n padding: 0 0 0 14px;\n text-decoration: none;\n }\n .gwd_haitao .content_default_right a span {\n font-size: 12px;\n margin-left: 7px;\n }\n .gwd_haitao .content_default_right a:hover{\n text-decoration: none;\n color: #383835;\n }\n #gwd_ht_main .size_help{\n cursor: pointer;\n border-bottom: none;\n }\n #gwd_ht_main .size_help span {\n text-decoration: none;\n color: #5aa4cc;\n }\n #gwd_ht_main .size_help span:hover {\n text-decoration: underline;\n }\n .gwd_haitao .content_default_right em{\n display: inline-block;\n width: 20px;\n height: 20px;\n position: relative;\n top: 5px;\n }\n .gwd_haitao .size_help em{\n background: url('http://s1.gwdang.com/images/extensions/haitao_sizeicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .ht_translate em{\n background: url('http://s1.gwdang.com/images/extensions/haitao_transicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .pro_type .ziying{\n background: url('http://s1.gwdang.com/images/extensions/haitao_ziyingicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .pro_type .sanfang{\n background: url('http://s1.gwdang.com/images/extensions/haitao_sanicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .mail_type .zhiyou{\n background: url('http://s1.gwdang.com/images/extensions/haitao_zhiicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .mail_type .feizhiyou{\n background: url('http://s1.gwdang.com/images/extensions/haitao_zhuanicon.png') 0px 0px no-repeat;\n background-size: 20px 20px;\n }\n .gwd_haitao .same-style em {\n background: url('http://s1.gwdang.com/images/extensions/haitao_samestyle.png') 0px 0px no-repeat;\n }\n .gwd_haitao .vip_tle em {\n background: url('http://s1.gwdang.com/images/extensions/haitao_vipicon.png') 0px 0px no-repeat;\n }\n .gwd_haitao .gwd_wishlist_trend_detail_wrapper{\n float: left;\n }\n .gwd_haitao .ht_content{\n height: 162px;\n border-top: 1px solid #e6e9eb;\n position: relative;\n }\n .content_default {\n float: left;\n }\n .content_default:after, .gwd_haitao .content_default_right:after {\n content: \"\";\n display: block;\n clear: both;\n }\n /* 关税分类选择 */\n #tariff_detail{\n position: absolute;\n display:none;\n background-color: #fff;\n z-index: 99999999;\n top: 0px;\n left: 0px;\n width: 290px;\n height: 180px;\n border: 1px solid #e6e9eb;\n box-shadow: 0px 5px 19px 0px #d7d8d9;\n }\n #tariff_detail .xialabox a{\n display:block;\n color: #5c6266;\n margin-left: 7px;\n width: 98px;\n height: 25px;\n line-height: 25px;\n overflow: hidden;\n }\n #tariff_detail .xialabox a:hover{\n color: #47befe;\n text-decoration: underline;\n }\n #tariff_detail .tar_head{\n height: 40px;\n border-bottom: 1px solid #e6e9eb;\n }\n #tariff_detail .tar_desc , #tariff_detail .tar_head {\n font-size: 14px;\n }\n #tariff_detail .tar_head span{\n display: inline-block;\n height: 34px;\n line-height: 35px;\n font-size: 14px;\n text-align: center;\n width: 271px;\n }\n #tariff_detail .ht_tariff_num, .ht_tariff_cate {\n color: #40ace6;\n }\n .ht_tariff_cate {\n width: 70px;\n height: 20px;\n overflow: hidden;\n display: inline-block;\n line-height: 20px;\n position: relative;\n top: 5px;\n }\n #tariff_detail .del_line {\n width: 118px;\n }\n .gwd_haitao .tar_desc{\n line-height: 35px;\n }\n .gwd_haitao .tar_desc .del_line{\n margin: 0 0 0 20px;\n }\n .gwd_haitao .tar_desc .desc_t{\n margin-left: 9px;\n }\n #cate_select_box{\n text-align: center;\n margin-top: 4px;\n position: relative;\n }\n .gwd_haitao #cate_select_box input{\n height: 30px;\n width: 109px;\n background: url('http://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 89px 11px;\n background-size: 12px 7px;\n cursor: pointer;\n border: 1px solid #fff;\n box-shadow: none;\n box-sizing: border-box;\n padding: 3px 7px;\n border-radius: 4px;\n color: #9ca7ad;\n font-size: 12px;\n }\n .gwd_haitao #cate_select_box input.sel_info{\n background-color: #e1e1e1;\n }\n .gwd_haitao #cate_select_box input.input_hover{\n border-bottom: 1px solid #fff;\n color: #9ca7ad;\n }\n .gwd_haitao .cate_select_1{\n display: inline-block;\n float: left;\n margin-left: 22px;\n border: 1px solid #969899;\n border-radius: 4px;\n position: relative;\n }\n .gwd_haitao .cate_select_1.select_hover , .gwd_haitao .cate_select_2.select_hover{\n height: 218px;\n z-index: 9999;\n background-color: #fff;\n\n }\n .gwd_haitao .cate_select_2{\n margin-left: 16px;\n display: inline-block;\n border: 1px solid #969899;\n border-radius: 4px;\n position: relative;\n float: left;\n }\n .gwd_haitao .xialabox{\n display: none;\n background-color: #fff;\n overflow-y: scroll;\n overflow-x: hidden;\n height: 185px;\n text-align: left;\n border-top: none;\n position: absolute;\n width: 109px;\n font-size: 12px;\n }\n .ie_hack.gwd_haitao .xialabox {\n width: 111px;\n }\n .gwd_haitao #select_btn{\n display: inline-block;\n width: 60px;\n height: 24px;\n background-color: #47befe;\n border-radius: 12px;\n margin: 0 auto;\n color: #fff;\n text-align: center;\n line-height: 23px;\n cursor: pointer;\n position: absolute;\n top: 54px;\n left: 116px;\n }\n #transport_detail{\n position: fixed;\n width: 755px;\n height: 314px;\n border: 1px solid #e6e9eb;\n background-color: #fff;\n top: 400px;\n left: 400px;\n display: none;\n z-index: 99999;\n box-shadow: 0px 5px 19px 0px #d7d8d9;\n }\n #transport_detail *{\n box-sizing: border-box;\n }\n #transport_detail .trans_nav .span_0 {\n margin-left: 10px;\n }\n #transport_detail .trans_nav .span_1{\n text-align: left;\n width: 146px;\n margin-left: 17px;\n }\n #transport_detail .trans_nav .span_2{\n text-align: left;\n width: 147px;\n margin-left: 4px;\n }\n .ht_trans_detail .trans_head{\n height: 51px;\n border-bottom: 1px solid #e6e9eb;\n }\n .gwd_haitao .closebar{\n display: inline-block;\n text-align: center;\n font-size: 30px;\n position: absolute;\n top: 4px;\n right: 7px;\n color: #666;\n cursor: pointer;\n }\n .gwd_haitao .closebar.closebg {\n background: url(\"http://s1.gwdang.com/images/extensions/haitao_closeicon.png\") 6px 6px no-repeat;\n background-size: 9px 9px;\n height: 22px;\n width: 22px;\n top: 1px;\n right: 1px;\n }\n .gwd_haitao .closebar.closebg:hover {\n background: url(\"http://s1.gwdang.com/images/extensions/haitao_closehovericon.png\") 3px 3px no-repeat;\n background-size: 15px 15px;\n }\n .ht_trans_detail .trans_nav{\n display:inline-block;\n float: left;\n width: 753px;\n }\n .ht_trans_detail .trans_nav>span{\n width: 120px;\n color: #5c6266;\n font-size: 16px;\n height: 48px;\n font-weight: bold;\n float: left;\n line-height: 48px;\n text-align: center;\n }\n .ht_trans_detail .trans_nav .span_3 {\n width: 196px;\n text-align: left;\n color: #406980;\n margin-left: 35px;\n }\n .ht_trans_detail .trans_nav .trans_w{\n text-align: left;\n position: absolute;\n top: 14px;\n left: 352px;\n height: 20px;\n }\n .ht_trans_detail .trans_w .weight_type{\n height: 20px;\n width: 26px;\n margin-top: 0px;\n line-height: 20px;\n font-size: 14px;\n float: left;\n font-weight: normal;\n }\n .ht_trans_detail .trans_w .ht_weight_num{\n height: 20px;\n position: static;\n width: 49px;\n margin-top: 0px;\n font-size: 12px;\n border-color: #8dc2e5;\n }\n .gwd_haitao .trans_content {\n height: 210px;\n width: 751px;\n overflow-y: scroll;\n }\n .ht_trans_detail .trans_foot,.size_desc {\n color: #9f9f9f;\n line-height: 35px;\n }\n .ht_trans_detail .trans_foot {\n height: 50px;\n border-top: 1px solid #e6e9eb;\n line-height: 50px;\n }\n .gwd_haitao .red{\n color: #e72030;\n }\n .gwd_haitao span.red {\n background: url('http://s1.gwdang.com/images/extensions/haitao_staricon.png') 0px 1px no-repeat;\n background-size: 8px 9px;\n height: 10px;\n width: 10px;\n display: inline-block;\n }\n .ht_trans_detail .trans_foot .red+span{\n color: #919699;\n }\n .ht_trans_detail #trans_list{\n margin: 0px;\n padding: 0px;\n }\n .ht_trans_detail #trans_list li{\n list-style: none;\n display: block;\n color: #333;\n cursor: pointer;\n text-align: left;\n background-color: #fff;\n }\n .ht_trans_detail #trans_list li:after{\n display:block;\n clear:both;\n content:\"\";\n visibility:hidden;\n height:0;\n }\n .gwd_haitao #trans_list li:hover{\n background-color: #E1E1E6;\n }\n .ht_trans_detail #trans_list li>span, .ht_trans_detail #trans_list li>a{\n display:inline-block;\n margin-top: 8px;\n margin-bottom: 8px;\n float: left;\n text-align: left;\n white-space: pre-wrap;\n color: #5c6266;\n }\n .ht_trans_detail #trans_list li a:hover {\n text-decoration: none;\n }\n span.sale_tle {\n width: 225px;\n margin-left: 36px;\n line-height: 16px;\n }\n span.sale_tle a{\n color: #40ace6;\n }\n span.sale_tle a:hover {\n color: #2b7299;\n }\n .ht_trans_detail .lo_center{\n margin-left: 24px;\n width: 120px;\n line-height: 16px;\n }\n .ht_trans_detail span.trans_cate {\n width: 130px;\n margin-left: 16px;\n }\n .ht_trans_detail span.trans_pr {\n width: 146px;\n margin-left: 30px;\n line-height: 16px;\n }\n .ht_trans_detail a.trans_com {\n width: 85px;\n margin-left: 39px;\n line-height: 16px;\n color: #333;\n }\n .ht_trans_detail a.trans_com:hover {\n color: #0066c0;\n text-decoration: none;\n }\n /* 没有优惠政策的情况 */\n #transport_detail.no_sale {\n width: 490px;\n }\n .no_sale.ht_trans_detail .trans_nav {\n width: 436px;\n }\n .no_sale.gwd_haitao .trans_content {\n width: 444px;\n }\n .no_sale.ht_trans_detail .trans_nav .span_3 {\n display: none;\n }\n #transport_detail.no_sale span.sale_tle {\n display: none;\n }\n /* 尺码帮助 */\n #size_detail{\n width: 618px;\n height: 440px;\n position: fixed;\n top: 400px;\n left: 400px;\n display: none;\n text-align: left;\n z-index: 9999999;\n box-sizing: border-box;\n background-color: #fff;\n border: 1px solid #e6e9eb; \n box-shadow: 0px 5px 19px 0px #d7d8d9; \n }\n .ht_size_detail .shangyi, .tongzhuang0, .tongxie0{\n position: absolute;\n left: 38px;\n }\n .ht_size_detail .xiazhuang, .tongzhuang4, .tongxie4{\n position: absolute;\n top: 50px;\n left: 38px;\n }\n .ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n display: none;\n }\n .ht_size_detail span.shoes {\n position: absolute;\n top: 39px;\n left: 38px;\n color: #fff;\n background-color: #47befe;\n border: 1px solid #47befe;\n }\n .ht_size_detail .shangyi.size_hover,.ht_size_detail .xiazhuang.size_hover, .ht_size_detail .xiazhuang.size_hover, .ht_size_detail .tongzhuang.size_hover, .ht_size_detail .tongxie.size_hover{\n background-color: #47befe;\n border: 1px solid #47befe;\n color: #fff;\n }\n .ht_size_detail .shangyi,.ht_size_detail .xiazhuang,.ht_size_detail .shoes,.ht_size_detail .tongzhuang, .ht_size_detail .tongxie{\n height: 30px;\n width: 60px;\n text-align: center;\n line-height: 30px;\n cursor: pointer;\n border-radius: 15px;\n border: 1px solid #969899;\n color: #8A9499;\n }\n .ht_size_detail .cloth_icon{\n position: absolute;\n top: 100px;\n left: 22px;\n }\n \n .ht_size_detail .manshangzhuang {\n background: url('http://s1.gwdang.com/images/extensions/man_shangzhuang.png') -4px 0px no-repeat;\n height: 191px;\n width: 93px;\n }\n .ht_size_detail .womanshangzhuang {\n background: url('http://s1.gwdang.com/images/extensions/woman_shangzhuang.png') 0px 0px no-repeat;\n height: 187px;\n width: 87px;\n }\n .ht_size_detail .kid0 {\n background: url('http://s1.gwdang.com/images/extensions/kids0_4.png') 0px 0px no-repeat;\n height: 187px;\n width: 87px;\n margin-left: 8px;\n }\n .ht_size_detail .kid4 {\n background: url('http://s1.gwdang.com/images/extensions/kids4_12.png') -2px 0px no-repeat;\n height: 187px;\n width: 87px;\n margin-left: 0px;\n }\n .ht_size_detail .manxiazhuang {\n background: url('http://s1.gwdang.com/images/extensions/man_xiazhuang.png') -17px 0px no-repeat;\n height: 216px;\n width: 63px;\n margin-left: 13px;\n }\n .ht_size_detail .womanxiazhuang {\n background: url('http://s1.gwdang.com/images/extensions/woman_xiazhuang.png') 0px 0px no-repeat;\n height: 220px;\n width: 66px;\n margin-left: 11px;\n }\n \n .ht_size_detail .ht_shoes.man_foot {\n background: url('http://s1.gwdang.com/images/extensions/man_foot.png') 4px 0px no-repeat;\n height: 170px;\n width: 111px;\n }\n .ht_size_detail .ht_shoes.woman_foot {\n background: url('http://s1.gwdang.com/images/extensions/woman_foot.png') 4px 0px no-repeat;\n height: 170px;\n width: 111px;\n }\n .ht_size_detail .ht_shoes.kids_foot {\n background: url('http://s1.gwdang.com/images/extensions/kid_shoes.png') 0px 0px no-repeat;\n height: 171px;\n width: 131px;\n left: 4px;\n }\n .ht_size_detail .clothes_nav{\n margin-top: 13px;\n line-height: 30px;\n height: 30px;\n width: 567px;\n margin-left: 55px;\n }\n .ht_size_detail .clothes_nav ul{\n padding: 0;\n margin: 0px;\n }\n .ht_size_detail .size_s{\n height: 40px;\n display: inline-block;\n border-right: 2px solid #e6e9eb;\n }\n .detail_left {\n float: left;\n width: 136px;\n height: 367px;\n position: relative;\n }\n .detail_left span {\n display: inline-block;\n }\n .ht_size_detail #size_item{\n height: 180px;\n width: 452px;\n overflow-y: scroll;\n border: 1px solid #e6e9eb;\n }\n .ht_size_detail .clothes_nav ul li{\n list-style: none;\n float: left;\n font-size: 16px;\n width: 32px;\n margin-right: 57px;\n color: #000;\n cursor: pointer;\n border-bottom: 3px solid #fff;\n }\n .ht_size_detail .clothes_nav ul li:hover {\n color: #47befe;\n }\n .ht_size_detail .clothes_nav ul li.select{\n border-bottom: 3px solid #47befe;\n color: #47befe;\n }\n .ht_size_detail .size_head{\n height: 60px;\n }\n .ht_size_detail .unit_desc{\n display: inline-block;\n float: right;\n margin-right: 27px;\n margin-top: 8px;\n position: relative;\n }\n .ht_size_detail .size_con{\n text-align: right;\n margin-top: 16px;\n margin-bottom: 11px;\n margin-right: 26px;\n color: #575e61;\n }\n .ht_size_detail .size_op{\n width: 440px;\n display: inline-block;\n position: relative;\n }\n\n .ht_size_detail .size_op input+input {\n margin-left: 0px; \n }\n #first_size+.first_xiala {\n position: absolute;\n right: 267px;\n }\n .ht_size_detail .size_op input{\n width: 100px;\n height: 31px;\n box-sizing: border-box;\n }\n #first_size, #second_size {\n border-radius: 4px;\n outline: none;\n padding: 0 7px;\n border: 1px solid #969899;\n box-shadow: none;\n }\n #first_size:focus, #second_size:focus {\n border-color: #47befe;\n }\n .ht_size_detail .size_xialabox {\n display: none;\n width: 60px;\n height: 190px;\n border: 1px solid #999;\n border-bottom: none;\n position: absolute;\n text-align: left;\n line-height: 19px;\n top: -189px;\n right: 267px;\n box-sizing: border-box;\n background-color: #fff;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n }\n #second_size+.second_xiala{\n position: absolute;\n right: -14px;\n }\n .ht_size_detail #second_size+input+.size_xialabox{\n right: -14px;\n }\n .ht_size_detail .size_xialabox a{\n display: block;\n padding-left: 7px;\n color: #5c6266;\n }\n .ht_size_detail .size_xialabox a:hover{\n text-decoration: underline;\n color: #47befe;\n }\n .ht_size_detail .size_op .size_xiala{\n width: 60px;\n border: 1px solid #999;\n padding-left: 7px;\n border-radius: 4px;\n color: #8a9499;\n }\n .ht_size_detail .size_op .size_xiala.msHover {\n border-radius: 0px;\n border-bottom-left-radius: 4px;\n border-bottom-right-radius: 4px;\n background: url('http://s1.gwdang.com/images/extensions/haitao_upgrayicon.png') no-repeat 42px 12px;\n background-size: 12px 7px;\n }\n .ht_size_detail .size_xiala{\n background: url('http://s1.gwdang.com/images/extensions/haitao_downgrayicon.png') no-repeat 42px 12px;\n background-size: 12px 7px;\n cursor: pointer;\n }\n .ht_size_detail .conversion{\n margin: 0 30px 0 105px;\n }\n /* fanyi */\n .ht_fanyi{\n display: block;\n position: absolute;\n width: 200px;\n z-index: 99;\n background: #fff url('http://s1.gwdang.com/images/extensions/haitao_fanyi_icon.png') 0px 0px no-repeat;\n border: 1px solid #47befe;\n border-radius: 8px;\n min-height: 25px;\n color: #494b4d;\n text-indent: 32px;\n padding: 2px 12px;\n line-height: 19px;\n }\n .ht_fanyi a{\n display: block;\n width: 130px;\n text-decoration: none;\n color: #494b4d;\n }\n .ht_fanyi a:hover{\n text-decoration: none;\n color: #494b4d;\n }\n #ht_top{\n position: absolute;\n width: 0px;\n height: 0px;\n line-height: 0px;\n border-bottom: 8px solid #278ac9;\n border-left: 9px solid transparent;\n border-right: 9px solid transparent;\n left: 58px;\n top: -8px;\n }\n #ht_top:after {\n content: \"\";\n display: block;\n position: absolute;\n width: 0px;\n height: 0px;\n line-height: 0px;\n border-bottom: 7px solid #fff;\n border-left: 8px solid transparent;\n border-right: 8px solid transparent;\n left: -8px;\n top: 1px;\n }\n /* 滚动条样式 */\n .gwd_haitao ::-webkit-scrollbar {width:6px;height: 6px;}\n .gwd_haitao ::-webkit-scrollbar-track {background:#f0f0f0;}\n .gwd_haitao ::-webkit-scrollbar-thumb {\n background: #cdcdcd;\n border-radius: 4px;\n }\n #size_detail ::-webkit-scrollbar {width:2px;height: 6px;}\n /* 亚马逊遮挡 */\n div#actionPanelWrapper.burj {\n overflow: visible!important;\n }\n\n /* amazonGlobal */\n #globalInnerDetail {\n display: none;\n }\n #globalInnerDetail .content_default_left {\n text-align: center;\n }\n #globalInnerDetail .inner-tle {\n color: #666;\n }\n #globalInnerDetail .inner-img img {\n max-height: 100px;\n max-width: 150px;\n }\n #globalInnerDetail .inner-tle {\n font-size: 12px;\n line-height: 14px;\n width: 230px;\n height: 28px;\n overflow: hidden;\n }\n #globalInnerDetail .inner-btn {\n color: #fff;\n background-color: #46c0fe;\n height: 22px;\n line-height: 22px;\n text-align: center;\n display: inline-block;\n width: 78px;\n border-radius: 5px;\n text-decoration: none;\n margin-top: 2px;\n }\n #globalInnerDetail .pro_type:hover .pro_type_detail {\n display: block !important;\n }\n #globalInnerDetail .mail_type:hover .mail_type_detail {\n display: block !important;\n }\n #globalInnerDetail .vip_tle:hover .vip_tle_detail {\n display: block !important;\n }\n #globalInnerDetail .same-style:hover .same-style_detail {\n display: block !important;\n }\n #globalInnerDetail .same-style_detail {\n left: 350px;\n top: 81px;\n }", ""]); // exports /***/ }) },["fd9897c729ad65b271df"]);