// ==UserScript== // @name 购物党比价工具【官方正版,持续维护】 // @author 购物党 // @name:zh-cn 购物党比价工具【官方正版,持续维护】 // @antifeature referral-link 含有购物党官方返利 // @description [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 // @description:zh-hk [含有购物党的返利]浏览商品页面时,自动比较同款商品在淘宝/京东/亚马逊/当当/苏宁/等百家商城的最低价,提供价格历史、口碑评分等查询。支持商品促销活动,商城优惠信息查询,商品可全网收藏,降价提醒。支持链家、我爱我家、中原地产等主流房产网站房源价格走势查询,为买房人士提供决策参考。 // @run-at document-idle // @version 3.1.20 // @grant none // @require https://cdn.gwdang.com/js/vendor-gwd.js?v=2.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"]; /***/ }), /***/ "00c99715365e333b6472": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___ = __webpack_require__("8474f357316d313d73fa"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__MemberCouponMini_vue_vue_type_script_lang_js___ = __webpack_require__("cc869e1f4fd78e0a5473"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__MemberCouponMini_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__MemberCouponMini_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__MemberCouponMini_vue_vue_type_style_index_0_id_42d39176_scoped_true_lang_less___ = __webpack_require__("9ea3993fbe926fac1855"); /* 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__MemberCouponMini_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___["b" /* staticRenderFns */], false, null, "42d39176", 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('42d39176')) { api.createRecord('42d39176', component.options) } else { api.reload('42d39176', component.options) } module.hot.accept("./MemberCouponMini.vue?vue&type=template&id=42d39176&scoped=true&", function () { api.rerender('42d39176', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/common/components/MemberCouponMini.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "01069a737eec750d4605": /***/ (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_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less___ = __webpack_require__("8bdd7635873d884ae573"); /* 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_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_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_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_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_CollectionSettingMini_vue_vue_type_style_index_0_id_1a72083a_scoped_true_lang_less____default.a); /***/ }), /***/ "027d37651180f47df6c7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true___ = __webpack_require__("a710c33ca97ead6a5b7f"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Switch_vue_vue_type_script_lang_js___ = __webpack_require__("7a46bbbd2e1ff8e12ffc"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__Switch_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__Switch_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Switch_vue_vue_type_style_index_0_id_222e987e_scoped_true_lang_less___ = __webpack_require__("0423f5e165666d1273cc"); /* 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__Switch_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__Switch_vue_vue_type_template_id_222e987e_scoped_true___["b" /* staticRenderFns */], false, null, "222e987e", 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('222e987e')) { api.createRecord('222e987e', component.options) } else { api.reload('222e987e', component.options) } module.hot.accept("./Switch.vue?vue&type=template&id=222e987e&scoped=true&", function () { api.rerender('222e987e', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/Controls/Switch.vue" /* harmony default export */ __webpack_exports__["default"] = (component.exports); /***/ }), /***/ "02b35786dfae568bb734": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a '; return $$out; }; /***/ }), /***/ "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); /***/ }), /***/ "316f9c352c6202560d16": /***/ (function(module, exports, __webpack_require__) { "use strict"; var debug = "production" === 'debug'; module.exports = { log: debug && console.log ? console.log : function (x) {}, error: function error(e) { if (console.error) { console.error(e); } }, warn: console.warn }; /***/ }), /***/ "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); /***/ }), /***/ "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 /***/ }), /***/ "32dc5c815515f7c2847e": /***/ (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_TooltipView_vue_vue_type_template_id_4c623068_scoped_true___ = __webpack_require__("820955a54449cb94cc9a"); /* 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_TooltipView_vue_vue_type_template_id_4c623068_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_TooltipView_vue_vue_type_template_id_4c623068_scoped_true___["b"]; }); /***/ }), /***/ "336de8fce6caee2400ef": /***/ (function(module, exports) { module.exports = {"priceUp":{"zh":"价格上涨","en":"Price Increases","zh-tr":"價格上漲"},"priceStable":{"zh":"价格平稳","en":"Keep Stable","zh-tr":"價格平穩"},"priceDecrease":{"zh":"价格下降","en":"Price Declining","zh-tr":"價格下降"},"priceLowest":{"zh":"历史最低价","en":"Lowest Price","zh-tr":"歷史最低價"},"lowestSingleWithSpace":{"zh":"最低(单   件):","en":"Lowest Price(single):","zh-tr":"最低(單   件):"},"lowestSingle":{"zh":"最低(单件):","en":"Lowest(single):","zh-tr":"最低(單件):"},"lowest":{"zh":"最低:","en":"Lowest:","zh-tr":"最低:"},"textCurrent":{"zh":"现价","en":"Current","zh-tr":"現價"},"textHigh":{"zh":"最高","en":"Highest","zh-tr":"最高"},"textLow":{"zh":"最低","en":"Lowest","zh-tr":"最低"},"day":{"zh":"天","en":" days","zh-tr":"天"},"all":{"zh":"全部","en":"All","zh-tr":"全部"},"single":{"zh":"单   件","en":"Single","zh-tr":"單   件"},"combine":{"zh":"多   件","en":"Combined","zh-tr":"多   件"},"pagePrice":{"zh":"页面价","en":"Price","zh-tr":"頁面價"},"onHandPrice":{"zh":"到手价(单件)","en":"Promotion Price","zh-tr":"到手價(單件)"},"combinePrice":{"zh":"到手价(多件)","en":"Combined Price","zh-tr":"到手價(多件)"}} /***/ }), /***/ "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"]; /***/ }), /***/ "347100e5d04609b28c6b": /***/ (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_CollectionSettingTop_vue_vue_type_script_lang_js___ = __webpack_require__("c42621fee4e6fd4b0684"); /* 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_CollectionSettingTop_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_CollectionSettingTop_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_CollectionSettingTop_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_CollectionSettingTop_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_CollectionSettingTop_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "349e2a33b311aaaed53d": /***/ (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 _commonComponentsMemberCouponMixin = __webpack_require__("1fffec0778a8d8b2e8e2"); var _commonComponentsMemberCouponMixin2 = _interopRequireDefault(_commonComponentsMemberCouponMixin); var _commonComponentsMemberCouponQr = __webpack_require__("0c4497b5d7aa90d42b50"); var _commonComponentsMemberCouponQr2 = _interopRequireDefault(_commonComponentsMemberCouponQr); exports["default"] = { mixins: [_commonComponentsMemberCouponMixin2["default"]], components: { MemberCouponQr: _commonComponentsMemberCouponQr2["default"] }, data: function data() { return { G: G }; } }; module.exports = exports["default"]; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"))) /***/ }), /***/ "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, $, Vue) { var _this = this; 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, TopMainBar, jdadUrl, el, 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 : ''); TopMainBar = __webpack_require__("21183281c2320c4dea97")['default']; jdadUrl = "https://search.jd.com/Search?keyword=%E7%99%BE%E4%BA%BF%E8%A1%A5%E8%B4%B4&qrst=1&shop=1&cod=1"; el = document.createElement('DIV'); $('body').append(el); new Vue({ el: el, render: function render(h) { return h(TopMainBar, { props: { 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 = 26; break; } context$1$0.next = 21; return regeneratorRuntime.awrap($.getJSON('https://cdn.bijiago.com/js/configs/activity-online.json')); case 21: 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 26: return context$1$0.abrupt('return', new Promise(function (resolve) { return resolve(); })); case 27: 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"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "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 && _vm.data.length, expression: "data && data.length" } ], staticClass: "gwd-promo-plan" }, [ _c("table", [ _c("thead", [ _c("tr", { staticStyle: { "min-height": "30px" } }, [ _c("th", [_c("span", [_vm._v(_vm._s(_vm.getText("购买方案")))])]), _vm._v(" "), _c("th", [ _c("span", [_vm._v(_vm._s(_vm.getText("实付总价")) + "(¥)")]) ]), _vm._v(" "), _c("th", [ _c("span", [_vm._v(_vm._s(_vm.getText("折合每件")) + "(¥)")]) ]), _vm._v(" "), _c("th", [_c("span", [_vm._v(_vm._s(_vm.getText("使用的促销")))])]) ]) ]), _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.link2(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(" "), _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(_vm._s(_vm.getText("淘宝APP")))] ), _vm._v(" "), _c( "span", { staticClass: "gwd-font9", staticStyle: { color: "#070707", "transform-origin": "top left", width: "64px" } }, [_vm._v(_vm._s(_vm.getText("扫码 参加活动")))] ) ] ) ] ) : _vm._e() ] ) } var staticRenderFns = [] 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() { 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__("b0db89800c834281322b"); $('#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"))) /***/ }), /***/ "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); /***/ }), /***/ "38ebe779d55c0ebbd5e9": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a '; return $$out; }; /***/ }), /***/ "62316f417955bec94cf4": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, G, Vue, $) { var _this = this; var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var PromotionPlan = __webpack_require__("17bd0a8188e0c1f7d7ba")['default']; var load = function load(dpId) { var skuId = arguments.length <= 1 || arguments[1] === undefined ? null : arguments[1]; var promo, promoString, text, price, data, res, el, plan; return regeneratorRuntime.async(function load$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('promoGot')); case 2: promo = context$1$0.sent; promoString = promo && promo.origin_promo ? '&origin_promo=' + encodeURIComponent(promo.origin_promo) : ''; text = promo && promo.promo_text ? '&promo_text=' + promo.promo_text : '&promo_text=None'; price = __webpack_require__("4733a3dd803685ec596a").productPattern[G.site]().price; context$1$0.next = 8; return regeneratorRuntime.awrap(request.get(G.server + ('/extension/PromotionPlan?price=' + price + '&dp_id=' + dpId + (skuId ? '&sku_id=' + skuId : '') + promoString + text))); case 8: data = context$1$0.sent; res = data.data; el = '#gwd-pp'; if (G.from_device === 'bijiago' || G.from_device.indexOf('biyibi') > -1) { el = '#bjg-pp'; } plan = new Vue({ el: el, render: function render(h) { return h(PromotionPlan, { ref: 'plan', props: { data: res, tag: G.from_device === 'bijiago' ? 10 : 3 } }); } }); $('.dsj-promo-link').hover(function () { plan.$refs.plan.over(); }); case 14: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports = { init: function init() { var dp_id; return regeneratorRuntime.async(function init$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(globalCondition.met('GwdDpIdGot')); case 2: dp_id = context$1$0.sent; load(dp_id, __webpack_require__("3e983ecbff4e1a29654c").getParameterByName('skuId')); if (G.on) { context$1$0.next = 6; break; } return context$1$0.abrupt('return'); case 6: G.on('skuChange', function (skuId) { load(dp_id, skuId); }); case 7: case 'end': return context$1$0.stop(); } }, null, this); } }; //let text = '&promo_text=none' /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("e081b2491b5c9b12b9da"))) /***/ }), /***/ "62487f75eaef2f9d0c30": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a '; return $$out; }; /***/ }), /***/ "6b5f3f4c7b5f37c1088e": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, regeneratorRuntime, Vue) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var store = __webpack_require__("e41a11f7982e4aab1ce6"); var _require = __webpack_require__("966caf0f29e39a633494"); var MiniBarCollectionButton = _require['default']; //嵌入位置设置 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', '[class^=Price--root]'], '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 false; 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__("89ea19c6f77aeaf47846"); 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 = html({ 'setUrl': setUrl, 'aliSite': G.aliSite, 'feedbackUrl': feedbackUrl, newTime: false, minidom: G.wishdom2, wishdom: G.wishdom }); // if (location.host === 'goods.kaola.com.hk') { // let dom = `` // $('body').append($(dom)) // let newContainer = container; // container = '#kaolaHkRepair>span' // kaolaHkRepair(newContainer) // } if (renderDom) { $(container).append(priceContainer); } else { $(container).eq(0).after(priceContainer); } __webpack_require__("316f9c352c6202560d16").log('render minibar'); }; 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__("c45e5daa2cf575babe3f"); var allLink = G.c_server + '/dp' + data.dp.dp_id; var obj = { data: newData, allLink: allLink, storeSize: storeSize }; $('#gwd_mini_compare').append(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__("e20eddb8c3d59ac76a75"); $('.app-tuiguang').remove(); $('#mini_price_history').removeClass('showapp'); $('#mini_price_history_detail').append(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 renderDom = undefined; var delaySite = ['kaola']; var renderCon = function renderCon() { var instanceId, container, store; return regeneratorRuntime.async(function renderCon$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: instanceId = G.instanceId; if (!(delaySite.indexOf(G.site) > -1)) { context$1$0.next = 4; break; } context$1$0.next = 4; return regeneratorRuntime.awrap(__webpack_require__("3e983ecbff4e1a29654c").sleep(5000)); case 4: container = getContainer(); __webpack_require__("316f9c352c6202560d16").log('container:', container); context$1$0.next = 8; return regeneratorRuntime.awrap(__webpack_require__("d54879e983a83d07f093").waitForConditionFn(function () { if (container) return true; container = getContainer(); return false; })); case 8: if (!(window.gwd_G && window.gwd_G.instanceId !== instanceId)) { context$1$0.next = 11; break; } __webpack_require__("316f9c352c6202560d16").warn('instanceId不一致,不渲染minibar'); return context$1$0.abrupt('return'); case 11: renderMiniBar(container); store = __webpack_require__("e41a11f7982e4aab1ce6"); new Vue({ el: '#gwd_mini_remind .minibar-btn-box', store: store, render: function render(h) { return h(MiniBarCollectionButton); } }); addEvent(); case 15: case 'end': return context$1$0.stop(); } }, null, _this); }; // 获取页面上的插入节点 /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "6b8303d96ee13d08f335": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G, Vue, regeneratorRuntime) { var _this = this; var template = __webpack_require__("274e32dfd54a6b0d18a9"); var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var golbal2 = __webpack_require__("1c640a99db9f6f8a16c2"); var util = __webpack_require__("d54879e983a83d07f093"); var miniFavor = __webpack_require__("472c3193857af11233c9"); var userCenter = __webpack_require__("69afa85b8d7929dd88c5"); var siteInfo = __webpack_require__("5e05e6f5fe79ccf5d009"); var store = __webpack_require__("e41a11f7982e4aab1ce6"); var permanent = undefined, oinfo = undefined; var siteidArr = ['228', '266', '246', '229', '365', '366', '1', '238', '230']; var showListPrice = function showListPrice(price, dp_id, originUrl) { var pattern = dp_id.split('-'); var siteId = pattern[pattern.length - 1]; if (price < 0) return '暂时缺货';else { if (siteidArr.indexOf(siteId) > -1) { var site = siteInfo.isProductPage(originUrl); var cur = __webpack_require__("9bf6d059e9a265559f0c").getMoneyInfo(site)[0]; return cur + price.toString().replace(',', ''); } else { return '¥' + price.toString().replace(',', ''); } } }; var addEvent = function addEvent() { $('#topfavor_detail').on('click', '.item_close_btn', function () { var id = $(this).attr('data-id'); delFavor(id); }); $('.favor-list a').on('click', function () { console.log($(this)); if ($(this).attr('data-id')) { delFavor($(this).attr('data-id')); return false; } if (!$(this).attr('href')) { return false; } window.open($(this).attr('href')); return false; }); }; var delFavor = function delFavor(id) { id = id.trim(); oinfo = userData.get('other_info'); // let url = `${G.c_server}/collect/aj_del?dp_id=${id}`; // request.get(url).done((data) => { if (id === oinfo.id) { store.dispatch('priceRemind/cancel').then(function () { $('#topfavor_detail .sp-del').show().fadeOut(3000); getFavor(renderList); }); } else { userCenter['delete'](id).then(function (data) { // -1 失败 1 处理成功 100 未登录 if (data.code === 1) { // if (id == oinfo.now.dp_id) { // $('#topfavor_detail .topf-head .sp-col').text('收藏商品').removeClass('collected') // } $('#topfavor_detail .sp-del').show().fadeOut(3000); getFavor(renderList); } }); } }; var addFavor = function addFavor(callback) { var pagedp = G.dp; var dp = oinfo.now; store.dispatch('priceRemind/submit', { notifySite: '', price: '', mode: '' }).then(function (res) { // getFavor(renderList) // $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected') }); // userCenter.add('', '').then(data => { // if (Number(data.code) === 1 || data.error_code === '1') { // getFavor(renderList) // $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected') // $('#ht_favor').text('收藏成功').addClass('collected') // $(`#gwd_mini_remind .minibar-btn-box span`).text(`已添加提醒`); // $('#gwd_mini_remind .minibar-btn-box em').addClass('favored') // // if (data.data) { // G.remindInfo = { // remind_price: data.data.notifier.threshold, // is_collected: data.data.id, // has_remind_type: data.data.notifier.type, // remind_type: data.data.notifier.type, // notify_site: data.data.notifier.site // }; // // miniFavor.setNotifyPrice(data.data.notifier.site, data.data.notifier.threshold) // } // // // 更新本地收藏存储 // // util.addFavorCheck() // } else if (data.code === '2') { // $('#topfavor_detail .topf-head .sp-col').text('收藏过了').addClass('collected') // $('#ht_favor').text('收藏过了').addClass('collected') // $(`#gwd_mini_remind .minibar-btn-box span`).text(`已添加提醒`); // $('#gwd_mini_remind .minibar-btn-box em').addClass('favored') // } else if (data.code === 100) { // if (callback) callback() // } else { // // } // }) }; var renderList = function renderList(data) { if (typeof data === 'string') { data = JSON.parse(data); } var datasize = data.products.length; for (var i = 0; i < datasize; i++) { var siteId = data.products[i].dp_id.split('-')[1]; data.products[i].site_id = siteId; data.products[i].newPrice = showListPrice(data.products[i].now_price, data.products[i].dp_id, data.products[i].origin_url); } var html = __webpack_require__("c68c5b8c44eda1259060"); $('#topfavor_detail .favor-list').empty().append(template.compile(html)({ data: data.products, imgLoad: G.imgLoad, s_server: G.s_server })); $('.see-all-favor em').text(data.cnt); $('.see-all-favor').attr('href', 'https://www.gwdang.com/mine/collection'); addEvent(); golbal2.loadImg(0, datasize, $('#topfavor_detail li .item_img img')); if (!$('#topfavor_detail').hasClass('islogin')) $('#topfavor_detail').addClass('islogin'); }; var getFavor = function getFavor(callback) { userCenter.getList('default', 1, 3).then(function (res) { var data = res; if (!data.data.list) { callback({ products: [], cnt: 0 }); return; } callback({ products: data.data.list.map(function (item) { item.now_price = item.price.last; return item; }), cnt: data.data.cnt }); }); }; var userLogin = function userLogin(u, p, callback) { $.ajax({ type: "post", url: 'https://www.' + G.extName + '.com/user/aj_login', xhrFields: { withCredentials: true }, crossDomain: true, data: { email: u, password: p, t: "check", host: location.protocol + '//' + location.host }, success: function success(data) { callback(data); __webpack_require__("51aadd1e1b65f329a862").renderAgain(); } }); }; var addDetailEvent = function addDetailEvent() { var stime = undefined, isRender = undefined, setLeft = undefined; $('#topfavor_detail .topf-head span').on('click', function () { addFavor(); }); $('#topfavor_detail .login_click').on('click', function () { var username = $('#topfavor_detail .username').val(); var psd = $('#topfavor_detail .password').val(); if (!username || !psd) { $('#topfavor_detail .login_remind').show().fadeOut(5000); return; } userLogin(username, psd, function (data) { if (data === '1') { G.email = username; getFavor(renderList); } else { $('#topfavor_detail .login_remind').show().fadeOut(5000); } }); }); $('body').on('gwd-login-complete', function (e) { console.log('fired'); getFavor(renderList); }); $('#gwdang-favor').on('mouseenter', function () { if (G.userLogin && !isRender) { isRender = true; $('#topfavor_detail').addClass('islogin'); getFavor(renderList); } if (permanent.style === 'bottom') { setLeft = true; util.setSimplePagePos($('#gwdang-favor'), $('#topfavor_detail'), 279); } $('#topfavor_detail').show(); $(this).addClass('msHover'); }); $('#gwdang-favor').on('mouseleave', function () { var that = this; stime = setTimeout(function () { $('#topfavor_detail').hide(); $(that).removeClass('msHover'); }, 100); }); $('#topfavor_detail').on('mouseenter', function () { clearTimeout(stime); }); $('#topfavor_detail').on('mouseleave', function () { $('#topfavor_detail').hide(); $('#gwdang-favor').removeClass('msHover'); }); }; var renderDetail = function renderDetail(dp_id) { var hidebtn = undefined; var dom = '#gwdang_main'; var style = 'top:37px;'; if (permanent.style === 'bottom') { dom = '#bjd_bottom_detail'; style = 'bottom: 60px;right: 40px;'; } // 改商品没有抓取数据的时候 不能收藏商品 if (!dp_id || dp_id.match(/^0-\d+$/)) { hidebtn = true; } var imgHost = G.imgHost; if (G.from_device === 'firefox') { imgHost = G.localImg; } var homeU = 'https://www.gwdang.com/user/wechat_oauth/?pl=9&op=login&from_url=' + encodeURIComponent(location.href); homeU = encodeURIComponent(homeU); var wxUrl = 'https://open.weixin.qq.com/connect/qrconnect?appid=wx34006c141f9daa3a&response_type=code&scope=snsapi_login&state=2ced970d5b97680e95670a48d1102611&redirect_uri=' + homeU; var html = __webpack_require__("2193b4ca85bf7e5cb16d"); $(dom).append(template.compile(html)({ email: G.email, userLogin: G.userLogin, hidebtn: hidebtn, imgHost: imgHost, wxUrl: wxUrl, pageurl: encodeURIComponent(location.href), style: style })); var CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-login-favor', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-favor', showAlterLogin: true, alterLoginPosition: 'column' } }); } }); addDetailEvent(permanent); var setCollectedStatus = function setCollectedStatus(newVal) { __webpack_require__("316f9c352c6202560d16").log('watch triggered', newVal); if (newVal) { // 已收藏 $('#topfavor_detail .topf-head .sp-col').text('收藏成功').addClass('collected'); } else { // 未收藏 $('#topfavor_detail .topf-head .sp-col').text('收藏商品').removeClass('collected'); } }; setCollectedStatus(store.state.priceRemind.collected); store.watch(function (state) { return state.priceRemind.collected; }, setCollectedStatus); }; module.exports.init = function callee$0$0() { return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: context$1$0.next = 2; return regeneratorRuntime.awrap(__webpack_require__("9c38beef5ff283e15bd2").met('GwdDpIdGot')); case 2: permanent = userData.get('permanent'); oinfo = userData.get('other_info'); renderDetail(oinfo.now.dp_id); case 5: case 'end': return context$1$0.stop(); } }, null, _this); }; module.exports.addFavor = addFavor; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"], __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "6c4158d4a8844af2f16e": /***/ (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_CouponArrow_vue_vue_type_template_id_4f0f1e98___ = __webpack_require__("a39cbf70bd2e92e85f98"); /* 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_CouponArrow_vue_vue_type_template_id_4f0f1e98___["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_CouponArrow_vue_vue_type_template_id_4f0f1e98___["b"]; }); /***/ }), /***/ "6da42464ccd75a83a065": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime) {// // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var request = __webpack_require__("91f250ebeb8d5987491c"); var globalCondition = __webpack_require__("9c38beef5ff283e15bd2"); exports['default'] = { props: ['mode'], data: function data() { return { qrLink: '', loading: false }; }, methods: { over: function over() { var qrApi, res; return regeneratorRuntime.async(function over$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: if (!(this.loading || this.qrLink)) { context$1$0.next = 2; break; } return context$1$0.abrupt('return'); case 2: if (!(this.mode !== 'qr')) { context$1$0.next = 4; break; } return context$1$0.abrupt('return'); case 4: this.loading = true; context$1$0.next = 7; return regeneratorRuntime.awrap(globalCondition.met('qrApiReady')); case 7: qrApi = context$1$0.sent; if (!(qrApi.type === 'api')) { context$1$0.next = 13; break; } context$1$0.next = 11; return regeneratorRuntime.awrap(request.get(qrApi.src)); case 11: res = context$1$0.sent; this.qrLink = res.data.qrImgStr; case 13: case 'end': return context$1$0.stop(); } }, null, this); } } }; module.exports = exports['default']; /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"))) /***/ }), /***/ "6e9dc8f3fe8ed1fd40dc": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___ = __webpack_require__("0f986364e7409b7b0cf1"); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["a"]; }); /* harmony namespace reexport (by used) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_0__node_modules_15_9_3_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_15_9_3_vue_loader_lib_index_js_vue_loader_options_QRLink_vue_vue_type_template_id_673c66fa_scoped_true___["b"]; }); /***/ }), /***/ "6eb6300b1093d4b652fb": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(G, $, Highcharts) {var __WEBPACK_AMD_DEFINE_RESULT__; !(__WEBPACK_AMD_DEFINE_RESULT__ = (function () { if (['smzdm'].indexOf(G.site) > -1) { return; } /* TODO 支持常用网站列表 支持定时查找 鼠标滚动查找 浏览器兼容性检测 */ var exports = {}; var $ = __webpack_require__("e081b2491b5c9b12b9da"); var lang = __webpack_require__("cf094fe1ab460bb584a8"); var langCfg = __webpack_require__("336de8fce6caee2400ef"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var siteinfo = __webpack_require__("5e05e6f5fe79ccf5d009"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var countryConfig = __webpack_require__("9bf6d059e9a265559f0c"); var parseprice = __webpack_require__("cb0906562effcf1b0e6c"); var util = __webpack_require__("d54879e983a83d07f093"); var viewPriceTip = __webpack_require__("d5fd5dd54e6f8fc35e0a"); if (G.ss_name == 'priceDog') { viewPriceTip = __webpack_require__("6a43c4117801f101b13d"); } var pageInfo = G.pageInfo; var smallTip, smallTip2; var tipDetail; var time, nowTipDom; var nowUrl, newId, nowPrice = 0; var tipResult = {}; var blacklist = [/shangpin\.com/]; var moneyInfo = undefined; var priceTle = { 'pri-t1': lang.getString(langCfg, 'priceUp'), 'pri-t0': lang.getString(langCfg, 'priceStable'), 'pri-t-1': lang.getString(langCfg, 'priceDecrease'), 'pri-t-2': lang.getString(langCfg, 'priceLowest') }; var request = __webpack_require__("91f250ebeb8d5987491c"); function block() { var r = false; for (var i = blacklist.length - 1; i >= 0; i--) { r = blacklist[i].test(location.href); if (r) return r; }; } //获取元素和页面顶部的距离 var getTop = function getTop(e) { var offset = e.offsetTop; if (e.offsetParent != null) offset += getTop(e.offsetParent); return offset; }; //获取元素和页面左侧的距离 var getLeft = function getLeft(e) { var offset = e.offsetLeft; if (e.offsetParent != null) offset += getLeft(e.offsetParent); return offset; }; // const getWidth = (e) => { // let w = $(e).width() // if (!w) // return getWidth(e.parentElement) // return w; // } var getListPrice = function getListPrice() { // 获取列表页鼠标所在当前商品价格 var price = '0'; switch (G.site) { case "360buy": price = $(nowTipDom).parent().parent().find('.p-price strong i').eq(0).text(); break; case "suning": price = $(nowTipDom).parent().parent().parent().find('.res-info .price-box .def-price').eq(0).text(); break; case "taobao": price = $(nowTipDom).parent().next().find('.c-price').text(); if (!price) { price = $(nowTipDom).parent().parent().parent().parent().find('.J_IconMoreNew .g_price').eq(0).text(); } break; case "tmall": price = $(nowTipDom).parent().parent().find('.productPrice>em').eq(0).text(); break; case "amazon": price = $(nowTipDom).parent().parent().parent().parent().find('.a-spacing-mini span.s-price').eq(0).text(); break; case "gome": price = $(nowTipDom).parent().parent().find('.item-price-info .item-price .price').eq(0).text(); break; case "dangdang": price = $(nowTipDom).parent().find('.price .price_n').eq(0).text(); break; case "vipshop": price = $(nowTipDom).parent().parent().parent().parent().find('.special-price .title').eq(0).text(); if (!price) { price = $(nowTipDom).parent().parent().parent().parent().find('.goods-price-info .price').eq(0).text(); } break; default: price = '0'; } price = price.replace(/[,¥¥]+/g, ''); return price; }; // 没有价格走势数据时候的伪造虚拟点 var noTrendAddTrendData = function noTrendAddTrendData(data) { var site_name = undefined; var price = getListPrice(); if (price === '0') return data; var date = util.getTimeNumber(new Date().getTime() - 86400000 * 179, "5"); var date2 = util.getTimeNumber(new Date().getTime(), "5"); var arr = []; date = new Date(date).getTime(); date2 = new Date(date2).getTime(); arr.push([date, Number(price)]); arr.push([date2, Number(price)]); site_name = data.site_name; var noTrendObj = { current_price: price, data: arr, max_price: price, min_price: price, min_stamp: date2 / 1000, name: site_name, start: date, price_status: 0 }; data.trend.store = [noTrendObj]; data.taobaoNoTrend = true; data.start = date; return data; }; exports.init = function () { // 获取价格符号 moneyInfo = countryConfig.getMoneyInfo(G.logsite); var b = G.extBrand; if (G.from_device !== 'bijiago' && G.from_device !== 'biyibi') { var permanent = userData.get('permanent'); if (permanent.setTip === '0') return; } else { b = 'bjgou'; } if (block()) return; if (pageInfo.type === 1) { $('body').append('\n
\n \n 比价\n
\n
\n
'); smallTip = $('#' + b + '_price_tip'); smallTip2 = $('#' + b + '_price_tip .tip_btn_box'); tipDetail = $('#' + b + '_price_tip_detail'); } bindDpEvent(); // if (location.hostname.includes('s.taobao.com')) { // $('body').append(` // // `) // } }; function bindDpEvent(area) { var isNewTb = false; // 是否是新版淘宝 if ($('[class^=PageContent--contentWrap--]').length) { isNewTb = true; } var dpMouseOver = function dpMouseOver(e) { var img = e.target; if (img.tagName !== 'IMG' && !isNewTb) { img = $(img).find('img')[0]; } if (!img) return; if (img.parentElement.getAttribute('data-tip')) return false; if (img.className.includes('MainPic--mask') || img.width > 50 && img.height > 50) { var parent = img.parentElement; nowTipDom = parent; if (G.site === 'taobao' && parent.tagName === 'A' && /^https?:\/\//.test(parent.href)) { var id = parent.getAttribute('data-nid'); nowPrice = $(parent).parent().parent().parent().next().find('.price strong').text(); addId(img); if (parent.href.match(/(?:item\.taobao\.com|detail\.tmall\.com)/)) { nowUrl = parent.href; } else { if (!id) return; nowUrl = 'https://item.taobao.com/item.htm?id=' + id; } // 加载小标签 renderTip(parent); bindDpEvent2(parent); } else if (isNewTb) { var parentEl = $(parent).parents('[class^=Card--doubleCard--]'); if (!parentEl.length) { parentEl = $(parent).parents('[class^=Card--listCard--]'); } if (parentEl.length) { nowPrice = parentEl.find('.Card--price').text(); var nowId = parentEl.find('.ww-light.ww-small').attr('data-item'); nowUrl = 'https://item.taobao.com/item.htm?id=' + nowId; addId(img); renderTip(parent); bindDpEvent2(parent); } } else if (parent.tagName === 'A' && /^https?:\/\//.test(parent.href) && siteinfo.isProductPage(parent.href)) { addId(img); nowUrl = makeUrl(img, parent.href); renderTip(parent); bindDpEvent2(parent); } else if (parent.parentElement.tagName === 'A' && /^https?:\/\//.test(parent.parentElement.href) && siteinfo.isProductPage(parent.parentElement.href)) { /*amazon.com有一种情况是 a div img 的结构*/ parent = parent.parentElement; addId(img); nowUrl = makeUrl(img, parent.href); renderTip(parent); bindDpEvent2(parent); } else if ($(parent).parents('a').length) { var a = $(parent).parents('a')[0]; if (siteinfo.isProductPage(a.href)) { parent = a; addId(img); nowUrl = makeUrl(img, parent.href); renderTip(parent); bindDpEvent2(parent); } //require('common/extConsole').log('find a parent', a) } } }; $('body').on('mouseover', 'img, .pd_pic_wrap', dpMouseOver); $('body').on('mouseover', '[class^=Card--doubleCard--]', dpMouseOver); $('body').on('mouseover', '[class^=Card--listCard--]', dpMouseOver); smallTip2.on('mouseenter', smallTipOnMouseOver); smallTip.on('mouseleave', function () { tipDetail.hide(); smallTip.hide(); }); tipDetail.on('mouseleave', function () { tipDetail.hide(); smallTip.hide(); }); } function makeUrl(obj, url) { if (G.crc64) { return url; } switch (pageInfo.siteName) { case 'suning': console.log($(obj)); var productId = $(obj).parents('.wrap').find('input.hidenInfo').attr('datapro').split('||')[0]; url = "http://www.suning.com/emall/prd_10052_10051_-7_" + productId + "_.html"; break; } return url; } function bindDpEvent2(dom) { var $dom = $(dom); if ($dom.attr(G.extBrand + '_tip_bind')) return; $dom.on('mouseleave', dpMouseLeave); $dom.attr(G.extBrand + '_tip_bind', 1); } function smallTipOnMouseOver() { clearTimeout(time); smallTip.show(); render(); } function dpMouseLeave() { smallTip.hide(); tipDetail.hide(); } function renderTip(dom) { smallTip.css('left', getLeft(dom)); smallTip.css('top', getTop(dom)); smallTip.show().css('display', 'inline-block'); } function addId(obj) { var id = ''; switch (G.site) { case 'yihaodian': var d = $(obj).parent().attr('id').split('_'); if (d) d = d[1]; id = "&id=" + d + '-31'; break; } newId = id; } // function currencyChange(data) { // if (!G.currency || !data) return data; // if (data.store && data.store.length > 0) { // for (var i = 0; i < data.store.length; i++) { // var item = data.store[i]; // if (item.price && item.price.match(/\d+/)) // data.store[i].price = '¥' + parseprice(item.price); // } // } // if (data.trend && data.trend.store.length > 0) { // for (var j = 0; j < data.trend.store[0].data.length; j++) { // var item2 = data.trend.store[0].data[j]; // data.trend.store[0].data[j][1] = parseprice(item2[1]); // } // data.trend.store[0].min_price = parseprice(data.trend.store[0].min_price).toFixed(2); // data.trend.store[0].max_price = parseprice(data.trend.store[0].max_price).toFixed(2); // data.trend.store[0].current_price = parseprice(data.trend.store[0].current_price); // } // return data; // } var yanzhengma = function yanzhengma(url) { var html = __webpack_require__("9d83caf3e05f27ed9c67"); tipDetail.empty().append(template.compile(html)({ url: url })); tipDetail.css('width', 370); }; function render() { tipDetail.html(''); tipDetail.css('width', 50); // tipDetail.css('left', getLeft($(smallTip)[0]) + $(smallTip).width()) // tipDetail.css('top', getTop($(smallTip)[0])) tipDetail.show(); if (!tipResult[nowUrl]) { var url = G.server + '/brwext/tip_new?days=180&ver=1&site=' + G.site + '&price=' + nowPrice + '&url=' + encodeURIComponent(nowUrl) + newId; request.get(url).then(function (msg) { try { if (msg && msg.now_url) { nowUrl = msg.now_url; } if (msg.is_ban && msg.action && msg.action.method === 'redirect' && msg.action.to) { yanzhengma(msg.action.to); return; } if (msg.trend.store.length === 0) { msg = noTrendAddTrendData(msg); } // msg = currencyChange(msg); //暂时不转化汇率 使用原始货币 价格走势提示框里面才加人民币提示 if (!msg || msg.trend.store.length === 0) return renderError(); if (msg.trend.store[0].current_price == '0.00') return renderError(); tipResult[nowUrl] = msg; render2(msg); } catch (e) {} })['catch'](function () { return renderError(); }); } else render2(tipResult[nowUrl]); } function render2(msg) { // 处理数据 processData(msg); var nostore = undefined; if (!msg.store || msg.store.length === 0) nostore = true; var lowestTime = util.getTimeNumber(msg.trend.store[0].min_stamp * 1000); tipDetail.removeClass('tip-error-info'); if (msg.trend.store[0].max_price === msg.trend.store[0].min_price) { msg.trend.store[0].nowprice = msg.trend.store[0].min_price; } //msg.trend.store[0].price_status = require('bjgou/modules/trend').getPriceStatus(msg.trend.store[0].data).price_status tipDetail.html(template.compile(viewPriceTip)({ data: msg, new_extension: G.new_extension, extName: G.extName, isAliSite: G.aliSite, nostore: nostore, lowestTime: lowestTime, extBrand: G.extBrand, isGwd: G.from_device !== 'bijiago' && G.from_device !== 'biyibi', site: G.site, ss_name: G.ss_name })); if (G.aliSite || nostore) { tipDetail.css('width', 370); } else { tipDetail.css('width', 460); } if ($(window).width() - getLeft($(smallTip)[0]) - $(smallTip).width() < 460) { tipDetail.css('left', 0 - $(tipDetail).width() - 3 + 'px'); } else { tipDetail.css('left', '67px'); } initMiniTrend(msg.trend, msg.taobaoNoTrend, msg.start); bindFavorEvent(msg); } function bindFavorEvent(data) { $('#' + G.extBrand + '_price_tip_notify_btn').on('click', function (event) { event.preventDefault(); $('#' + G.extBrand + '_notify_error').hide(); $('#' + G.extBrand + '_price_tip_notify_btn').text('正在添加......'); request.get(G.c_server + '/collect/aj_add?' + 'dp_id=' + data.dp_id + '&from=tip').done(function (msg) { if (msg.code == 100 || msg.code <= 0) { window.location.href = 'http://www.' + G.extName + '.com/user/login?from_url=' + encodeURIComponent(window.location.href); } else if (msg.code == 1) { $('#' + G.extBrand + '_price_tip_notify_btn').text('已添加到收藏夹').attr('style', 'float:right;color:#fff;background:#18A0F5;'); } else if (msg.code == 2) { if ($('#' + G.extBrand + '_price_tip_notify_btn').text() == '正在添加......') { $('#' + G.extBrand + '_price_tip_notify_btn').text('你已经添加过啦').attr('style', 'float:right;color:#fff;background:#18A0F5;'); } } }); }); } function processData(msg) { 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]; var store = msg.store; if (store) { for (var i = store.length - 1; i >= 0; i--) { store[i].icon_url = store[i].icon_url.replace("browser", "s1"); if (store[i].price.indexOf('¥') > -1) store[i].price = '¥' + Number(store[i].price.replace('¥', '').replace(',', '')).toFixed(2); var site_id = /\/(\d+)\.ico/.exec(store[i].icon_url); if (site_id) { site_id = site_id[1]; if (!G.IE6 && new_icon_site_ids.indexOf(Number(site_id)) > -1) { store[i].icon_url = store[i].icon_url.replace(/\d+\.ico/, site_id + ".png").replace(/browser\./, "s1."); } } } } var status_str = 'pri-t' + msg.trend.store[0].price_status; msg.trend.store[0].status_tle = priceTle[status_str]; msg.trend.store[0].max_price = Number(msg.trend.store[0].max_price.replace(',', '')).toFixed(2); msg.trend.store[0].min_price = Number(msg.trend.store[0].min_price.replace(',', '')).toFixed(2); } function renderError(data) { if (data && data.is_ban) { yanzhengma(data.action.to); } else { tipDetail.html('
抱歉,当前商品暂无价格走势~
'); tipDetail.addClass('tip-error-info'); tipDetail.css('width', 220); tipDetail.show(); } } function initMiniTrend(data, taobaoNoTrend, sstart) { if (G.site == '360buy') { // 京东上的这个影响图表样式 var p = $('.elevator_fix style'); p.remove(); } var yAxistext = ''; if (moneyInfo) { yAxistext = moneyInfo[1]; } var maxP = Number(data.store[0].max_price); var maxN = undefined; if (maxP > 5) { maxN = parseInt(data.store[0].max_price).toString() || ''; } else { maxN = Number(data.store[0].max_price).toString() || ''; } var maxN2 = yAxistext.length * 2; var maxS1 = parseInt(maxN.length * 5.6); var maxS2 = parseInt(maxN2 * 5.6); var maxS = Math.max(maxS1, maxS2); var chartML = maxS + 8 + 8; var yAxisY = maxS + 8; var trend_div = $('#gwd_price_tip_trend'); var obj = { chart: { renderTo: 'gwd_price_tip_trend', type: 'line', marginTop: 10, marginLeft: chartML, marginRight: 15, marginBottom: 27, spacing: [0, 0, 0, 0], events: { load: function load() { var xinterval = parseInt((this.xAxis[0].dataMax - this.xAxis[0].dataMin) / 3.9) || 1; this.xAxis[0].update({ tickInterval: xinterval }); 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 = 0; } 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; if (lmin === lmax) { lmin = lmin - 1; lmax = lmax + 1; } tkinterv = parseInt((lmax - lmin) / 4); if (lmin + tkinterv < this.yAxis[0].dataMin) { lmin = lmin + tkinterv; } } var tkinterv2 = Math.pow(10, tkinterv.toString().length - 1); tkinterv = Math.ceil(tkinterv / tkinterv2) * tkinterv2; // console.log(lmin, lmax, tkinterv) this.yAxis[0].update({ min: lmin, max: lmax, tickInterval: tkinterv || 1 }); } } }, credits: { enabled: false }, colors: ['#2f7ed8'], title: { text: null }, xAxis: { type: 'datetime', labels: { rotation: 0, y: 16, step: 2, style: { fontSize: '10px', fontFamily: 'Helvetica', color: '#9D9D9D' }, align: 'center' }, dateTimeLabelFormats: { day: '%m-%e', week: '%m-%e', month: '%Y/%m', year: '%Y/%m' }, tickLength: 0, gridLineColor: '#e6e9eb', lineColor: '#e6e9eb', minorTickLength: 0, gridLineWidth: 1 }, yAxis: { title: { text: "", rotation: 0, y: -20, x: -13, align: 'high', offset: 0, style: { fontFamily: 'Microsoft YaHei', fontSize: '10px', color: '#969899' } }, labels: { align: 'left', padding: 4, x: -yAxisY, y: 3, style: { fontSize: '10px', fontFamily: 'Helvetica', color: '#9D9D9D' }, formatter: function formatter() { return this.value; } }, plotLines: [{ value: 0, width: 1, color: '#808080' }], gridLineColor: '#e6e9eb', lineColor: '#e6e9eb', tickPixelInterval: 50 }, plotOptions: { series: { animation: false, marker: { radius: 2 }, enableMouseTracking: true, states: { hover: { enabled: true } }, shadow: false } }, tooltip: { xDateFormat: '%Y-%m-%d', borderColor: "#48BEFE", useHTML: true, backgroundColor: 'white', 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(); // let format = data.msg.formatted[this.x.toString()]; // let disc = format.discount // if (disc !== 0) // disc = '-' + disc.toString() + '%'; if (taobaoNoTrend) { var nowDate = new Date(); if (x.getMonth() !== nowDate.getMonth() || x.getDate() !== nowDate.getDate()) { return false; } } var price = undefined; if (this.y !== 0) price = this.y.toFixed(2);else price = '0'; var price2 = ""; if (moneyInfo) { price2 = '(¥' + parseprice(price) + ')'; price = moneyInfo[0] + price; } var dom = '\n
\n
' + year + '/' + month + '/' + day + '
\n
\n \n ' + this.series.name + '\n ' + price + price2 + '\n
\n
'; return dom; } }, legend: { enabled: false }, series: [] }; obj.series[0] = { visible: true, name: data.store[0].name, pointStart: sstart, pointInterval: 86400000 * 179, color: "#48BEFE", lineWidth: 1, marker: { enabled: false }, states: { enabled: false, hover: { lineWidth: 1 } }, data: [] }; if (taobaoNoTrend) { obj.series[0].dashStyle = "Dash"; } if (data.store[0].data.length > 0) { var store = data.store[0]; var len2 = store.data.length; var datas = store.data; if (store.min_stamp * 1000 > parseInt(Date.UTC(data.startY, data.startM, data.startD))) { obj.series[0].data.push(null); } if (taobaoNoTrend) { for (var j = 0; j < len2; j++) { obj.series[0].data.push({ y: datas[j][1] }); } } else { obj.series[0].data = data.store[0].data; } } if (taobaoNoTrend) { obj.series[0].data[1].marker = { enabled: true, fillColor: '#5ACFFB', radius: 2.5, lineWidth: 0, symbol: "circle" }; obj.plotOptions.series.states = { hover: { enabled: false } }; } if (moneyInfo) { obj.yAxis.title.text = moneyInfo[1]; obj.yAxis.title.y = 104; obj.yAxis.title.x = -(chartML - 6 - maxS2); } if ($('#' + obj.chart.renderTo).length) { new Highcharts.Chart(obj); } trend_div.show(); } 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"), __webpack_require__("ff50e367dd130fa205e3"))) /***/ }), /***/ "6f1fbc9b3e76a280e6a6": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); var _vuex = __webpack_require__("436f6d560acb97f873d1"); exports['default'] = { computed: (0, _vuex.mapState)({ checked: function checked(state) { return state.priceRemind.collected; } }) }; module.exports = exports['default']; /***/ }), /***/ "7026a4b5462dc6da5555": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function(regeneratorRuntime, $, G, Vue) { var _this = this; var timeUtil = __webpack_require__("6868b03b94b90a856624"); var template = __webpack_require__("274e32dfd54a6b0d18a9"); var price_remind = __webpack_require__("51aadd1e1b65f329a862"); var request = __webpack_require__("91f250ebeb8d5987491c"); var userData = __webpack_require__("472a9b3fc8c8805a5dd7"); var log = __webpack_require__("03dd60018ce5ed1344a1"); var cnzz = __webpack_require__("83271c7588396d2d5e59"); var globalTime = undefined, retry = 0; var hasGetTime = undefined; Date.prototype.format = function (fmt) { var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": this.getMinutes(), //分 "s+": this.getSeconds(), //秒 "q+": Math.floor((this.getMonth() + 3) / 3), //季度 "S": this.getMilliseconds() //毫秒 }; if (/(y+)/.test(fmt)) { fmt = fmt.replace(RegExp.$1, (this.getFullYear() + "").substr(4 - RegExp.$1.length)); } for (var k in o) { if (new RegExp("(" + k + ")").test(fmt)) { fmt = fmt.replace(RegExp.$1, RegExp.$1.length == 1 ? o[k] : ("00" + o[k]).substr(("" + o[k]).length)); } } return fmt; }; // 最接近的半小时时间 // 12:31 -> 12:30 // 12:29 -> 12:30 Date.prototype.toHalfHourTime = function () { var original = this.getTime(); return new Date(Math.round(original / (30 * 60000)) * (30 * 60000)); }; var userInfo = {}; module.exports.init = function callee$0$0() { return regeneratorRuntime.async(function callee$0$0$(context$1$0) { while (1) switch (context$1$0.prev = context$1$0.next) { case 0: // let res = await $.ajax({ // url: 'https://www.gwdang.com/user/info', // dataType: 'jsonp', // jsonp: 'callback', // xhrFields: { // withCredentials: true // } // }) getSeckill(); case 1: case 'end': return context$1$0.stop(); } }, null, _this); }; var seckillRule = { "360buy": [{ "secDom": "#yuyue-banner", "timeType": "t11", "secDom2": "#yuyue-banner .activity-type:contains('预约抢购')", "secTime": "#yuyue-banner .activity-message .J-time" }, { "secDom": "#banner-miaosha", "timeType": "M月D日H时M分", "secDom2": "#banner-miaosha .activity-type:contains('秒杀预告')", "secTime": "#banner-miaosha .activity-price strong" }, { "secDom": "#banner-miaosha", "timeType": "t12", "secDom2": "#banner-miaosha .activity-type:contains('京东秒杀')", "secTime": "#banner-miaosha .activity-message" }, { "secDom": "#pingou-banner", "timeType": "t13", "secDom2": "#pingou-banner .activity-type:contains('预售')", "secTime": "#pingou-banner .activity-message .J-time" }, { "secDom": "#banner-shangou .activity-type:contains('京东闪购')", //"timeType": "t14", "timeType": "t12", "secDom2": "#banner-shangou .activity-message:contains('预计')", "secTime": "#banner-shangou .activity-message" }, { // 预售商品,还没开始付定金 "secDom": "#pingou-banner .activity-message:contains('距预售还需')", "timeType": "timeRangeSplitBy`-`", "secDom2": "#pingou-process dt:contains('支付定金')", "secTime": "#pingou-process .J-presale-time" }, { // 预售商品,使用尾款时间 "secDom": "#pingou-process .J-balance-time", "timeType": "timeRangeSplitBy`-`", "secDom2": "#pingou-process dt:contains('支付尾款')", "secTime": "#pingou-process .J-balance-time" }, { // 预售商品,使用尾款时间 "secDom": "#yuyue-process .J-step4", "timeType": "timeRangeSplitBy`-`", "secDom2": "#yuyue-process dt:contains('抢购中')", "secTime": "#yuyue-process .J-step4" }], "taobao-ju": [{ "secDom": ".buyaction.J_JuSMSRemind", "timeType": "t21", "secDom2": ".ju-clock.J_juItemTimer>p:contains('开抢')", "secTime": ".ju-clock.J_juItemTimer>p" }], "taobao": [{ "secDom": "#J_TaoQiangGou", "timeType": "t21", "secDom2": "#J_TaoQiangGou:contains('开始抢购')", "secTime": "#J_TaoQiangGou" }], "tmall": [{ "secDom": "#tm-yushou-process-banner", "timeType": "t31", "secDom2": "#tm-yushou-process-banner .tm-yushou-process-title.tm-ys-title-one-row:contains('天猫预售')", "secTime": "#tm-yushou-process-banner .J_step2Time" }, { "secDom": ".tm-countdown .tb-btn-wait:contains('即将开始')", "timeType": "t32", "secDom2": ".tm-countdown .tm-countdown-notice:contains('距开售')", "secTime": ".tm-countdown .tm-countdown-timer" }], "suning": [{ "secDom": "#timePanel", "timeType": "t41", "secDom2": "#timePanel .djh-title:contains('预定')", "secTime": "#timePanel .proinfo-cd" }, { "secDom": ".snqg-logo", "timeType": "M月D日 H时M分", "secDom2": ".djh-cd", "secTime": "#bigPolyTime" }, { "secDom": "#buyTime", "timeType": "X月X日X时X分X秒", "secDom2": ".step-4", "secTime": "#buyTime dd:contains('开始')" }], "xiaomi": [{ "secDom": ".pro-time.J_proBook", "timeType": "t51", "secDom2": ".pro-time.J_proBook .pro-time-head:contains('预售')", "secTime": ".pro-time.J_proBook .time.J_bookTime" }], "kaola": [{ "secDom": ".m-promotionbar", "timeType": "t61", "secDom2": ".m-promotionbar .prelimit .txt:contains('开抢')", "secTime": ".m-promotionbar .prelimit .txt" }], "dangdang": [{ "secDom": "#count-down", "timeType": "t71", "secDom2": "#count-down .J-time-text:contains('尚未开始')", "secTime": "#count-down .J-time" }], "vmall": [{ "secDom": "#buyProcessIDD", "timeType": "t81", "secDom2": "#buyProcessIDD ul li:first-child:contains('支付订金')", "secTime": "#startDateIDD" }] }; var getSeckillTime = function getSeckillTime(type, ori_str) { if (ori_str.length < 3) { return false; } var str = undefined; if (type !== "t81") { str = ori_str.replace(/\s/g, ""); } else { str = ori_str; } var arr = undefined, newtime = undefined; var nowTime = undefined; var month = undefined, d = undefined, h = undefined, m = undefined, ss = undefined, ms = undefined; var year = new Date().getFullYear(); switch (type) { case "X月X日X时X分X秒": arr = ori_str.match(/开始:(\d+)月(\d+)日(\d+)时(\d+)分(\d+)秒/); if (!arr) return false; nowTime = new Date(); newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4]; break; case 'M月D日 H时M分': arr = ori_str.match(/(\d+)月(\d+)日 (\d+):(\d+)/); if (!arr) return false; nowTime = new Date(); newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4]; break; case 'M月D日H时M分': arr = ori_str.match(/(\d+)月(\d+)日(\d+):(\d+)/); if (!arr) return false; nowTime = new Date(); newtime = nowTime.getFullYear() + '/' + arr[1] + '/' + arr[2] + '/' + arr[3] + ':' + arr[4]; break; case "timeRangeSplitBy`-`": // eg: 2019-07-0300:00-2019-07-0700:00 var date = ori_str.split(' ')[0].replace(/-/g, '/'); newtime = date + '/' + ori_str.split(' ')[1].split('-')[0]; break; case "t11": nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小时(\d+)分(\d+)秒/); if (!arr) return false; if ($('#yuyue-banner .activity-message .J-text').text() === '抢购剩余') { return false; } if ($('#pingou-banner .activity-message .J-text').text() === '距预售还需') { return false; } d = arr[1] || 0; h = arr[2] || 0; m = arr[3] || 0; ss = arr[4] || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t12": nowTime = new Date().getTime(); arr = str.match(/预计([0-9:月日]+)开始/); if (!arr) return false; var htime = arr[1]; newtime = timeUtil(nowTime, "5"); if (htime.indexOf('日') > -1) { var _month = htime.split('月')[0]; var day = htime.split('日')[0].split('月')[1]; newtime = newtime.split('/')[0] + ('/' + _month + '/' + day); htime = htime.split('日')[1]; } newtime = newtime + '/' + htime; break; case "t13": nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分(\d+)秒/); if (!arr) return false; if ($('.activity-message .J-text').text() === '预售剩余') { return false; } d = arr[1] || 0; h = arr[2] || 0; m = arr[3] || 0; ss = arr[4] || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t14": arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/); if (!arr) return false; month = Number(arr[1]) || 0; if (month < 10) month = "0" + month.toString(); d = Number(arr[2]) || 0; if (d < 10) d = "0" + d.toString(); h = arr[3] || 0; m = arr[4] || 0; // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000; newtime = year + '/' + month + '/' + d + '/' + h + ':' + m; break; case "t21": arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/); if (!arr) return false; month = Number(arr[1]) || 0; if (month < 10) month = "0" + month.toString(); d = Number(arr[2]) || 0; if (d < 10) d = "0" + d.toString(); h = arr[3] || 0; m = arr[4] || 0; // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000; newtime = year + '/' + month + '/' + d + '/' + h + ':' + m; break; case "t31": arr = ori_str.split("~"); if (!arr) return false; newtime = arr[0].replace(/(?:\.|\s)/g, "/"); break; case "t32": nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分/); if (arr && arr.length) { d = Number(arr[1]) || 0; if (d < 10) d = "0" + d.toString(); h = arr[2] || 0; m = arr[3] || 0; } else { arr = str.match(/(\d+)分(\d+)秒/); d = 0; h = 0; m = arr[1]; } ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t41": //苏宁 nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)|)(?:天|日|)(\d+)小?时(\d+)分([0-9.]+)秒/); if (!arr) return false; d = parseInt(arr[1]) || 0; h = parseInt(arr[2]) || 0; m = parseInt(arr[3]) || 0; ss = parseInt(arr[4]) || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t51": nowTime = new Date().getTime(); arr = str.match(/\s?(?:(\d+)|)\s?(?:天|日|)\s?(\d+)\s?小?时\s?(\d+)\s?分\s?(\d+)\s?秒/); if (!arr) return false; d = arr[1] || 0; h = arr[2] || 0; m = arr[3] || 0; ss = arr[4] || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t61": //kaola arr = str.match(/(\d+)月(\d+)日(\d+)\:(\d+)/); if (!arr) return false; month = Number(arr[1]) || 0; if (month < 10) month = "0" + month.toString(); d = Number(arr[2]) || 0; if (d < 10) d = "0" + d.toString(); h = arr[3] || 0; m = arr[4] || 0; // ms = month + d * 86400000 + h * 3600 * 1000 + m * 60 * 1000; newtime = year + '/' + month + '/' + d + '/' + h + ':' + m; break; case "t71": //dangdang nowTime = new Date().getTime(); arr = str.match(/(?:(\d+)(?:天|日)|)(\d+)时(\d+)分(\d+)秒/); if (!arr) return; d = arr[1] || 0; h = arr[2] || 0; m = arr[3] || 0; ss = arr[4] || 0; ms = d * 86400000 + h * 3600 * 1000 + m * 60 * 1000 + ss * 1000; newtime = timeUtil(nowTime + ms, "6"); break; case "t81": arr = str.split("~"); if (!arr) return; newtime = arr[1].trim(); newtime = newtime.replace(/[\s\.]/g, "/"); break; } return newtime; }; var getSeckill = function getSeckill() { var seckillItem = seckillRule[G.site]; if (!seckillItem) return; for (var i = 0; i < seckillItem.length; i++) { var sitem = seckillItem[i]; if ($(sitem["secDom"]).length > 0 && $(sitem["secDom2"]).length > 0) { var newtime = getSeckillTime(sitem["timeType"], $(sitem["secTime"]).text()); if (newtime) { globalTime = newtime; //console.log('newtime:', newtime) var strTime = newtime.split('/'); var d = new Date(strTime[0] + '/' + strTime[1] + '/' + strTime[2] + ' ' + strTime[3]); if (d.getTime() - new Date().getTime() < 300000) { continue; } renderSeckill(); break; } } } if (!globalTime && retry < 5) { retry++; setTimeout(getSeckill, 500); } }; var needLog = false; var renderSeckill = function renderSeckill() { var res, html, CommonLogin, dp_query, currentStatus; return regeneratorRuntime.async(function renderSeckill$(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('https://www.gwdang.com/user/info')); case 2: res = context$1$0.sent; userInfo = res.data; html = __webpack_require__("3a55f579c2446fd758f7"); $('#gwd_mini_remind').remove(); $('#gwd_mini_compare').after(html); CommonLogin = __webpack_require__("2d53f53e0179317f1fdf")['default']; new Vue({ el: '#gwd-bjd-login-box', render: function render(h) { return h(CommonLogin, { props: { position: 'gwd-mini', showAlterLogin: true, alterLoginPosition: 'row' } }); } }); // 获取当前提醒状态 dp_query = userData.get('dp_query'); context$1$0.next = 12; return regeneratorRuntime.awrap(request.get(G.c_server + '/brwext/remind_intime?opt=get&id=' + dp_query.dp.dp_id)); case 12: currentStatus = context$1$0.sent; addEvent(); if (currentStatus.msg === "未收藏" || currentStatus.msg === "用户未登录") { log('detected:seckillRemind'); cnzz.log('抢购提醒', '监测到页面抢购'); needLog = true; SeckillSetState(false); } else { SeckillSetState(true); } case 15: case 'end': return context$1$0.stop(); } }, null, _this); }; var secKillState = undefined; var SeckillSetState = function SeckillSetState(state) { secKillState = state; if (state) { $('.sk-remind-btn').hide(); if (userInfo.wx == "1") { $('.sk-remind-state1').show(); } else { $('.sk-remind-state1').hide(); } $('#gwd_mini_seckill').addClass('seckillSet'); $('#gwd_mini_seckill .minibar-btn-box>span').text("已设抢购提醒"); if (needLog) {} } else { //$('.sk-remind-btn').hide() } }; var socketSet = false; var showedOnce = false; // 抢购提醒是否展示过一次 var addEvent = function addEvent() { price_remind.getQRcode(); window.refQRCode = price_remind.getQRcode; $('#gwd_mini_seckill').on('mouseenter', function () { if (G.email) { $('.seckill-detail').show(); $('.seckill-detail').css('width', '205px'); if (!socketSet && userInfo.wx == "0") { // 未绑定微信的情况,不显示提醒按钮 // 同时打开websocket log('notBind:seckillRemind'); cnzz.log('抢购提醒', '未绑定'); $('.sk-remind-state0').show(); if (!secKillState) { $('.sk-remind-state1').hide(); } $('.sk-remind-btn').hide(); renderWebsocket(); } if (needLog) { if ($('.sk-remind-btn').css('display') !== 'none') { if (!showedOnce) { log('showButton:seckillRemind'); cnzz.log('抢购提醒', '显示设置提醒按钮'); } } } showedOnce = true; } else { $('.login-detail').show(); } }); $('#gwd_mini_seckill').on('mouseleave', function () { $('.seckill-common-detail').hide(); }); $('.sk-remind-btn').on('click', function callee$1$0() { var dp, time, title, res; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: log('click:seckillRemind'); cnzz.log('抢购提醒', '设置按钮点击'); dp = userData.get('dp_query'); time = new Date(globalTime).toHalfHourTime().format("yyyy-MM-dd hh:mm:ss"); title = G.dp.name.replace(' ', ''); context$2$0.next = 7; return regeneratorRuntime.awrap(request.get(G.c_server + '/brwext/remind_intime?opt=add&id=' + dp.dp.dp_id + '&title=' + encodeURIComponent(title) + '&stime=' + time + '&url=' + encodeURIComponent(location.href))); case 7: res = context$2$0.sent; if (res.code === 1 || res.msg === '重复收藏') { if (res.code === 1) { log('setComplete:seckillRemind'); cnzz.log('抢购提醒', '设置成功'); } SeckillSetState(true); } case 9: case 'end': return context$2$0.stop(); } }, null, _this); }); //price_remind.init() $('#loginClickBtn').on('click', function () { var userN = $('.bjd-login-box .username').val(); var psd = $('.bjd-login-box .password').val(); if (userN && psd) { price_remind.loginRenderTop(); __webpack_require__("472c3193857af11233c9").userLogin(userN, psd, function () { location.reload(); }); } else { $('#login_remind_tle').css('display', 'block').fadeOut(5000); return; } }); }; var heartInterval = 0; var renderWebsocket = function renderWebsocket() { // $.ajax({ // url: 'https://www.gwdang.com/user/info', // xhrFields: { // withCredentials: true // }, // //crossDomain: true // }) var socket = new WebSocket("wss://www.gwdang.com/sck"); socket.onopen = function () {}; socket.onmessage = function (evt) { var res = JSON.parse(evt.data); if (res.msg == "Bind") { userInfo.wx = "1"; $('.sk-remind-state0').hide(); if (secKillState) { $('.sk-remind-state1').show(); } else { $('.sk-remind-btn').show(); } if (needLog) { cnzz.log('抢购提醒', '用户已绑定'); log('userBindComplete:seckillRemind'); } window.clearInterval(heartInterval); socket.close(); } }; socket.onclose = function () {}; socket.addEventListener('open', function callee$1$0(evt) { var accountInfo; return regeneratorRuntime.async(function callee$1$0$(context$2$0) { while (1) switch (context$2$0.prev = context$2$0.next) { case 0: socketSet = true; accountInfo = { action: 'bindWechatExt', msg: { uid: userInfo.uid } }; socket.send(JSON.stringify(accountInfo)); heartInterval = setInterval(function () { socket.send('{"ping": "pong"}'); }, 10000); case 4: case 'end': return context$2$0.stop(); } }, null, this); }); }; module.exports.getNewTime = function () { hasGetTime = true; return globalTime; }; //return /* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__("0d878046564e4ef2113b"), __webpack_require__("e081b2491b5c9b12b9da"), __webpack_require__("5d4f0e584bd9a3a675b3"), __webpack_require__("3deef7cc191860c0adf2")["default"])) /***/ }), /***/ "719962cffbaf4ac55086": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a '; return $$out; }; /***/ }), /***/ "812cd2e9043c15acf109": /***/ (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: "minibar-btn-box" }, [ _c("em", { staticClass: "setting-bg collect_mailout_icon", class: { favored: _vm.checked } }), _vm._v(" "), _c("span", [_vm._v(_vm._s(_vm.checked ? "已添加提醒" : "降价提醒"))]) ]) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "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() ] ), _vm._v(" "), _c( "form", { staticStyle: { display: "none" }, attrs: { action: _vm.debugMode ? "https://localdev.gwdang.com:3000/v2/ext/jd_rank" : "https://www.gwdang.com/v2/ext/jd_rank", method: "post", target: "_blank" } }, [ _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.content, expression: "content" } ], attrs: { type: "hidden", name: "products" }, domProps: { value: _vm.content }, on: { input: function($event) { if ($event.target.composing) { return } _vm.content = $event.target.value } } }), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.search, expression: "search" } ], attrs: { type: "hidden", name: "search" }, domProps: { value: _vm.search }, on: { input: function($event) { if ($event.target.composing) { return } _vm.search = $event.target.value } } }), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.rankName, expression: "rankName" } ], attrs: { type: "hidden", name: "rank" }, domProps: { value: _vm.rankName }, on: { input: function($event) { if ($event.target.composing) { return } _vm.rankName = $event.target.value } } }), _vm._v(" "), _c("input", { directives: [ { name: "model", rawName: "v-model", value: _vm.from, expression: "from" } ], attrs: { type: "hidden", name: "from" }, domProps: { value: _vm.from }, on: { input: function($event) { if ($event.target.composing) { return } _vm.from = $event.target.value } } }), _vm._v(" "), _c("input", { staticStyle: { display: "inline-block", "font-size": "20px", color: "#666" }, attrs: { type: "submit", value: "测试", id: "gwd-jdrank-submit-" + _vm.id } }) ] ) ] ) } var staticRenderFns = [] render._withStripped = true /***/ }), /***/ "820955a54449cb94cc9a": /***/ (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.data.time ? _c("div", [ _c( "p", { staticClass: "prifontf", staticStyle: { "margin-left": "16px", "line-height": "14px", "margin-top": "10px", "text-align": "left" } }, [_vm._v(_vm._s(_vm.data.time))] ), _vm._v(" "), _vm.data.pagePrice && _vm.domclass === "" ? _c( "div", { staticClass: "tip-item tip-pagepri tip-pagepri2" }, [ _c("em"), _vm._v(" "), !_vm.aliSite ? [ _c( "span", { staticClass: "tip-item-sp1", staticStyle: { width: "120px" } }, [_vm._v("到手价(单件) / 页面价")] ), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]) ] : _vm._e(), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [ _vm._v(_vm._s(_vm.data.pagePrice)) ]) ], 2 ) : _vm.data.pagePrice ? _c("div", { staticClass: "tip-item tip-pagepri" }, [ _c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [_vm._v("页面价")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [ _vm._v(_vm._s(_vm.data.pagePrice)) ]) ]) : _vm._e(), _vm._v(" "), _vm.data.directpro ? _c("div", { staticClass: "tip-item tip-directpro" }, [ _c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [ _vm._v("到手价(单件)") ]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [ _vm._v("¥" + _vm._s(_vm.data.directpro)) ]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp4", domProps: { innerHTML: _vm._s(_vm.data.promo2) } }) ]) : _vm._e(), _vm._v(" "), _vm.data.addpro ? _c("div", { staticClass: "tip-item tip-addpro" }, [ _c("em"), _vm._v(" "), _c("span", { staticClass: "tip-item-sp1" }, [ _vm._v("到手价(多件)") ]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp2" }, [_vm._v(":")]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp3 prifontf" }, [ _vm._v("¥" + _vm._s(_vm.data.addpro)) ]), _vm._v(" "), _c("span", { staticClass: "tip-item-sp4", domProps: { innerHTML: _vm._s(_vm.data.promo1) } }) ]) : _vm._e() ]) : _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: _vm.addLink( "https://tb.gwdang.com/extension/qrpage?dp_id=" + _vm.dpId + "&tag=" + _vm.tag + "&limit=" + _vm.coupon.limit + "&discount=" + _vm.coupon.discount ), title: "点击领取", 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(G, $) { 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); if (navigator.userAgent.toLowerCase().includes('edg')) { G.browser = 'edge'; } else { G.browser = G.from_device; } }; 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__("5d4f0e584bd9a3a675b3"), __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); /***/ }), /***/ "84636dd97cee8bc936cf": /***/ (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_MemberCouponBottomBjg_vue_vue_type_script_lang_js___ = __webpack_require__("349e2a33b311aaaed53d"); /* 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_MemberCouponBottomBjg_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_MemberCouponBottomBjg_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_MemberCouponBottomBjg_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_MemberCouponBottomBjg_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_MemberCouponBottomBjg_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "8474f357316d313d73fa": /***/ (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_MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___ = __webpack_require__("f82463ef8bf582c65ac0"); /* 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_MemberCouponMini_vue_vue_type_template_id_42d39176_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_MemberCouponMini_vue_vue_type_template_id_42d39176_scoped_true___["b"]; }); /***/ }), /***/ "85281123e954905c582b": /***/ (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_BarTrendInfo_vue_vue_type_script_lang_js___ = __webpack_require__("ce767cd931c590e338c6"); /* 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_BarTrendInfo_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_BarTrendInfo_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_BarTrendInfo_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_BarTrendInfo_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_BarTrendInfo_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "85dfcf86535fc301312e": /***/ (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_TopMainBar_vue_vue_type_script_lang_js___ = __webpack_require__("cc31af1eaedff0b3df82"); /* 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_TopMainBar_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_TopMainBar_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_TopMainBar_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_TopMainBar_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_TopMainBar_vue_vue_type_script_lang_js____default.a); /***/ }), /***/ "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(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__("94949e42013e4f5d5530"); 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.hostname.includes('.jd.com')) return; if (location.href.indexOf('plogin.m.jd.com') === -1) { return; } setTimeout(function () { if (!document.querySelector('.policy_tip-checkbox')) { return; } if (!document.querySelector('.policy_tip-checkbox').checked) { document.querySelector('.policy_tip-checkbox').click(); } }, 2000); var d = decodeURIComponent(util.getParameterByName('returnurl')); var d2 = util.getParameterByName('returnurl', d); if (d2) { d = decodeURIComponent(d2); } if (d.includes('item.m.jd.com/product')) { var id = d.split('item.m.jd.com/product/')[1]; var link = 'https://item.jd.com/' + id; var img = __webpack_require__("b578198bfa51eac13e46"); var a = document.createElement('A'); a.style.position = 'absolute'; a.style.left = '50%'; a.style.bottom = '10%'; a.style.transform = 'translate(-50%, -10%)'; a.href = G.u_server + '/union/go?site_id=3&target_url=' + encodeURIComponent(link) + '&union=' + G.union + '&column=h5_to_pc'; a.innerHTML = ''; document.body.appendChild(a); } if (location.href.indexOf('sku') === -1) { return; } var giftMoney = false; if (location.href.indexOf('giftcoupon') > -1) { giftMoney = true; //return } console.log(util); 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' || G.from_device === 'biyibi') { 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"])) /***/ }), /***/ "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); /***/ }), /***/ "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 /***/ }), /***/ "88c085c31fd149d1aeca": /***/ (function(module, exports, __webpack_require__) { "use strict"; // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // // Object.defineProperty(exports, '__esModule', { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; } var _GiftMoneyMixin = __webpack_require__("7bb864157b1329e994ad"); var _GiftMoneyMixin2 = _interopRequireDefault(_GiftMoneyMixin); var _QrErrorVue = __webpack_require__("d57cd728628c618acba9"); var _QrErrorVue2 = _interopRequireDefault(_QrErrorVue); exports['default'] = { mixins: [_GiftMoneyMixin2['default']], components: { QrError: _QrErrorVue2['default'] }, props: ['value', 'url', 'qr', 'id', 'price', 'tag', 'text'] }; module.exports = exports['default']; /***/ }), /***/ "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: flex!important;\n}\n", ""]); // exports /***/ }), /***/ "891715269d3e347058b7": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return render; }); /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return staticRenderFns; }); var render = function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticStyle: { display: "block !important", "z-index": "9999999999 !important" }, attrs: { id: _vm.domName } }, [ _c( "div", { staticClass: "gwdang-main", style: "display: " + (_vm.fold === "1" ? "none" : "flex") + ";", attrs: { id: "gwdang_main" } }, [ _c("div", { staticClass: "gwd-topbar-logo" }, [ _c("em", { staticClass: "gwd_bg" }), _vm._v(" "), _c("div", { attrs: { id: "gwd_setting_div" } }, [ _c("div", { staticClass: "gwd-hover-helper" }), _vm._v(" "), _c( "div", { staticClass: "gwd_setting_item gwd_setting_item_fst" }, [ _c("div", { staticClass: "gwd_bg gwd_function_setting" }), _vm._v(" "), _c( "a", { on: { click: function($event) { return _vm.openTab() } } }, [_vm._v("功能设置")] ) ] ), _vm._v(" "), _vm._m(0), _vm._v(" "), _vm._m(1), _vm._v(" "), _vm._m(2) ]) ]), _vm._v(" "), _vm._m(3), _vm._v(" "), _vm.showAd ? _c( "a", { staticStyle: { "line-height": "0" }, attrs: { id: "gwdang-banner-ad", title: "点击领取", target: "_blank", href: _vm.jdadUrl } }, [ _c("img", { staticStyle: { height: "32px" }, attrs: { src: "https://cdn.gwdang.com/images/extensions/ad1111/gwdang_go.png" } }) ] ) : _vm._e(), _vm._v(" "), _c("div", { staticStyle: { flex: "1" }, attrs: { id: "gwd-space" } }), _vm._v(" "), _c("div", { staticClass: "gwd-topbar-right" }, [ _c("div", { staticClass: "search-mod" }), _vm._v(" "), _c( "div", { staticClass: "feedback-close", attrs: { id: "gwdang-feed-close" } }, [ _vm._m(4), _vm._v(" "), _c( "a", { staticClass: "gwdang-suggest", attrs: { href: _vm.f_url, id: "gwdang-suggest", target: "_blank", title: "提建议或吐槽遇到的问题" } }, [ _c("em", { staticClass: "gwd_bg" }), _vm._v(" "), _c("span", { staticClass: "blkcolor1" }, [_vm._v("反馈")]) ] ), _vm._v(" "), _c( "a", { staticClass: "top-bar-setting", attrs: { href: _vm.s_url, target: _vm.s_url ? "_blank" : "", title: "功能设置" } }, [_c("em", { staticClass: "gwd_bg" })] ), _vm._v(" "), _vm._m(5) ] ) ]) ] ), _vm._v(" "), _c( "div", { staticClass: "gwdang-mini", style: "display: " + (_vm.fold === "1" ? "block" : "none"), attrs: { id: "gwdang-mini" } }, [_vm._m(6)] ) ] ) } var staticRenderFns = [ function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd_setting_item" }, [ _c("div", { staticClass: "gwd_bg gwd_opinion_feedback" }), _vm._v(" "), _c( "a", { attrs: { href: "https://www.gwdang.com/brwext/suggest", target: "_blank" } }, [_vm._v("意见反馈")] ) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd_setting_item" }, [ _c("div", { staticClass: "gwd_bg gwd_use_help" }), _vm._v(" "), _c( "a", { attrs: { href: "https://www.gwdang.com/app/extension?page=question", target: "_blank" } }, [_vm._v("使用帮助")] ) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd_setting_item" }, [ _c("div", { staticClass: "gwd_bg gwd_homepage" }), _vm._v(" "), _c( "a", { attrs: { href: "https://www.gwdang.com/", target: "_blank" } }, [_vm._v("购物党首页")] ) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c("div", { staticClass: "gwd-topbar-left" }, [ _c("div", { staticClass: "gwdang-tab", attrs: { id: "amazon_compare" } }), _vm._v(" "), _c("div", { staticClass: "gwdang-tab", attrs: { id: "b2c_compare" } }), _vm._v(" "), _c("div", { staticClass: "gwdang-tab", attrs: { id: "tb_compare" } }), _vm._v(" "), _c("div", { staticClass: "gwdang-tab", attrs: { id: "tm_compare" } }), _vm._v(" "), _c("div", { staticClass: "gwdang-tab", attrs: { id: "gwdang-trend" } }) ]) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "a", { staticClass: "gwdang-icon favor", attrs: { href: "javascript:", id: "gwdang-favor", title: "我的收藏夹", target: "_self" } }, [ _c("em", { staticClass: "hasColor gwd_bg" }), _vm._v(" "), _c( "span", { staticClass: "blkcolor1 favortle", attrs: { title: "收藏并获得降价提醒" } }, [_vm._v("我的收藏夹")] ) ] ) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "a", { staticClass: "gwd_close", attrs: { href: "javascript:", target: "_self", title: "关闭购物党" } }, [_c("em", { staticClass: "gwd_bg" })] ) }, function() { var _vm = this var _h = _vm.$createElement var _c = _vm._self._c || _h return _c( "div", { staticClass: "gwdang-nav main", attrs: { id: "gwdang-main-nav" } }, [ _c("a", { staticClass: "gwd_logo gwd_bg", attrs: { href: "http://www.gwdang.com", target: "_blank" } }), _vm._v(" "), _c("a", { staticClass: "unfold_pointer gwd_bg", attrs: { href: "javascript:", title: "点击展开", id: "gwd_fold_pointer" } }) ] ) } ] render._withStripped = true /***/ }), /***/ "893503d294226ea0dddf": /***/ (function(module, __webpack_exports__, __webpack_require__) { "use strict"; Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true___ = __webpack_require__("32dc5c815515f7c2847e"); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__TooltipView_vue_vue_type_script_lang_js___ = __webpack_require__("6a8e7724d7ff1c2952d4"); /* harmony namespace reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in __WEBPACK_IMPORTED_MODULE_1__TooltipView_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__TooltipView_vue_vue_type_script_lang_js___[key]; }) }(__WEBPACK_IMPORT_KEY__)); /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__TooltipView_vue_vue_type_style_index_0_id_4c623068_scoped_true_lang_css___ = __webpack_require__("1bf3d038228bc6453f54"); /* 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__TooltipView_vue_vue_type_script_lang_js___["default"], __WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true___["a" /* render */], __WEBPACK_IMPORTED_MODULE_0__TooltipView_vue_vue_type_template_id_4c623068_scoped_true___["b" /* staticRenderFns */], false, null, "4c623068", 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('4c623068')) { api.createRecord('4c623068', component.options) } else { api.reload('4c623068', component.options) } module.hot.accept("./TooltipView.vue?vue&type=template&id=4c623068&scoped=true&", function () { api.rerender('4c623068', { render: render, staticRenderFns: staticRenderFns }) }) } } component.options.__file = "src/standard/module/components/PriceTrend/TooltipView.vue" /* harmony default export */ __webpack_exports__["default"] = (component.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 /***/ }), /***/ "8ab992f0581c1a15ead9": /***/ (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_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css___ = __webpack_require__("c59529271a81395195a3"); /* 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_Share_vue_vue_type_style_index_0_id_3489a5d0_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_Share_vue_vue_type_style_index_0_id_3489a5d0_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_Share_vue_vue_type_style_index_0_id_3489a5d0_scoped_true_lang_css____default.a); /***/ }), /***/ "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"))) /***/ }), /***/ "8bdd7635873d884ae573": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a '; return $$out; }; /***/ }), /***/ "a710c33ca97ead6a5b7f": /***/ (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_Switch_vue_vue_type_template_id_222e987e_scoped_true___ = __webpack_require__("f9ff781f9088de39bd10"); /* 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_Switch_vue_vue_type_template_id_222e987e_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_Switch_vue_vue_type_template_id_222e987e_scoped_true___["b"]; }); /***/ }), /***/ "a8d04aabebd76e8bb3f7": /***/ (function(module, exports, __webpack_require__) { "use strict"; /* WEBPACK VAR INJECTION */(function($, G) { 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__("8a0927a3ad9eaa0e7f96"), 'tmall': __webpack_require__("503933f10716083fddfd") }; var tmData = {}; var renderBtnTop = function renderBtnTop(data) { var html = __webpack_require__("86bd79d95549896902d6"); data.ss = 0; if (data.tmall.length !== 0 && data.tmall.product) { $('#tm_compare').append(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(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(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 '; return $$out; }; /***/ }), /***/ "be3ebc245c70ce8744cc": /***/ (function(module, exports, __webpack_require__) { // style-loader: Adds some css to the DOM by adding a